export-runtime 0.0.15 → 0.0.17
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/bin/generate-types.mjs +1 -0
- package/handler.js +2 -3
- package/package.json +1 -2
package/bin/generate-types.mjs
CHANGED
package/handler.js
CHANGED
|
@@ -96,9 +96,8 @@ export const createHandler = (moduleMap, generatedTypes, minifiedCore, coreId, m
|
|
|
96
96
|
const namedExports = keys
|
|
97
97
|
.map((key) => `export const ${key} = createProxy([${JSON.stringify(route)}, ${JSON.stringify(key)}]);`)
|
|
98
98
|
.join("\n");
|
|
99
|
-
//
|
|
100
|
-
|
|
101
|
-
return `import { createProxy } from ".${cpath}";\n${namedExports}${defaultExport}`;
|
|
99
|
+
// Always include default export (client) - it will be null if no bindings configured
|
|
100
|
+
return `import { createProxy } from ".${cpath}";\nexport { default } from ".${cpath}";\n${namedExports}`;
|
|
102
101
|
};
|
|
103
102
|
|
|
104
103
|
const buildExportModule = (cpath, route, name) =>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "export-runtime",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "Cloudflare Workers ESM Export Framework Runtime",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
"bin/auth.mjs"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"better-auth": "^1.2.0",
|
|
40
39
|
"devalue": "^5.1.1",
|
|
41
40
|
"oxc-minify": "^0.121.0",
|
|
42
41
|
"oxc-parser": "^0.121.0"
|