graphql-modules 2.4.1-alpha-20250121155817-661de3ec35f3be380b3880b04c38bb1bd8b17e15 → 2.4.1-alpha-20250121160438-0491f4c48e11d9b869a28a3d5dc1f2c339cfdb5c

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 (3) hide show
  1. package/index.js +5 -0
  2. package/index.mjs +3 -0
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -2,8 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
+
5
7
  const schema = require('@graphql-tools/schema');
6
8
  const graphql = require('graphql');
9
+ const module$1 = _interopDefault(require('module'));
7
10
  const wrap = require('@graphql-tools/wrap');
8
11
  const ramda = require('ramda');
9
12
 
@@ -839,6 +842,8 @@ function duplicatedGlobalTokenError(provider, modules) {
839
842
 
840
843
  let alc;
841
844
  if (typeof process !== 'undefined') {
845
+ // probably nodejs runtime
846
+ const require = module$1.createRequire('file:///' /** path is not relevant since we're only loading a builtin */);
842
847
  const hooks = require('async_hooks');
843
848
  alc = new hooks.AsyncLocalStorage();
844
849
  }
package/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { makeExecutableSchema } from '@graphql-tools/schema';
2
2
  import { GraphQLSchema, execute as execute$1, subscribe, visit, Kind, GraphQLScalarType, concatAST, defaultFieldResolver, parse } from 'graphql';
3
+ import module$1 from 'module';
3
4
  import { wrapSchema } from '@graphql-tools/wrap';
4
5
  import { mergeDeepWith } from 'ramda';
5
6
 
@@ -836,6 +837,8 @@ function duplicatedGlobalTokenError(provider, modules) {
836
837
 
837
838
  let alc;
838
839
  if (typeof process !== 'undefined') {
840
+ // probably nodejs runtime
841
+ const require = module$1.createRequire('file:///' /** path is not relevant since we're only loading a builtin */);
839
842
  const hooks = require('async_hooks');
840
843
  alc = new hooks.AsyncLocalStorage();
841
844
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphql-modules",
3
- "version": "2.4.1-alpha-20250121155817-661de3ec35f3be380b3880b04c38bb1bd8b17e15",
3
+ "version": "2.4.1-alpha-20250121160438-0491f4c48e11d9b869a28a3d5dc1f2c339cfdb5c",
4
4
  "description": "Create reusable, maintainable, testable and extendable GraphQL modules",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {