@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.
@@ -170,6 +170,8 @@ function forEachField(schema, fn) {
170
170
  }
171
171
  }
172
172
  class MockList {
173
+ len;
174
+ wrappedFunction;
173
175
  // wrappedFunction can return another MockList or a value
174
176
  constructor(len, wrappedFunction) {
175
177
  this.len = len;
@@ -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
- constructor() {
8
- this.loaders = [];
9
- }
7
+ loaders = [];
10
8
  register(loader) {
11
9
  this.loaders.push(loader);
12
10
  }
@@ -166,6 +166,8 @@ function forEachField(schema, fn) {
166
166
  }
167
167
  }
168
168
  class MockList {
169
+ len;
170
+ wrappedFunction;
169
171
  // wrappedFunction can return another MockList or a value
170
172
  constructor(len, wrappedFunction) {
171
173
  this.len = len;
@@ -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) => {
@@ -1,9 +1,7 @@
1
1
  import { buildSchema } from 'graphql';
2
2
  import { loadDocuments, loadSchema, } from '@graphql-tools/load';
3
3
  export class LoadersRegistry {
4
- constructor() {
5
- this.loaders = [];
6
- }
4
+ loaders = [];
7
5
  register(loader) {
8
6
  this.loaders.push(loader);
9
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-inspector/action",
3
- "version": "4.0.1",
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.5.3",
12
- "@graphql-inspector/commands": "4.0.1",
13
- "@graphql-inspector/core": "5.0.0",
14
- "@graphql-inspector/github": "4.0.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",