@ponraaj/dimple-sdk 0.0.0-alpha.5 → 0.0.0-alpha.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/index.js +11 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -508,7 +508,10 @@ var consoleSink = (pretty) => {
|
|
|
508
508
|
};
|
|
509
509
|
};
|
|
510
510
|
var fileSink = (path) => Effect5.tryPromise(async () => {
|
|
511
|
-
const
|
|
511
|
+
const fs = await import("node:fs");
|
|
512
|
+
const { dirname } = await import("node:path");
|
|
513
|
+
fs.mkdirSync(dirname(path), { recursive: true });
|
|
514
|
+
const { openSync, closeSync, fsyncSync, writeSync } = fs;
|
|
512
515
|
const fd = openSync(path, "a");
|
|
513
516
|
let disposed = false;
|
|
514
517
|
const flush = () => {
|
|
@@ -2971,17 +2974,13 @@ var workflowTagFor = (workflows, store, executionId) => Effect17.gen(function* (
|
|
|
2971
2974
|
return;
|
|
2972
2975
|
return workflows.get(record.workflowTag)?.workflow;
|
|
2973
2976
|
});
|
|
2974
|
-
var ensureDbDir = (url) => {
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
};
|
|
2981
|
-
var libsqlStack = (options) => {
|
|
2982
|
-
ensureDbDir(options.url);
|
|
2983
|
-
return Layer6.mergeAll(PersistenceNamespace2.layerSql, PersistedQueue2.layer.pipe(Layer6.provide(storeSqliteLayer))).pipe(Layer6.provide(exports_LibsqlClient.layer(options)));
|
|
2984
|
-
};
|
|
2977
|
+
var ensureDbDir = (url) => url.startsWith("file:") ? import("node:fs").then((fs) => import("node:path").then(({ dirname }) => {
|
|
2978
|
+
fs.mkdirSync(dirname(url.slice("file:".length)), { recursive: true });
|
|
2979
|
+
})) : Promise.resolve();
|
|
2980
|
+
var libsqlStack = (options) => Layer6.unwrap(Effect17.tryPromise({
|
|
2981
|
+
try: () => ensureDbDir(options.url),
|
|
2982
|
+
catch: (cause) => new Error(String(cause))
|
|
2983
|
+
}).pipe(Effect17.catch(() => Effect17.void), Effect17.map(() => Layer6.mergeAll(PersistenceNamespace2.layerSql, PersistedQueue2.layer.pipe(Layer6.provide(storeSqliteLayer))).pipe(Layer6.provide(exports_LibsqlClient.layer(options))))));
|
|
2985
2984
|
var layerDurableLibsql = (options) => layerDurable.pipe(Layer6.provide(libsqlStack(options)));
|
|
2986
2985
|
|
|
2987
2986
|
// ../workflow/src/runtime.ts
|