graphql-modules 3.1.2-alpha-20260121024633-8af430e29a180a1d00c50c4bf74d342b3518267c → 3.1.2-alpha-20260121030237-31e8f46a5deb6728ca48bea877f008050c968960
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.
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// use async hooks
|
|
2
|
+
// TODO: typecheck
|
|
3
|
+
|
|
4
|
+
const hooks = require('async_hooks');
|
|
5
|
+
|
|
6
|
+
const alc = new hooks.AsyncLocalStorage();
|
|
7
|
+
|
|
8
|
+
// we dont use named exports (exports.getAsyncContext) because node with typescript is weird
|
|
9
|
+
|
|
10
|
+
module.exports = {
|
|
11
|
+
getAsyncContext: () => alc.getStore(),
|
|
12
|
+
runWithAsyncContext: (asyncContext, callback, ...args) =>
|
|
13
|
+
alc.run(asyncContext, callback, ...args),
|
|
14
|
+
};
|
package/cjs/package.json
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// use async hooks
|
|
2
|
+
// TODO: typecheck
|
|
3
|
+
|
|
4
|
+
const hooks = require('async_hooks');
|
|
5
|
+
|
|
6
|
+
const alc = new hooks.AsyncLocalStorage();
|
|
7
|
+
|
|
8
|
+
// we dont use named exports (exports.getAsyncContext) because node with typescript is weird
|
|
9
|
+
|
|
10
|
+
module.exports = {
|
|
11
|
+
getAsyncContext: () => alc.getStore(),
|
|
12
|
+
runWithAsyncContext: (asyncContext, callback, ...args) =>
|
|
13
|
+
alc.run(asyncContext, callback, ...args),
|
|
14
|
+
};
|
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-20260121030237-31e8f46a5deb6728ca48bea877f008050c968960",
|
|
4
4
|
"description": "Create reusable, maintainable, testable and extendable GraphQL modules",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@graphql-tools/schema": "^10.0.0",
|
|
11
|
-
"@graphql-tools/wrap": "^
|
|
11
|
+
"@graphql-tools/wrap": "^11.0.0",
|
|
12
12
|
"@graphql-typed-document-node/core": "^3.1.0",
|
|
13
|
-
"ramda": "^0.
|
|
13
|
+
"ramda": "^0.32.0"
|
|
14
14
|
},
|
|
15
15
|
"keywords": [
|
|
16
16
|
"graphql",
|