Skip to content

Commit

Permalink
Update deps (#3320)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Oct 18, 2021
1 parent 7c6bf48 commit e91f3a8
Show file tree
Hide file tree
Showing 13 changed files with 875 additions and 1,450 deletions.
6 changes: 4 additions & 2 deletions .eslintrc.yml
Expand Up @@ -85,7 +85,7 @@ rules:
node/prefer-promises/fs: off

##############################################################################
# `eslint-plugin-import` rule list based on `v2.24.x`
# `eslint-plugin-import` rule list based on `v2.25.x`
##############################################################################

# Static analysis
Expand Down Expand Up @@ -461,7 +461,7 @@ overrides:
tsdoc/syntax: error

##########################################################################
# `@typescript-eslint/eslint-plugin` rule list based on `v4.31.x`
# `@typescript-eslint/eslint-plugin` rule list based on `v5.0.x`
##########################################################################

# Supported Rules
Expand Down Expand Up @@ -501,6 +501,7 @@ overrides:
'@typescript-eslint/no-misused-new': error
'@typescript-eslint/no-misused-promises': error
'@typescript-eslint/no-namespace': error
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': error
'@typescript-eslint/no-non-null-asserted-optional-chain': error
'@typescript-eslint/no-non-null-assertion': error
'@typescript-eslint/no-parameter-properties': error
Expand Down Expand Up @@ -601,6 +602,7 @@ overrides:
# Disable for JS and TS
'@typescript-eslint/init-declarations': off
'@typescript-eslint/no-magic-numbers': off
'@typescript-eslint/no-restricted-imports': off
'@typescript-eslint/no-use-before-define': off
'@typescript-eslint/no-duplicate-imports': off # Superseded by `import/no-duplicates`

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -7,6 +7,7 @@

/diff-npm-package.html
/.eslintcache
/.cspellcache
/node_modules
/coverage
/npmDist
Expand Down
11 changes: 1 addition & 10 deletions cspell.yml
@@ -1,15 +1,6 @@
language: en
useGitignore: true
ignorePaths:
# Copied from '.gitignore', please keep it in sync.
- diff-npm-package.html
- .eslintcache
- node_modules
- coverage
- npmDist
- denoDist
- npm
- deno

# Excluded from spelling check
- cspell.yml
- package.json
Expand Down
2,139 changes: 785 additions & 1,354 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions package.json
Expand Up @@ -49,36 +49,36 @@
"testonly:cover": "nyc npm run testonly",
"prettier": "prettier --write --list-different .",
"prettier:check": "prettier --check .",
"check:spelling": "cspell --no-progress '**/*'",
"check:spelling": "cspell --cache --no-progress '**/*'",
"check:integrations": "npm run build:npm && npm run build:deno && mocha --full-trace integrationTests/*-test.js",
"build:npm": "node resources/build-npm.js",
"build:deno": "node resources/build-deno.js",
"gitpublish:npm": "bash ./resources/gitpublish.sh npm npmDist",
"gitpublish:deno": "bash ./resources/gitpublish.sh deno denoDist"
},
"devDependencies": {
"@babel/core": "7.15.5",
"@babel/eslint-parser": "7.15.7",
"@babel/core": "7.15.8",
"@babel/eslint-parser": "7.15.8",
"@babel/plugin-syntax-typescript": "7.14.5",
"@babel/plugin-transform-typescript": "7.15.4",
"@babel/preset-env": "7.15.6",
"@babel/plugin-transform-typescript": "7.15.8",
"@babel/preset-env": "7.15.8",
"@babel/register": "7.15.3",
"@types/chai": "4.2.22",
"@types/mocha": "9.0.0",
"@types/node": "16.10.1",
"@typescript-eslint/eslint-plugin": "4.31.2",
"@typescript-eslint/parser": "4.31.2",
"@types/node": "16.11.1",
"@typescript-eslint/eslint-plugin": "5.0.0",
"@typescript-eslint/parser": "5.0.0",
"chai": "4.3.4",
"cspell": "5.10.1",
"cspell": "5.12.3",
"eslint": "7.32.0",
"eslint-plugin-import": "2.24.2",
"eslint-plugin-import": "2.25.2",
"eslint-plugin-internal-rules": "file:./resources/eslint-internal-rules",
"eslint-plugin-istanbul": "0.1.2",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-tsdoc": "0.2.14",
"mocha": "9.1.2",
"mocha": "9.1.3",
"nyc": "15.1.0",
"prettier": "2.4.1",
"typescript": "4.4.3"
"typescript": "4.4.4"
}
}
8 changes: 4 additions & 4 deletions src/error/GraphQLError.ts
Expand Up @@ -161,6 +161,10 @@ export class GraphQLError extends Error {
}
}

