flowdular 0.2.2 → 0.2.3
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/distribution.js +1 -1
- package/dist/index.js +12 -12
- package/package.json +2 -2
package/dist/distribution.js
CHANGED
|
@@ -3405,7 +3405,7 @@ import { dirname as dirname6, join as join6, relative as relative5 } from "node:
|
|
|
3405
3405
|
import { createRequire } from "node:module";
|
|
3406
3406
|
import { readFile as readFile5 } from "node:fs/promises";
|
|
3407
3407
|
import { dirname as dirname4, join as join3 } from "node:path";
|
|
3408
|
-
var SDK_VERSION = "0.2.
|
|
3408
|
+
var SDK_VERSION = "0.2.3";
|
|
3409
3409
|
function npmPackage(specifier) {
|
|
3410
3410
|
return specifier.startsWith("@") ? specifier.split("/").slice(0, 2).join("/") : specifier.split("/")[0];
|
|
3411
3411
|
}
|
package/dist/index.js
CHANGED
|
@@ -3563,7 +3563,7 @@ import { dirname as dirname6, join as join5, relative as relative5 } from "node:
|
|
|
3563
3563
|
import { createRequire } from "node:module";
|
|
3564
3564
|
import { readFile as readFile4 } from "node:fs/promises";
|
|
3565
3565
|
import { dirname as dirname4, join as join2 } from "node:path";
|
|
3566
|
-
var SDK_VERSION = "0.2.
|
|
3566
|
+
var SDK_VERSION = "0.2.3";
|
|
3567
3567
|
var LIBRARIES = /* @__PURE__ */ new Set([
|
|
3568
3568
|
"ai-provider",
|
|
3569
3569
|
"cli-protocol",
|
|
@@ -6038,6 +6038,7 @@ function capability(id) {
|
|
|
6038
6038
|
|
|
6039
6039
|
// ../database-pglite/src/driver.ts
|
|
6040
6040
|
import { PGlite } from "@electric-sql/pglite";
|
|
6041
|
+
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
6041
6042
|
var ROLE = /^[a-z_][a-z0-9_]{0,62}$/;
|
|
6042
6043
|
var INT8_OID = 20;
|
|
6043
6044
|
var SERVER_PARSERS = Object.freeze({ [INT8_OID]: (value) => value });
|
|
@@ -6077,8 +6078,7 @@ function createPgliteCluster(options = {}) {
|
|
|
6077
6078
|
const database = async () => {
|
|
6078
6079
|
databasePromise ??= (async () => {
|
|
6079
6080
|
if (options.dataDirectory) {
|
|
6080
|
-
|
|
6081
|
-
await mkdir6(options.dataDirectory, { recursive: true, mode: 448 });
|
|
6081
|
+
await mkdir2(options.dataDirectory, { recursive: true, mode: 448 });
|
|
6082
6082
|
}
|
|
6083
6083
|
const created = options.dataDirectory ? await PGlite.create({
|
|
6084
6084
|
dataDir: options.dataDirectory,
|
|
@@ -6237,7 +6237,7 @@ import { readFile as readFile8 } from "node:fs/promises";
|
|
|
6237
6237
|
import { dirname as dirname7 } from "node:path";
|
|
6238
6238
|
|
|
6239
6239
|
// src/migration-scaffold.ts
|
|
6240
|
-
import { mkdir as
|
|
6240
|
+
import { mkdir as mkdir3, readdir as readdir4, writeFile as writeFile2 } from "node:fs/promises";
|
|
6241
6241
|
import { join as join6 } from "node:path";
|
|
6242
6242
|
var NAME = /^[a-z][a-z0-9_]{2,48}$/;
|
|
6243
6243
|
function nextNumber(existing) {
|
|
@@ -6288,7 +6288,7 @@ DROP TABLE IF EXISTS ${table};
|
|
|
6288
6288
|
}
|
|
6289
6289
|
];
|
|
6290
6290
|
if (apply) {
|
|
6291
|
-
await
|
|
6291
|
+
await mkdir3(directory, { recursive: true });
|
|
6292
6292
|
for (const file of files) {
|
|
6293
6293
|
await writeFile2(file.path, file.body, { flag: "wx" });
|
|
6294
6294
|
}
|
|
@@ -6336,7 +6336,7 @@ import { join as join9, relative as relative6 } from "node:path";
|
|
|
6336
6336
|
|
|
6337
6337
|
// src/module-sync.ts
|
|
6338
6338
|
import { spawnSync } from "node:child_process";
|
|
6339
|
-
import { access as access3, mkdir as
|
|
6339
|
+
import { access as access3, mkdir as mkdir4, readFile as readFile9, rm as rm2, writeFile as writeFile3 } from "node:fs/promises";
|
|
6340
6340
|
import { dirname as dirname8, join as join8 } from "node:path";
|
|
6341
6341
|
|
|
6342
6342
|
// src/format.ts
|
|
@@ -6553,7 +6553,7 @@ async function restoreSnapshots(snapshots) {
|
|
|
6553
6553
|
await rm2(snapshot.path, { force: true });
|
|
6554
6554
|
continue;
|
|
6555
6555
|
}
|
|
6556
|
-
await
|
|
6556
|
+
await mkdir4(dirname8(snapshot.path), { recursive: true });
|
|
6557
6557
|
await writeFile3(snapshot.path, snapshot.content);
|
|
6558
6558
|
}
|
|
6559
6559
|
}
|
|
@@ -6600,7 +6600,7 @@ async function syncPlatformModules(workspace, apply, enabledOverride) {
|
|
|
6600
6600
|
}
|
|
6601
6601
|
const changed = current !== target.content;
|
|
6602
6602
|
if (apply && changed) {
|
|
6603
|
-
await
|
|
6603
|
+
await mkdir4(dirname8(absolute), { recursive: true });
|
|
6604
6604
|
await writeFile3(absolute, target.content);
|
|
6605
6605
|
}
|
|
6606
6606
|
files.push({ path: target.path, changed });
|
|
@@ -7456,7 +7456,7 @@ async function migrationVerify(workspace) {
|
|
|
7456
7456
|
// src/module-scaffold.ts
|
|
7457
7457
|
import {
|
|
7458
7458
|
access as access5,
|
|
7459
|
-
mkdir as
|
|
7459
|
+
mkdir as mkdir5,
|
|
7460
7460
|
readdir as readdir6,
|
|
7461
7461
|
readFile as readFile14,
|
|
7462
7462
|
realpath as realpath2,
|
|
@@ -8832,7 +8832,7 @@ async function writeScaffold(moduleDirectory, files, target) {
|
|
|
8832
8832
|
for (const [path, source] of files) {
|
|
8833
8833
|
if (target.present.has(path)) continue;
|
|
8834
8834
|
const absolute = join12(moduleDirectory, path);
|
|
8835
|
-
const created = await
|
|
8835
|
+
const created = await mkdir5(dirname12(absolute), { recursive: true });
|
|
8836
8836
|
if (created) createdDirectories.push(created);
|
|
8837
8837
|
await writeFile4(absolute, source, { encoding: "utf8", flag: "wx" });
|
|
8838
8838
|
written.push(absolute);
|
|
@@ -8929,7 +8929,7 @@ import {
|
|
|
8929
8929
|
chmod,
|
|
8930
8930
|
copyFile,
|
|
8931
8931
|
lstat as lstat3,
|
|
8932
|
-
mkdir as
|
|
8932
|
+
mkdir as mkdir6,
|
|
8933
8933
|
readFile as readFile15,
|
|
8934
8934
|
rm as rm4,
|
|
8935
8935
|
stat as stat3
|
|
@@ -9046,7 +9046,7 @@ async function digest(path) {
|
|
|
9046
9046
|
}
|
|
9047
9047
|
async function ensurePrivateDirectory(path) {
|
|
9048
9048
|
try {
|
|
9049
|
-
await
|
|
9049
|
+
await mkdir6(path, { mode: 448 });
|
|
9050
9050
|
} catch (error) {
|
|
9051
9051
|
if (!(error instanceof Error && "code" in error && error.code === "EEXIST"))
|
|
9052
9052
|
throw error;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowdular",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"flowdular": "./dist/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"ajv": "8.20.0",
|
|
17
17
|
"pg": "8.23.0",
|
|
18
18
|
"yaml": "2.9.0",
|
|
19
|
-
"@flowdular/sdk": "0.2.
|
|
19
|
+
"@flowdular/sdk": "0.2.3"
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"repository": {
|