@soda-gql/builder 0.2.0 → 0.3.0
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/README.md +1 -2
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -724,7 +724,8 @@ function executeGraphqlSystemModule(modulePath) {
|
|
|
724
724
|
sandbox.global = sandbox;
|
|
725
725
|
sandbox.globalThis = sandbox;
|
|
726
726
|
new node_vm.Script(bundledCode, { filename: modulePath }).runInNewContext(sandbox);
|
|
727
|
-
const
|
|
727
|
+
const finalExports = sandbox.module.exports;
|
|
728
|
+
const exportedGql = finalExports.gql ?? finalExports.default;
|
|
728
729
|
if (exportedGql === undefined) {
|
|
729
730
|
throw new Error(`No 'gql' export found in GraphQL system module: ${modulePath}`);
|
|
730
731
|
}
|