@arcote.tech/arc-cli 0.7.30 → 0.7.31
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 +9 -0
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -20063,6 +20063,9 @@ class SQLiteReadTransaction {
|
|
|
20063
20063
|
deserializeValue(value, column) {
|
|
20064
20064
|
if (value === null || value === undefined)
|
|
20065
20065
|
return null;
|
|
20066
|
+
if (column.arcType === "boolean") {
|
|
20067
|
+
return Boolean(value);
|
|
20068
|
+
}
|
|
20066
20069
|
switch (column.type.toLowerCase()) {
|
|
20067
20070
|
case "json":
|
|
20068
20071
|
if (typeof value === "string") {
|
|
@@ -20283,6 +20286,7 @@ class SQLiteAdapter {
|
|
|
20283
20286
|
const columns = agnosticSchema.columns.map((columnInfo) => ({
|
|
20284
20287
|
name: columnInfo.name,
|
|
20285
20288
|
type: this.mapType(columnInfo.type, columnInfo.storeData),
|
|
20289
|
+
arcType: columnInfo.type,
|
|
20286
20290
|
constraints: this.buildConstraints(columnInfo.storeData),
|
|
20287
20291
|
isNullable: columnInfo.storeData?.isNullable || false,
|
|
20288
20292
|
defaultValue: columnInfo.defaultValue,
|
|
@@ -20299,6 +20303,7 @@ class SQLiteAdapter {
|
|
|
20299
20303
|
columns: columns.map((col) => ({
|
|
20300
20304
|
name: col.name,
|
|
20301
20305
|
type: col.type,
|
|
20306
|
+
arcType: col.arcType,
|
|
20302
20307
|
isOptional: col.isNullable,
|
|
20303
20308
|
default: col.defaultValue
|
|
20304
20309
|
}))
|
|
@@ -20362,6 +20367,7 @@ class SQLiteAdapter {
|
|
|
20362
20367
|
columns: allColumns.map((col) => ({
|
|
20363
20368
|
name: col.name,
|
|
20364
20369
|
type: this.mapType(col.type, col.storeData),
|
|
20370
|
+
arcType: col.type,
|
|
20365
20371
|
isOptional: col.storeData?.isNullable || false,
|
|
20366
20372
|
default: col.defaultValue
|
|
20367
20373
|
}))
|
|
@@ -22581,6 +22587,9 @@ var init_dist2 = __esm(() => {
|
|
|
22581
22587
|
serializeValue(value, column) {
|
|
22582
22588
|
if (value === null || value === undefined)
|
|
22583
22589
|
return null;
|
|
22590
|
+
if (column.arcType === "boolean") {
|
|
22591
|
+
return value ? 1 : 0;
|
|
22592
|
+
}
|
|
22584
22593
|
switch (column.type.toLowerCase()) {
|
|
22585
22594
|
case "timestamp":
|
|
22586
22595
|
case "datetime":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcote.tech/arc-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.31",
|
|
4
4
|
"description": "CLI tool for Arc framework",
|
|
5
5
|
"module": "index.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
"build": "bun build --target=bun ./src/index.ts --outdir=dist --external @arcote.tech/arc --external @arcote.tech/arc-ds --external @arcote.tech/arc-react --external @arcote.tech/platform --external @arcote.tech/arc-map --external '@opentelemetry/*' && chmod +x dist/index.js"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@arcote.tech/arc": "^0.7.
|
|
16
|
-
"@arcote.tech/arc-ds": "^0.7.
|
|
17
|
-
"@arcote.tech/arc-react": "^0.7.
|
|
18
|
-
"@arcote.tech/arc-host": "^0.7.
|
|
19
|
-
"@arcote.tech/arc-adapter-db-sqlite": "^0.7.
|
|
20
|
-
"@arcote.tech/arc-adapter-db-postgres": "^0.7.
|
|
21
|
-
"@arcote.tech/arc-otel": "^0.7.
|
|
15
|
+
"@arcote.tech/arc": "^0.7.31",
|
|
16
|
+
"@arcote.tech/arc-ds": "^0.7.31",
|
|
17
|
+
"@arcote.tech/arc-react": "^0.7.31",
|
|
18
|
+
"@arcote.tech/arc-host": "^0.7.31",
|
|
19
|
+
"@arcote.tech/arc-adapter-db-sqlite": "^0.7.31",
|
|
20
|
+
"@arcote.tech/arc-adapter-db-postgres": "^0.7.31",
|
|
21
|
+
"@arcote.tech/arc-otel": "^0.7.31",
|
|
22
22
|
"@opentelemetry/api": "^1.9.0",
|
|
23
23
|
"@opentelemetry/api-logs": "^0.57.0",
|
|
24
24
|
"@opentelemetry/core": "^1.30.0",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@opentelemetry/sdk-trace-base": "^1.30.0",
|
|
32
32
|
"@opentelemetry/sdk-trace-node": "^1.30.0",
|
|
33
33
|
"@opentelemetry/semantic-conventions": "^1.27.0",
|
|
34
|
-
"@arcote.tech/platform": "^0.7.
|
|
35
|
-
"@arcote.tech/arc-map": "^0.7.
|
|
34
|
+
"@arcote.tech/platform": "^0.7.31",
|
|
35
|
+
"@arcote.tech/arc-map": "^0.7.31",
|
|
36
36
|
"@clack/prompts": "^0.9.0",
|
|
37
37
|
"commander": "^11.1.0",
|
|
38
38
|
"chokidar": "^3.5.3",
|