{"name":"@envelop/parser-cache","version":"4.1.1-alpha-60d043b.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.1.1-alpha-60d043b.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":"60d043b6fd4c9e7fe748253c317df6c2c7ab2c77","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-60d043b.0","_nodeVersion":"17.8.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-ntQHHo9OHwfIflSAuDBoWuxghZAPO1e8QCZIRG9MsR9UF6HENlNQFDjT5G0eF9p+7cFuf7AcJxrk3v8qrlK4kQ==","shasum":"126fce42dd1c44363d443a249fa7cd648e3e6bbd","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.1.1-alpha-60d043b.0.tgz","fileCount":5,"unpackedSize":4962,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCr1J2hZH734wSByCUmTAp+5OHNWkCj+ltfc/wKiGcYFwIgU8eo5JDozeMzoZzXlmOZMvbmzhygXCgVIEUqTVsqvVw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRF5cACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr5zg/9HTsctsD9Ygjd3TkGmWsPJ7rYopNJ6xpEcNTvoIhi9wv1R2Ff\r\n7OAe+Ey9OLTJU1d/7+TWMBQhELMyUgN7ofaukoUGY2rZEMg63dlbr4zPtvld\r\nz+t7TN5jDkoRm4y8ONhZgPkZsC2eMjaPx6YAYLmXPagca+3h9L6bS0dwegT3\r\nYh8xf6XdRR0cHrHQKLS3DFhgGkU1jugNR25NL8cACAxiCRL8uthGo2xCb/+h\r\nCHA6iQ5P+qpbqEBsyWjN/SMC+uScCndwJpqyKOLpVr0sLjTsF6EjlVaPI7SK\r\nHmA/jCq+cI20INNmdqvq8kb3MqR4Xy84j5xb7UwYy3LwX3hdS0QA/h+EXeDE\r\ni7TcKsMNYRVNv8FBRDOneFjxuzMGsdS8q2XJnv35Z4k740FkAqBcpLnJWxah\r\nhoPT5eufyqbVfzsEvGz1JCXQocXZISK7Sbuq7ULzkmKZDbz2TgRrNAgip/ZM\r\neArnSNgsMpFFH643pyYI3n90805bBFAhNKQhypCFxbc+S0bOdqTWZ6MJs8lc\r\nTzvkdKi90zHy/3ytsYlvL1gp4rst0qlsoJHmOWm9nqS1U4o0VsE/Fte7/Aew\r\nYJ3/c1xnM7qKYfoe9QNeUNsVIhlTVMAa8bwvPycCA2doLwvtEAomllNniM/A\r\nYxXMJF1ITceFXhJW99wrJMG8deiUYpi3CW4=\r\n=y7Bh\r\n-----END PGP SIGNATURE-----\r\n","size":1584,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.1.1-alpha-60d043b.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-60d043b.0_1648647771910_0.84621676758316"},"_hasShrinkwrap":false,"publish_time":1648647772053,"_cnpm_publish_time":1648647772053,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}