@envelop/core 1.8.0-alpha-0107392.0 → 1.8.0-alpha-69105b3.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/index.js +6 -6
- package/index.mjs +6 -6
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -477,23 +477,23 @@ function createEnvelopOrchestrator(plugins) {
|
|
|
477
477
|
const afterCalls = [];
|
|
478
478
|
try {
|
|
479
479
|
let context = orchestratorCtx ? { ...initialContext, ...orchestratorCtx } : initialContext;
|
|
480
|
-
let
|
|
480
|
+
let isBreakingContextBuilding = false;
|
|
481
481
|
for (const onContext of beforeCallbacks.context) {
|
|
482
482
|
const afterHookResult = await onContext({
|
|
483
483
|
context,
|
|
484
484
|
extendContext: extension => {
|
|
485
485
|
context = { ...context, ...extension };
|
|
486
486
|
},
|
|
487
|
-
|
|
488
|
-
|
|
487
|
+
breakContextBuilding: () => {
|
|
488
|
+
isBreakingContextBuilding = true;
|
|
489
489
|
},
|
|
490
490
|
});
|
|
491
|
-
if (shortCircuitContext !== undefined) {
|
|
492
|
-
break;
|
|
493
|
-
}
|
|
494
491
|
if (typeof afterHookResult === 'function') {
|
|
495
492
|
afterCalls.push(afterHookResult);
|
|
496
493
|
}
|
|
494
|
+
if (isBreakingContextBuilding === true) {
|
|
495
|
+
break;
|
|
496
|
+
}
|
|
497
497
|
}
|
|
498
498
|
for (const afterCb of afterCalls) {
|
|
499
499
|
afterCb({
|
package/index.mjs
CHANGED
|
@@ -473,23 +473,23 @@ function createEnvelopOrchestrator(plugins) {
|
|
|
473
473
|
const afterCalls = [];
|
|
474
474
|
try {
|
|
475
475
|
let context = orchestratorCtx ? { ...initialContext, ...orchestratorCtx } : initialContext;
|
|
476
|
-
let
|
|
476
|
+
let isBreakingContextBuilding = false;
|
|
477
477
|
for (const onContext of beforeCallbacks.context) {
|
|
478
478
|
const afterHookResult = await onContext({
|
|
479
479
|
context,
|
|
480
480
|
extendContext: extension => {
|
|
481
481
|
context = { ...context, ...extension };
|
|
482
482
|
},
|
|
483
|
-
|
|
484
|
-
|
|
483
|
+
breakContextBuilding: () => {
|
|
484
|
+
isBreakingContextBuilding = true;
|
|
485
485
|
},
|
|
486
486
|
});
|
|
487
|
-
if (shortCircuitContext !== undefined) {
|
|
488
|
-
break;
|
|
489
|
-
}
|
|
490
487
|
if (typeof afterHookResult === 'function') {
|
|
491
488
|
afterCalls.push(afterHookResult);
|
|
492
489
|
}
|
|
490
|
+
if (isBreakingContextBuilding === true) {
|
|
491
|
+
break;
|
|
492
|
+
}
|
|
493
493
|
}
|
|
494
494
|
for (const afterCb of afterCalls) {
|
|
495
495
|
afterCb({
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envelop/core",
|
|
3
|
-
"version": "1.8.0-alpha-
|
|
3
|
+
"version": "1.8.0-alpha-69105b3.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@envelop/types": "1.6.0-alpha-
|
|
9
|
+
"@envelop/types": "1.6.0-alpha-69105b3.0"
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|