@graphql-inspector/core 3.1.4 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/README.md +5 -3
  2. package/{dist/ast → ast}/document.d.ts +0 -0
  3. package/{dist/coverage → coverage}/index.d.ts +0 -0
  4. package/{dist/coverage → coverage}/output/json.d.ts +0 -0
  5. package/{dist/diff → diff}/argument.d.ts +0 -0
  6. package/{dist/diff → diff}/changes/argument.d.ts +0 -0
  7. package/{dist/diff → diff}/changes/change.d.ts +0 -0
  8. package/{dist/diff → diff}/changes/directive.d.ts +0 -0
  9. package/{dist/diff → diff}/changes/enum.d.ts +0 -0
  10. package/{dist/diff → diff}/changes/field.d.ts +0 -0
  11. package/{dist/diff → diff}/changes/input.d.ts +0 -0
  12. package/{dist/diff → diff}/changes/object.d.ts +0 -0
  13. package/{dist/diff → diff}/changes/schema.d.ts +0 -0
  14. package/{dist/diff → diff}/changes/type.d.ts +0 -0
  15. package/{dist/diff → diff}/changes/union.d.ts +0 -0
  16. package/{dist/diff → diff}/directive.d.ts +0 -0
  17. package/{dist/diff → diff}/enum.d.ts +0 -0
  18. package/{dist/diff → diff}/field.d.ts +0 -0
  19. package/{dist/diff → diff}/index.d.ts +0 -0
  20. package/{dist/diff → diff}/input.d.ts +0 -0
  21. package/{dist/diff → diff}/interface.d.ts +0 -0
  22. package/{dist/diff → diff}/object.d.ts +0 -0
  23. package/{dist/diff → diff}/onComplete/types.d.ts +0 -0
  24. package/{dist/diff → diff}/rules/config.d.ts +0 -0
  25. package/{dist/diff → diff}/rules/consider-usage.d.ts +0 -0
  26. package/{dist/diff → diff}/rules/dangerous-breaking.d.ts +0 -0
  27. package/{dist/diff → diff}/rules/ignore-description-changes.d.ts +0 -0
  28. package/{dist/diff → diff}/rules/index.d.ts +0 -0
  29. package/{dist/diff → diff}/rules/safe-unreachable.d.ts +0 -0
  30. package/{dist/diff → diff}/rules/suppress-removal-of-deprecated-field.d.ts +0 -0
  31. package/{dist/diff → diff}/rules/types.d.ts +0 -0
  32. package/{dist/diff → diff}/schema.d.ts +0 -0
  33. package/{dist/diff → diff}/union.d.ts +0 -0
  34. package/index.d.ts +12 -0
  35. package/{dist/index.js → index.js} +325 -157
  36. package/{dist/index.mjs → index.mjs} +322 -159
  37. package/package.json +29 -35
  38. package/{dist/similar → similar}/index.d.ts +0 -0
  39. package/{dist/utils → utils}/apollo.d.ts +0 -0
  40. package/{dist/utils → utils}/compare.d.ts +0 -0
  41. package/{dist/utils → utils}/graphql.d.ts +0 -0
  42. package/utils/isDeprecated.d.ts +2 -0
  43. package/{dist/utils → utils}/path.d.ts +0 -0
  44. package/{dist/utils → utils}/string.d.ts +0 -0
  45. package/validate/alias-count.d.ts +10 -0
  46. package/validate/complexity.d.ts +16 -0
  47. package/validate/directive-count.d.ts +10 -0
  48. package/{dist/validate → validate}/index.d.ts +17 -2
  49. package/{dist/validate → validate}/query-depth.d.ts +2 -1
  50. package/validate/token-count.d.ts +12 -0
  51. package/dist/LICENSE +0 -21
  52. package/dist/README.md +0 -55
  53. package/dist/index.d.ts +0 -7
  54. package/dist/package.json +0 -46
  55. package/dist/utils/isDeprecated.d.ts +0 -2
  56. package/utils/testing.ts +0 -11
package/README.md CHANGED
@@ -3,8 +3,9 @@
3
3
  [![CircleCI](https://circleci.com/gh/kamilkisiela/graphql-inspector.svg?style=shield&circle-token=d1cd06aba321ee2b7bf8bd2041104643639463b0)](https://circleci.com/gh/kamilkisiela/graphql-inspector)
4
4
  [![npm version](https://badge.fury.io/js/@graphql-inspector/core.svg)](https://npmjs.com/package/@graphql-inspector/core)
5
5
 
6
- **GraphQL Inspector** ouputs a list of changes between two GraphQL schemas. Every change is precisely explained and marked as breaking, non-breaking or dangerous.
7
- It helps you validate documents and fragments against a schema and even find similar or duplicated types.
6
+ **GraphQL Inspector** ouputs a list of changes between two GraphQL schemas. Every change is precisely explained and
7
+ marked as breaking, non-breaking or dangerous. It helps you validate documents and fragments against a schema and even
8
+ find similar or duplicated types.
8
9
 
9
10
  ## Features
10
11
 
@@ -17,7 +18,8 @@ Major features:
17
18
  - **Schema coverage based on documents**
18
19
  - **Serves a GraphQL server with faked data and GraphQL Playground**
19
20
 
20
- GraphQL Inspector has a **CLI** and also a **programatic API**, so you can use it however you want to and even build tools on top of it.
21
+ GraphQL Inspector has a **CLI** and also a **programatic API**, so you can use it however you want to and even build
22
+ tools on top of it.
21
23
 
22
24
  ## Installation
23
25
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/index.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ export { diff, DiffRule, Rule, CompletionArgs, CompletionHandler, UsageHandler } from './diff';
2
+ export { validate, InvalidDocument } from './validate';
3
+ export { similar, SimilarMap } from './similar';
4
+ export * from './coverage';
5
+ export { Change, CriticalityLevel, Criticality, ChangeType } from './diff/changes/change';
6
+ export { getTypePrefix } from './utils/graphql';
7
+ export { Target, Rating, BestMatch } from './utils/string';
8
+ export { countAliases } from './validate/alias-count';
9
+ export { countDirectives } from './validate/directive-count';
10
+ export { countDepth } from './validate/query-depth';
11
+ export { calculateOperationComplexity, CalculateOperationComplexityConfig } from './validate/complexity';
12
+ export { calculateTokenCount } from './validate/token-count';