drizzle-kit 0.24.0-38d6dab → 0.24.0-6386ea9
Sign up to get free protection for your applications and to get access to all the features.
- package/api.js +411 -1242
- package/api.mjs +411 -1242
- package/bin.cjs +950 -1796
- package/package.json +3 -3
- package/utils.js +0 -9
- package/utils.mjs +0 -8
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "drizzle-kit",
|
3
|
-
"version": "0.24.0-
|
3
|
+
"version": "0.24.0-6386ea9",
|
4
4
|
"homepage": "https://orm.drizzle.team",
|
5
5
|
"keywords": [
|
6
6
|
"drizzle",
|
@@ -42,7 +42,7 @@
|
|
42
42
|
"publish": "npm publish package.tgz"
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@drizzle-team/brocli": "^0.
|
45
|
+
"@drizzle-team/brocli": "^0.10.1",
|
46
46
|
"@esbuild-kit/esm-loader": "^2.5.5",
|
47
47
|
"esbuild": "^0.19.7",
|
48
48
|
"esbuild-register": "^3.5.0"
|
@@ -92,7 +92,7 @@
|
|
92
92
|
"hono": "^4.1.5",
|
93
93
|
"json-diff": "1.0.6",
|
94
94
|
"minimatch": "^7.4.3",
|
95
|
-
"mysql2": "
|
95
|
+
"mysql2": "3.3.3",
|
96
96
|
"node-fetch": "^3.3.2",
|
97
97
|
"pg": "^8.11.5",
|
98
98
|
"pluralize": "^8.0.0",
|
package/utils.js
CHANGED
@@ -568,7 +568,6 @@ __export(utils_exports, {
|
|
568
568
|
columnRenameKey: () => columnRenameKey,
|
569
569
|
copy: () => copy,
|
570
570
|
dryJournal: () => dryJournal,
|
571
|
-
findAddedAndRemoved: () => findAddedAndRemoved,
|
572
571
|
isPgArrayType: () => isPgArrayType,
|
573
572
|
kloudMeta: () => kloudMeta,
|
574
573
|
normaliseSQLiteUrl: () => normaliseSQLiteUrl,
|
@@ -5743,20 +5742,12 @@ var normaliseSQLiteUrl = (it, type) => {
|
|
5743
5742
|
function isPgArrayType(sqlType) {
|
5744
5743
|
return sqlType.match(/.*\[\d*\].*|.*\[\].*/g) !== null;
|
5745
5744
|
}
|
5746
|
-
function findAddedAndRemoved(columnNames1, columnNames2) {
|
5747
|
-
const set1 = new Set(columnNames1);
|
5748
|
-
const set2 = new Set(columnNames2);
|
5749
|
-
const addedColumns = columnNames2.filter((it) => !set1.has(it));
|
5750
|
-
const removedColumns = columnNames1.filter((it) => !set2.has(it));
|
5751
|
-
return { addedColumns, removedColumns };
|
5752
|
-
}
|
5753
5745
|
// Annotate the CommonJS export names for ESM import in node:
|
5754
5746
|
0 && (module.exports = {
|
5755
5747
|
assertV1OutFolder,
|
5756
5748
|
columnRenameKey,
|
5757
5749
|
copy,
|
5758
5750
|
dryJournal,
|
5759
|
-
findAddedAndRemoved,
|
5760
5751
|
isPgArrayType,
|
5761
5752
|
kloudMeta,
|
5762
5753
|
normaliseSQLiteUrl,
|
package/utils.mjs
CHANGED
@@ -5723,19 +5723,11 @@ var normaliseSQLiteUrl = (it, type) => {
|
|
5723
5723
|
function isPgArrayType(sqlType) {
|
5724
5724
|
return sqlType.match(/.*\[\d*\].*|.*\[\].*/g) !== null;
|
5725
5725
|
}
|
5726
|
-
function findAddedAndRemoved(columnNames1, columnNames2) {
|
5727
|
-
const set1 = new Set(columnNames1);
|
5728
|
-
const set2 = new Set(columnNames2);
|
5729
|
-
const addedColumns = columnNames2.filter((it) => !set1.has(it));
|
5730
|
-
const removedColumns = columnNames1.filter((it) => !set2.has(it));
|
5731
|
-
return { addedColumns, removedColumns };
|
5732
|
-
}
|
5733
5726
|
export {
|
5734
5727
|
assertV1OutFolder,
|
5735
5728
|
columnRenameKey,
|
5736
5729
|
copy,
|
5737
5730
|
dryJournal,
|
5738
|
-
findAddedAndRemoved,
|
5739
5731
|
isPgArrayType,
|
5740
5732
|
kloudMeta,
|
5741
5733
|
normaliseSQLiteUrl,
|