@graphql-tools/module-loader 7.2.17 → 7.2.18-alpha-20230413103336-666af706
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/cjs/index.js +1 -2
- package/package.json +2 -2
package/cjs/index.js
CHANGED
|
@@ -133,9 +133,8 @@ class ModuleLoader {
|
|
|
133
133
|
}
|
|
134
134
|
// Sync and Async
|
|
135
135
|
async importModule(pointer) {
|
|
136
|
-
var _a;
|
|
137
136
|
const { modulePath, exportName } = extractData(pointer);
|
|
138
|
-
const imported = await
|
|
137
|
+
const imported = await Promise.resolve(`${modulePath}`).then(s => __importStar(require(s)));
|
|
139
138
|
return this.extractFromModule(imported, modulePath, exportName || 'default');
|
|
140
139
|
}
|
|
141
140
|
importModuleSync(pointer) {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/module-loader",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.18-alpha-20230413103336-666af706",
|
|
4
4
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@graphql-tools/utils": "9.2.1",
|
|
10
|
+
"@graphql-tools/utils": "^9.2.1",
|
|
11
11
|
"tslib": "^2.4.0"
|
|
12
12
|
},
|
|
13
13
|
"repository": {
|