get [Symbol.toStringTag](): string {
return 'GraphQLError';
}

toString(): string {
let output = this.message;

Expand Down Expand Up @@ -202,10 +206,6 @@ export class GraphQLError extends Error {

return formattedError;
}

get [Symbol.toStringTag](): string {
return 'GraphQLError';
}
}

/**
Expand Down
16 changes: 8 additions & 8 deletions src/language/ast.ts
Expand Up @@ -40,13 +40,13 @@ export class Location {
this.source = source;
}

toJSON(): { start: number; end: number } {
return { start: this.start, end: this.end };
}

get [Symbol.toStringTag]() {
return 'Location';
}

toJSON(): { start: number; end: number } {
return { start: this.start, end: this.end };
}
}

/**
Expand Down Expand Up @@ -114,6 +114,10 @@ export class Token {
this.next = null;
}

get [Symbol.toStringTag]() {
return 'Token';
}

toJSON(): {
kind: TokenKind;
value?: string;
Expand All @@ -127,10 +131,6 @@ export class Token {
column: this.column,
};
}

get [Symbol.toStringTag]() {
return 'Token';
}
}

/**
Expand Down
8 changes: 4 additions & 4 deletions src/language/lexer.ts
Expand Up @@ -47,6 +47,10 @@ export class Lexer {
this.lineStart = 0;
}

get [Symbol.toStringTag]() {
return 'Lexer';
}

/**
* Advances the token stream to the next non-ignored token.
*/
Expand Down Expand Up @@ -79,10 +83,6 @@ export class Lexer {
}
return token;
}

get [Symbol.toStringTag]() {
return 'Lexer';
}
}

