{"name":"@envelop/disable-introspection","version":"3.5.0-alpha-20220815071406-bdbde6b6","sideEffects":false,"peerDependencies":{"@envelop/core":"2.5.0-alpha-20220815071406-bdbde6b6","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":"bdbde6b6eba4c9cc00198de263f84aa013b3a95d","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.0-alpha-20220815071406-bdbde6b6","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-+wsq/y4bGt9dIwBUo7gI0ij/V4lLKho8XCNCQVJ5iDHH4/xOBGOVhl0OHMw9RzTkNM2oDpn5FLAb4UkCyPj4UA==","shasum":"ca084a91c97e103d49bf9412788845ee5cf68340","tarball":"http://registry-npm.ywwl.com/@envelop/disable-introspection/download/@envelop/disable-introspection-3.5.0-alpha-20220815071406-bdbde6b6.tgz","fileCount":7,"unpackedSize":4526,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICosrlNNU8dmWqpJT5hkyV5yfZyemRxIfmf+IRFpEcp9AiA6RRjmvQnmQkk8S762ZORYo1j3KlTJU4OVgXWTY8jPHg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+fJdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrskA/9EBttfDGl+N4e1e84F9kj/E+8A1YHdOxYUkhhynxRX7pcCe7O\r\nY8xY0MVUskQ/3GGzc7yvi6dac23iv4fmskZUeU8BloSMo/P6QFTb1VTioxVY\r\nYeFjdKmSM2l4iTzVPOPnt+WlNrSo3PjqA2naGh2Nw2V8Pxu1cHsBGqJDU/Ci\r\nGrl96cv/iy8iwfFYVRwhCMNpqDldHs20Kqt+3p3/bls8S3xeuCbZtX/RIvse\r\nrsfjDM9a6zw74IXULU6gE6yEIs8KqeqOnmIoxkaVhNjH7EKg5nnTOcY9hc02\r\n6IPYJQsUCJp/T5m28M79tjMfOtvl5/I85+hkWnrXaaK8Tw3SJhwWZ4nCT7Zw\r\nDxFkn1Lgz8mWwlTVdusVcjfurRIjstKJFmjYaIDGZUEDyxtdRatEtih3M/4w\r\nBk2OzMSGQmQvLtVs7MKpc/AL6luBVA3GVeZT7OztcShRyslcVVLzoMLEWuwN\r\n6r0wSECwqDqR45m65AEgJtFiRJwnZbhfSd5+WMgTyeID8fkK0w8Vb8OjL3PV\r\nQ3c2smA0hOlIjotHAeWffTkV80d3zUQcGo4szY2bqd618qpuHR3oGRb9zBTg\r\nFTE2pbZMdym9b6QY4N+4OqvyK9YzH6wXesObaOc1zQxjyLrur5xS2KTkXoNU\r\nUmrFPPVgJJMr4itBTPRTZuJRYU7Fpxp34k4=\r\n=7Utl\r\n-----END PGP SIGNATURE-----\r\n","size":1531,"noattachment":false,"key":"/@envelop/disable-introspection/-/@envelop/disable-introspection-3.5.0-alpha-20220815071406-bdbde6b6.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.0-alpha-20220815071406-bdbde6b6_1660547676853_0.11133725828885588"},"_hasShrinkwrap":false,"publish_time":1660547677108,"_cnpm_publish_time":1660547677108,"dist-tags":{"alpha":"10.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"10.0.0","rc":"10.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}