Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mercurius

Package Overview
Dependencies
Maintainers
2
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mercurius - npm Package Compare versions

Comparing version 8.9.0 to 8.9.1

test/cache.js

4

docs/hooks.md

@@ -66,2 +66,4 @@ # Hooks

Note that if you modify the `document` object, the jit compilation will be disabled for the request.
```js

@@ -147,3 +149,3 @@ fastify.graphql.addHook('preExecution', async (schema, document, context) => {

"data": {
foo: "bar"
"foo": "bar"
},

@@ -150,0 +152,0 @@ "errors": [

@@ -538,7 +538,7 @@ 'use strict'

// minJit is 0 by default
if (shouldCompileJit) {
cached.jit = compileQuery(fastifyGraphQl.schema, modifiedDocument || document, operationName)
if (shouldCompileJit && !modifiedDocument) {
cached.jit = compileQuery(fastifyGraphQl.schema, document, operationName)
}
if (cached && cached.jit !== null) {
if (cached && cached.jit !== null && !modifiedDocument) {
const execution = await cached.jit.query(root, context, variables || {})

@@ -545,0 +545,0 @@

{
"name": "mercurius",
"version": "8.9.0",
"version": "8.9.1",
"description": "Fastify GraphQL adapter with gateway and subscription support",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc