durable-db 0.1.4 → 0.1.6
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/dist/vite/durableDb.js +6 -1
- package/package.json +1 -1
package/dist/vite/durableDb.js
CHANGED
|
@@ -600,7 +600,7 @@ function buildStubBodyStatements(config) {
|
|
|
600
600
|
t.identifier("instanceKey")
|
|
601
601
|
]))
|
|
602
602
|
];
|
|
603
|
-
return [...commonStatements, t.returnStatement(buildRpcCall(action))];
|
|
603
|
+
return [...commonStatements, t.returnStatement(t.callExpression(t.memberExpression(buildRpcCall(action), t.identifier("then")), [t.identifier("structuredClone")]))];
|
|
604
604
|
}
|
|
605
605
|
/**
|
|
606
606
|
* Rewrite `export const x = action({...})` declarations in the given program
|
|
@@ -996,6 +996,11 @@ function durableDb(options = {}) {
|
|
|
996
996
|
return { code: generateDurableObjectsModule(Array.from(state.databases.values()), state.options.registryImport, isDev) };
|
|
997
997
|
},
|
|
998
998
|
async transform(code, id) {
|
|
999
|
+
if (/[\\/]drizzle-orm[\\/]/.test(id)) return {
|
|
1000
|
+
code,
|
|
1001
|
+
map: null,
|
|
1002
|
+
moduleSideEffects: true
|
|
1003
|
+
};
|
|
999
1004
|
if (id.startsWith("\0") || id.includes("node_modules")) return null;
|
|
1000
1005
|
if (!/\.tsx?$/.test(id)) return null;
|
|
1001
1006
|
await state.initialize();
|