@graphql-inspector/action 4.0.1 → 4.0.2-alpha-20230628154035-0c2a313f
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/cjs/commands/serve/src/fake.js +2 -0
- package/cjs/core/src/validate/token-count.js +1 -1
- package/cjs/loaders/loaders/src/index.js +1 -3
- package/esm/commands/serve/src/fake.js +2 -0
- package/esm/core/src/validate/token-count.js +1 -1
- package/esm/loaders/loaders/src/index.js +1 -3
- package/package.json +5 -5
|
@@ -4,12 +4,12 @@ exports.validateTokenCount = exports.calculateTokenCount = void 0;
|
|
|
4
4
|
const graphql_1 = require("graphql");
|
|
5
5
|
const parser_js_1 = require("graphql/language/parser.js");
|
|
6
6
|
class ParserWithLexer extends parser_js_1.Parser {
|
|
7
|
+
__tokenCount = 0;
|
|
7
8
|
get tokenCount() {
|
|
8
9
|
return this.__tokenCount;
|
|
9
10
|
}
|
|
10
11
|
constructor(source, options) {
|
|
11
12
|
super(source, options);
|
|
12
|
-
this.__tokenCount = 0;
|
|
13
13
|
const lexer = this._lexer;
|
|
14
14
|
this._lexer = new Proxy(lexer, {
|
|
15
15
|
get: (target, prop, receiver) => {
|
|
@@ -4,9 +4,7 @@ exports.useLoaders = exports.LoadersRegistry = void 0;
|
|
|
4
4
|
const graphql_1 = require("graphql");
|
|
5
5
|
const load_1 = require("@graphql-tools/load");
|
|
6
6
|
class LoadersRegistry {
|
|
7
|
-
|
|
8
|
-
this.loaders = [];
|
|
9
|
-
}
|
|
7
|
+
loaders = [];
|
|
10
8
|
register(loader) {
|
|
11
9
|
this.loaders.push(loader);
|
|
12
10
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { GraphQLError, TokenKind, visit } from 'graphql';
|
|
2
2
|
import { Parser } from 'graphql/language/parser.js';
|
|
3
3
|
class ParserWithLexer extends Parser {
|
|
4
|
+
__tokenCount = 0;
|
|
4
5
|
get tokenCount() {
|
|
5
6
|
return this.__tokenCount;
|
|
6
7
|
}
|
|
7
8
|
constructor(source, options) {
|
|
8
9
|
super(source, options);
|
|
9
|
-
this.__tokenCount = 0;
|
|
10
10
|
const lexer = this._lexer;
|
|
11
11
|
this._lexer = new Proxy(lexer, {
|
|
12
12
|
get: (target, prop, receiver) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-inspector/action",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2-alpha-20230628154035-0c2a313f",
|
|
4
4
|
"description": "GraphQL Inspector functionality for GitHub Actions",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"dependencies": {
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"@actions/github": "4.0.0",
|
|
9
9
|
"js-yaml": "4.1.0",
|
|
10
10
|
"probot": "12.3.0",
|
|
11
|
-
"tslib": "2.
|
|
12
|
-
"@graphql-inspector/commands": "4.0.
|
|
13
|
-
"@graphql-inspector/core": "5.0.
|
|
14
|
-
"@graphql-inspector/github": "4.0.
|
|
11
|
+
"tslib": "2.6.0",
|
|
12
|
+
"@graphql-inspector/commands": "4.0.2-alpha-20230628154035-0c2a313f",
|
|
13
|
+
"@graphql-inspector/core": "5.0.1-alpha-20230628154035-0c2a313f",
|
|
14
|
+
"@graphql-inspector/github": "4.0.1-alpha-20230628154035-0c2a313f"
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|