graphql 14.5.3 → 14.5.4
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/execution/execute.d.ts +3 -1
- package/execution/values.d.ts +1 -1
- package/jsutils/Path.d.ts +1 -1
- package/language/visitor.d.ts +1 -1
- package/package.json +2 -1
- package/polyfills/flatMap.js +5 -3
- package/polyfills/flatMap.js.flow +5 -2
- package/polyfills/flatMap.mjs +5 -2
- package/polyfills/isFinite.js +2 -2
- package/polyfills/isFinite.js.flow +5 -4
- package/polyfills/isFinite.mjs +2 -2
- package/subscription/mapAsyncIterator.d.ts +3 -1
- package/type/directives.js +1 -1
- package/type/directives.js.flow +1 -1
- package/type/directives.mjs +1 -1
- package/utilities/coerceInputValue.d.ts +1 -1
- package/validation/ValidationContext.d.ts +1 -1
- package/validation/rules/PossibleTypeExtensions.d.ts +1 -1
- package/validation/rules/UniqueDirectiveNames.d.ts +1 -1
- package/validation/validate.d.ts +1 -1
- package/version.js +2 -2
- package/version.js.flow +2 -2
- package/version.mjs +2 -2
package/execution/execute.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import Maybe from '../tsutils/Maybe';
|
|
|
2
2
|
import { PromiseOrValue } from '../jsutils/PromiseOrValue';
|
|
3
3
|
import { Path, addPath, pathToArray } from '../jsutils/Path';
|
|
4
4
|
|
|
5
|
-
import { GraphQLError
|
|
5
|
+
import { GraphQLError } from '../error/GraphQLError';
|
|
6
|
+
import { locatedError } from '../error/locatedError';
|
|
7
|
+
|
|
6
8
|
import {
|
|
7
9
|
DirectiveNode,
|
|
8
10
|
DocumentNode,
|
package/execution/values.d.ts
CHANGED
package/jsutils/Path.d.ts
CHANGED
package/language/visitor.d.ts
CHANGED
|
@@ -140,7 +140,7 @@ export const QueryDocumentKeys: {
|
|
|
140
140
|
InputObjectTypeExtension: ['name', 'directives', 'fields'];
|
|
141
141
|
};
|
|
142
142
|
|
|
143
|
-
export const BREAK:
|
|
143
|
+
export const BREAK: any;
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* visit() will walk through an AST using a depth first traversal, calling
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphql",
|
|
3
|
-
"version": "14.5.
|
|
3
|
+
"version": "14.5.4",
|
|
4
4
|
"description": "A Query Language and Runtime which can target any service.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index",
|
|
7
7
|
"module": "index.mjs",
|
|
8
|
+
"types": "index.d.ts",
|
|
8
9
|
"sideEffects": false,
|
|
9
10
|
"homepage": "https://github.com/graphql/graphql-js",
|
|
10
11
|
"bugs": {
|
package/polyfills/flatMap.js
CHANGED
|
@@ -4,11 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
7
|
+
// Workaround to make older Flow versions happy
|
|
8
|
+
var flatMapMethod = Array.prototype.flatMap;
|
|
8
9
|
/* eslint-disable no-redeclare */
|
|
9
10
|
// $FlowFixMe
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
var flatMap = flatMapMethod ? function (list, fn) {
|
|
13
|
+
return flatMapMethod.call(list, fn);
|
|
12
14
|
} : function (list, fn) {
|
|
13
15
|
var result = [];
|
|
14
16
|
|
|
@@ -5,11 +5,14 @@ declare function flatMap<T, U>(
|
|
|
5
5
|
fn: (item: T, index: number) => $ReadOnlyArray<U> | U,
|
|
6
6
|
): Array<U>;
|
|
7
7
|
|
|
8
|
+
// Workaround to make older Flow versions happy
|
|
9
|
+
const flatMapMethod = (Array.prototype: any).flatMap;
|
|
10
|
+
|
|
8
11
|
/* eslint-disable no-redeclare */
|
|
9
12
|
// $FlowFixMe
|
|
10
|
-
const flatMap =
|
|
13
|
+
const flatMap = flatMapMethod
|
|
11
14
|
? function(list, fn) {
|
|
12
|
-
return
|
|
15
|
+
return flatMapMethod.call(list, fn);
|
|
13
16
|
}
|
|
14
17
|
: function(list, fn) {
|
|
15
18
|
let result = [];
|
package/polyfills/flatMap.mjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
// Workaround to make older Flow versions happy
|
|
2
|
+
var flatMapMethod = Array.prototype.flatMap;
|
|
1
3
|
/* eslint-disable no-redeclare */
|
|
2
4
|
// $FlowFixMe
|
|
3
|
-
|
|
4
|
-
|
|
5
|
+
|
|
6
|
+
var flatMap = flatMapMethod ? function (list, fn) {
|
|
7
|
+
return flatMapMethod.call(list, fn);
|
|
5
8
|
} : function (list, fn) {
|
|
6
9
|
var result = [];
|
|
7
10
|
|
package/polyfills/isFinite.js
CHANGED
|
@@ -7,9 +7,9 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
/* eslint-disable no-redeclare */
|
|
9
9
|
// $FlowFixMe workaround for: https://github.com/facebook/flow/issues/4441
|
|
10
|
-
var
|
|
10
|
+
var isFinitePolyfill = Number.isFinite || function (value) {
|
|
11
11
|
return typeof value === 'number' && isFinite(value);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
var _default =
|
|
14
|
+
var _default = isFinitePolyfill;
|
|
15
15
|
exports.default = _default;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
// @flow strict
|
|
2
2
|
|
|
3
|
-
declare function
|
|
4
|
-
|
|
3
|
+
declare function isFinitePolyfill(
|
|
4
|
+
value: mixed,
|
|
5
|
+
): boolean %checks(typeof value === 'number');
|
|
5
6
|
|
|
6
7
|
/* eslint-disable no-redeclare */
|
|
7
8
|
// $FlowFixMe workaround for: https://github.com/facebook/flow/issues/4441
|
|
8
|
-
const
|
|
9
|
+
const isFinitePolyfill =
|
|
9
10
|
Number.isFinite ||
|
|
10
11
|
function(value) {
|
|
11
12
|
return typeof value === 'number' && isFinite(value);
|
|
12
13
|
};
|
|
13
|
-
export default
|
|
14
|
+
export default isFinitePolyfill;
|
package/polyfills/isFinite.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable no-redeclare */
|
|
2
2
|
// $FlowFixMe workaround for: https://github.com/facebook/flow/issues/4441
|
|
3
|
-
var
|
|
3
|
+
var isFinitePolyfill = Number.isFinite || function (value) {
|
|
4
4
|
return typeof value === 'number' && isFinite(value);
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
-
export default
|
|
7
|
+
export default isFinitePolyfill;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PromiseOrValue } from '../jsutils/PromiseOrValue';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Given an AsyncIterable and a callback function, return an AsyncIterator
|
|
3
5
|
* which produces values mapped via calling the callback function.
|
|
@@ -6,4 +8,4 @@ export default function mapAsyncIterator<T, U>(
|
|
|
6
8
|
iterable: AsyncIterable<T>,
|
|
7
9
|
callback: (arg: T) => PromiseOrValue<U>,
|
|
8
10
|
rejectCallback?: (arg: any) => PromiseOrValue<U>,
|
|
9
|
-
):
|
|
11
|
+
): any; // TS_SPECIFIC: es2018.asyncgenerator requires typescript@3.6
|
package/type/directives.js
CHANGED
|
@@ -72,7 +72,7 @@ function () {
|
|
|
72
72
|
description: arg.description === undefined ? null : arg.description,
|
|
73
73
|
type: arg.type,
|
|
74
74
|
defaultValue: arg.defaultValue,
|
|
75
|
-
extensions: arg.extensions,
|
|
75
|
+
extensions: arg.extensions && (0, _toObjMap.default)(arg.extensions),
|
|
76
76
|
astNode: arg.astNode
|
|
77
77
|
};
|
|
78
78
|
});
|
package/type/directives.js.flow
CHANGED
|
@@ -86,7 +86,7 @@ export class GraphQLDirective {
|
|
|
86
86
|
description: arg.description === undefined ? null : arg.description,
|
|
87
87
|
type: arg.type,
|
|
88
88
|
defaultValue: arg.defaultValue,
|
|
89
|
-
extensions: arg.extensions,
|
|
89
|
+
extensions: arg.extensions && toObjMap(arg.extensions),
|
|
90
90
|
astNode: arg.astNode,
|
|
91
91
|
}));
|
|
92
92
|
}
|
package/type/directives.mjs
CHANGED
|
@@ -51,7 +51,7 @@ function () {
|
|
|
51
51
|
description: arg.description === undefined ? null : arg.description,
|
|
52
52
|
type: arg.type,
|
|
53
53
|
defaultValue: arg.defaultValue,
|
|
54
|
-
extensions: arg.extensions,
|
|
54
|
+
extensions: arg.extensions && toObjMap(arg.extensions),
|
|
55
55
|
astNode: arg.astNode
|
|
56
56
|
};
|
|
57
57
|
});
|
|
@@ -3,7 +3,7 @@ import { SDLValidationContext } from '../ValidationContext';
|
|
|
3
3
|
|
|
4
4
|
export function extendingUnknownTypeMessage(
|
|
5
5
|
typeName: string,
|
|
6
|
-
suggestedTypes:
|
|
6
|
+
suggestedTypes: ReadonlyArray<string>,
|
|
7
7
|
): string;
|
|
8
8
|
|
|
9
9
|
export function extendingDifferentTypeKindMessage(
|
package/validation/validate.d.ts
CHANGED
package/version.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.versionInfo = exports.version = void 0;
|
|
|
13
13
|
/**
|
|
14
14
|
* A string containing the version of the GraphQL.js library
|
|
15
15
|
*/
|
|
16
|
-
var version = '14.5.
|
|
16
|
+
var version = '14.5.4';
|
|
17
17
|
/**
|
|
18
18
|
* An object containing the components of the GraphQL.js version string
|
|
19
19
|
*/
|
|
@@ -22,7 +22,7 @@ exports.version = version;
|
|
|
22
22
|
var versionInfo = Object.freeze({
|
|
23
23
|
major: 14,
|
|
24
24
|
minor: 5,
|
|
25
|
-
patch:
|
|
25
|
+
patch: 4,
|
|
26
26
|
preReleaseTag: null
|
|
27
27
|
});
|
|
28
28
|
exports.versionInfo = versionInfo;
|
package/version.js.flow
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/**
|
|
9
9
|
* A string containing the version of the GraphQL.js library
|
|
10
10
|
*/
|
|
11
|
-
export const version = '14.5.
|
|
11
|
+
export const version = '14.5.4';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* An object containing the components of the GraphQL.js version string
|
|
@@ -16,6 +16,6 @@ export const version = '14.5.3';
|
|
|
16
16
|
export const versionInfo = Object.freeze({
|
|
17
17
|
major: 14,
|
|
18
18
|
minor: 5,
|
|
19
|
-
patch:
|
|
19
|
+
patch: 4,
|
|
20
20
|
preReleaseTag: null,
|
|
21
21
|
});
|
package/version.mjs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* A string containing the version of the GraphQL.js library
|
|
8
8
|
*/
|
|
9
|
-
export var version = '14.5.
|
|
9
|
+
export var version = '14.5.4';
|
|
10
10
|
/**
|
|
11
11
|
* An object containing the components of the GraphQL.js version string
|
|
12
12
|
*/
|
|
@@ -14,6 +14,6 @@ export var version = '14.5.3';
|
|
|
14
14
|
export var versionInfo = Object.freeze({
|
|
15
15
|
major: 14,
|
|
16
16
|
minor: 5,
|
|
17
|
-
patch:
|
|
17
|
+
patch: 4,
|
|
18
18
|
preReleaseTag: null
|
|
19
19
|
});
|