@graphitation/supermassive 2.2.2 → 2.3.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/.eslintcache +1 -1
- package/CHANGELOG.md +9 -1
- package/lib/ast/TypedAST.js +1 -0
- package/lib/ast/addTypesToRequestDocument.js +48 -42
- package/lib/ast/addTypesToRequestDocument.mjs +47 -42
- package/lib/benchmarks/index.js +15 -4
- package/lib/benchmarks/index.mjs +6 -3
- package/lib/benchmarks/nice-benchmark.js +1 -0
- package/lib/benchmarks/swapi-schema/index.js +14 -4
- package/lib/benchmarks/swapi-schema/index.mjs +5 -3
- package/lib/benchmarks/swapi-schema/models.js +9 -1
- package/lib/benchmarks/swapi-schema/resolvers.js +22 -7
- package/lib/benchmarks/swapi-schema/resolvers.mjs +21 -7
- package/lib/collectFields.js +41 -11
- package/lib/collectFields.mjs +40 -11
- package/lib/compiledQuery.js +1 -0
- package/lib/definition.js +13 -8
- package/lib/definition.mjs +12 -8
- package/lib/directives.js +48 -33
- package/lib/directives.mjs +47 -33
- package/lib/executeWithSchema.d.ts +1 -1
- package/lib/executeWithSchema.d.ts.map +1 -1
- package/lib/executeWithSchema.js +5 -2
- package/lib/executeWithSchema.mjs +4 -2
- package/lib/executeWithoutSchema.d.ts +3 -1
- package/lib/executeWithoutSchema.d.ts.map +1 -1
- package/lib/executeWithoutSchema.js +365 -55
- package/lib/executeWithoutSchema.mjs +358 -52
- package/lib/extractImplicitTypesRuntime.js +4 -1
- package/lib/extractImplicitTypesRuntime.mjs +3 -1
- package/lib/hooks/types.d.ts +33 -0
- package/lib/hooks/types.d.ts.map +1 -0
- package/lib/hooks/types.js +16 -0
- package/lib/hooks/types.mjs +0 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -0
- package/lib/index.mjs +16 -0
- package/lib/jsutils/Maybe.js +1 -0
- package/lib/jsutils/ObjMap.js +1 -0
- package/lib/jsutils/Path.js +1 -0
- package/lib/jsutils/PromiseOrValue.js +1 -0
- package/lib/jsutils/devAssert.js +1 -0
- package/lib/jsutils/didYouMean.js +1 -0
- package/lib/jsutils/identityFunc.js +1 -0
- package/lib/jsutils/inspect.js +4 -1
- package/lib/jsutils/inspect.mjs +3 -1
- package/lib/jsutils/instanceOf.js +18 -6
- package/lib/jsutils/instanceOf.mjs +17 -6
- package/lib/jsutils/invariant.js +4 -1
- package/lib/jsutils/invariant.mjs +3 -1
- package/lib/jsutils/isAsyncIterable.js +1 -0
- package/lib/jsutils/isIterableObject.js +1 -0
- package/lib/jsutils/isObjectLike.js +1 -0
- package/lib/jsutils/isPromise.js +1 -0
- package/lib/jsutils/keyMap.js +1 -0
- package/lib/jsutils/keyValMap.js +1 -0
- package/lib/jsutils/mapValue.js +1 -0
- package/lib/jsutils/memoize3.js +1 -0
- package/lib/jsutils/naturalCompare.js +1 -0
- package/lib/jsutils/printPathArray.js +4 -1
- package/lib/jsutils/printPathArray.mjs +3 -1
- package/lib/jsutils/promiseForObject.js +1 -0
- package/lib/jsutils/promiseReduce.js +1 -0
- package/lib/jsutils/suggestionList.js +9 -1
- package/lib/jsutils/suggestionList.mjs +8 -1
- package/lib/jsutils/toObjMap.js +1 -0
- package/lib/subscribeWithSchema.js +1 -0
- package/lib/subscribeWithoutSchema.js +45 -6
- package/lib/subscribeWithoutSchema.mjs +44 -6
- package/lib/transforms/annotateDocumentGraphQLTransform.js +1 -0
- package/lib/types.d.ts +2 -0
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +1 -0
- package/lib/utilities/array.d.ts +2 -0
- package/lib/utilities/array.d.ts.map +1 -0
- package/lib/utilities/array.js +34 -0
- package/lib/utilities/array.mjs +15 -0
- package/lib/utilities/blankGraphQLTag.js +1 -0
- package/lib/utilities/mapAsyncIterator.js +1 -0
- package/lib/utilities/mergeResolvers.js +1 -0
- package/lib/utilities/typeNameFromAST.js +1 -0
- package/lib/values.js +82 -21
- package/lib/values.mjs +81 -21
- package/package.json +1 -1
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,YAAY,EACV,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,uBAAuB,EACvB,qBAAqB,EACrB,SAAS,EACT,aAAa,EACb,WAAW,GACZ,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAE5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,gCAAgC,EAAE,MAAM,+CAA+C,CAAC;AAEjG,YAAY,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,YAAY,EACV,QAAQ,EACR,YAAY,EACZ,uBAAuB,EACvB,sBAAsB,EACtB,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,YAAY,EACZ,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,aAAa,EACb,eAAe,EACf,eAAe,EACf,aAAa,EACb,aAAa,EACb,YAAY,EACZ,eAAe,EACf,oBAAoB,EACpB,2BAA2B,EAC3B,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACxB,2BAA2B,EAC3B,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB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,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACxB,2BAA2B,EAC3B,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,6BAA6B,EAC7B,uBAAuB,EACvB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC1B,sBAAsB,EACtB,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EACzB,0BAA0B,EAC1B,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,GACf,MAAM,eAAe,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -17,6 +18,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
19
|
var src_exports = {};
|
|
19
20
|
__export(src_exports, {
|
|
21
|
+
AfterFieldCompleteHook: () => import_types.AfterFieldCompleteHook,
|
|
22
|
+
AfterFieldCompleteHookArgs: () => import_types.AfterFieldCompleteHookArgs,
|
|
23
|
+
AfterFieldResolveHook: () => import_types.AfterFieldResolveHook,
|
|
24
|
+
AfterFieldResolveHookArgs: () => import_types.AfterFieldResolveHookArgs,
|
|
25
|
+
BeforeFieldResolveHook: () => import_types.BeforeFieldResolveHook,
|
|
26
|
+
BeforeFieldResolveHookArgs: () => import_types.BeforeFieldResolveHookArgs,
|
|
27
|
+
ExecutionHooks: () => import_types.ExecutionHooks,
|
|
20
28
|
addTypesToRequestDocument: () => import_addTypesToRequestDocument.addTypesToRequestDocument,
|
|
21
29
|
annotateDocumentGraphQLTransform: () => import_annotateDocumentGraphQLTransform.annotateDocumentGraphQLTransform,
|
|
22
30
|
executeWithSchema: () => import_executeWithSchema.executeWithSchema,
|
|
@@ -35,3 +43,4 @@ var import_addTypesToRequestDocument = require("./ast/addTypesToRequestDocument"
|
|
|
35
43
|
var import_extractImplicitTypesRuntime = require("./extractImplicitTypesRuntime");
|
|
36
44
|
var import_values = require("./values");
|
|
37
45
|
var import_annotateDocumentGraphQLTransform = require("./transforms/annotateDocumentGraphQLTransform");
|
|
46
|
+
var import_types = require("./hooks/types");
|
package/lib/index.mjs
CHANGED
|
@@ -7,7 +7,23 @@ import { addTypesToRequestDocument } from "./ast/addTypesToRequestDocument.mjs";
|
|
|
7
7
|
import { extractImplicitTypes } from "./extractImplicitTypesRuntime.mjs";
|
|
8
8
|
import { specifiedScalars } from "./values.mjs";
|
|
9
9
|
import { annotateDocumentGraphQLTransform } from "./transforms/annotateDocumentGraphQLTransform.mjs";
|
|
10
|
+
import {
|
|
11
|
+
BeforeFieldResolveHookArgs,
|
|
12
|
+
AfterFieldResolveHookArgs,
|
|
13
|
+
AfterFieldCompleteHookArgs,
|
|
14
|
+
BeforeFieldResolveHook,
|
|
15
|
+
AfterFieldResolveHook,
|
|
16
|
+
AfterFieldCompleteHook,
|
|
17
|
+
ExecutionHooks
|
|
18
|
+
} from "./hooks/types.mjs";
|
|
10
19
|
export {
|
|
20
|
+
AfterFieldCompleteHook,
|
|
21
|
+
AfterFieldCompleteHookArgs,
|
|
22
|
+
AfterFieldResolveHook,
|
|
23
|
+
AfterFieldResolveHookArgs,
|
|
24
|
+
BeforeFieldResolveHook,
|
|
25
|
+
BeforeFieldResolveHookArgs,
|
|
26
|
+
ExecutionHooks,
|
|
11
27
|
addTypesToRequestDocument,
|
|
12
28
|
annotateDocumentGraphQLTransform,
|
|
13
29
|
executeWithSchema,
|
package/lib/jsutils/Maybe.js
CHANGED
package/lib/jsutils/ObjMap.js
CHANGED
package/lib/jsutils/Path.js
CHANGED
package/lib/jsutils/devAssert.js
CHANGED
package/lib/jsutils/inspect.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -66,7 +67,9 @@ function formatObject(object, seenValues) {
|
|
|
66
67
|
if (seenValues.length > MAX_RECURSIVE_DEPTH) {
|
|
67
68
|
return "[" + getObjectTag(object) + "]";
|
|
68
69
|
}
|
|
69
|
-
const properties = entries.map(
|
|
70
|
+
const properties = entries.map(
|
|
71
|
+
([key, value]) => key + ": " + formatValue(value, seenValues)
|
|
72
|
+
);
|
|
70
73
|
return "{ " + properties.join(", ") + " }";
|
|
71
74
|
}
|
|
72
75
|
function formatArray(array, seenValues) {
|
package/lib/jsutils/inspect.mjs
CHANGED
|
@@ -45,7 +45,9 @@ function formatObject(object, seenValues) {
|
|
|
45
45
|
if (seenValues.length > MAX_RECURSIVE_DEPTH) {
|
|
46
46
|
return "[" + getObjectTag(object) + "]";
|
|
47
47
|
}
|
|
48
|
-
const properties = entries.map(
|
|
48
|
+
const properties = entries.map(
|
|
49
|
+
([key, value]) => key + ": " + formatValue(value, seenValues)
|
|
50
|
+
);
|
|
49
51
|
return "{ " + properties.join(", ") + " }";
|
|
50
52
|
}
|
|
51
53
|
function formatArray(array, seenValues) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -21,19 +22,29 @@ __export(instanceOf_exports, {
|
|
|
21
22
|
});
|
|
22
23
|
module.exports = __toCommonJS(instanceOf_exports);
|
|
23
24
|
var import_inspect = require("./inspect");
|
|
24
|
-
const instanceOf = false ?
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
const instanceOf = false ? (
|
|
26
|
+
// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
|
|
27
|
+
function instanceOf2(value, constructor) {
|
|
28
|
+
return value instanceof constructor;
|
|
29
|
+
}
|
|
30
|
+
) : function instanceOf3(value, constructor) {
|
|
27
31
|
var _a;
|
|
28
32
|
if (value instanceof constructor) {
|
|
29
33
|
return true;
|
|
30
34
|
}
|
|
31
35
|
if (typeof value === "object" && value !== null) {
|
|
32
36
|
const className = constructor.prototype[Symbol.toStringTag];
|
|
33
|
-
const valueClassName =
|
|
37
|
+
const valueClassName = (
|
|
38
|
+
// We still need to support constructor's name to detect conflicts with older versions of this library.
|
|
39
|
+
Symbol.toStringTag in value ? (
|
|
40
|
+
// @ts-expect-error TS bug see, https://github.com/microsoft/TypeScript/issues/38009
|
|
41
|
+
value[Symbol.toStringTag]
|
|
42
|
+
) : (_a = value.constructor) == null ? void 0 : _a.name
|
|
43
|
+
);
|
|
34
44
|
if (className === valueClassName) {
|
|
35
45
|
const stringifiedValue = (0, import_inspect.inspect)(value);
|
|
36
|
-
throw new Error(
|
|
46
|
+
throw new Error(
|
|
47
|
+
`Cannot use ${className} "${stringifiedValue}" from another module or realm.
|
|
37
48
|
|
|
38
49
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
39
50
|
directory. If different versions of "graphql" are the dependencies of other
|
|
@@ -44,7 +55,8 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
|
44
55
|
Duplicate "graphql" modules cannot be used at the same time since different
|
|
45
56
|
versions may have different capabilities and behavior. The data from one
|
|
46
57
|
version used in the function from another could produce confusing and
|
|
47
|
-
spurious results.`
|
|
58
|
+
spurious results.`
|
|
59
|
+
);
|
|
48
60
|
}
|
|
49
61
|
}
|
|
50
62
|
return false;
|
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
// src/jsutils/instanceOf.ts
|
|
2
2
|
import { inspect } from "./inspect.mjs";
|
|
3
|
-
var instanceOf = false ?
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var instanceOf = false ? (
|
|
4
|
+
// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
|
|
5
|
+
function instanceOf2(value, constructor) {
|
|
6
|
+
return value instanceof constructor;
|
|
7
|
+
}
|
|
8
|
+
) : function instanceOf3(value, constructor) {
|
|
6
9
|
var _a;
|
|
7
10
|
if (value instanceof constructor) {
|
|
8
11
|
return true;
|
|
9
12
|
}
|
|
10
13
|
if (typeof value === "object" && value !== null) {
|
|
11
14
|
const className = constructor.prototype[Symbol.toStringTag];
|
|
12
|
-
const valueClassName =
|
|
15
|
+
const valueClassName = (
|
|
16
|
+
// We still need to support constructor's name to detect conflicts with older versions of this library.
|
|
17
|
+
Symbol.toStringTag in value ? (
|
|
18
|
+
// @ts-expect-error TS bug see, https://github.com/microsoft/TypeScript/issues/38009
|
|
19
|
+
value[Symbol.toStringTag]
|
|
20
|
+
) : (_a = value.constructor) == null ? void 0 : _a.name
|
|
21
|
+
);
|
|
13
22
|
if (className === valueClassName) {
|
|
14
23
|
const stringifiedValue = inspect(value);
|
|
15
|
-
throw new Error(
|
|
24
|
+
throw new Error(
|
|
25
|
+
`Cannot use ${className} "${stringifiedValue}" from another module or realm.
|
|
16
26
|
|
|
17
27
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
18
28
|
directory. If different versions of "graphql" are the dependencies of other
|
|
@@ -23,7 +33,8 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
|
23
33
|
Duplicate "graphql" modules cannot be used at the same time since different
|
|
24
34
|
versions may have different capabilities and behavior. The data from one
|
|
25
35
|
version used in the function from another could produce confusing and
|
|
26
|
-
spurious results.`
|
|
36
|
+
spurious results.`
|
|
37
|
+
);
|
|
27
38
|
}
|
|
28
39
|
}
|
|
29
40
|
return false;
|
package/lib/jsutils/invariant.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -23,6 +24,8 @@ module.exports = __toCommonJS(invariant_exports);
|
|
|
23
24
|
function invariant(condition, message) {
|
|
24
25
|
const booleanCondition = Boolean(condition);
|
|
25
26
|
if (!booleanCondition) {
|
|
26
|
-
throw new Error(
|
|
27
|
+
throw new Error(
|
|
28
|
+
message != null ? message : "Unexpected invariant triggered."
|
|
29
|
+
);
|
|
27
30
|
}
|
|
28
31
|
}
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
function invariant(condition, message) {
|
|
3
3
|
const booleanCondition = Boolean(condition);
|
|
4
4
|
if (!booleanCondition) {
|
|
5
|
-
throw new Error(
|
|
5
|
+
throw new Error(
|
|
6
|
+
message != null ? message : "Unexpected invariant triggered."
|
|
7
|
+
);
|
|
6
8
|
}
|
|
7
9
|
}
|
|
8
10
|
export {
|
package/lib/jsutils/isPromise.js
CHANGED
package/lib/jsutils/keyMap.js
CHANGED
package/lib/jsutils/keyValMap.js
CHANGED
package/lib/jsutils/mapValue.js
CHANGED
package/lib/jsutils/memoize3.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -21,5 +22,7 @@ __export(printPathArray_exports, {
|
|
|
21
22
|
});
|
|
22
23
|
module.exports = __toCommonJS(printPathArray_exports);
|
|
23
24
|
function printPathArray(path) {
|
|
24
|
-
return path.map(
|
|
25
|
+
return path.map(
|
|
26
|
+
(key) => typeof key === "number" ? "[" + key.toString() + "]" : "." + key
|
|
27
|
+
).join("");
|
|
25
28
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// src/jsutils/printPathArray.ts
|
|
2
2
|
function printPathArray(path) {
|
|
3
|
-
return path.map(
|
|
3
|
+
return path.map(
|
|
4
|
+
(key) => typeof key === "number" ? "[" + key.toString() + "]" : "." + key
|
|
5
|
+
).join("");
|
|
4
6
|
}
|
|
5
7
|
export {
|
|
6
8
|
printPathArray
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -77,7 +78,14 @@ class LexicalDistance {
|
|
|
77
78
|
let smallestCell = currentRow[0] = i;
|
|
78
79
|
for (let j = 1; j <= bLength; j++) {
|
|
79
80
|
const cost = a[i - 1] === b[j - 1] ? 0 : 1;
|
|
80
|
-
let currentCell = Math.min(
|
|
81
|
+
let currentCell = Math.min(
|
|
82
|
+
upRow[j] + 1,
|
|
83
|
+
// delete
|
|
84
|
+
currentRow[j - 1] + 1,
|
|
85
|
+
// insert
|
|
86
|
+
upRow[j - 1] + cost
|
|
87
|
+
// substitute
|
|
88
|
+
);
|
|
81
89
|
if (i > 1 && j > 1 && a[i - 1] === b[j - 2] && a[i - 2] === b[j - 1]) {
|
|
82
90
|
const doubleDiagonalCell = rows[(i - 2) % 3][j - 2];
|
|
83
91
|
currentCell = Math.min(currentCell, doubleDiagonalCell + 1);
|
|
@@ -56,7 +56,14 @@ var LexicalDistance = class {
|
|
|
56
56
|
let smallestCell = currentRow[0] = i;
|
|
57
57
|
for (let j = 1; j <= bLength; j++) {
|
|
58
58
|
const cost = a[i - 1] === b[j - 1] ? 0 : 1;
|
|
59
|
-
let currentCell = Math.min(
|
|
59
|
+
let currentCell = Math.min(
|
|
60
|
+
upRow[j] + 1,
|
|
61
|
+
// delete
|
|
62
|
+
currentRow[j - 1] + 1,
|
|
63
|
+
// insert
|
|
64
|
+
upRow[j - 1] + cost
|
|
65
|
+
// substitute
|
|
66
|
+
);
|
|
60
67
|
if (i > 1 && j > 1 && a[i - 1] === b[j - 2] && a[i - 2] === b[j - 1]) {
|
|
61
68
|
const doubleDiagonalCell = rows[(i - 2) % 3][j - 2];
|
|
62
69
|
currentCell = Math.min(currentCell, doubleDiagonalCell + 1);
|
package/lib/jsutils/toObjMap.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -65,7 +66,15 @@ function subscribeWithoutSchema(args) {
|
|
|
65
66
|
subscribeFieldResolver
|
|
66
67
|
} = args;
|
|
67
68
|
const combinedResolvers = (0, import_mergeResolvers.mergeResolvers)(resolvers, schemaResolvers);
|
|
68
|
-
const resultOrStream = yield createSourceEventStream(
|
|
69
|
+
const resultOrStream = yield createSourceEventStream(
|
|
70
|
+
combinedResolvers,
|
|
71
|
+
document,
|
|
72
|
+
rootValue,
|
|
73
|
+
contextValue,
|
|
74
|
+
variableValues,
|
|
75
|
+
operationName,
|
|
76
|
+
subscribeFieldResolver
|
|
77
|
+
);
|
|
69
78
|
if (!(0, import_isAsyncIterable.isAsyncIterable)(resultOrStream)) {
|
|
70
79
|
return resultOrStream;
|
|
71
80
|
}
|
|
@@ -86,13 +95,23 @@ function createSourceEventStream(resolvers, document, rootValue, contextValue, v
|
|
|
86
95
|
return __async(this, null, function* () {
|
|
87
96
|
(0, import_executeWithoutSchema.assertValidExecutionArguments)(document, variableValues);
|
|
88
97
|
try {
|
|
89
|
-
const exeContext = (0, import_executeWithoutSchema.buildExecutionContext)(
|
|
98
|
+
const exeContext = (0, import_executeWithoutSchema.buildExecutionContext)(
|
|
99
|
+
resolvers,
|
|
100
|
+
document,
|
|
101
|
+
rootValue,
|
|
102
|
+
contextValue,
|
|
103
|
+
variableValues,
|
|
104
|
+
operationName,
|
|
105
|
+
fieldResolver
|
|
106
|
+
);
|
|
90
107
|
if (!("resolvers" in exeContext)) {
|
|
91
108
|
return { errors: exeContext };
|
|
92
109
|
}
|
|
93
110
|
const eventStream = yield executeSubscription(exeContext);
|
|
94
111
|
if (!(0, import_isAsyncIterable.isAsyncIterable)(eventStream)) {
|
|
95
|
-
throw new Error(
|
|
112
|
+
throw new Error(
|
|
113
|
+
`Subscription field must return Async Iterable. Received: ${(0, import_inspect.inspect)(eventStream)}.`
|
|
114
|
+
);
|
|
96
115
|
}
|
|
97
116
|
return eventStream;
|
|
98
117
|
} catch (error) {
|
|
@@ -113,7 +132,15 @@ function executeSubscription(exeContext) {
|
|
|
113
132
|
rootValue
|
|
114
133
|
} = exeContext;
|
|
115
134
|
const typeName = (0, import_executeWithoutSchema.getOperationRootTypeName)(operation);
|
|
116
|
-
const fields = (0, import_collectFields.collectFields)(
|
|
135
|
+
const fields = (0, import_collectFields.collectFields)(
|
|
136
|
+
resolvers,
|
|
137
|
+
fragments,
|
|
138
|
+
variableValues,
|
|
139
|
+
typeName,
|
|
140
|
+
operation.selectionSet,
|
|
141
|
+
/* @__PURE__ */ new Map(),
|
|
142
|
+
/* @__PURE__ */ new Set()
|
|
143
|
+
);
|
|
117
144
|
const [responseName, fieldNodes] = [...fields.entries()][0];
|
|
118
145
|
const fieldName = fieldNodes[0].name.value;
|
|
119
146
|
let resolveFn;
|
|
@@ -139,7 +166,15 @@ function executeSubscription(exeContext) {
|
|
|
139
166
|
resolveFn = exeContext.fieldResolver;
|
|
140
167
|
}
|
|
141
168
|
const path = (0, import_Path.addPath)(void 0, responseName, typeName);
|
|
142
|
-
const info = (0, import_executeWithoutSchema.buildResolveInfo)(
|
|
169
|
+
const info = (0, import_executeWithoutSchema.buildResolveInfo)(
|
|
170
|
+
exeContext,
|
|
171
|
+
fieldName,
|
|
172
|
+
fieldNodes,
|
|
173
|
+
typeName,
|
|
174
|
+
returnTypeName,
|
|
175
|
+
returnTypeNode,
|
|
176
|
+
path
|
|
177
|
+
);
|
|
143
178
|
try {
|
|
144
179
|
const args = (0, import_values.getArgumentValues)(resolvers, fieldNodes[0], variableValues);
|
|
145
180
|
const contextValue = exeContext.contextValue;
|
|
@@ -149,7 +184,11 @@ function executeSubscription(exeContext) {
|
|
|
149
184
|
}
|
|
150
185
|
return eventStream;
|
|
151
186
|
} catch (error) {
|
|
152
|
-
throw (0, import_graphql.locatedError)(
|
|
187
|
+
throw (0, import_graphql.locatedError)(
|
|
188
|
+
error,
|
|
189
|
+
fieldNodes,
|
|
190
|
+
(0, import_Path.pathToArray)(path)
|
|
191
|
+
);
|
|
153
192
|
}
|
|
154
193
|
});
|
|
155
194
|
}
|
|
@@ -54,7 +54,15 @@ function subscribeWithoutSchema(args) {
|
|
|
54
54
|
subscribeFieldResolver
|
|
55
55
|
} = args;
|
|
56
56
|
const combinedResolvers = mergeResolvers(resolvers, schemaResolvers);
|
|
57
|
-
const resultOrStream = yield createSourceEventStream(
|
|
57
|
+
const resultOrStream = yield createSourceEventStream(
|
|
58
|
+
combinedResolvers,
|
|
59
|
+
document,
|
|
60
|
+
rootValue,
|
|
61
|
+
contextValue,
|
|
62
|
+
variableValues,
|
|
63
|
+
operationName,
|
|
64
|
+
subscribeFieldResolver
|
|
65
|
+
);
|
|
58
66
|
if (!isAsyncIterable(resultOrStream)) {
|
|
59
67
|
return resultOrStream;
|
|
60
68
|
}
|
|
@@ -75,13 +83,23 @@ function createSourceEventStream(resolvers, document, rootValue, contextValue, v
|
|
|
75
83
|
return __async(this, null, function* () {
|
|
76
84
|
assertValidExecutionArguments(document, variableValues);
|
|
77
85
|
try {
|
|
78
|
-
const exeContext = buildExecutionContext(
|
|
86
|
+
const exeContext = buildExecutionContext(
|
|
87
|
+
resolvers,
|
|
88
|
+
document,
|
|
89
|
+
rootValue,
|
|
90
|
+
contextValue,
|
|
91
|
+
variableValues,
|
|
92
|
+
operationName,
|
|
93
|
+
fieldResolver
|
|
94
|
+
);
|
|
79
95
|
if (!("resolvers" in exeContext)) {
|
|
80
96
|
return { errors: exeContext };
|
|
81
97
|
}
|
|
82
98
|
const eventStream = yield executeSubscription(exeContext);
|
|
83
99
|
if (!isAsyncIterable(eventStream)) {
|
|
84
|
-
throw new Error(
|
|
100
|
+
throw new Error(
|
|
101
|
+
`Subscription field must return Async Iterable. Received: ${inspect(eventStream)}.`
|
|
102
|
+
);
|
|
85
103
|
}
|
|
86
104
|
return eventStream;
|
|
87
105
|
} catch (error) {
|
|
@@ -102,7 +120,15 @@ function executeSubscription(exeContext) {
|
|
|
102
120
|
rootValue
|
|
103
121
|
} = exeContext;
|
|
104
122
|
const typeName = getOperationRootTypeName(operation);
|
|
105
|
-
const fields = collectFields(
|
|
123
|
+
const fields = collectFields(
|
|
124
|
+
resolvers,
|
|
125
|
+
fragments,
|
|
126
|
+
variableValues,
|
|
127
|
+
typeName,
|
|
128
|
+
operation.selectionSet,
|
|
129
|
+
/* @__PURE__ */ new Map(),
|
|
130
|
+
/* @__PURE__ */ new Set()
|
|
131
|
+
);
|
|
106
132
|
const [responseName, fieldNodes] = [...fields.entries()][0];
|
|
107
133
|
const fieldName = fieldNodes[0].name.value;
|
|
108
134
|
let resolveFn;
|
|
@@ -128,7 +154,15 @@ function executeSubscription(exeContext) {
|
|
|
128
154
|
resolveFn = exeContext.fieldResolver;
|
|
129
155
|
}
|
|
130
156
|
const path = addPath(void 0, responseName, typeName);
|
|
131
|
-
const info = buildResolveInfo(
|
|
157
|
+
const info = buildResolveInfo(
|
|
158
|
+
exeContext,
|
|
159
|
+
fieldName,
|
|
160
|
+
fieldNodes,
|
|
161
|
+
typeName,
|
|
162
|
+
returnTypeName,
|
|
163
|
+
returnTypeNode,
|
|
164
|
+
path
|
|
165
|
+
);
|
|
132
166
|
try {
|
|
133
167
|
const args = getArgumentValues(resolvers, fieldNodes[0], variableValues);
|
|
134
168
|
const contextValue = exeContext.contextValue;
|
|
@@ -138,7 +172,11 @@ function executeSubscription(exeContext) {
|
|
|
138
172
|
}
|
|
139
173
|
return eventStream;
|
|
140
174
|
} catch (error) {
|
|
141
|
-
throw locatedError(
|
|
175
|
+
throw locatedError(
|
|
176
|
+
error,
|
|
177
|
+
fieldNodes,
|
|
178
|
+
pathToArray(path)
|
|
179
|
+
);
|
|
142
180
|
}
|
|
143
181
|
});
|
|
144
182
|
}
|
package/lib/types.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { PromiseOrValue } from "./jsutils/PromiseOrValue";
|
|
|
4
4
|
import { DocumentNode, FieldNode, FragmentDefinitionNode, OperationDefinitionNode, TypeNode } from "./ast/TypedAST";
|
|
5
5
|
import { ObjMap } from "./jsutils/ObjMap";
|
|
6
6
|
import { Path } from "./jsutils/Path";
|
|
7
|
+
import { ExecutionHooks } from "./hooks/types";
|
|
7
8
|
export declare type ScalarTypeResolver = GraphQLScalarType;
|
|
8
9
|
export declare type EnumTypeResolver = GraphQLEnumType;
|
|
9
10
|
export declare type FunctionFieldResolver<TSource, TContext, TArgs = Record<string, any>, TReturn = any> = (source: TSource, args: TArgs, context: TContext, info: ResolveInfo) => TReturn;
|
|
@@ -80,6 +81,7 @@ export interface CommonExecutionArgs {
|
|
|
80
81
|
fieldResolver?: Maybe<FunctionFieldResolver<any, any>>;
|
|
81
82
|
typeResolver?: Maybe<TypeResolver<any, any>>;
|
|
82
83
|
subscribeFieldResolver?: Maybe<FunctionFieldResolver<any, any>>;
|
|
84
|
+
fieldExecutionHooks?: ExecutionHooks;
|
|
83
85
|
}
|
|
84
86
|
export declare type ExecutionWithoutSchemaArgs = CommonExecutionArgs & {
|
|
85
87
|
document: DocumentNode;
|
package/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,EAEjB,YAAY,IAAI,mBAAmB,EACpC,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;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