{"name":"@envelop/parser-cache","version":"4.1.1-alpha-698c9eb.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.1.1-alpha-698c9eb.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":"698c9eb9d9fc907cce8a397cf1b06b509950816c","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.1.1-alpha-698c9eb.0","_nodeVersion":"17.7.1","_npmVersion":"8.5.2","dist":{"integrity":"sha512-wEkKHwE9CRv6iqMWKG+7hPTptol1vs2WxvfdK49p1McLyzlleSvw8RGBhgCFo62qM0J2ZtrcEByBZq8rvHLkiA==","shasum":"edfff3e9237688b6c913cd8e1cea220af8c207a7","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.1.1-alpha-698c9eb.0.tgz","fileCount":5,"unpackedSize":4962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMbrzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpx8g/+Nac4s4/YBlcxdE60GPjYc8DNHjwwFgTuupVuKNDTOoPHldjx\r\nvJ+S8SvWYsyOvqAamLMH+qa2gthvEBxijYmAFfL8fdlISqsOQeeVbPrOM0hf\r\nj0XbSTwGzFYUJjN2JGKwxeZlsH36nj0+rZ2YYB2B+YQ0PFOqk5tYXB+NBAMD\r\n6+DBoQN748HOI3MXSDw1qeKIBYvxPC7WXEZhjjcFRq+OWYq6CDk6HNw1ax1n\r\nhbA75Nb/HVEFF84bdHdhdfUXO6Km1s7PMC68wP95I0eAEBJ0qaqyhw84nC4L\r\nyIuz5iANiSeN/MEbqCFX//N3aFD6ea+GMMh9NkRsKM8j5GajSkW/TsjfOR4/\r\n+Wakbf31KuOnmsJTChJM5XCdhJs6Xizi9z3rCt8NfqLbzUMkEMQa/E9MttWs\r\nohUC5MMTMPBBeAzH9mdzP+RECpoBy1iVECBJ2unrbnOfvtLEV8CtSlV+ZV4N\r\nByTMHmAYU3EYkT4dGGxs6TJgMlOPMyPl8Bbi1vF0rikTbnA/SPeHiA9ZXNBF\r\n36olSaL1uQpxvWb2Zw9QIzNO0i/D2ptKWIK7wcfDC3iln7Ae03Y98EhUmCTF\r\n2qOIQ66+qA0D5HSUQALotrla+AMW/q6aoH98RpXJ6MpAY8wTmCTMIYm8vsGF\r\nEp4lRHL1yV78winzXR9BVwdcjh1vJtdTkLE=\r\n=hFC6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuN9a58epiB8O4cirYw+n6dA/pWCHD11FlLK1MnTpbdgIgZ4KT5qKNSS8YH+0oikX8C9dfwUR0syTYBt+iNTB5SPk="}],"size":1585,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.1.1-alpha-698c9eb.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.1.1-alpha-698c9eb.0_1647426291190_0.791479359173469"},"_hasShrinkwrap":false,"publish_time":1647426291333,"_cnpm_publish_time":1647426291333,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}