{"name":"@envelop/disable-introspection","version":"3.5.0-alpha-20220816064941-f2fdfb76","sideEffects":false,"peerDependencies":{"@envelop/core":"2.5.0-alpha-20220816064941-f2fdfb76","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":"f2fdfb76dea58858aa18c39e569819e266400f8f","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-20220816064941-f2fdfb76","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-fHeSk/LBe+eE0OPhH+9Cw8oTa5K9ne9juEujsDY7s8fd9vDGDfspF6n2IxsfjUJsjTl7JLQrls4SI2uRFS9qxw==","shasum":"7ec27597fc944ea45192e456e6b0f75266510c11","tarball":"http://registry-npm.ywwl.com/@envelop/disable-introspection/download/@envelop/disable-introspection-3.5.0-alpha-20220816064941-f2fdfb76.tgz","fileCount":7,"unpackedSize":4526,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPbGUsXinKzDbbKNvu1OhE/suw0PcNMYW8dGRXvRJONAIgO2GMiMPjiupn278um98ZeYw1kOvD2ZOnvsFPFMwjRmM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+z4jACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmplig//W5LQBO7ImNwIy7OY0+iERxnryucFbkXiwImpKqWUKquLD2xn\r\nsH/zwKOfrI99JKR0rs74uMt6Fl4hexELdhG/ix32tebxoFlPRFa79L8ASj5H\r\n7MWR7eSE+4y+v3+wRvWkMFNwnqWHiVOb33zBXQ19Y1uJdTbQNmgzrwl2XZ9/\r\nfMq7ilJNWAt/7+gjyWbgth9BEWzqOu9HuKkNuvtSFQVK4MD10/Wa32o5F+9L\r\nbHmAbBVq839Kdtxy1uduklYyexKPp3i+iFVkWMg+m2lTsE9ISIITfsEWYBdi\r\nJMhIcLmU3vR5UolcI5CCfmbXPiVcw9ZAfvwN//aQ3DTNlxSJeyTtOofxTbJO\r\nOsvg/5cB8d01p2tVCBynIg3JBJ37N8kdlxJC+6tpGrHG2xcmWBpGGObJAzq2\r\nGjKnG+6FSQdNGUoYGDe0KTYeYpqFU6/A5zTQnfpjGZ2FBb4YdiMRiVZFG3U0\r\n5XHUCLCRNTDROSxyimJ4GovIcm3sk4RF7R/q3kCH5Y2CUpv6LuffvgpjOQxH\r\n6426K8h++fGmXZvizwe/1B4nBNs28sh2F+j128X71VwldklFJ5wbvHITkzaF\r\n/ewNUjQC4N39yUc8/+d3FKXmexJOU0dbwZ9oTFbG5cErZTWdbJV8Bg6QMtXv\r\nIb72pvFwdzvgk+FHIz/bexCXsZ7qdbITCTg=\r\n=11CK\r\n-----END PGP SIGNATURE-----\r\n","size":1532,"noattachment":false,"key":"/@envelop/disable-introspection/-/@envelop/disable-introspection-3.5.0-alpha-20220816064941-f2fdfb76.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-20220816064941-f2fdfb76_1660632611177_0.49737414640822086"},"_hasShrinkwrap":false,"publish_time":1660632611356,"_cnpm_publish_time":1660632611356,"dist-tags":{"alpha":"10.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"10.0.0","rc":"10.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}