graphql-modules 3.1.2-alpha-20260121022808-7bb9ddc7648e7d8af61e76ecb8853d83281a00ac → 3.1.2-alpha-20260121022900-c870683a9e6642cef593ca5b47c29f8aceac3ad2

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.
Files changed (2) hide show
  1. package/index.js +8 -14
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,16 +1,10 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const schema = require('@graphql-tools/schema');
6
- const graphql = require('graphql');
7
- const async_context = require('#async-context');
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 = async_context__default["default"].getAsyncContext()) === null || _a === void 0 ? void 0 : _a.getApplicationContext()) || appContext);
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 = async_context__default["default"].getAsyncContext()) === null || _a === void 0 ? void 0 : _a.getModuleContext(moduleId)) ||
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 async_context__default["default"].runWithAsyncContext({
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-20260121022808-7bb9ddc7648e7d8af61e76ecb8853d83281a00ac",
3
+ "version": "3.1.2-alpha-20260121022900-c870683a9e6642cef593ca5b47c29f8aceac3ad2",
4
4
  "description": "Create reusable, maintainable, testable and extendable GraphQL modules",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {