{"name":"@graphql-inspector/core","version":"4.0.1-alpha-20230321095621-c891b9d1","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@4.0.1-alpha-20230321095621-c891b9d1","maintainers":[{"name":"n1ru4l","email":"laurinquast@googlemail.com"},{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},{"name":"ardatan","email":"ardatanrikulu@gmail.com"}],"homepage":"https://github.com/kamilkisiela/graphql-inspector#readme","bugs":{"url":"https://github.com/kamilkisiela/graphql-inspector/issues"},"dist":{"shasum":"9bd27b7695f8fc256d8795740f43a38f67393bb5","tarball":"http://registry-npm.ywwl.com/@graphql-inspector/core/download/@graphql-inspector/core-4.0.1-alpha-20230321095621-c891b9d1.tgz","fileCount":51,"integrity":"sha512-aXWAc46u/I0RUlFIlXFIqns8/AAKb0/ZZU+a5PKNM/X/MPKUm6K8XRVv4k8XRToMfIG25ARg6KalxPolb5fU+g==","signatures":[{"sig":"MEUCICC/MZ9piNdn4ed4/jmTYwjVV3XVke8RdZfdIjENlYr5AiEA+aiHdFrTqGNu/cHpnM65/DeDhB0eL6wEszn1lX8VLHg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":194037,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGX9sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp4kw//f6Fu0cfiXjjzgG1/PnYowFcGT9l7J2qgctjHn2uO8HZEgaq5\r\nUTsA1jUkbe58GfNY5CvYq6e5jUTxjsk0ceo5X/uu5RE+ne2/+O9yjD06ms2L\r\n9Pp2jy29OhbnI9eci0c3ZdDkAj9won2BZ3gZqyIOTyg/Jp1+hE94qlYyvaFV\r\nOuXdQhg4gvy64brEvvePV6pFbdt+1iIVGigC9hxsfrcdKlOqsDcjshfBUjF5\r\n2OeLPPZW6GF8niImPv5Txf20Hr0SxP42MO7qqfb/9hgmn1rGKVwJ/MqRU84p\r\n3spp4z3e0MOe6NzuNc2lshaI5+61A0PpweLIKfXwCvr44fzdHHiyWLaxypnP\r\nedHUzR5nzWsDUMbXDAg3mCdZfuEBJJKlMwPX0B8wpDXEJS8+gtRYBFbqZPcc\r\nNlkQABKZ15FC0atoj8nkGm8B7L2nHT4j9MgObeOdbGkBwrQawqGARb78XyaA\r\ntV9wTuEhlcl4jQShTzdXRdc9tr7QOYRumqVw5oztTLQ3+9dh+kMWrRo8gEut\r\n+sCat0+fXjUxwYthyKKeE/SSfGiuk+8x3s5oS+6M+9RfYJZsXIXKYl4coPEl\r\nur3CkNxPMvmN/74V6HzWx9PQ2/0qkxnPmJa92X/cYUjB4PwbBopbTRKg6ri0\r\nnEMXQjI4emCik972kBj0/SAGwBCRZrB1PJM=\r\n=/EWT\r\n-----END PGP SIGNATURE-----\r\n","size":34245,"noattachment":false,"key":"/@graphql-inspector/core/-/@graphql-inspector/core-4.0.1-alpha-20230321095621-c891b9d1.tgz"},"main":"index.js","_from":"file:graphql-inspector-core-4.0.1-alpha-20230321095621-c891b9d1.tgz","module":"index.mjs","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** ouputs 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 **programatic 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","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./*":{"import":"./*.mjs","require":"./*.js"},"./package.json":"./package.json"},"typings":"index.d.ts","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"_resolved":"/tmp/dbe06dd6f60d47e1d212c011da85131a/graphql-inspector-core-4.0.1-alpha-20230321095621-c891b9d1.tgz","_integrity":"sha512-aXWAc46u/I0RUlFIlXFIqns8/AAKb0/ZZU+a5PKNM/X/MPKUm6K8XRVv4k8XRToMfIG25ARg6KalxPolb5fU+g==","repository":{"url":"git+https://github.com/kamilkisiela/graphql-inspector.git","type":"git","directory":"packages/core"},"typescript":{"definition":"index.d.ts"},"_npmVersion":"8.19.3","description":"Tooling for GraphQL. Compare GraphQL Schemas, check documents, find breaking changes, find similar types.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.1","dependencies":{"tslib":"^2.0.0","object-inspect":"1.12.3","dependency-graph":"0.11.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"graphql":"^14.0.0 || ^15.0.0 || ^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/core_4.0.1-alpha-20230321095621-c891b9d1_1679392620429_0.1292327548842005","host":"s3://npm-registry-packages"},"publish_time":1679392620604,"_cnpm_publish_time":1679392620604,"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"}}