{"name":"@envelop/disable-introspection","version":"3.5.1-alpha-20220824152235-afd061e6","sideEffects":false,"peerDependencies":{"@envelop/core":"2.5.1-alpha-20220824152235-afd061e6","graphql":"^14.0.0 || ^15.0.0 || ^16.0.0"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/n1ru4l/envelop.git","directory":"packages/plugins/disable-introspection"},"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.cts","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.cts","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/disable-introspection`\n\nThis plugin injects the `NoSchemaIntrospectionCustomRule` validation rule exported from the `graphql` module to the validation phase for disabling introspection.\n\n## Getting Started\n\n```\nyarn add @envelop/disable-introspection\n```\n\n## Usage Example\n\n```ts\nimport { envelop } from '@envelop/core'\nimport { useDisableIntrospection } from '@envelop/disable-introspection'\n\nconst getEnveloped = envelop({\n  plugins: [useDisableIntrospection()]\n})\n```\n\n## Optional configuration\n\nThe plugin optionally accepts a configuration object:\n\n```\n{\n  disableIf?: ({contest, params}) => boolean\n}\n```\n\n- `disableIf`: A function that allow you to evaluate the need to disable introspection, based on the incoming operation. If introspection needs to be disabled/enabled based on the dynamic parameter (GraphQL operation, or, incoming request/headers), use this function to determine when introspection needs to be disabled. Return true for disabling the introspection for the incoming operation, or false to allow introspection.\n","readmeFilename":"README.md","gitHead":"afd061e65f308371b3a31174c1ccc2a408ddffea","description":"This plugin injects the `NoSchemaIntrospectionCustomRule` validation rule exported from the `graphql` module to the validation phase for disabling introspection.","bugs":{"url":"https://github.com/n1ru4l/envelop/issues"},"homepage":"https://github.com/n1ru4l/envelop#readme","_id":"@envelop/disable-introspection@3.5.1-alpha-20220824152235-afd061e6","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-KPWsGYG8R49PSN7k0aTpJwoCHFs4YB+dqHnLzj/SDqajXkB5lpzlb9z7ofUUVoQyIlHjEQZV93bSSwWolhp0Ww==","shasum":"1bae2803e8b22157eeb6567118256375cf6fb0f5","tarball":"http://registry-npm.ywwl.com/@envelop/disable-introspection/download/@envelop/disable-introspection-3.5.1-alpha-20220824152235-afd061e6.tgz","fileCount":7,"unpackedSize":4526,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDB05zod6G/aLhWiGQI1uoR/KFYwcm/X72XVAMPK2aojAIgS8AI1++VaI2FpA59bMYHZinyaNwMJWzoPO81ebC9fG4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBkJkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrjqA/+IMfe9Wk68Pw9FxZji1U4DjVEWpwVyCuMrpVWdLZgV882orbo\r\nX5TeBN/wLCbnEKV1bdiGSyJz7B/A4ieji3hChTvttAWbUNanYwfmlTWKT5l3\r\nFwSrO51lJrK4Ga9LrJN83Ro9rFmH0+1VsGT3TgguSLqujMIbNX0waDpsR31v\r\nM0eJodH/wUt56ygdUPIo9NL0243WCwbTP6e48gAC/L3m7+gJCM05ZvC3SiYo\r\ntM8Hghv7oM0RjsBgKPfbuGg4qIlI2uVT3cqKvL+TiEHME0gzLSM/qFHRlyBZ\r\nsfDuu+Lld00/QBWqomCswGbzLConFu9/+Zv/jz4eBlIeoQb5K/wvBwnaZxDY\r\ng471WZ6sYNpXPQM84Vg2wAF2fhmWfMRvIrXgoHq8EWg9PQrfDaRki3uRpo7n\r\njknjdW1f3ERkwhv5U630NBx4FHUF39/8DtpsV6Xetp/kotpQW5eLzYGLbkAE\r\n2+gYhvEUOzYiVy/hZmezEutItfk7sa59j50K0GHZ/g7oqI2sBC82TTPZkkqA\r\nRDWIuQqghH09R0WEPotA/jw4Us2JOArmAbDpaMKIxakkU7gngwL/D/4czqOJ\r\njpV9KQt92+N573fMoNg4WToJ1r3i/9DbXgZx6ZIGHhnFBOE25Fhb8ZgB8Dsm\r\nTXIxTw5vi4VLtl2BnhQ+TLZ86emNqKs7N8I=\r\n=BwHD\r\n-----END PGP SIGNATURE-----\r\n","size":1531,"noattachment":false,"key":"/@envelop/disable-introspection/-/@envelop/disable-introspection-3.5.1-alpha-20220824152235-afd061e6.tgz"},"_npmUser":{"name":"dotansimha","email":"dotansimha@gmail.com"},"directories":{},"maintainers":[{"name":"dotansimha","email":"dotansimha@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/disable-introspection_3.5.1-alpha-20220824152235-afd061e6_1661354595813_0.07431901857318368"},"_hasShrinkwrap":false,"publish_time":1661354595995,"_cnpm_publish_time":1661354595995,"dist-tags":{"alpha":"10.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"10.0.0","rc":"10.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}