{"name":"@envelop/validation-cache","version":"5.1.2-alpha-20230217203949-45794669","sideEffects":false,"peerDependencies":{"@envelop/core":"3.0.6-alpha-20230217203949-45794669","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":"45794669bd87952f0da63d8db17369ff11ad1979","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-20230217203949-45794669","_nodeVersion":"18.14.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-SWIRDwdI7T5ub638PCFRCt6YOkKF4D+Wi8gtLsybdMsKRzG4txkDKxQxPgCIqTbOL5HGkohHBts4+kZ+D77GcA==","shasum":"5181afe317a1fc30e4582a0d52b7a8decbf0a382","tarball":"http://registry-npm.ywwl.com/@envelop/validation-cache/download/@envelop/validation-cache-5.1.2-alpha-20230217203949-45794669.tgz","fileCount":7,"unpackedSize":8160,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHuCospLjDHZ/+aq3mRfxIzeOSsyiIPYVdBbwteh2WMGAiAkmeUW6/7/BiAMTgeJU0UbFXYdqBApS09xEZ+lFZ9jaA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7+ZJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo3CQ//bW68P4zQDxKHiV5cZdOvvESmPt/F2XM9WKUETwi3QS8aSzjk\r\n4PfzCYY6RKuk5m5jxGlwOvAocFxCe6kxHzUSZy8QDSRj/PKtgpmdw+xBbXJ/\r\nXkfH2NgPt2VN4+AarTBNozaWUsnJg6dnFoISQYmAbfyiYcHfEnKmWFyjCTB/\r\nKA6ce3uPk74bJW+yn8kcy26eYk4bzRThFO63RJzUUb1l5L2riBC79VYBfZf2\r\nV8RQqGQjLWiibqWTNFh1xAlXeuaOtpfyNorasa4pZFidjcGEVhYwFPgZ9Mkw\r\nqyfhpP0Nnz+uIm+ik2yF88z5yu9uG3lUeN4rlJs07WFWXvNA21Pxqy5dWzwz\r\nODSockGXzIK+NgNBEeZqX/WxIDALJ0SlzlDpYCvwjIP3BSDJOJWfgbRi2wvh\r\n7YjJZoUL1/Nbqa4y5DxF/r9k5NQ3YPx41frMFD3x7dGKZeK0ipNegBtrADnz\r\nrY+7n1g1Q+NWSX/BH0tUl86ho6r0PLkGBD/Nrj56hy+Km2i1ljL9Nm1SAFaJ\r\n+NFITbS+ptrXWfxLWGCGmmNWB7VehMQhsj4Yo1vN6RqFLOfkh3X5xT0RYNY3\r\nhHlclyfVAyo+9ho4HBTWG5dTLD/SKcleyxYcm5DiH8fnAHsWq4M3A7BO1NFM\r\nacoleFdy/VMpLKx3eRfH1ODSRKCcKiZP0DY=\r\n=Cn8R\r\n-----END PGP SIGNATURE-----\r\n","size":2270,"noattachment":false,"key":"/@envelop/validation-cache/-/@envelop/validation-cache-5.1.2-alpha-20230217203949-45794669.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-20230217203949-45794669_1676666441481_0.35602665868115335"},"_hasShrinkwrap":false,"publish_time":1676666441629,"_cnpm_publish_time":1676666441629,"dist-tags":{"alpha":"11.0.2-alpha-20261126100851-58d9782f151a975e802f1a545a315263d8d886a7","latest":"11.0.1","rc":"11.0.2-rc-20261124205929-9595907fc2bef8a397343bd288fef4685ab9f508"}}