{"name":"@envelop/validation-cache","version":"5.1.2-alpha-20230217172604-0277f601","sideEffects":false,"peerDependencies":{"@envelop/core":"3.0.6-alpha-20230217172604-0277f601","graphql":"^14.0.0 || ^15.0.0 || ^16.0.0"},"dependencies":{"lru-cache":"^6.0.0","tslib":"^2.5.0","fast-json-stable-stringify":"^2.1.0","js-sha1":"^0.6.0"},"repository":{"type":"git","url":"git+https://github.com/n1ru4l/envelop.git","directory":"packages/plugins/validation-cache"},"author":{"name":"Dotan Simha","email":"dotansimha@gmail.com"},"license":"MIT","main":"cjs/index.js","module":"esm/index.js","typings":"typings/index.d.ts","typescript":{"definition":"typings/index.d.ts"},"type":"module","exports":{".":{"require":{"types":"./typings/index.d.cts","default":"./cjs/index.js"},"import":{"types":"./typings/index.d.ts","default":"./esm/index.js"},"default":{"types":"./typings/index.d.ts","default":"./esm/index.js"}},"./*":{"require":{"types":"./typings/*.d.cts","default":"./cjs/*.js"},"import":{"types":"./typings/*.d.ts","default":"./esm/*.js"},"default":{"types":"./typings/*.d.ts","default":"./esm/*.js"}},"./package.json":"./package.json"},"readme":"## `@envelop/validation-cache`\n\nThis plugins adds simple LRU caching to your `validate`, to improve performance by caching the validation result.\n\nThis plugins improves performance of validating by ~50% (based on benchmarks).\n\n## Getting Started\n\n```\nyarn add @envelop/validation-cache\n```\n\n## Usage Example\n\n```ts\nimport { parse, validate, specifiedRules, execute, subscribe } from 'graphql'\nimport { envelop, useEngine } from '@envelop/core'\nimport { useValidationCache } from '@envelop/validation-cache'\n\nconst getEnveloped = envelop({\n  plugins: [\n    useEngine({ parse, validate, specifiedRules, execute, subscribe }),\n    // ... other plugins ...\n    useValidationCache({\n      // options goes here\n    })\n  ]\n})\n```\n\n### API Reference\n\n#### `cache`\n\nSet this to pass in a cache instance. By default a new LRU cache is created using default `max` and `ttl`.\n","readmeFilename":"README.md","gitHead":"0277f6018316998be1b7e3ea89c6707327b8a467","description":"This plugins adds simple LRU caching to your `validate`, to improve performance by caching the validation result.","bugs":{"url":"https://github.com/n1ru4l/envelop/issues"},"homepage":"https://github.com/n1ru4l/envelop#readme","_id":"@envelop/validation-cache@5.1.2-alpha-20230217172604-0277f601","_nodeVersion":"18.14.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-sVmOr7qwnQoBtOmVDi0mvAH5M3G2ocEBo1t1q/LJ79BFCj8bJ3cBOGpHvD7riAHByJ7GVZR3f2We8IcNjRgRcg==","shasum":"d4aad0732edfaef280d640473c6669a78756aabb","tarball":"http://registry-npm.ywwl.com/@envelop/validation-cache/download/@envelop/validation-cache-5.1.2-alpha-20230217172604-0277f601.tgz","fileCount":7,"unpackedSize":8160,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDx+vRk68EUiG+pDboyrJ7UBQpBTYZOoZ6EB+DE/oPQ+wIhANIDVCFn0BjMy8COOex4Gz7oXrIN/TBbEpj+17pJSeLg"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj77joACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQLw//aUj+pQ975Wiu1BR0y8urT32zSSPsmFDNsD/6gYFeTuFmecvt\r\n5zbs7fHpKA+X+wWWNAclLXunEbdzsKmdl6pCY8QBtpTrovHs9Kv/7x8TRsY/\r\nYNI7Wox4CN4DH694zGXIV+E5FqrAJFoM0rN1LKnf+e6fWm2pvWVLVvldkD24\r\n5rSu5iLKFgZrFghmsLtwHfMVYKd6/RaJ5c4x3jyrpDkeY9aIiDYt1928kWX9\r\nZM+aOBiU4ed+XtEI/BuCm+opaLlJzf/iPuWYX7m26Wf6z28RCjjkCvgVI/kZ\r\ndw945Rt7P8bJUoMItxTI3nL3qfxkUZnUsgr2m0EofIc845qKzxyE5mR+S5pe\r\nldQHsxRs4zkeEMMSdl3vogPcqdVjWB+Cv6XdODw5D5nhJZrmQOKWM9JVyRWU\r\n/NIEAtQYvj3ekr5kNOzs9l7RLpYZHAoS99Javgg5XRZ44czkIrYIVcuJwewm\r\nZTAF84U60WkF8zRDXPsApPVLJ34HR0SjE+yaqA10Kp1erppr142rEtkvGpvd\r\ns2SXYEh52YbgkMn6eOPcYHevH9FDoYjIO160LRIeDH+gqGOE+Nk7d1RBUMef\r\nCAR3k4QYB256M8vs9e9hJQr0rW/Be6s+hGQDGbISg84+sTwatQXkYwfUOhQA\r\nhiOF6w3WJd2KUWhaXSgo9ZOYPYoeOqIKYEI=\r\n=BgO6\r\n-----END PGP SIGNATURE-----\r\n","size":2266,"noattachment":false,"key":"/@envelop/validation-cache/-/@envelop/validation-cache-5.1.2-alpha-20230217172604-0277f601.tgz"},"_npmUser":{"name":"dotansimha","email":"dotansimha@gmail.com"},"directories":{},"maintainers":[{"name":"dotansimha","email":"dotansimha@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validation-cache_5.1.2-alpha-20230217172604-0277f601_1676654824332_0.024025446204411383"},"_hasShrinkwrap":false,"publish_time":1676654824526,"_cnpm_publish_time":1676654824526,"dist-tags":{"alpha":"11.0.2-alpha-20261126100851-58d9782f151a975e802f1a545a315263d8d886a7","latest":"11.0.1","rc":"11.0.2-rc-20261124205929-9595907fc2bef8a397343bd288fef4685ab9f508"}}