{"name":"@graphql-inspector/core","version":"1.18.0","keywords":["graphql","graphql-inspector","tools"],"author":{"url":"https://github.com/kamilkisiela","name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com"},"license":"MIT","_id":"@graphql-inspector/core@1.18.0","maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"homepage":"https://github.com/kamilkisiela/graphql-inspector#readme","bugs":{"url":"https://github.com/kamilkisiela/graphql-inspector/issues"},"dist":{"shasum":"5e30e4f9ab9081393d811b2443f3447868bfb8da","tarball":"http://registry-npm.ywwl.com/@graphql-inspector/core/download/@graphql-inspector/core-1.18.0.tgz","fileCount":89,"integrity":"sha512-pGxD+RPqOEA7I8x4rmAlqS1dmt9YqzzDR1vAM0UEHqx6df1ffHiP2Ozbfhx8vXGgsXsS4OvI/64l+afaL3WODQ==","signatures":[{"sig":"MEQCIANd6f+DeeTYiGL1qAteX7GCc6pBBVLQ75+rR6dttPI+AiB7WbewmNhlA+60f1j+vCMTsd6yyIK3lkiE48b/CLCVpg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":877054,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcuI/5CRA9TVsSAnZWagAAz1MP/0uTBQxqmkdy8eDWHu9v\ngCE7ETCZsEdPc+VMPits4KMI2fDrqyI/jpSRXlpyWR+IjENn73jZ3zkQ6cHJ\nEy+YGW9HhiEACOA/rcYfQj5SweBEn/FVFv7xOeV1xrBWN4Gh8k+rozLQ70aT\n1LmQWB1FaYSq6d8EATSTaMg1nuQ2pqNIfJRX2u2skbCaSD+gyPxZZ7wF4qXY\nma36TpnSufyyqSRR4ozP6DvVs6kdTMdX7+lf3BIpi9EpXhDg+22Kc7+E+gx+\nJeMUY/HlEp1t5pScJ9VaYkngHtxQY6pLK4pT149HJ4iRLZxCoAHISzoLiFmH\nPiQ4w928gpfIYyHT5OrNQVdNOnTBioUxKN/awO7CQNGKoJsdAmh5thglHHx2\nQML4hlIvUtdTBwnpkRed91QZ2vQqNIo4BUxQPLRidGvkqzwnRTYpo6Qnw/NJ\n8chAk4B983wuzK9WDpoM6xJb+6fDNgvxyV16Ljj/+2UKowmLxT/r6wtSriGx\nALUr8c7jIMOmqp8BXl5jfkemanxOrsfFO2zwbQLiNNZfNqbI53AbtWLQbGaH\nfadZg6t+aImFdJUGD1oA6Z+iIUWf2mBxTsGEZaiyCFs9dGtEn9dnTBsxT76X\nNgwohwI+vkX3/371P5pKpt6HZ8zx71aOAb1vEtnd84+kYnIUlxtz2Cr+zqqR\nNfat\r\n=rDZd\r\n-----END PGP SIGNATURE-----\r\n","size":266242,"noattachment":false,"key":"/@graphql-inspector/core/-/@graphql-inspector/core-1.18.0.tgz"},"main":"dist/index.js","scripts":{"test":"jest","build":"tsc","clean":"rm -rf dist/","prebuild":"yarn clean","prepublishOnly":"yarn build"},"_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"repository":{"url":"git+https://github.com/kamilkisiela/graphql-inspector.git","type":"git"},"_npmVersion":"6.4.1","description":"Tooling for GraphQL. Compare GraphQL Schemas, check documents, find breaking changes, find similar types.","directories":{},"sideEffects":false,"_nodeVersion":"10.13.0","dependencies":{"dependency-graph":"0.8.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"24.7.1","ts-jest":"24.0.2","typescript":"3.4.3","@types/jest":"24.0.11","graphql-tag":"2.10.1","@types/graphql":"14.2.0"},"peerDependencies":{"graphql":"^0.13.0 || ^14.0.0"},"_npmOperationalInternal":{"tmp":"tmp/core_1.18.0_1555599353242_0.26978226623644486","host":"s3://npm-registry-packages"},"readme":"# GraphQL Inspector\n\n[![CircleCI](https://circleci.com/gh/kamilkisiela/graphql-inspector.svg?style=shield&circle-token=d1cd06aba321ee2b7bf8bd2041104643639463b0)](https://circleci.com/gh/kamilkisiela/graphql-inspector)\n[![npm version](https://badge.fury.io/js/@graphql-inspector/core.svg)](https://npmjs.com/package/@graphql-inspector/core)\n\n**GraphQL Inspector** outputs a list of changes between two GraphQL schemas. Every change is\nprecisely explained and marked as breaking, non-breaking or dangerous. It helps you validate\ndocuments and fragments against a schema and even find similar or duplicated types.\n\n## Features\n\nMajor features:\n\n- **Compares schemas**\n- **Finds breaking or dangerous changes**\n- **Validates documents against a schema**\n- **Finds similar / duplicated types**\n- **Schema coverage based on documents**\n- **Serves a GraphQL server with faked data and GraphQL Playground**\n\nGraphQL Inspector has a **CLI** and also a **programmatic API**, so you can use it however you want\nto and even build tools on top of it.\n\n## Installation\n\n```bash\npnpm add @graphql-inspector/core\n```\n\n## Examples\n\n```typescript\nimport {\n  diff,\n  validate,\n  similar,\n  coverage,\n  Change,\n  InvalidDocument,\n  SimilarMap,\n  SchemaCoverage\n} from '@graphql-inspector/core'\n\n// diff\nconst changes: Change[] = diff(schemaA, schemaB)\n// validate\nconst invalid: InvalidDocument[] = validate(documentsGlob, schema)\n// similar\nconst similar: SimilarMap = similar(schema, typename, threshold)\n// coverage\nconst schemaCoverage: SchemaCoverage = coverage(schema, documents)\n// ...\n```\n\n## License\n\n[MIT](https://github.com/kamilkisiela/graphql-inspector/blob/master/LICENSE) © Kamil Kisiela\n","publish_time":1555599353477,"_cnpm_publish_time":1555599353477,"dist-tags":{"alpha":"8.1.0-alpha-20261020140028-567a62ef284e608d7b71bb1141fcd33f6f804e55","canary":"0.0.0-canary.7db8980","experimental":"0.0.0-experimental.5431780","latest":"8.0.1","next":"2.0.0-rc.2"}}