@graphql-inspector/audit-command 0.0.0-canary.fec2df4 → 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.
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -99,7 +99,7 @@ function handler(args) {
|
|
|
99
99
|
getReferencedFragmentSource: getFragmentSource,
|
|
100
100
|
});
|
|
101
101
|
const complexity = core.calculateOperationComplexity(operation, args.complexityConfig, getFragmentReference);
|
|
102
|
-
results.push([name, depth, aliases, directives, tokenCount.toFixed(2)
|
|
102
|
+
results.push([name, depth, aliases, directives, tokenCount, complexity.toFixed(2)]);
|
|
103
103
|
maxDepth = Math.max(maxDepth, depth);
|
|
104
104
|
maxAliases = Math.max(maxAliases, aliases);
|
|
105
105
|
maxDirectives = Math.max(maxDirectives, directives);
|
package/index.mjs
CHANGED
|
@@ -93,7 +93,7 @@ function handler(args) {
|
|
|
93
93
|
getReferencedFragmentSource: getFragmentSource,
|
|
94
94
|
});
|
|
95
95
|
const complexity = calculateOperationComplexity(operation, args.complexityConfig, getFragmentReference);
|
|
96
|
-
results.push([name, depth, aliases, directives, tokenCount.toFixed(2)
|
|
96
|
+
results.push([name, depth, aliases, directives, tokenCount, complexity.toFixed(2)]);
|
|
97
97
|
maxDepth = Math.max(maxDepth, depth);
|
|
98
98
|
maxAliases = Math.max(maxAliases, aliases);
|
|
99
99
|
maxDirectives = Math.max(maxDirectives, directives);
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-inspector/audit-command",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Audit Documents in GraphQL Inspector",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"graphql": "^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@graphql-inspector/commands": "
|
|
11
|
-
"@graphql-inspector/core": "
|
|
12
|
-
"@graphql-inspector/logger": "
|
|
10
|
+
"@graphql-inspector/commands": "3.4.0",
|
|
11
|
+
"@graphql-inspector/core": "3.4.0",
|
|
12
|
+
"@graphql-inspector/logger": "3.4.0",
|
|
13
13
|
"cli-table3": "0.6.2",
|
|
14
14
|
"tslib": "^2.0.0"
|
|
15
15
|
},
|