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

mercurius-cache

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mercurius-cache - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

examples/basic.js

2

index.js

@@ -108,3 +108,3 @@ 'use strict'

if (remoteCache) {
await remoteCache.set(name + '~' + key, JSON.stringify(res))
await remoteCache.set(name + '~' + key, res)
}

@@ -111,0 +111,0 @@ return res

{
"name": "mercurius-cache",
"version": "0.3.0",
"version": "0.4.0",
"description": "Cache the results of your GraphQL resolvers, for Mercurius",

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

@@ -12,3 +12,2 @@ # mercurius-cache

which will also deduplicate the calls.
This

@@ -15,0 +14,0 @@ ## Install

@@ -577,1 +577,12 @@ 'use strict'

})
test('using both policy and all options', async (t) => {
const app = fastify()
app.register(mercurius)
app.register(cache, {
all: true,
policy: { Query: { add: true } }
})
await t.rejects(app.ready())
})
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