/**
Expand Down
64 changes: 32 additions & 32 deletions src/type/definition.ts
Expand Up @@ -355,17 +355,17 @@ export class GraphQLList<T extends GraphQLType> {
this.ofType = ofType;
}

get [Symbol.toStringTag]() {
return 'GraphQLList';
}

toString(): string {
return '[' + String(this.ofType) + ']';
}

toJSON(): string {
return this.toString();
}

get [Symbol.toStringTag]() {
return 'GraphQLList';
}
}

/**
Expand Down Expand Up @@ -401,17 +401,17 @@ export class GraphQLNonNull<T extends GraphQLNullableType> {
this.ofType = ofType;
}

get [Symbol.toStringTag]() {
return 'GraphQLNonNull';
}

toString(): string {
return String(this.ofType) + '!';
}

toJSON(): string {
return this.toString();
}

get [Symbol.toStringTag]() {
return 'GraphQLNonNull';
}
}

/**
Expand Down Expand Up @@ -630,6 +630,10 @@ export class GraphQLScalarType<TInternal = unknown, TExternal = TInternal> {
}
}

get [Symbol.toStringTag]() {
return 'GraphQLScalarType';
}

toConfig(): GraphQLScalarTypeNormalizedConfig<TInternal, TExternal> {
return {
name: this.name,
Expand All @@ -651,10 +655,6 @@ export class GraphQLScalarType<TInternal = unknown, TExternal = TInternal> {
toJSON(): string {
return this.toString();
}

get [Symbol.toStringTag]() {
return 'GraphQLScalarType';
}
}

export type GraphQLScalarSerializer<TExternal> = (
Expand Down Expand Up @@ -778,6 +778,10 @@ export class GraphQLObjectType<TSource = any, TContext = any> {
);
}

get [Symbol.toStringTag]() {
return 'GraphQLObjectType';
}

getFields(): GraphQLFieldMap<TSource, TContext> {
if (typeof this._fields === 'function') {
this._fields = this._fields();
Expand Down Expand Up @@ -812,10 +816,6 @@ export class GraphQLObjectType<TSource = any, TContext = any> {
toJSON(): string {
return this.toString();
}

get [Symbol.toStringTag]() {
return 'GraphQLObjectType';
}
}

function defineInterfaces(
Expand Down Expand Up @@ -1143,6 +1143,10 @@ export class GraphQLInterfaceType {
);
}

get [Symbol.toStringTag]() {
return 'GraphQLInterfaceType';
}

getFields(): GraphQLFieldMap<any, any> {
if (typeof this._fields === 'function') {
this._fields = this._fields();
Expand Down Expand Up @@ -1177,10 +1181,6 @@ export class GraphQLInterfaceType {
toJSON(): string {
return this.toString();
}

get [Symbol.toStringTag]() {
return 'GraphQLInterfaceType';
}
}

export interface GraphQLInterfaceTypeConfig<TSource, TContext> {
Expand Down Expand Up @@ -1270,6 +1270,10 @@ export class GraphQLUnionType {
);
}

get [Symbol.toStringTag]() {
return 'GraphQLUnionType';
}

getTypes(): ReadonlyArray<GraphQLObjectType> {
if (typeof this._types === 'function') {
this._types = this._types();
Expand All @@ -1296,10 +1300,6 @@ export class GraphQLUnionType {
toJSON(): string {
return this.toString();
}

get [Symbol.toStringTag]() {
return 'GraphQLUnionType';
}
}

function defineTypes(
Expand Down Expand Up @@ -1396,6 +1396,10 @@ export class GraphQLEnumType /* <T> */ {
this._nameLookup = keyMap(this._values, (value) => value.name);
}

get [Symbol.toStringTag]() {
return 'GraphQLEnumType';
}

getValues(): ReadonlyArray<GraphQLEnumValue /* <T> */> {
return this._values;
}
Expand Down Expand Up @@ -1489,10 +1493,6 @@ export class GraphQLEnumType /* <T> */ {
toJSON(): string {
return this.toString();
}

get [Symbol.toStringTag]() {
return 'GraphQLEnumType';
}
}

function didYouMeanEnumValue(
Expand Down Expand Up @@ -1630,6 +1630,10 @@ export class GraphQLInputObjectType {
this._fields = defineInputFieldMap.bind(undefined, config);
}

get [Symbol.toStringTag]() {
return 'GraphQLInputObjectType';
}

getFields(): GraphQLInputFieldMap {
if (typeof this._fields === 'function') {
this._fields = this._fields();
Expand Down Expand Up @@ -1664,10 +1668,6 @@ export class GraphQLInputObjectType {
toJSON(): string {
return this.toString();
}

get [Symbol.toStringTag]() {
return 'GraphQLInputObjectType';
}
}

function defineInputFieldMap(
Expand Down
8 changes: 4 additions & 4 deletions src/type/directives.ts
Expand Up @@ -84,6 +84,10 @@ export class GraphQLDirective {
this.args = defineArguments(args);
}

get [Symbol.toStringTag]() {
return 'GraphQLDirective';
}

toConfig(): GraphQLDirectiveNormalizedConfig {
return {
name: this.name,
Expand All @@ -103,10 +107,6 @@ export class GraphQLDirective {
toJSON(): string {
return this.toString();
}

get [Symbol.toStringTag]() {
return 'GraphQLDirective';
}
}

export interface GraphQLDirectiveConfig {
Expand Down

0 comments on commit e91f3a8

Please sign in to comment.