{"name":"@envelop/parser-cache","version":"4.3.2-alpha-3ace273.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.3.2-alpha-3ace273.0","graphql":"^14.0.0 || ^15.0.0 || ^16.0.0"},"dependencies":{"tiny-lru":"7.0.6"},"repository":{"type":"git","url":"git+https://github.com/dotansimha/envelop.git","directory":"packages/plugins/parser-cache"},"author":{"name":"Dotan Simha","email":"dotansimha@gmail.com"},"license":"MIT","main":"index.js","module":"index.mjs","typings":"index.d.ts","typescript":{"definition":"index.d.ts"},"exports":{".":{"require":"./index.js","import":"./index.mjs"},"./*":{"require":"./*.js","import":"./*.mjs"},"./package.json":"./package.json"},"readme":"## `@envelop/parser-cache`\n\nThis plugins adds simple LRU caching to your `parse`, to improve performance by caching the parsed result.\n\nThis plugins improves performance of parsing by ~60% (based on benchmarks).\n\n## Getting Started\n\n```\nyarn add @envelop/parser-cache\n```\n\n## Usage Example\n\n```ts\nimport { envelop } from '@envelop/core';\nimport { useParserCache } from '@envelop/parser-cache';\n\nconst getEnveloped = envelop({\n  plugins: [\n    // ... other plugins ...\n    useParserCache({\n      // options goes here\n    }),\n  ],\n});\n```\n\n### API Reference\n\n#### `documentCache`\n\nSet this to pass in a cache instance for caching documents. By default a new LRU cache is created using default `max` and `ttl`.\n\n#### `errorCache`\n\nSet this to pass in a cache instance for caching errors. By default a new LRU cache is created using default `max` and `ttl`.\n","readmeFilename":"README.md","gitHead":"3ace27303aa2b4dc5b088c02fbb69cb9f2bf3f4f","description":"This plugins adds simple LRU caching to your `parse`, to improve performance by caching the parsed result.","bugs":{"url":"https://github.com/dotansimha/envelop/issues"},"homepage":"https://github.com/dotansimha/envelop#readme","_id":"@envelop/parser-cache@4.3.2-alpha-3ace273.0","_nodeVersion":"17.9.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-kTbCxrN06O94wGwOPNzCIoFYyD5DY0YdmIsV9+r2KSTnK0d8egqRGfQdpo+poiIS8G+7jdXcGzjmToSHnR+QUA==","shasum":"a38950f2220d00db888a21252d2ac440018d3823","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.3.2-alpha-3ace273.0.tgz","fileCount":5,"unpackedSize":4962,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAEVLfeTYTkhtNLq6A7cNKx1Q4wVY3LzMJE8JmhZoyBPAiACZTcQJRQGc2A2GjoUVp27QG77wzjymqolbhDjN1UTcg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJib79tACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQZw/7BFNhcRqCm8Z1gKOXrQK5OAtyGMu0TAfkGCr1DGx6jr/XrHxt\r\nU+XdQZeenBv/l72Nbev5VhWWMF5E30IyiQCoEB4JUlkaU5FIjoaEJsD4slQL\r\nAxvL48sGfl3oyBWQiV+EoE0H4D/OyiwmnWXXJnI9kDqBR3Vnc03oMGhVcQpe\r\nhlp4mSUPPF368qsQ0lnrP71vjRYuE3Q00MqsOuJ6g16LRnsp029MH43UJtW1\r\nwXgJMMiYvWgjsZk/SmQz+PQ9iySkUtpwHLitvQUGklX+VMdkRyjxS5QuofIy\r\nyaGCSDZ7ck1ftvmn0pPdpGV/qOMY0mwt0VlKbNmiP94E/d8w+uQTo9voCdA8\r\nGgyBMM1ZdezCeowN7SA3zJW4+e9NBJdL6cnG4eIOGMCF13CwN2BzGXPBDnqD\r\nXv0/pmoZveVGqCCzQziSlfj8ABpGcM05sBTf3SGT8MusjFbrOW/J8KnqfPgq\r\neFYLkOQEbOPizmSpeJS/zSdZWB+LiHvIol3KdlENJuMLADiFWpovCQu3hu4U\r\ninkqHGmKFboGjQZxlzM795lXVw7Q4SvOxZSv6ysFwvuWpHiUBzpSpW7iuVWS\r\nd0glLoiQzTIHyfHv3NiNyY9ThKdOL4A2BqW1Eg5I9tuMGHi/5ClgL6p/TP+9\r\nmP5hoe0qPvgSdVBZy9kdQR7fnb423L2kvAc=\r\n=to8H\r\n-----END PGP SIGNATURE-----\r\n","size":1584,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.3.2-alpha-3ace273.0.tgz"},"_npmUser":{"name":"dotansimha","email":"dotansimha@gmail.com"},"directories":{},"maintainers":[{"name":"dotansimha","email":"dotansimha@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parser-cache_4.3.2-alpha-3ace273.0_1651490668898_0.3538198631135885"},"_hasShrinkwrap":false,"publish_time":1651490669259,"_cnpm_publish_time":1651490669259,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}