{"name":"@envelop/parser-cache","version":"4.3.3-alpha-60f5d29.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.3.3-alpha-60f5d29.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/n1ru4l/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":"60f5d294c3350e87423f405dbcf5e6228ef84d05","description":"This plugins adds simple LRU caching to your `parse`, to improve performance by caching the parsed result.","bugs":{"url":"https://github.com/n1ru4l/envelop/issues"},"homepage":"https://github.com/n1ru4l/envelop#readme","_id":"@envelop/parser-cache@4.3.3-alpha-60f5d29.0","_nodeVersion":"17.9.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-xHVTkYGHD6iSQoWFZsRQZP1PxlH5qU3GDkvov5tmtcgngD0AvukzzeVw6P9zJtB2ECyqIOm0w+5QfT18oS+Azw==","shasum":"5557210f4392d7c5ba7c2c6bc54d749dffd66396","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.3.3-alpha-60f5d29.0.tgz","fileCount":5,"unpackedSize":4958,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3tJQ+3KTUbOspkCo54GRrcrnI99ZpOuNURgW4Vbt8QAIhAPH69CmWicz9y/7Q2dx/IQfNIb8luHqSslJ6RWyV3p/s"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijdiIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp02A//fx8zxpQ0od+/Nqvxf+Zq9LtMXAB2kp1N4L2ktDOO5Bhs2Rlf\r\nsaG6LdjZ7rMnRBJCG0fARaPpkGROeoK6iUEL/NUmvF2e78SzD1+jcpvGllkS\r\nLpH9F4hlqkJlZPol6eE3j22YkaUDhPwTELu9le1Q/5QGVvzw0xQW1lvo2Xca\r\ntyVKfEYjRq8r2DLEZEF5B8ncW8bxFhzqjbwJ0KzTGr337a+COc9fxsjEE4XU\r\n3n9QkbuHFlgm8oBkb7/mx0fQVfnhd2+8bqwiEGiGWt/Kkku0lnfYkbp7cnJk\r\ndCqukN8evypA4pbvRyHuRAHeid/A+88RfXJQRnJ21HMehOm+Ss/in2RgGL0/\r\nXeiUC+UsE7b3Lks1NeKmcEsI54dWHR39IT94lIL5sr8oX5o99c3u3R7OF7H1\r\nItxp0VK8wY0RnrmtD8o/9qrMc8hWmcNgN1bs4BJn/A5rfhBiXpG3pEqOvAnx\r\nnHZSil9baSAmlve3iI7SMevX9lK2sZNDVO25K3wy8Pltg7Vp77o2kpCW1Goj\r\nbzKmWqb6WF2zLGMhxw+jLk5avis8MmQ+MNuGu4lznS9x9NB6QjLeW7Rc8dM+\r\nHA8xqQ01KAWRA4EgSHlAY6+O9NDChF/0KGuizD1fyoxUEJZJDp31/0Ii/Q/d\r\nMEBg+is5MkH6EQEHojr+zJpUsezd3T2DX+E=\r\n=+PbN\r\n-----END PGP SIGNATURE-----\r\n","size":1588,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.3.3-alpha-60f5d29.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.3-alpha-60f5d29.0_1653463176001_0.34181652788778805"},"_hasShrinkwrap":false,"publish_time":1653463176156,"_cnpm_publish_time":1653463176156,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}