graphql-modules 3.1.2-alpha-20260121022808-7bb9ddc7648e7d8af61e76ecb8853d83281a00ac → 3.1.2-alpha-20260121023351-8b375135d8f119d2c4a3a884a5104928e6cc481d
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 +8 -14
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const wrap = require('@graphql-tools/wrap');
|
|
9
|
-
const ramda = require('ramda');
|
|
10
|
-
|
|
11
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
-
|
|
13
|
-
const async_context__default = /*#__PURE__*/_interopDefaultLegacy(async_context);
|
|
3
|
+
var schema = require('@graphql-tools/schema');
|
|
4
|
+
var graphql = require('graphql');
|
|
5
|
+
var async_context = require('#async-context');
|
|
6
|
+
var wrap = require('@graphql-tools/wrap');
|
|
7
|
+
var ramda = require('ramda');
|
|
14
8
|
|
|
15
9
|
const ERROR_ORIGINAL_ERROR = 'diOriginalError';
|
|
16
10
|
function getOriginalError(error) {
|
|
@@ -889,12 +883,12 @@ function createContextBuilder({ appInjector, modulesMap, appLevelOperationProvid
|
|
|
889
883
|
});
|
|
890
884
|
appInjector.setExecutionContextGetter(function executionContextGetter() {
|
|
891
885
|
var _a;
|
|
892
|
-
return (((_a =
|
|
886
|
+
return (((_a = async_context.getAsyncContext()) === null || _a === void 0 ? void 0 : _a.getApplicationContext()) || appContext);
|
|
893
887
|
});
|
|
894
888
|
function createModuleExecutionContextGetter(moduleId) {
|
|
895
889
|
return function moduleExecutionContextGetter() {
|
|
896
890
|
var _a;
|
|
897
|
-
return (((_a =
|
|
891
|
+
return (((_a = async_context.getAsyncContext()) === null || _a === void 0 ? void 0 : _a.getModuleContext(moduleId)) ||
|
|
898
892
|
getModuleContext(moduleId, context));
|
|
899
893
|
};
|
|
900
894
|
}
|
|
@@ -982,7 +976,7 @@ function createContextBuilder({ appInjector, modulesMap, appLevelOperationProvid
|
|
|
982
976
|
return {
|
|
983
977
|
...env,
|
|
984
978
|
runWithContext(cb) {
|
|
985
|
-
return
|
|
979
|
+
return async_context.runWithAsyncContext({
|
|
986
980
|
getApplicationContext() {
|
|
987
981
|
return appContext;
|
|
988
982
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphql-modules",
|
|
3
|
-
"version": "3.1.2-alpha-
|
|
3
|
+
"version": "3.1.2-alpha-20260121023351-8b375135d8f119d2c4a3a884a5104928e6cc481d",
|
|
4
4
|
"description": "Create reusable, maintainable, testable and extendable GraphQL modules",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|