{"name":"@envelop/disable-introspection","version":"3.5.1-alpha-20220822175038-0013f9e8","sideEffects":false,"peerDependencies":{"@envelop/core":"2.5.1-alpha-20220822175038-0013f9e8","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":"0013f9e8bff2417b5e49712d76adcf24b1e65f7d","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-20220822175038-0013f9e8","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-yH9Fkt25chIBXqlmST83XJZ07qWJzmvR9e7239qRc5XDDfzFUksXOOWckkde9KdQUUbgs9JajGoBZCiAjqJTfw==","shasum":"31c22add31cce441b0edbfa0bd601826fbe8d598","tarball":"http://registry-npm.ywwl.com/@envelop/disable-introspection/download/@envelop/disable-introspection-3.5.1-alpha-20220822175038-0013f9e8.tgz","fileCount":7,"unpackedSize":4526,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClQJF8wkbA9WD5qkHMx0UGHUhOuj4SI7kbkk3hjHP9MwIhAMSVp/Tp7tRfBI9JexpYAKrVvRCF3s5meX58hHVwdxSP"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjA8INACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNng//V0cWB4u0tKaXmAP4/wjgJB0Vq/MNkXOkLg/iiQ30k+iLJ3di\r\nu4vbmsAuPhUPqMchYAUsk1vX1rI5D2py2VHZUp0o5ySHuOaFWj9orXMYjPEb\r\n3M40FDWUt9G/cLz4F4dzCG6tx5SJuufzwgxQYa80sLWRg5lqMTNYZakHDigQ\r\nZ3xfRu/dKhNCb9lWWaClimZd1HPYGB9eecd1yz/5sMRJlpVnlRa7CynAlX9U\r\nf/S3QdkMN8NONN30BkBC4r0DPiEolek/Pj4f9+P8czbTZ+nW7asy0OSv38mT\r\nQWYyPTvDJMMrndZEzLCiqThq8yVAHf0JhaSYWui+PYPGBCOrX1pgDxuYX8t+\r\nWOJQ8PCAQ9zbFCgtJ95bbc9NidquLLGIr1gIrKZeTgsdvBl4c9xrBTAk5iqg\r\nAPtExcQKDvzdwCPwZt9E7aW0CIgeGTkcnaKMnNkKJazoeNSY+yFm8pJGbZMs\r\nBH6QNPH70LJKrpy8JSt0Vtv5yZfWV2y3RtCfpVijrtJ8IBiMC9Qchi3gpmPE\r\n4ASWXSsbUVB6y+w3aC6E9ERb2I5PuaGzG7jRFCRigQEF5dHG/34kPiNJGf46\r\n+Wdr+mDkeHBFvqdEkyJ4wGexIg6U2rJ5PN2CaReiOYN3afAtdjYiEKIwpdej\r\nOAcT6ZlUmk8PYS3Gbnmz+Q1s+3636KdVduM=\r\n=7VeY\r\n-----END PGP SIGNATURE-----\r\n","size":1533,"noattachment":false,"key":"/@envelop/disable-introspection/-/@envelop/disable-introspection-3.5.1-alpha-20220822175038-0013f9e8.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-20220822175038-0013f9e8_1661190669365_0.059834946309571535"},"_hasShrinkwrap":false,"publish_time":1661190669545,"_cnpm_publish_time":1661190669545,"dist-tags":{"alpha":"10.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"10.0.0","rc":"10.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}