grafast 0.1.1-beta.15 → 0.1.1-beta.17
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/dist/engine/OperationPlan.js +1 -1
- package/dist/envelop.js +5 -4
- package/dist/index.d.ts +2 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
|
@@ -1018,7 +1018,7 @@ class OperationPlan {
|
|
|
1018
1018
|
try {
|
|
1019
1019
|
/* TODO: this $oldStep / $step dance turned out to be necessary
|
|
1020
1020
|
* because `$step` was being replaced in the following query against
|
|
1021
|
-
* the
|
|
1021
|
+
* the graphilecrystaltest `polymorpic` schema; but I'm not sure this is the
|
|
1022
1022
|
* right behavior - shouldn't deduplication have been temporarily
|
|
1023
1023
|
* disabled during this?
|
|
1024
1024
|
*
|
package/dist/envelop.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useMoreDetailedErrors = exports.useGrafast = void 0;
|
|
4
|
+
const graphile_config_1 = require("graphile-config");
|
|
4
5
|
const execute_js_1 = require("./execute.js");
|
|
5
6
|
const stripAnsi_js_1 = require("./stripAnsi.js");
|
|
6
7
|
const subscribe_js_1 = require("./subscribe.js");
|
|
@@ -33,9 +34,9 @@ const useGrafast = (options = {}) => {
|
|
|
33
34
|
async onExecute(opts) {
|
|
34
35
|
const explainHeaders = opts.args.contextValue?.req?.headers["x-graphql-explain"];
|
|
35
36
|
const explain = processExplain(explainAllowed, explainHeaders);
|
|
36
|
-
opts.setExecuteFn((args) => (0, execute_js_1.execute)(args, {
|
|
37
|
+
opts.setExecuteFn((args) => (0, execute_js_1.execute)(args, (0, graphile_config_1.resolvePreset)({
|
|
37
38
|
grafast: { explain },
|
|
38
|
-
}));
|
|
39
|
+
})));
|
|
39
40
|
},
|
|
40
41
|
async onSubscribe(opts) {
|
|
41
42
|
const ctx = opts.args.contextValue;
|
|
@@ -43,9 +44,9 @@ const useGrafast = (options = {}) => {
|
|
|
43
44
|
ctx?.request?.headers ||
|
|
44
45
|
ctx?.connectionParams)?.["x-graphql-explain"];
|
|
45
46
|
const explain = processExplain(explainAllowed, explainHeaders);
|
|
46
|
-
opts.setSubscribeFn(async (args) => (0, subscribe_js_1.subscribe)(args, {
|
|
47
|
+
opts.setSubscribeFn(async (args) => (0, subscribe_js_1.subscribe)(args, (0, graphile_config_1.resolvePreset)({
|
|
47
48
|
grafast: { explain },
|
|
48
|
-
}));
|
|
49
|
+
})));
|
|
49
50
|
},
|
|
50
51
|
};
|
|
51
52
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./thereCanBeOnlyOne.js";
|
|
2
2
|
import type LRU from "@graphile/lru";
|
|
3
|
-
import type {
|
|
3
|
+
import type { MiddlewareHandlers } from "graphile-config";
|
|
4
4
|
import type { DocumentNode, GraphQLError, OperationDefinitionNode } from "graphql";
|
|
5
5
|
import type { DataFromObjectSteps } from "./steps/object.js";
|
|
6
6
|
type PromiseOrValue<T> = T | Promise<T>;
|
|
@@ -160,9 +160,7 @@ declare global {
|
|
|
160
160
|
}
|
|
161
161
|
interface Plugin {
|
|
162
162
|
grafast?: {
|
|
163
|
-
middleware?:
|
|
164
|
-
[key in keyof GrafastMiddleware]?: CallbackOrDescriptor<GrafastMiddleware[key] extends (...args: infer UArgs) => infer UResult ? (next: MiddlewareNext<Awaited<UResult>>, ...args: UArgs) => UResult : never>;
|
|
165
|
-
};
|
|
163
|
+
middleware?: MiddlewareHandlers<GrafastMiddleware>;
|
|
166
164
|
};
|
|
167
165
|
}
|
|
168
166
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "0.1.1-beta.
|
|
1
|
+
export declare const version = "0.1.1-beta.17";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "grafast",
|
|
3
|
-
"version": "0.1.1-beta.
|
|
3
|
+
"version": "0.1.1-beta.17",
|
|
4
4
|
"description": "Cutting edge GraphQL planning and execution engine",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"chalk": "^4.1.2",
|
|
60
60
|
"debug": "^4.3.4",
|
|
61
61
|
"eventemitter3": "^5.0.1",
|
|
62
|
-
"graphile-config": "^0.0.1-beta.
|
|
62
|
+
"graphile-config": "^0.0.1-beta.12",
|
|
63
63
|
"graphql": "^16.1.0-experimental-stream-defer.6",
|
|
64
64
|
"iterall": "^1.3.0",
|
|
65
65
|
"tamedevil": "^0.0.0-beta.7",
|