@hasna/cloud 0.1.8 → 0.1.9
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/cli/index.js +10 -0
- package/dist/index.js +10 -0
- package/dist/mcp/index.js +10 -0
- package/dist/sync.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/cli/index.js
CHANGED
|
@@ -11452,6 +11452,11 @@ async function syncTransfer(source, target, options, _direction) {
|
|
|
11452
11452
|
primaryKey: pkOption
|
|
11453
11453
|
} = options;
|
|
11454
11454
|
const results = [];
|
|
11455
|
+
if (!isAsyncAdapter(target)) {
|
|
11456
|
+
try {
|
|
11457
|
+
target.run("PRAGMA foreign_keys = OFF");
|
|
11458
|
+
} catch {}
|
|
11459
|
+
}
|
|
11455
11460
|
for (let i = 0;i < tables.length; i++) {
|
|
11456
11461
|
const table = tables[i];
|
|
11457
11462
|
const result = {
|
|
@@ -11569,6 +11574,11 @@ async function syncTransfer(source, target, options, _direction) {
|
|
|
11569
11574
|
}
|
|
11570
11575
|
results.push(result);
|
|
11571
11576
|
}
|
|
11577
|
+
if (!isAsyncAdapter(target)) {
|
|
11578
|
+
try {
|
|
11579
|
+
target.run("PRAGMA foreign_keys = ON");
|
|
11580
|
+
} catch {}
|
|
11581
|
+
}
|
|
11572
11582
|
return results;
|
|
11573
11583
|
}
|
|
11574
11584
|
async function batchUpsertPg(target, table, columns, updateCols, primaryKeys, batch) {
|
package/dist/index.js
CHANGED
|
@@ -9444,6 +9444,11 @@ async function syncTransfer(source, target, options, _direction) {
|
|
|
9444
9444
|
primaryKey: pkOption
|
|
9445
9445
|
} = options;
|
|
9446
9446
|
const results = [];
|
|
9447
|
+
if (!isAsyncAdapter(target)) {
|
|
9448
|
+
try {
|
|
9449
|
+
target.run("PRAGMA foreign_keys = OFF");
|
|
9450
|
+
} catch {}
|
|
9451
|
+
}
|
|
9447
9452
|
for (let i = 0;i < tables.length; i++) {
|
|
9448
9453
|
const table = tables[i];
|
|
9449
9454
|
const result = {
|
|
@@ -9561,6 +9566,11 @@ async function syncTransfer(source, target, options, _direction) {
|
|
|
9561
9566
|
}
|
|
9562
9567
|
results.push(result);
|
|
9563
9568
|
}
|
|
9569
|
+
if (!isAsyncAdapter(target)) {
|
|
9570
|
+
try {
|
|
9571
|
+
target.run("PRAGMA foreign_keys = ON");
|
|
9572
|
+
} catch {}
|
|
9573
|
+
}
|
|
9564
9574
|
return results;
|
|
9565
9575
|
}
|
|
9566
9576
|
async function batchUpsertPg(target, table, columns, updateCols, primaryKeys, batch) {
|
package/dist/mcp/index.js
CHANGED
|
@@ -24791,6 +24791,11 @@ async function syncTransfer(source, target, options, _direction) {
|
|
|
24791
24791
|
primaryKey: pkOption
|
|
24792
24792
|
} = options;
|
|
24793
24793
|
const results = [];
|
|
24794
|
+
if (!isAsyncAdapter(target)) {
|
|
24795
|
+
try {
|
|
24796
|
+
target.run("PRAGMA foreign_keys = OFF");
|
|
24797
|
+
} catch {}
|
|
24798
|
+
}
|
|
24794
24799
|
for (let i = 0;i < tables.length; i++) {
|
|
24795
24800
|
const table = tables[i];
|
|
24796
24801
|
const result = {
|
|
@@ -24908,6 +24913,11 @@ async function syncTransfer(source, target, options, _direction) {
|
|
|
24908
24913
|
}
|
|
24909
24914
|
results.push(result);
|
|
24910
24915
|
}
|
|
24916
|
+
if (!isAsyncAdapter(target)) {
|
|
24917
|
+
try {
|
|
24918
|
+
target.run("PRAGMA foreign_keys = ON");
|
|
24919
|
+
} catch {}
|
|
24920
|
+
}
|
|
24911
24921
|
return results;
|
|
24912
24922
|
}
|
|
24913
24923
|
async function batchUpsertPg(target, table, columns, updateCols, primaryKeys, batch) {
|
package/dist/sync.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../src/sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,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AgB,gBAAgB,CAAC,EAAE,EAAE,SAAS,GAAG,MAAM,EAAE,CAKxD;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,EAAE,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAKxE"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/cloud",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Shared cloud infrastructure
|
|
3
|
+
"version": "0.1.9",
|
|
4
|
+
"description": "Shared cloud infrastructure — database adapter (SQLite + PostgreSQL), sync engine, feedback system, unified dotfile config",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -42,4 +42,4 @@
|
|
|
42
42
|
"@types/pg": "^8.11.11",
|
|
43
43
|
"typescript": "^5.7.3"
|
|
44
44
|
}
|
|
45
|
-
}
|
|
45
|
+
}
|