Skip to content

Commit

Permalink
Use v8 serialize for context (#22851)
Browse files Browse the repository at this point in the history
  • Loading branch information
freiksenet authored Apr 7, 2020
1 parent 5c1d4a4 commit cb9692f
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 cb9692f

Please sign in to comment.