{"name":"@envelop/parser-cache","version":"4.1.1-alpha-e859732.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.1.1-alpha-e859732.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":"e8597329597b87de7d12b27631be5c316b345a96","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-e859732.0","_nodeVersion":"17.7.1","_npmVersion":"8.5.2","dist":{"integrity":"sha512-fWz0Z+U37qoIOHQS5XemIX7vD18gbbE8iB/F8wOyen+MKOpv+jKW4dleSde+6TdCGPJdxYlpoEo2UQTbUxjJyw==","shasum":"7c66aa7c3d13760e65de31e97021d2ef2716c613","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.1.1-alpha-e859732.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\nwsFzBAEBCAAGBQJiMbp7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmquSg//cm30333ljKZArEj529qpOngXgY89QoNjVTFJ1Dsza7foWDxc\r\nzXjNjTdevwCVQBN5s2M0k75Aat4dH70fp3r/LDdPFPIR30Qo8DcToMO5jzET\r\nwjMchdxUlTrB7w58c7OWC6wEczK40VRdKXBe3Bw+1vibKEb7Zo+Yk5GncKok\r\n16jcVROvCr5JsHcTLIbeoKEdM6krTGVSdoOeErOsADbSwpq/ZqvCy22npv8Z\r\nhLv5UKvGDr43FOPIcptqtcZOBEPM2y9QMDRuyC9kWSt1yzlPBwLZ14uA0/pd\r\nDfONPflQQyop4WKIDBIB30Yq1aMyHb9kqs0qiJ2miYtTZQ2szaM7d9HmV7WN\r\n4DVwvm8ftPyoLvC2HJ4TcLRqVj+uz6MsObLP4rezW+zBa1e5E8DDsQgLKdBB\r\n7nMHcPid3P6RxvespgtiVeL3hBYhT4cUAu90Ie6guWInBhvRkPDiX9rwZhNX\r\nfHXmN790a+xqQFzDviFkW5TigNgatroMO7myTLhLbi1cU0B8xYUPxCeMblAu\r\nDUIaXyP9WKMp5rb6lJdPRyeMLdk92AKt4b4AzHRGNOQVsjtsZxToSdzK/lh8\r\n7fP+DEblxCAfGCOJE9O8CqSqsvoK171GS7+GefKM+loj7UPn2ApfYlJ5vi3J\r\nCY/OavEfsKN4/cXrIPZNzH4cf90XLMXuHC0=\r\n=hmyw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVR243LNvzvYsCp5Ce2f7L7f3RAP7LiBeyEmNy0mH+UQIhAMmrpkG/a65ySUzV13eTY91OTTwBHkrRjDM4F1fuQ29J"}],"size":1585,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.1.1-alpha-e859732.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-e859732.0_1647426171176_0.00037038077651851964"},"_hasShrinkwrap":false,"publish_time":1647426171315,"_cnpm_publish_time":1647426171315,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}