Skip to content

Commit

Permalink
Use v8 serialize in telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
freiksenet committed Apr 6, 2020
1 parent 6d35453 commit 9b34e75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/gatsby/src/query/graphql-runner.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import crypto from "crypto"
import v8 from "v8"
import {
parse,
validate,
Expand Down Expand Up @@ -169,7 +170,7 @@ export default class GraphQLRunner {
crypto
.createHash(`sha1`)
.update(statsQuery)
.update(JSON.stringify(context))
.update(v8.serialize(context))
.digest(`hex`)
)

Expand Down

0 comments on commit 9b34e75

Please sign in to comment.