{"name":"@envelop/parser-cache","version":"2.2.2-alpha-dda8d60.0","sideEffects":false,"peerDependencies":{"@envelop/core":"1.6.6-alpha-dda8d60.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":"dda8d6023c595cadf04a14b25663868ee6538c0c","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@2.2.2-alpha-dda8d60.0","_nodeVersion":"17.3.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-PbfjDCvK1gmAzmvKi4H/GSEtzG/z0E03tTZ0Sb47Na+HOdLjjzrSh15nyNFZDAeQdH1Fq/E3QlIs0xv6p3c3FA==","shasum":"ed93b0d70e84b72d6e282beaa5672830bb613243","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-2.2.2-alpha-dda8d60.0.tgz","fileCount":5,"unpackedSize":4962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhy6nTCRA9TVsSAnZWagAApdQQAJCqEaLPNJakQrfJ4ohF\nTpz6QeGTOYwYF5Z5fbhvxPYCT4EtamZMkpLL0v3XHlYqMxTGYoN+geIAc1gJ\n7X6zLevWloe3rf1b8tZh0KJkB0NYbJbj7WhOQUCre7CQnfJIB4K3OSiO9PpU\nZsHR9GHglWTqCwH8YtcAQxddJ3eG7gBu808pEaNQ2cY+ZpVJy/B48tabB8ek\n/Sg6bORfkuSJ0dVXF5901tR1CW+5KpenbJHFleZMO2ggKfz587KcHS5LHYmK\ncGuJkqvYqzGCCFD9uoh7rZnPByi7zJeJa+6dRbuOBQDoIHOnvoKF51TXz9Cw\nEJU5CtZXlIUmGLzEvE0sJ3nONVpg6Q/xvAJiSI9jMX1l/1tpHx9xB1ryq3fr\n5Uvi9Lu0Ksg3Q/zahKACAUar6y1Opxd5rPay/q51CHH8E5Ld0ycdORUstLXm\nAdgw6Mpj+VZQrBhSfrwdi7m/ql74r1h0FCWXPmFPmQABRLW+Kp2+Ak/lObUq\nPo5Ai05hbMAdGLEA42GRyGSRdD6QpavsxQy18kqQmueHXlEDOgvlwwdJe6dl\nIa9hJjR46mZcu2pymaxfj2CKcA+tAtEOnDtMcgC+SPiMyH5DCixmwLusTeiU\nQogy18JcQHAcQ1dmdUqXzjZXgSXj7OtSP5ajseUBbc5V2wGZXZJepQYR/24K\nVHjg\r\n=2MR+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDq0yuRAI86KcmAC8DoXE/TOvznR2OAK7zBlRZj9BiSdAIhANIcp50JMaHseSf+F7thJ3kktwDgq1v8/Q3wEMWfcI2r"}],"size":1586,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-2.2.2-alpha-dda8d60.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_2.2.2-alpha-dda8d60.0_1640737235394_0.7649199036004"},"_hasShrinkwrap":false,"publish_time":1640737235598,"_cnpm_publish_time":1640737235598,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}