{"name":"@envelop/parser-cache","version":"4.4.0-alpha-3936561.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.4.0-alpha-3936561.0","graphql":"^14.0.0 || ^15.0.0 || ^16.0.0"},"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":"3936561a12d2185cab39f31f4ff1fe6ab822b257","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.4.0-alpha-3936561.0","_nodeVersion":"17.9.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-CIoI7m3tqyDvV3bmdvSQDOspCgwi+xKWpFlwbXBNfrDmSLF6B47lBv3b6BQa5xG/3+LgQpJo12kTmyiSa6JHxg==","shasum":"6d4ca80b9d09036386656b42bca9a99f89fb5f0d","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.4.0-alpha-3936561.0.tgz","fileCount":5,"unpackedSize":4647,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGlKuvBK3e8+kFuT+FkLVsVRZHbVRzgLimUTmcSp1SQVAiA/X7+g9Nw9x8rIPe7qFJNhGhKV+TIFqBx4xKC4c8XvhQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVTYGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpftw//eqpxaRuG/C6aW0fOY4T/FgqytrxhUPYdqs2rDCmH2qfMKpwO\r\nBBs8DU/A3kx03258rx3zEaM4FWnpiWWtUfZiwzAR9NKCoGuWr+6AN378ohxQ\r\nBZF6bK4OAOLOhIg8bLdiUScs4nFiuroAIrOEp3OwgN2+AzMFQ0eEl2YL13ti\r\n3+8p651XyNxM6xDpi39eRm+hseQwYOtIjvs5yMsNKp0pNqQR3aCP4PW5XE8X\r\n9rtc5eRutoWwfd8rCxBS1/WVdPQXcJljatMhHeffzLoJ0g3ZVf5gykJ0UdDB\r\nSCP9rowR/wiLxZ6rvS88rGUKSpmJLqQ7NecBbbrLD0EUfMAZoXKPKA+5G2mI\r\n7dYvob3YUkbIpuawXnKTr7JFYDJKvC3uRcpBZWnKDXTGiylCeZ9O9Q6hwjUw\r\n9xjlwiE7pdshqAWxfhatelZQcUWs38mlX+6RTduGYiFQLooaU9nAfskukbe9\r\nBTwvK2wspLAyWEm1l4BuAQhNX7jBZZjvCmpL1WNm9omziG1DjM+SRio5msMo\r\nV6ew08nR5ozI7o4m3SbAXB+mpjRSV1WATeqVDDFk4RhkKdukRzkYYSKPw/ia\r\nm217AWDvQJ//9K47Rjiqan2UFPyAXQMWbzYKsAvR76OoA6GQdOMOiKzTyBaz\r\nx6BJQDgDVm1RZ6nDsVB9Lmn5zldw4QkYg3o=\r\n=u5ZH\r\n-----END PGP SIGNATURE-----\r\n","size":1465,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.4.0-alpha-3936561.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.4.0-alpha-3936561.0_1649751558438_0.98856005790112"},"_hasShrinkwrap":false,"publish_time":1649751558612,"_cnpm_publish_time":1649751558612,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}