{"name":"@envelop/parser-cache","version":"5.0.0-alpha-5b6bfa8.0","sideEffects":false,"peerDependencies":{"@envelop/core":"3.0.0-alpha-5b6bfa8.0","@graphql-tools/graphql":"0.1.0-alpha-33fb2950.0"},"dependencies":{"lru-cache":"^6.0.0"},"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":"cjs/index.js","module":"esm/index.js","typings":"typings/index.d.ts","typescript":{"definition":"typings/index.d.ts"},"type":"module","exports":{".":{"require":{"types":"./typings/index.d.ts","default":"./cjs/index.js"},"import":{"types":"./typings/index.d.ts","default":"./esm/index.js"},"default":{"types":"./typings/index.d.ts","default":"./esm/index.js"}},"./*":{"require":{"types":"./typings/*.d.ts","default":"./cjs/*.js"},"import":{"types":"./typings/*.d.ts","default":"./esm/*.js"},"default":{"types":"./typings/*.d.ts","default":"./esm/*.js"}},"./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":"5b6bfa8ae5dfcb8c0b1ad3c96359ec1b20da35a3","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@5.0.0-alpha-5b6bfa8.0","_nodeVersion":"17.9.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-jjNgnU39DLF52XXCHNAG1W+B9N08EVvYa9quWdNbGXOIvMxQBYk5YSGU/l6awGRC8EB+DfMh6LeAJ83Z/xG+MQ==","shasum":"07823d1d811a6a1af6c81ef7b7e02a8674a5093c","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-5.0.0-alpha-5b6bfa8.0.tgz","fileCount":6,"unpackedSize":5652,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCU9jUldTmnQCRkRdQRS1SPoig1X0Mi2Dhc1DS/IZ6CewIgNXysF6PFWyG2sKooLlzgGBczmHVxKBDg5jRqg7ZCy0M="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi5CvSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZrg//Rw7J9vzsnjdvEC/L/eOaKWoS5+SQ9l2CZP/c75+iO6WKj3CU\r\n23HvY7ddfnTPw0QHvdByDJ019nHyNW2POb2BnF1AhGDHwldft+0kADXXf+hr\r\nu1Fg2kSfkj5fMv/Cf49UxMrTfW8M4Azs/ljkkE/UnoVaIdI2jVVRsgN05Y8R\r\n8dQxL7xdXXpsHCvsHTh0y4dfqcmPmh8k/gy9P7Q1pNdvKdVs0UoJ8LkmxBdp\r\nfrOcJEwfSOi3Fs4TAVjYogpD+03rImrHTjeWb0tmrHslum28QaoBNP1emfjD\r\nsRh96IDkCkWujUOzOTRkPnPh+hCERLr6Hz0zZLCngHIfy56YHT1uSnOFPwKz\r\n2DQmIQmn1Gqcjx4j4EDF2PpF+fnYRKTyrMab24chiHdc+gqlts/DorpLGU4y\r\nriN2LMXN+iife1ki4AV+mEFPa6r6aHgJwqEzvjkP53su+q2TwmK4xu3ZWdt6\r\nwjZF7QcXbvpdkpu5FKc8XAAWqlLp4Gw2fkyOUWS5aDGOO6DS0KREpHM9Kw6T\r\n4gO80yGyjeE/ga9aT9PgCWf5xBccqc+q4PoqNBQN2KeoEIoEZjuRKAZl6Qna\r\naMUuQpSBkeymRmQKu+mBnyilKPGn7ZBPEirRLDJnEBgGnWDNJjlYYtsDT2/7\r\nWIf8T6c5Hq1ASZaCAr3rJShssqmEsCnuTeQ=\r\n=g4yA\r\n-----END PGP SIGNATURE-----\r\n","size":1669,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-5.0.0-alpha-5b6bfa8.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_5.0.0-alpha-5b6bfa8.0_1659120593981_0.8589636101756426"},"_hasShrinkwrap":false,"publish_time":1659120594168,"_cnpm_publish_time":1659120594168,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}