drizzle-kit 0.22.7-d639166 → 0.22.7-fbc7b5c
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/bin.cjs +613 -520
- package/index.d.mts +2 -0
- package/index.d.ts +2 -0
- package/package.json +1 -1
- package/payload.d.mts +18 -18
- package/payload.d.ts +18 -18
- package/payload.js +521 -485
- package/payload.mjs +521 -485
- package/utils.js +1 -1
- package/utils.mjs +1 -1
package/bin.cjs
CHANGED
@@ -3262,8 +3262,8 @@ var init_ansi_styles = __esm({
|
|
3262
3262
|
|
3263
3263
|
// node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/supports-color/index.js
|
3264
3264
|
function hasFlag(flag, argv2 = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
|
3265
|
-
const
|
3266
|
-
const position = argv2.indexOf(
|
3265
|
+
const prefix2 = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
3266
|
+
const position = argv2.indexOf(prefix2 + flag);
|
3267
3267
|
const terminatorPosition = argv2.indexOf("--");
|
3268
3268
|
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
3269
3269
|
}
|
@@ -3407,12 +3407,12 @@ function stringReplaceAll(string, substring, replacer) {
|
|
3407
3407
|
returnValue += string.slice(endIndex);
|
3408
3408
|
return returnValue;
|
3409
3409
|
}
|
3410
|
-
function stringEncaseCRLFWithFirstIndex(string,
|
3410
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix2, postfix, index4) {
|
3411
3411
|
let endIndex = 0;
|
3412
3412
|
let returnValue = "";
|
3413
3413
|
do {
|
3414
3414
|
const gotCR = string[index4 - 1] === "\r";
|
3415
|
-
returnValue += string.slice(endIndex, gotCR ? index4 - 1 : index4) +
|
3415
|
+
returnValue += string.slice(endIndex, gotCR ? index4 - 1 : index4) + prefix2 + (gotCR ? "\r\n" : "\n") + postfix;
|
3416
3416
|
endIndex = index4 + 1;
|
3417
3417
|
index4 = string.indexOf("\n", endIndex);
|
3418
3418
|
} while (index4 !== -1);
|
@@ -4362,10 +4362,10 @@ Is ${source_default.bold.blue(
|
|
4362
4362
|
this.statusText = (spinner, stage) => {
|
4363
4363
|
const { name, count } = stage;
|
4364
4364
|
const isDone = stage.status === "done";
|
4365
|
-
const
|
4365
|
+
const prefix2 = isDone ? `[${source_default.green("\u2713")}]` : `[${spinner}]`;
|
4366
4366
|
const formattedCount = this.formatCount(count);
|
4367
4367
|
const suffix = isDone ? `${formattedCount} ${name} fetched` : `${formattedCount} ${name} fetching`;
|
4368
|
-
return `${
|
4368
|
+
return `${prefix2} ${suffix}
|
4369
4369
|
`;
|
4370
4370
|
};
|
4371
4371
|
this.timeout = setInterval(() => {
|
@@ -9041,7 +9041,7 @@ var init_pgSchema = __esm({
|
|
9041
9041
|
tables: recordType(stringType(), table2),
|
9042
9042
|
enums: recordType(stringType(), enumSchema),
|
9043
9043
|
schemas: recordType(stringType(), stringType()),
|
9044
|
-
sequences: recordType(stringType(), sequenceSchema),
|
9044
|
+
sequences: recordType(stringType(), sequenceSchema).default({}),
|
9045
9045
|
_meta: objectType({
|
9046
9046
|
schemas: recordType(stringType(), stringType()),
|
9047
9047
|
tables: recordType(stringType(), stringType()),
|
@@ -10260,15 +10260,15 @@ var require_diff = __commonJS({
|
|
10260
10260
|
}
|
10261
10261
|
return "major";
|
10262
10262
|
}
|
10263
|
-
const
|
10263
|
+
const prefix2 = highHasPre ? "pre" : "";
|
10264
10264
|
if (v12.major !== v22.major) {
|
10265
|
-
return
|
10265
|
+
return prefix2 + "major";
|
10266
10266
|
}
|
10267
10267
|
if (v12.minor !== v22.minor) {
|
10268
|
-
return
|
10268
|
+
return prefix2 + "minor";
|
10269
10269
|
}
|
10270
10270
|
if (v12.patch !== v22.patch) {
|
10271
|
-
return
|
10271
|
+
return prefix2 + "patch";
|
10272
10272
|
}
|
10273
10273
|
return "prerelease";
|
10274
10274
|
};
|
@@ -13150,40 +13150,40 @@ var require_sync = __commonJS({
|
|
13150
13150
|
while (typeof pattern[n] === "string") {
|
13151
13151
|
n++;
|
13152
13152
|
}
|
13153
|
-
var
|
13153
|
+
var prefix2;
|
13154
13154
|
switch (n) {
|
13155
13155
|
case pattern.length:
|
13156
13156
|
this._processSimple(pattern.join("/"), index4);
|
13157
13157
|
return;
|
13158
13158
|
case 0:
|
13159
|
-
|
13159
|
+
prefix2 = null;
|
13160
13160
|
break;
|
13161
13161
|
default:
|
13162
|
-
|
13162
|
+
prefix2 = pattern.slice(0, n).join("/");
|
13163
13163
|
break;
|
13164
13164
|
}
|
13165
13165
|
var remain = pattern.slice(n);
|
13166
13166
|
var read;
|
13167
|
-
if (
|
13167
|
+
if (prefix2 === null)
|
13168
13168
|
read = ".";
|
13169
|
-
else if (isAbsolute(
|
13169
|
+
else if (isAbsolute(prefix2) || isAbsolute(pattern.map(function(p4) {
|
13170
13170
|
return typeof p4 === "string" ? p4 : "[*]";
|
13171
13171
|
}).join("/"))) {
|
13172
|
-
if (!
|
13173
|
-
|
13174
|
-
read =
|
13172
|
+
if (!prefix2 || !isAbsolute(prefix2))
|
13173
|
+
prefix2 = "/" + prefix2;
|
13174
|
+
read = prefix2;
|
13175
13175
|
} else
|
13176
|
-
read =
|
13176
|
+
read = prefix2;
|
13177
13177
|
var abs = this._makeAbs(read);
|
13178
13178
|
if (childrenIgnored(this, read))
|
13179
13179
|
return;
|
13180
13180
|
var isGlobStar = remain[0] === minimatch2.GLOBSTAR;
|
13181
13181
|
if (isGlobStar)
|
13182
|
-
this._processGlobStar(
|
13182
|
+
this._processGlobStar(prefix2, read, abs, remain, index4, inGlobStar);
|
13183
13183
|
else
|
13184
|
-
this._processReaddir(
|
13184
|
+
this._processReaddir(prefix2, read, abs, remain, index4, inGlobStar);
|
13185
13185
|
};
|
13186
|
-
GlobSync.prototype._processReaddir = function(
|
13186
|
+
GlobSync.prototype._processReaddir = function(prefix2, read, abs, remain, index4, inGlobStar) {
|
13187
13187
|
var entries = this._readdir(abs, inGlobStar);
|
13188
13188
|
if (!entries)
|
13189
13189
|
return;
|
@@ -13196,7 +13196,7 @@ var require_sync = __commonJS({
|
|
13196
13196
|
var e2 = entries[i2];
|
13197
13197
|
if (e2.charAt(0) !== "." || dotOk) {
|
13198
13198
|
var m4;
|
13199
|
-
if (negate && !
|
13199
|
+
if (negate && !prefix2) {
|
13200
13200
|
m4 = !e2.match(pn);
|
13201
13201
|
} else {
|
13202
13202
|
m4 = e2.match(pn);
|
@@ -13213,11 +13213,11 @@ var require_sync = __commonJS({
|
|
13213
13213
|
this.matches[index4] = /* @__PURE__ */ Object.create(null);
|
13214
13214
|
for (var i2 = 0; i2 < len; i2++) {
|
13215
13215
|
var e2 = matchedEntries[i2];
|
13216
|
-
if (
|
13217
|
-
if (
|
13218
|
-
e2 =
|
13216
|
+
if (prefix2) {
|
13217
|
+
if (prefix2.slice(-1) !== "/")
|
13218
|
+
e2 = prefix2 + "/" + e2;
|
13219
13219
|
else
|
13220
|
-
e2 =
|
13220
|
+
e2 = prefix2 + e2;
|
13221
13221
|
}
|
13222
13222
|
if (e2.charAt(0) === "/" && !this.nomount) {
|
13223
13223
|
e2 = path5.join(this.root, e2);
|
@@ -13230,8 +13230,8 @@ var require_sync = __commonJS({
|
|
13230
13230
|
for (var i2 = 0; i2 < len; i2++) {
|
13231
13231
|
var e2 = matchedEntries[i2];
|
13232
13232
|
var newPattern;
|
13233
|
-
if (
|
13234
|
-
newPattern = [
|
13233
|
+
if (prefix2)
|
13234
|
+
newPattern = [prefix2, e2];
|
13235
13235
|
else
|
13236
13236
|
newPattern = [e2];
|
13237
13237
|
this._process(newPattern.concat(remain), index4, inGlobStar);
|
@@ -13338,12 +13338,12 @@ var require_sync = __commonJS({
|
|
13338
13338
|
break;
|
13339
13339
|
}
|
13340
13340
|
};
|
13341
|
-
GlobSync.prototype._processGlobStar = function(
|
13341
|
+
GlobSync.prototype._processGlobStar = function(prefix2, read, abs, remain, index4, inGlobStar) {
|
13342
13342
|
var entries = this._readdir(abs, inGlobStar);
|
13343
13343
|
if (!entries)
|
13344
13344
|
return;
|
13345
13345
|
var remainWithoutGlobStar = remain.slice(1);
|
13346
|
-
var gspref =
|
13346
|
+
var gspref = prefix2 ? [prefix2] : [];
|
13347
13347
|
var noGlobStar = gspref.concat(remainWithoutGlobStar);
|
13348
13348
|
this._process(noGlobStar, index4, false);
|
13349
13349
|
var len = entries.length;
|
@@ -13360,25 +13360,25 @@ var require_sync = __commonJS({
|
|
13360
13360
|
this._process(below, index4, true);
|
13361
13361
|
}
|
13362
13362
|
};
|
13363
|
-
GlobSync.prototype._processSimple = function(
|
13364
|
-
var exists = this._stat(
|
13363
|
+
GlobSync.prototype._processSimple = function(prefix2, index4) {
|
13364
|
+
var exists = this._stat(prefix2);
|
13365
13365
|
if (!this.matches[index4])
|
13366
13366
|
this.matches[index4] = /* @__PURE__ */ Object.create(null);
|
13367
13367
|
if (!exists)
|
13368
13368
|
return;
|
13369
|
-
if (
|
13370
|
-
var trail = /[\/\\]$/.test(
|
13371
|
-
if (
|
13372
|
-
|
13369
|
+
if (prefix2 && isAbsolute(prefix2) && !this.nomount) {
|
13370
|
+
var trail = /[\/\\]$/.test(prefix2);
|
13371
|
+
if (prefix2.charAt(0) === "/") {
|
13372
|
+
prefix2 = path5.join(this.root, prefix2);
|
13373
13373
|
} else {
|
13374
|
-
|
13374
|
+
prefix2 = path5.resolve(this.root, prefix2);
|
13375
13375
|
if (trail)
|
13376
|
-
|
13376
|
+
prefix2 += "/";
|
13377
13377
|
}
|
13378
13378
|
}
|
13379
13379
|
if (process.platform === "win32")
|
13380
|
-
|
13381
|
-
this._emitMatch(index4,
|
13380
|
+
prefix2 = prefix2.replace(/\\/g, "/");
|
13381
|
+
this._emitMatch(index4, prefix2);
|
13382
13382
|
};
|
13383
13383
|
GlobSync.prototype._stat = function(f3) {
|
13384
13384
|
var abs = this._makeAbs(f3);
|
@@ -13774,46 +13774,46 @@ var require_glob = __commonJS({
|
|
13774
13774
|
while (typeof pattern[n] === "string") {
|
13775
13775
|
n++;
|
13776
13776
|
}
|
13777
|
-
var
|
13777
|
+
var prefix2;
|
13778
13778
|
switch (n) {
|
13779
13779
|
case pattern.length:
|
13780
13780
|
this._processSimple(pattern.join("/"), index4, cb);
|
13781
13781
|
return;
|
13782
13782
|
case 0:
|
13783
|
-
|
13783
|
+
prefix2 = null;
|
13784
13784
|
break;
|
13785
13785
|
default:
|
13786
|
-
|
13786
|
+
prefix2 = pattern.slice(0, n).join("/");
|
13787
13787
|
break;
|
13788
13788
|
}
|
13789
13789
|
var remain = pattern.slice(n);
|
13790
13790
|
var read;
|
13791
|
-
if (
|
13791
|
+
if (prefix2 === null)
|
13792
13792
|
read = ".";
|
13793
|
-
else if (isAbsolute(
|
13793
|
+
else if (isAbsolute(prefix2) || isAbsolute(pattern.map(function(p4) {
|
13794
13794
|
return typeof p4 === "string" ? p4 : "[*]";
|
13795
13795
|
}).join("/"))) {
|
13796
|
-
if (!
|
13797
|
-
|
13798
|
-
read =
|
13796
|
+
if (!prefix2 || !isAbsolute(prefix2))
|
13797
|
+
prefix2 = "/" + prefix2;
|
13798
|
+
read = prefix2;
|
13799
13799
|
} else
|
13800
|
-
read =
|
13800
|
+
read = prefix2;
|
13801
13801
|
var abs = this._makeAbs(read);
|
13802
13802
|
if (childrenIgnored(this, read))
|
13803
13803
|
return cb();
|
13804
13804
|
var isGlobStar = remain[0] === minimatch2.GLOBSTAR;
|
13805
13805
|
if (isGlobStar)
|
13806
|
-
this._processGlobStar(
|
13806
|
+
this._processGlobStar(prefix2, read, abs, remain, index4, inGlobStar, cb);
|
13807
13807
|
else
|
13808
|
-
this._processReaddir(
|
13808
|
+
this._processReaddir(prefix2, read, abs, remain, index4, inGlobStar, cb);
|
13809
13809
|
};
|
13810
|
-
Glob.prototype._processReaddir = function(
|
13810
|
+
Glob.prototype._processReaddir = function(prefix2, read, abs, remain, index4, inGlobStar, cb) {
|
13811
13811
|
var self2 = this;
|
13812
13812
|
this._readdir(abs, inGlobStar, function(er3, entries) {
|
13813
|
-
return self2._processReaddir2(
|
13813
|
+
return self2._processReaddir2(prefix2, read, abs, remain, index4, inGlobStar, entries, cb);
|
13814
13814
|
});
|
13815
13815
|
};
|
13816
|
-
Glob.prototype._processReaddir2 = function(
|
13816
|
+
Glob.prototype._processReaddir2 = function(prefix2, read, abs, remain, index4, inGlobStar, entries, cb) {
|
13817
13817
|
if (!entries)
|
13818
13818
|
return cb();
|
13819
13819
|
var pn = remain[0];
|
@@ -13825,7 +13825,7 @@ var require_glob = __commonJS({
|
|
13825
13825
|
var e2 = entries[i2];
|
13826
13826
|
if (e2.charAt(0) !== "." || dotOk) {
|
13827
13827
|
var m4;
|
13828
|
-
if (negate && !
|
13828
|
+
if (negate && !prefix2) {
|
13829
13829
|
m4 = !e2.match(pn);
|
13830
13830
|
} else {
|
13831
13831
|
m4 = e2.match(pn);
|
@@ -13842,11 +13842,11 @@ var require_glob = __commonJS({
|
|
13842
13842
|
this.matches[index4] = /* @__PURE__ */ Object.create(null);
|
13843
13843
|
for (var i2 = 0; i2 < len; i2++) {
|
13844
13844
|
var e2 = matchedEntries[i2];
|
13845
|
-
if (
|
13846
|
-
if (
|
13847
|
-
e2 =
|
13845
|
+
if (prefix2) {
|
13846
|
+
if (prefix2 !== "/")
|
13847
|
+
e2 = prefix2 + "/" + e2;
|
13848
13848
|
else
|
13849
|
-
e2 =
|
13849
|
+
e2 = prefix2 + e2;
|
13850
13850
|
}
|
13851
13851
|
if (e2.charAt(0) === "/" && !this.nomount) {
|
13852
13852
|
e2 = path5.join(this.root, e2);
|
@@ -13859,11 +13859,11 @@ var require_glob = __commonJS({
|
|
13859
13859
|
for (var i2 = 0; i2 < len; i2++) {
|
13860
13860
|
var e2 = matchedEntries[i2];
|
13861
13861
|
var newPattern;
|
13862
|
-
if (
|
13863
|
-
if (
|
13864
|
-
e2 =
|
13862
|
+
if (prefix2) {
|
13863
|
+
if (prefix2 !== "/")
|
13864
|
+
e2 = prefix2 + "/" + e2;
|
13865
13865
|
else
|
13866
|
-
e2 =
|
13866
|
+
e2 = prefix2 + e2;
|
13867
13867
|
}
|
13868
13868
|
this._process([e2].concat(remain), index4, inGlobStar, cb);
|
13869
13869
|
}
|
@@ -13994,17 +13994,17 @@ var require_glob = __commonJS({
|
|
13994
13994
|
}
|
13995
13995
|
return cb();
|
13996
13996
|
};
|
13997
|
-
Glob.prototype._processGlobStar = function(
|
13997
|
+
Glob.prototype._processGlobStar = function(prefix2, read, abs, remain, index4, inGlobStar, cb) {
|
13998
13998
|
var self2 = this;
|
13999
13999
|
this._readdir(abs, inGlobStar, function(er3, entries) {
|
14000
|
-
self2._processGlobStar2(
|
14000
|
+
self2._processGlobStar2(prefix2, read, abs, remain, index4, inGlobStar, entries, cb);
|
14001
14001
|
});
|
14002
14002
|
};
|
14003
|
-
Glob.prototype._processGlobStar2 = function(
|
14003
|
+
Glob.prototype._processGlobStar2 = function(prefix2, read, abs, remain, index4, inGlobStar, entries, cb) {
|
14004
14004
|
if (!entries)
|
14005
14005
|
return cb();
|
14006
14006
|
var remainWithoutGlobStar = remain.slice(1);
|
14007
|
-
var gspref =
|
14007
|
+
var gspref = prefix2 ? [prefix2] : [];
|
14008
14008
|
var noGlobStar = gspref.concat(remainWithoutGlobStar);
|
14009
14009
|
this._process(noGlobStar, index4, false, cb);
|
14010
14010
|
var isSym = this.symlinks[abs];
|
@@ -14022,30 +14022,30 @@ var require_glob = __commonJS({
|
|
14022
14022
|
}
|
14023
14023
|
cb();
|
14024
14024
|
};
|
14025
|
-
Glob.prototype._processSimple = function(
|
14025
|
+
Glob.prototype._processSimple = function(prefix2, index4, cb) {
|
14026
14026
|
var self2 = this;
|
14027
|
-
this._stat(
|
14028
|
-
self2._processSimple2(
|
14027
|
+
this._stat(prefix2, function(er3, exists) {
|
14028
|
+
self2._processSimple2(prefix2, index4, er3, exists, cb);
|
14029
14029
|
});
|
14030
14030
|
};
|
14031
|
-
Glob.prototype._processSimple2 = function(
|
14031
|
+
Glob.prototype._processSimple2 = function(prefix2, index4, er3, exists, cb) {
|
14032
14032
|
if (!this.matches[index4])
|
14033
14033
|
this.matches[index4] = /* @__PURE__ */ Object.create(null);
|
14034
14034
|
if (!exists)
|
14035
14035
|
return cb();
|
14036
|
-
if (
|
14037
|
-
var trail = /[\/\\]$/.test(
|
14038
|
-
if (
|
14039
|
-
|
14036
|
+
if (prefix2 && isAbsolute(prefix2) && !this.nomount) {
|
14037
|
+
var trail = /[\/\\]$/.test(prefix2);
|
14038
|
+
if (prefix2.charAt(0) === "/") {
|
14039
|
+
prefix2 = path5.join(this.root, prefix2);
|
14040
14040
|
} else {
|
14041
|
-
|
14041
|
+
prefix2 = path5.resolve(this.root, prefix2);
|
14042
14042
|
if (trail)
|
14043
|
-
|
14043
|
+
prefix2 += "/";
|
14044
14044
|
}
|
14045
14045
|
}
|
14046
14046
|
if (process.platform === "win32")
|
14047
|
-
|
14048
|
-
this._emitMatch(index4,
|
14047
|
+
prefix2 = prefix2.replace(/\\/g, "/");
|
14048
|
+
this._emitMatch(index4, prefix2);
|
14049
14049
|
cb();
|
14050
14050
|
};
|
14051
14051
|
Glob.prototype._stat = function(f3, cb) {
|
@@ -14127,16 +14127,12 @@ var init_schemaValidator = __esm({
|
|
14127
14127
|
mysqlSchemaSquashed,
|
14128
14128
|
SQLiteSchemaSquashed
|
14129
14129
|
]);
|
14130
|
-
commonSchema = unionType([
|
14131
|
-
pgSchema,
|
14132
|
-
mysqlSchema,
|
14133
|
-
sqliteSchema
|
14134
|
-
]);
|
14130
|
+
commonSchema = unionType([pgSchema, mysqlSchema, sqliteSchema]);
|
14135
14131
|
}
|
14136
14132
|
});
|
14137
14133
|
|
14138
14134
|
// src/cli/validations/common.ts
|
14139
|
-
var assertCollisions, sqliteDriversLiterals, sqliteDriver, postgresDriver, driver, configCommonSchema, casing, introspectParams, configIntrospectCliSchema, configGenerateSchema, configPushSchema, wrapParam;
|
14135
|
+
var assertCollisions, sqliteDriversLiterals, migrationFilesPrefixes, prefix, sqliteDriver, postgresDriver, driver, configCommonSchema, casing, introspectParams, configIntrospectCliSchema, configGenerateSchema, configPushSchema, wrapParam;
|
14140
14136
|
var init_common = __esm({
|
14141
14137
|
"src/cli/validations/common.ts"() {
|
14142
14138
|
"use strict";
|
@@ -14169,6 +14165,17 @@ var init_common = __esm({
|
|
14169
14165
|
literalType("d1-http"),
|
14170
14166
|
literalType("expo")
|
14171
14167
|
];
|
14168
|
+
migrationFilesPrefixes = [
|
14169
|
+
literalType("index"),
|
14170
|
+
literalType("timestamp"),
|
14171
|
+
literalType("supabase"),
|
14172
|
+
literalType("unix"),
|
14173
|
+
literalType("none")
|
14174
|
+
];
|
14175
|
+
prefix = unionType(migrationFilesPrefixes);
|
14176
|
+
{
|
14177
|
+
const _3 = "";
|
14178
|
+
}
|
14172
14179
|
sqliteDriver = unionType(sqliteDriversLiterals);
|
14173
14180
|
postgresDriver = literalType("aws-data-api");
|
14174
14181
|
driver = unionType([sqliteDriver, postgresDriver]);
|
@@ -14177,9 +14184,13 @@ var init_common = __esm({
|
|
14177
14184
|
schema: unionType([stringType(), stringType().array()]).optional(),
|
14178
14185
|
out: stringType().optional(),
|
14179
14186
|
breakpoints: booleanType().optional().default(true),
|
14187
|
+
verbose: booleanType().optional().default(false),
|
14180
14188
|
driver: driver.optional(),
|
14181
14189
|
tablesFilter: unionType([stringType(), stringType().array()]).optional(),
|
14182
|
-
schemaFilter: unionType([stringType(), stringType().array()]).default(["public"])
|
14190
|
+
schemaFilter: unionType([stringType(), stringType().array()]).default(["public"]),
|
14191
|
+
migrations: objectType({
|
14192
|
+
prefix: prefix.optional().default("index")
|
14193
|
+
}).optional()
|
14183
14194
|
});
|
14184
14195
|
casing = unionType([literalType("camel"), literalType("preserve")]).default(
|
14185
14196
|
"preserve"
|
@@ -14542,6 +14553,7 @@ var init_cli = __esm({
|
|
14542
14553
|
out: stringType().optional().default("./drizzle"),
|
14543
14554
|
config: stringType().optional(),
|
14544
14555
|
name: stringType().optional(),
|
14556
|
+
prefix: prefix.optional(),
|
14545
14557
|
breakpoints: booleanType().optional().default(true),
|
14546
14558
|
custom: booleanType().optional().default(false)
|
14547
14559
|
}).strict();
|
@@ -14562,7 +14574,10 @@ var init_cli = __esm({
|
|
14562
14574
|
schemaFilter: unionType([stringType(), stringType().array()]).optional().default(["public"]),
|
14563
14575
|
extensionsFilters: literalType("postgis").array().optional(),
|
14564
14576
|
introspectCasing: casing,
|
14565
|
-
breakpoints: booleanType().optional().default(true)
|
14577
|
+
breakpoints: booleanType().optional().default(true),
|
14578
|
+
database: objectType({
|
14579
|
+
prefix: prefix.optional().default("index")
|
14580
|
+
}).optional()
|
14566
14581
|
}).passthrough();
|
14567
14582
|
configCheck = objectType({
|
14568
14583
|
dialect: dialect3.optional(),
|
@@ -15071,8 +15086,8 @@ var require_has_flag = __commonJS({
|
|
15071
15086
|
"node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports2, module2) {
|
15072
15087
|
"use strict";
|
15073
15088
|
module2.exports = (flag, argv2 = process.argv) => {
|
15074
|
-
const
|
15075
|
-
const position = argv2.indexOf(
|
15089
|
+
const prefix2 = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
15090
|
+
const position = argv2.indexOf(prefix2 + flag);
|
15076
15091
|
const terminatorPosition = argv2.indexOf("--");
|
15077
15092
|
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
15078
15093
|
};
|
@@ -15309,8 +15324,8 @@ var require_node = __commonJS({
|
|
15309
15324
|
if (useColors2) {
|
15310
15325
|
const c = this.color;
|
15311
15326
|
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
15312
|
-
const
|
15313
|
-
args[0] =
|
15327
|
+
const prefix2 = ` ${colorCode};1m${name} \x1B[0m`;
|
15328
|
+
args[0] = prefix2 + args[0].split("\n").join("\n" + prefix2);
|
15314
15329
|
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
15315
15330
|
} else {
|
15316
15331
|
args[0] = getDate() + name + " " + args[0];
|
@@ -20286,7 +20301,8 @@ var init_utils4 = __esm({
|
|
20286
20301
|
return res;
|
20287
20302
|
};
|
20288
20303
|
prepareGenerateConfig = async (options) => {
|
20289
|
-
|
20304
|
+
var _a;
|
20305
|
+
const { schema: schema5, out, config, breakpoints, custom: custom2, name, dialect: dialect7, prefix: prefix2 } = options;
|
20290
20306
|
if (!(schema5 && out)) {
|
20291
20307
|
const drizzleConfig = await drizzleConfigFromFile(config);
|
20292
20308
|
if (!drizzleConfig.schema) {
|
@@ -20297,6 +20313,7 @@ var init_utils4 = __esm({
|
|
20297
20313
|
dialect: drizzleConfig.dialect,
|
20298
20314
|
name,
|
20299
20315
|
custom: custom2,
|
20316
|
+
prefix: ((_a = drizzleConfig.migrations) == null ? void 0 : _a.prefix) || prefix2 || "index",
|
20300
20317
|
breakpoints: drizzleConfig.breakpoints ?? false,
|
20301
20318
|
schema: drizzleConfig.schema,
|
20302
20319
|
out: drizzleConfig.out || "drizzle",
|
@@ -20320,7 +20337,16 @@ var init_utils4 = __esm({
|
|
20320
20337
|
console.error(`'out' param must be set`);
|
20321
20338
|
process.exit(1);
|
20322
20339
|
}
|
20323
|
-
return {
|
20340
|
+
return {
|
20341
|
+
dialect: dialect7,
|
20342
|
+
schema: schema5,
|
20343
|
+
out,
|
20344
|
+
breakpoints,
|
20345
|
+
name,
|
20346
|
+
prefix: prefix2 || "index",
|
20347
|
+
custom: custom2,
|
20348
|
+
bundle: false
|
20349
|
+
};
|
20324
20350
|
};
|
20325
20351
|
flattenDatabaseCredentials = (config) => {
|
20326
20352
|
if ("dbCredentials" in config) {
|
@@ -20344,7 +20370,7 @@ var init_utils4 = __esm({
|
|
20344
20370
|
return config;
|
20345
20371
|
};
|
20346
20372
|
preparePushConfig = async (options) => {
|
20347
|
-
const from = assertCollisions(options, "push");
|
20373
|
+
const from = assertCollisions(options, "push", ["force"]);
|
20348
20374
|
const config = pushParams.parse(
|
20349
20375
|
flattenDatabaseCredentials(
|
20350
20376
|
from === "config" ? await readDrizzleConfig(options.config) : options
|
@@ -20388,6 +20414,7 @@ var init_utils4 = __esm({
|
|
20388
20414
|
schemaPath: config.schema,
|
20389
20415
|
strict: config.strict ?? false,
|
20390
20416
|
verbose: config.verbose ?? false,
|
20417
|
+
force: options.force ?? false,
|
20391
20418
|
credentials: parsed.data,
|
20392
20419
|
tablesFilter,
|
20393
20420
|
schemasFilter
|
@@ -20404,6 +20431,7 @@ var init_utils4 = __esm({
|
|
20404
20431
|
schemaPath: config.schema,
|
20405
20432
|
strict: config.strict ?? false,
|
20406
20433
|
verbose: config.verbose ?? false,
|
20434
|
+
force: options.force ?? false,
|
20407
20435
|
credentials: parsed.data,
|
20408
20436
|
tablesFilter,
|
20409
20437
|
schemasFilter
|
@@ -20420,6 +20448,7 @@ var init_utils4 = __esm({
|
|
20420
20448
|
schemaPath: config.schema,
|
20421
20449
|
strict: config.strict ?? false,
|
20422
20450
|
verbose: config.verbose ?? false,
|
20451
|
+
force: options.force ?? false,
|
20423
20452
|
credentials: parsed.data,
|
20424
20453
|
tablesFilter,
|
20425
20454
|
schemasFilter
|
@@ -20428,6 +20457,7 @@ var init_utils4 = __esm({
|
|
20428
20457
|
assertUnreachable(dialect7);
|
20429
20458
|
};
|
20430
20459
|
preparePullConfig = async (options) => {
|
20460
|
+
var _a, _b, _c;
|
20431
20461
|
const from = assertCollisions(options, "introspect");
|
20432
20462
|
const config = pullParams.parse(
|
20433
20463
|
flattenPull(
|
@@ -20465,7 +20495,8 @@ var init_utils4 = __esm({
|
|
20465
20495
|
casing: config.introspectCasing,
|
20466
20496
|
credentials: parsed.data,
|
20467
20497
|
tablesFilter,
|
20468
|
-
schemasFilter
|
20498
|
+
schemasFilter,
|
20499
|
+
prefix: ((_a = config.database) == null ? void 0 : _a.prefix) || "index"
|
20469
20500
|
};
|
20470
20501
|
}
|
20471
20502
|
if (dialect7 === "mysql") {
|
@@ -20481,7 +20512,8 @@ var init_utils4 = __esm({
|
|
20481
20512
|
casing: config.introspectCasing,
|
20482
20513
|
credentials: parsed.data,
|
20483
20514
|
tablesFilter,
|
20484
|
-
schemasFilter
|
20515
|
+
schemasFilter,
|
20516
|
+
prefix: ((_b = config.database) == null ? void 0 : _b.prefix) || "index"
|
20485
20517
|
};
|
20486
20518
|
}
|
20487
20519
|
if (dialect7 === "sqlite") {
|
@@ -20497,7 +20529,8 @@ var init_utils4 = __esm({
|
|
20497
20529
|
casing: config.introspectCasing,
|
20498
20530
|
credentials: parsed.data,
|
20499
20531
|
tablesFilter,
|
20500
|
-
schemasFilter
|
20532
|
+
schemasFilter,
|
20533
|
+
prefix: ((_c = config.database) == null ? void 0 : _c.prefix) || "index"
|
20501
20534
|
};
|
20502
20535
|
}
|
20503
20536
|
assertUnreachable(dialect7);
|
@@ -20574,7 +20607,8 @@ var init_utils4 = __esm({
|
|
20574
20607
|
out: stringType().optional().default("drizzle"),
|
20575
20608
|
migrations: objectType({
|
20576
20609
|
table: stringType().optional(),
|
20577
|
-
schema: stringType().optional()
|
20610
|
+
schema: stringType().optional(),
|
20611
|
+
prefix: unionType([literalType("index"), literalType("timestamp"), literalType("none")]).optional().default("index")
|
20578
20612
|
}).optional()
|
20579
20613
|
});
|
20580
20614
|
prepareMigrateConfig = async (options) => {
|
@@ -22388,13 +22422,19 @@ function mapSqlToSqliteType(sqlType) {
|
|
22388
22422
|
}
|
22389
22423
|
function extractGeneratedColumns(input) {
|
22390
22424
|
const columns = {};
|
22391
|
-
const lines = input.split(
|
22425
|
+
const lines = input.split(/,\s*(?![^()]*\))/);
|
22392
22426
|
for (const line of lines) {
|
22393
22427
|
if (line.includes("GENERATED ALWAYS AS")) {
|
22394
22428
|
const parts = line.trim().split(/\s+/);
|
22395
|
-
const columnName = parts[0].
|
22429
|
+
const columnName = parts[0].replace(/[`'"]/g, "");
|
22396
22430
|
const expression = line.substring(line.indexOf("("), line.indexOf(")") + 1).trim();
|
22397
|
-
const
|
22431
|
+
const typeIndex = parts.findIndex(
|
22432
|
+
(part) => part.match(/(stored|virtual)/i)
|
22433
|
+
);
|
22434
|
+
let type = "virtual";
|
22435
|
+
if (typeIndex !== -1) {
|
22436
|
+
type = parts[typeIndex].replace(/[^a-z]/gi, "").toLowerCase();
|
22437
|
+
}
|
22398
22438
|
columns[columnName] = {
|
22399
22439
|
columnName,
|
22400
22440
|
expression,
|
@@ -22442,7 +22482,7 @@ var init_sqliteSerializer = __esm({
|
|
22442
22482
|
notNull,
|
22443
22483
|
autoincrement: (0, import_drizzle_orm7.is)(column7, import_sqlite_core2.SQLiteBaseInteger) ? column7.autoIncrement : false,
|
22444
22484
|
generated: generated ? {
|
22445
|
-
as: (0, import_drizzle_orm7.is)(generated.as, import_drizzle_orm7.SQL) ? dialect6.sqlToQuery(generated.as, "indexes").sql : typeof generated.as === "function" ? dialect6.sqlToQuery(generated.as(), "indexes").sql : generated.as
|
22485
|
+
as: (0, import_drizzle_orm7.is)(generated.as, import_drizzle_orm7.SQL) ? `(${dialect6.sqlToQuery(generated.as, "indexes").sql})` : typeof generated.as === "function" ? `(${dialect6.sqlToQuery(generated.as(), "indexes").sql})` : `(${generated.as})`,
|
22446
22486
|
type: generated.mode ?? "virtual"
|
22447
22487
|
} : void 0
|
22448
22488
|
};
|
@@ -22801,12 +22841,12 @@ WHERE
|
|
22801
22841
|
if (progressCallback) {
|
22802
22842
|
progressCallback("indexes", indexesCount, "fetching");
|
22803
22843
|
}
|
22804
|
-
if (typeof tableInResult.indexes[constraintName] !== "undefined") {
|
22844
|
+
if (typeof tableInResult.indexes[constraintName] !== "undefined" && columnName) {
|
22805
22845
|
tableInResult.indexes[constraintName].columns.push(columnName);
|
22806
22846
|
} else {
|
22807
22847
|
tableInResult.indexes[constraintName] = {
|
22808
22848
|
name: constraintName,
|
22809
|
-
columns: [columnName],
|
22849
|
+
columns: columnName ? [columnName] : [],
|
22810
22850
|
isUnique
|
22811
22851
|
};
|
22812
22852
|
}
|
@@ -23199,7 +23239,7 @@ var init_sqlgenerator = __esm({
|
|
23199
23239
|
const notNullStatement = column7.notNull ? " NOT NULL" : "";
|
23200
23240
|
const defaultStatement = column7.default !== void 0 ? ` DEFAULT ${column7.default}` : "";
|
23201
23241
|
const autoincrementStatement = column7.autoincrement ? " AUTOINCREMENT" : "";
|
23202
|
-
const generatedStatement = column7.generated ? ` GENERATED ALWAYS AS
|
23242
|
+
const generatedStatement = column7.generated ? ` GENERATED ALWAYS AS ${column7.generated.as} ${column7.generated.type.toUpperCase()}` : "";
|
23203
23243
|
statement += " ";
|
23204
23244
|
statement += `\`${column7.name}\` ${column7.type}${primaryKeyStatement}${autoincrementStatement}${defaultStatement}${notNullStatement}${generatedStatement}`;
|
23205
23245
|
statement += i2 === columns.length - 1 ? "" : ",\n";
|
@@ -23274,8 +23314,6 @@ var init_sqlgenerator = __esm({
|
|
23274
23314
|
const tableNameWithSchema = schema5 ? `"${schema5}"."${tableName}"` : `"${tableName}"`;
|
23275
23315
|
const unsquashedIdentity = PgSquasher.unsquashIdentity(identity);
|
23276
23316
|
const unsquashedOldIdentity = PgSquasher.unsquashIdentity(oldIdentity);
|
23277
|
-
const identityWithSchema = schema5 ? `"${schema5}"."${unsquashedIdentity == null ? void 0 : unsquashedIdentity.name}"` : `"${unsquashedIdentity == null ? void 0 : unsquashedIdentity.name}"`;
|
23278
|
-
const oldIdentityWithSchema = schema5 ? `"${schema5}"."${unsquashedOldIdentity == null ? void 0 : unsquashedOldIdentity.name}"` : `"${unsquashedOldIdentity == null ? void 0 : unsquashedOldIdentity.name}"`;
|
23279
23317
|
const statementsToReturn = [];
|
23280
23318
|
if (unsquashedOldIdentity.type !== unsquashedIdentity.type) {
|
23281
23319
|
statementsToReturn.push(
|
@@ -23584,14 +23622,18 @@ var init_sqlgenerator = __esm({
|
|
23584
23622
|
}
|
23585
23623
|
convert(statement) {
|
23586
23624
|
const { tableName, column: column7, schema: schema5 } = statement;
|
23587
|
-
const { name, type, notNull, generated } = column7;
|
23625
|
+
const { name, type, notNull, generated, primaryKey, identity } = column7;
|
23626
|
+
const primaryKeyStatement = primaryKey ? " PRIMARY KEY" : "";
|
23588
23627
|
const tableNameWithSchema = schema5 ? `"${schema5}"."${tableName}"` : `"${tableName}"`;
|
23589
23628
|
const defaultStatement = `${column7.default !== void 0 ? ` DEFAULT ${column7.default}` : ""}`;
|
23590
23629
|
const schemaPrefix = column7.typeSchema && column7.typeSchema !== "public" ? `"${column7.typeSchema}".` : "";
|
23591
23630
|
const fixedType = isPgNativeType(column7.type) ? column7.type : `${schemaPrefix}"${column7.type}"`;
|
23592
23631
|
const notNullStatement = `${notNull ? " NOT NULL" : ""}`;
|
23632
|
+
const unsquashedIdentity = identity ? PgSquasher.unsquashIdentity(identity) : void 0;
|
23633
|
+
const identityWithSchema = schema5 ? `"${schema5}"."${unsquashedIdentity == null ? void 0 : unsquashedIdentity.name}"` : `"${unsquashedIdentity == null ? void 0 : unsquashedIdentity.name}"`;
|
23634
|
+
const identityStatement = unsquashedIdentity ? ` GENERATED ${unsquashedIdentity.type === "always" ? "ALWAYS" : "BY DEFAULT"} AS IDENTITY (sequence name ${identityWithSchema}${unsquashedIdentity.increment ? ` INCREMENT BY ${unsquashedIdentity.increment}` : ""}${unsquashedIdentity.minValue ? ` MINVALUE ${unsquashedIdentity.minValue}` : ""}${unsquashedIdentity.maxValue ? ` MAXVALUE ${unsquashedIdentity.maxValue}` : ""}${unsquashedIdentity.startWith ? ` START WITH ${unsquashedIdentity.startWith}` : ""}${unsquashedIdentity.cache ? ` CACHE ${unsquashedIdentity.cache}` : ""}${unsquashedIdentity.cycle ? ` CYCLE` : ""})` : "";
|
23593
23635
|
const generatedStatement = ` GENERATED ALWAYS AS (${generated == null ? void 0 : generated.as}) STORED`;
|
23594
|
-
return `ALTER TABLE ${tableNameWithSchema} ADD COLUMN "${name}" ${fixedType}${defaultStatement}${notNullStatement}${generated ? generatedStatement : ""};`;
|
23636
|
+
return `ALTER TABLE ${tableNameWithSchema} ADD COLUMN "${name}" ${fixedType}${primaryKeyStatement}${defaultStatement}${notNullStatement}${generated ? generatedStatement : ""}${identityStatement};`;
|
23595
23637
|
}
|
23596
23638
|
};
|
23597
23639
|
MySqlAlterTableAddColumnConvertor = class extends Convertor {
|
@@ -23630,7 +23672,7 @@ var init_sqlgenerator = __esm({
|
|
23630
23672
|
const primaryKeyStatement = `${primaryKey ? " PRIMARY KEY" : ""}`;
|
23631
23673
|
const referenceAsObject = referenceData ? SQLiteSquasher.unsquashFK(referenceData) : void 0;
|
23632
23674
|
const referenceStatement = `${referenceAsObject ? ` REFERENCES ${referenceAsObject.tableTo}(${referenceAsObject.columnsTo})` : ""}`;
|
23633
|
-
const generatedStatement = generated ? ` GENERATED ALWAYS AS
|
23675
|
+
const generatedStatement = generated ? ` GENERATED ALWAYS AS ${generated.as} ${generated.type.toUpperCase()}` : "";
|
23634
23676
|
return `ALTER TABLE \`${tableName}\` ADD \`${name}\` ${type}${primaryKeyStatement}${defaultStatement}${notNullStatement}${generatedStatement}${referenceStatement};`;
|
23635
23677
|
}
|
23636
23678
|
};
|
@@ -23919,8 +23961,8 @@ var init_sqlgenerator = __esm({
|
|
23919
23961
|
columnPk,
|
23920
23962
|
columnGenerated
|
23921
23963
|
} = statement;
|
23922
|
-
const tableNameWithSchema = schema5 ?
|
23923
|
-
const addColumnStatement = new
|
23964
|
+
const tableNameWithSchema = schema5 ? `\`${schema5}\`.\`${tableName}\`` : `\`${tableName}\``;
|
23965
|
+
const addColumnStatement = new MySqlAlterTableAddColumnConvertor().convert({
|
23924
23966
|
schema: schema5,
|
23925
23967
|
tableName,
|
23926
23968
|
column: {
|
@@ -23936,7 +23978,7 @@ var init_sqlgenerator = __esm({
|
|
23936
23978
|
type: "alter_table_add_column"
|
23937
23979
|
});
|
23938
23980
|
return [
|
23939
|
-
`ALTER TABLE ${tableNameWithSchema} drop column
|
23981
|
+
`ALTER TABLE ${tableNameWithSchema} drop column \`${columnName}\`;`,
|
23940
23982
|
addColumnStatement
|
23941
23983
|
];
|
23942
23984
|
}
|
@@ -25880,7 +25922,7 @@ var require_difflib = __commonJS({
|
|
25880
25922
|
return `${beginning},${beginning + length - 1}`;
|
25881
25923
|
};
|
25882
25924
|
contextDiff = function(a3, b4, { fromfile, tofile, fromfiledate, tofiledate, n, lineterm } = {}) {
|
25883
|
-
var _3, file1Range, file2Range, first, fromdate, group, i1, i2, j1, j2, l, last, len, len1, len2, len3, len4, line, lines, m4, o, p4,
|
25925
|
+
var _3, file1Range, file2Range, first, fromdate, group, i1, i2, j1, j2, l, last, len, len1, len2, len3, len4, line, lines, m4, o, p4, prefix2, q, ref, ref1, ref2, started, tag, todate;
|
25884
25926
|
if (fromfile == null) {
|
25885
25927
|
fromfile = "";
|
25886
25928
|
}
|
@@ -25899,7 +25941,7 @@ var require_difflib = __commonJS({
|
|
25899
25941
|
if (lineterm == null) {
|
25900
25942
|
lineterm = "\n";
|
25901
25943
|
}
|
25902
|
-
|
25944
|
+
prefix2 = {
|
25903
25945
|
insert: "+ ",
|
25904
25946
|
delete: "- ",
|
25905
25947
|
replace: "! ",
|
@@ -25935,7 +25977,7 @@ var require_difflib = __commonJS({
|
|
25935
25977
|
ref1 = a3.slice(i1, i2);
|
25936
25978
|
for (o = 0, len2 = ref1.length; o < len2; o++) {
|
25937
25979
|
line = ref1[o];
|
25938
|
-
lines.push(
|
25980
|
+
lines.push(prefix2[tag] + line);
|
25939
25981
|
}
|
25940
25982
|
}
|
25941
25983
|
}
|
@@ -25957,7 +25999,7 @@ var require_difflib = __commonJS({
|
|
25957
25999
|
ref2 = b4.slice(j1, j2);
|
25958
26000
|
for (q = 0, len4 = ref2.length; q < len4; q++) {
|
25959
26001
|
line = ref2[q];
|
25960
|
-
lines.push(
|
26002
|
+
lines.push(prefix2[tag] + line);
|
25961
26003
|
}
|
25962
26004
|
}
|
25963
26005
|
}
|
@@ -26120,8 +26162,8 @@ var require_has_flag2 = __commonJS({
|
|
26120
26162
|
module2.exports = function(flag, argv2) {
|
26121
26163
|
argv2 = argv2 || process.argv;
|
26122
26164
|
var terminatorPos = argv2.indexOf("--");
|
26123
|
-
var
|
26124
|
-
var pos = argv2.indexOf(
|
26165
|
+
var prefix2 = /^-{1,2}/.test(flag) ? "" : "--";
|
26166
|
+
var pos = argv2.indexOf(prefix2 + flag);
|
26125
26167
|
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
26126
26168
|
};
|
26127
26169
|
}
|
@@ -26722,7 +26764,7 @@ var require_colorize = __commonJS({
|
|
26722
26764
|
};
|
26723
26765
|
var subcolorizeToCallback = function(options, key, diff2, output, color2, indent) {
|
26724
26766
|
let subvalue;
|
26725
|
-
const
|
26767
|
+
const prefix2 = key ? `${key}: ` : "";
|
26726
26768
|
const subindent = indent + " ";
|
26727
26769
|
const outputElisions = (n) => {
|
26728
26770
|
const maxElisions = options.maxElisions === void 0 ? Infinity : options.maxElisions;
|
@@ -26740,7 +26782,7 @@ var require_colorize = __commonJS({
|
|
26740
26782
|
subcolorizeToCallback(options, key, diff2.__old, output, "-", indent);
|
26741
26783
|
return subcolorizeToCallback(options, key, diff2.__new, output, "+", indent);
|
26742
26784
|
} else {
|
26743
|
-
output(color2, `${indent}${
|
26785
|
+
output(color2, `${indent}${prefix2}{`);
|
26744
26786
|
for (const subkey of Object.keys(diff2)) {
|
26745
26787
|
let m4;
|
26746
26788
|
subvalue = diff2[subkey];
|
@@ -26755,7 +26797,7 @@ var require_colorize = __commonJS({
|
|
26755
26797
|
return output(color2, `${indent}}`);
|
26756
26798
|
}
|
26757
26799
|
case "array": {
|
26758
|
-
output(color2, `${indent}${
|
26800
|
+
output(color2, `${indent}${prefix2}[`);
|
26759
26801
|
let looksLikeDiff = true;
|
26760
26802
|
for (const item of diff2) {
|
26761
26803
|
if (extendedTypeOf(item) !== "array" || !(item.length === 2 || item.length === 1 && item[0] === " ") || !(typeof item[0] === "string") || item[0].length !== 1 || ![" ", "-", "+", "~"].includes(item[0])) {
|
@@ -26794,7 +26836,7 @@ var require_colorize = __commonJS({
|
|
26794
26836
|
}
|
26795
26837
|
default:
|
26796
26838
|
if (diff2 === 0 || diff2 === null || diff2 === false || diff2 === "" || diff2) {
|
26797
|
-
return output(color2, indent +
|
26839
|
+
return output(color2, indent + prefix2 + JSON.stringify(diff2));
|
26798
26840
|
}
|
26799
26841
|
}
|
26800
26842
|
};
|
@@ -29546,6 +29588,13 @@ var init_snapshotsDiffer = __esm({
|
|
29546
29588
|
return false;
|
29547
29589
|
}
|
29548
29590
|
}
|
29591
|
+
if (st.type === "alter_table_alter_column_set_notnull") {
|
29592
|
+
if (jsonStatements.find(
|
29593
|
+
(it) => it.type === "alter_table_alter_column_set_identity" && it.tableName === st.tableName && it.schema === st.schema
|
29594
|
+
)) {
|
29595
|
+
return false;
|
29596
|
+
}
|
29597
|
+
}
|
29549
29598
|
return true;
|
29550
29599
|
});
|
29551
29600
|
const sqlStatements = fromJson(filteredJsonStatements, "postgresql");
|
@@ -30100,7 +30149,12 @@ var init_snapshotsDiffer = __esm({
|
|
30100
30149
|
{}
|
30101
30150
|
);
|
30102
30151
|
jsonCreateIndexesForAllAlteredTables.push(
|
30103
|
-
...prepareCreateIndexesJson(
|
30152
|
+
...prepareCreateIndexesJson(
|
30153
|
+
it.name,
|
30154
|
+
it.schema,
|
30155
|
+
createdIndexes || {},
|
30156
|
+
curFull.internal
|
30157
|
+
)
|
30104
30158
|
);
|
30105
30159
|
jsonDropIndexesForAllAlteredTables.push(
|
30106
30160
|
...prepareDropIndexesJson(it.name, it.schema, droppedIndexes || {})
|
@@ -30172,11 +30226,11 @@ var prepareMigrationMetadata, adjectives, heroes;
|
|
30172
30226
|
var init_words = __esm({
|
30173
30227
|
"src/utils/words.ts"() {
|
30174
30228
|
"use strict";
|
30175
|
-
prepareMigrationMetadata = (idx, name) => {
|
30176
|
-
const
|
30229
|
+
prepareMigrationMetadata = (idx, prefixMode, name) => {
|
30230
|
+
const prefix2 = prefixMode === "index" ? idx.toFixed(0).padStart(4, "0") : prefixMode === "timestamp" || prefixMode === "supabase" ? (/* @__PURE__ */ new Date()).toISOString().replace("T", "").replaceAll("-", "").replaceAll(":", "").slice(0, 14) : prefixMode === "unix" ? Math.floor(Date.now() / 1e3) : "";
|
30177
30231
|
const suffix = name || `${adjectives.random()}_${heroes.random()}`;
|
30178
|
-
const tag = `${
|
30179
|
-
return { prefix, suffix, tag };
|
30232
|
+
const tag = `${prefix2}_${suffix}`;
|
30233
|
+
return { prefix: prefix2, suffix, tag };
|
30180
30234
|
};
|
30181
30235
|
adjectives = [
|
30182
30236
|
"abandoned",
|
@@ -31631,7 +31685,8 @@ var init_migrate = __esm({
|
|
31631
31685
|
outFolder,
|
31632
31686
|
name: config.name,
|
31633
31687
|
breakpoints: config.breakpoints,
|
31634
|
-
type: "custom"
|
31688
|
+
type: "custom",
|
31689
|
+
prefixMode: config.prefix
|
31635
31690
|
});
|
31636
31691
|
return;
|
31637
31692
|
}
|
@@ -31654,7 +31709,8 @@ var init_migrate = __esm({
|
|
31654
31709
|
journal,
|
31655
31710
|
outFolder,
|
31656
31711
|
name: config.name,
|
31657
|
-
breakpoints: config.breakpoints
|
31712
|
+
breakpoints: config.breakpoints,
|
31713
|
+
prefixMode: config.prefix
|
31658
31714
|
});
|
31659
31715
|
} catch (e2) {
|
31660
31716
|
console.error(e2);
|
@@ -31729,7 +31785,8 @@ var init_migrate = __esm({
|
|
31729
31785
|
outFolder,
|
31730
31786
|
name: config.name,
|
31731
31787
|
breakpoints: config.breakpoints,
|
31732
|
-
type: "custom"
|
31788
|
+
type: "custom",
|
31789
|
+
prefixMode: config.prefix
|
31733
31790
|
});
|
31734
31791
|
return;
|
31735
31792
|
}
|
@@ -31750,7 +31807,8 @@ var init_migrate = __esm({
|
|
31750
31807
|
_meta,
|
31751
31808
|
outFolder,
|
31752
31809
|
name: config.name,
|
31753
|
-
breakpoints: config.breakpoints
|
31810
|
+
breakpoints: config.breakpoints,
|
31811
|
+
prefixMode: config.prefix
|
31754
31812
|
});
|
31755
31813
|
} catch (e2) {
|
31756
31814
|
console.error(e2);
|
@@ -31777,7 +31835,8 @@ var init_migrate = __esm({
|
|
31777
31835
|
name: config.name,
|
31778
31836
|
breakpoints: config.breakpoints,
|
31779
31837
|
bundle: config.bundle,
|
31780
|
-
type: "custom"
|
31838
|
+
type: "custom",
|
31839
|
+
prefixMode: config.prefix
|
31781
31840
|
});
|
31782
31841
|
return;
|
31783
31842
|
}
|
@@ -31799,7 +31858,8 @@ var init_migrate = __esm({
|
|
31799
31858
|
outFolder,
|
31800
31859
|
name: config.name,
|
31801
31860
|
breakpoints: config.breakpoints,
|
31802
|
-
bundle: config.bundle
|
31861
|
+
bundle: config.bundle,
|
31862
|
+
prefixMode: config.prefix
|
31803
31863
|
});
|
31804
31864
|
} catch (e2) {
|
31805
31865
|
console.error(e2);
|
@@ -31990,7 +32050,8 @@ var init_migrate = __esm({
|
|
31990
32050
|
breakpoints,
|
31991
32051
|
name,
|
31992
32052
|
bundle = false,
|
31993
|
-
type = "none"
|
32053
|
+
type = "none",
|
32054
|
+
prefixMode
|
31994
32055
|
}) => {
|
31995
32056
|
if (type === "none") {
|
31996
32057
|
console.log(schema(cur));
|
@@ -32001,13 +32062,13 @@ var init_migrate = __esm({
|
|
32001
32062
|
}
|
32002
32063
|
const lastEntryInJournal = journal.entries[journal.entries.length - 1];
|
32003
32064
|
const idx = typeof lastEntryInJournal === "undefined" ? 0 : lastEntryInJournal.idx + 1;
|
32004
|
-
const { prefix, tag } = prepareMigrationMetadata(idx, name);
|
32065
|
+
const { prefix: prefix2, tag } = prepareMigrationMetadata(idx, prefixMode, name);
|
32005
32066
|
const toSave = JSON.parse(JSON.stringify(cur));
|
32006
32067
|
toSave["_meta"] = _meta;
|
32007
32068
|
const metaFolderPath = (0, import_path4.join)(outFolder, "meta");
|
32008
32069
|
const metaJournal = (0, import_path4.join)(metaFolderPath, "_journal.json");
|
32009
32070
|
import_fs7.default.writeFileSync(
|
32010
|
-
(0, import_path4.join)(metaFolderPath, `${
|
32071
|
+
(0, import_path4.join)(metaFolderPath, `${prefix2}_snapshot.json`),
|
32011
32072
|
JSON.stringify(toSave, null, 2)
|
32012
32073
|
);
|
32013
32074
|
const sqlDelimiter = breakpoints ? BREAKPOINT : "\n";
|
@@ -32616,8 +32677,8 @@ var require_lib2 = __commonJS({
|
|
32616
32677
|
};
|
32617
32678
|
var getPathPart = (raw2, cmd) => {
|
32618
32679
|
const pathPart = /^".*"$/.test(raw2) ? raw2.slice(1, -1) : raw2;
|
32619
|
-
const
|
32620
|
-
return
|
32680
|
+
const prefix2 = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "";
|
32681
|
+
return prefix2 + join7(pathPart, cmd);
|
32621
32682
|
};
|
32622
32683
|
var which2 = async (cmd, opt = {}) => {
|
32623
32684
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
@@ -34093,15 +34154,15 @@ var require_to_regex_range = __commonJS({
|
|
34093
34154
|
}
|
34094
34155
|
return tokens;
|
34095
34156
|
}
|
34096
|
-
function filterPatterns(arr, comparison,
|
34157
|
+
function filterPatterns(arr, comparison, prefix2, intersection, options) {
|
34097
34158
|
let result = [];
|
34098
34159
|
for (let ele of arr) {
|
34099
34160
|
let { string } = ele;
|
34100
34161
|
if (!intersection && !contains(comparison, "string", string)) {
|
34101
|
-
result.push(
|
34162
|
+
result.push(prefix2 + string);
|
34102
34163
|
}
|
34103
34164
|
if (intersection && contains(comparison, "string", string)) {
|
34104
|
-
result.push(
|
34165
|
+
result.push(prefix2 + string);
|
34105
34166
|
}
|
34106
34167
|
}
|
34107
34168
|
return result;
|
@@ -34217,7 +34278,7 @@ var require_fill_range = __commonJS({
|
|
34217
34278
|
var toSequence = (parts, options, maxLen) => {
|
34218
34279
|
parts.negatives.sort((a3, b4) => a3 < b4 ? -1 : a3 > b4 ? 1 : 0);
|
34219
34280
|
parts.positives.sort((a3, b4) => a3 < b4 ? -1 : a3 > b4 ? 1 : 0);
|
34220
|
-
let
|
34281
|
+
let prefix2 = options.capture ? "" : "?:";
|
34221
34282
|
let positives = "";
|
34222
34283
|
let negatives = "";
|
34223
34284
|
let result;
|
@@ -34225,7 +34286,7 @@ var require_fill_range = __commonJS({
|
|
34225
34286
|
positives = parts.positives.map((v6) => toMaxLen(String(v6), maxLen)).join("|");
|
34226
34287
|
}
|
34227
34288
|
if (parts.negatives.length) {
|
34228
|
-
negatives = `-(${
|
34289
|
+
negatives = `-(${prefix2}${parts.negatives.map((v6) => toMaxLen(String(v6), maxLen)).join("|")})`;
|
34229
34290
|
}
|
34230
34291
|
if (positives && negatives) {
|
34231
34292
|
result = `${positives}|${negatives}`;
|
@@ -34233,7 +34294,7 @@ var require_fill_range = __commonJS({
|
|
34233
34294
|
result = positives || negatives;
|
34234
34295
|
}
|
34235
34296
|
if (options.wrap) {
|
34236
|
-
return `(${
|
34297
|
+
return `(${prefix2}${result})`;
|
34237
34298
|
}
|
34238
34299
|
return result;
|
34239
34300
|
};
|
@@ -34250,8 +34311,8 @@ var require_fill_range = __commonJS({
|
|
34250
34311
|
var toRegex = (start, end, options) => {
|
34251
34312
|
if (Array.isArray(start)) {
|
34252
34313
|
let wrap = options.wrap === true;
|
34253
|
-
let
|
34254
|
-
return wrap ? `(${
|
34314
|
+
let prefix2 = options.capture ? "" : "?:";
|
34315
|
+
return wrap ? `(${prefix2}${start.join("|")})` : start.join("|");
|
34255
34316
|
}
|
34256
34317
|
return toRegexRange(start, end, options);
|
34257
34318
|
};
|
@@ -34378,20 +34439,20 @@ var require_compile = __commonJS({
|
|
34378
34439
|
const invalidBlock = utils.isInvalidBrace(parent);
|
34379
34440
|
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
34380
34441
|
const invalid = invalidBlock === true || invalidNode === true;
|
34381
|
-
const
|
34442
|
+
const prefix2 = options.escapeInvalid === true ? "\\" : "";
|
34382
34443
|
let output = "";
|
34383
34444
|
if (node.isOpen === true) {
|
34384
|
-
return
|
34445
|
+
return prefix2 + node.value;
|
34385
34446
|
}
|
34386
34447
|
if (node.isClose === true) {
|
34387
|
-
console.log("node.isClose",
|
34388
|
-
return
|
34448
|
+
console.log("node.isClose", prefix2, node.value);
|
34449
|
+
return prefix2 + node.value;
|
34389
34450
|
}
|
34390
34451
|
if (node.type === "open") {
|
34391
|
-
return invalid ?
|
34452
|
+
return invalid ? prefix2 + node.value : "(";
|
34392
34453
|
}
|
34393
34454
|
if (node.type === "close") {
|
34394
|
-
return invalid ?
|
34455
|
+
return invalid ? prefix2 + node.value : ")";
|
34395
34456
|
}
|
34396
34457
|
if (node.type === "comma") {
|
34397
34458
|
return node.prev.type === "comma" ? "" : invalid ? node.value : "|";
|
@@ -35427,10 +35488,10 @@ var require_scan = __commonJS({
|
|
35427
35488
|
isGlob = false;
|
35428
35489
|
}
|
35429
35490
|
let base = str;
|
35430
|
-
let
|
35491
|
+
let prefix2 = "";
|
35431
35492
|
let glob2 = "";
|
35432
35493
|
if (start > 0) {
|
35433
|
-
|
35494
|
+
prefix2 = str.slice(0, start);
|
35434
35495
|
str = str.slice(start);
|
35435
35496
|
lastIndex -= start;
|
35436
35497
|
}
|
@@ -35456,7 +35517,7 @@ var require_scan = __commonJS({
|
|
35456
35517
|
}
|
35457
35518
|
}
|
35458
35519
|
const state = {
|
35459
|
-
prefix,
|
35520
|
+
prefix: prefix2,
|
35460
35521
|
input,
|
35461
35522
|
start,
|
35462
35523
|
base,
|
@@ -35485,7 +35546,7 @@ var require_scan = __commonJS({
|
|
35485
35546
|
if (opts.tokens) {
|
35486
35547
|
if (idx === 0 && start !== 0) {
|
35487
35548
|
tokens[idx].isPrefix = true;
|
35488
|
-
tokens[idx].value =
|
35549
|
+
tokens[idx].value = prefix2;
|
35489
35550
|
} else {
|
35490
35551
|
tokens[idx].value = value;
|
35491
35552
|
}
|
@@ -39177,8 +39238,8 @@ var require_ignore = __commonJS({
|
|
39177
39238
|
[
|
39178
39239
|
/(\^|\\\/)?\\\*$/,
|
39179
39240
|
(_3, p1) => {
|
39180
|
-
const
|
39181
|
-
return `${
|
39241
|
+
const prefix2 = p1 ? `${p1}[^/]+` : "[^/]*";
|
39242
|
+
return `${prefix2}(?=$|\\/$)`;
|
39182
39243
|
}
|
39183
39244
|
]
|
39184
39245
|
];
|
@@ -44631,8 +44692,8 @@ var require_directives = __commonJS({
|
|
44631
44692
|
if (parts.length < 2)
|
44632
44693
|
return false;
|
44633
44694
|
}
|
44634
|
-
const [handle,
|
44635
|
-
this.tags[handle] =
|
44695
|
+
const [handle, prefix2] = parts;
|
44696
|
+
this.tags[handle] = prefix2;
|
44636
44697
|
return true;
|
44637
44698
|
}
|
44638
44699
|
case "%YAML": {
|
@@ -44682,10 +44743,10 @@ var require_directives = __commonJS({
|
|
44682
44743
|
const [, handle, suffix] = source.match(/^(.*!)([^!]*)$/s);
|
44683
44744
|
if (!suffix)
|
44684
44745
|
onError(`The ${source} tag has no suffix`);
|
44685
|
-
const
|
44686
|
-
if (
|
44746
|
+
const prefix2 = this.tags[handle];
|
44747
|
+
if (prefix2) {
|
44687
44748
|
try {
|
44688
|
-
return
|
44749
|
+
return prefix2 + decodeURIComponent(suffix);
|
44689
44750
|
} catch (error2) {
|
44690
44751
|
onError(String(error2));
|
44691
44752
|
return null;
|
@@ -44701,9 +44762,9 @@ var require_directives = __commonJS({
|
|
44701
44762
|
* taking into account current tag prefixes and defaults.
|
44702
44763
|
*/
|
44703
44764
|
tagString(tag) {
|
44704
|
-
for (const [handle,
|
44705
|
-
if (tag.startsWith(
|
44706
|
-
return handle + escapeTagName(tag.substring(
|
44765
|
+
for (const [handle, prefix2] of Object.entries(this.tags)) {
|
44766
|
+
if (tag.startsWith(prefix2))
|
44767
|
+
return handle + escapeTagName(tag.substring(prefix2.length));
|
44707
44768
|
}
|
44708
44769
|
return tag[0] === "!" ? tag : `!<${tag}>`;
|
44709
44770
|
}
|
@@ -44720,11 +44781,11 @@ var require_directives = __commonJS({
|
|
44720
44781
|
tagNames = Object.keys(tags);
|
44721
44782
|
} else
|
44722
44783
|
tagNames = [];
|
44723
|
-
for (const [handle,
|
44724
|
-
if (handle === "!!" &&
|
44784
|
+
for (const [handle, prefix2] of tagEntries) {
|
44785
|
+
if (handle === "!!" && prefix2 === "tag:yaml.org,2002:")
|
44725
44786
|
continue;
|
44726
|
-
if (!doc || tagNames.some((tn) => tn.startsWith(
|
44727
|
-
lines.push(`%TAG ${handle} ${
|
44787
|
+
if (!doc || tagNames.some((tn) => tn.startsWith(prefix2)))
|
44788
|
+
lines.push(`%TAG ${handle} ${prefix2}`);
|
44728
44789
|
}
|
44729
44790
|
return lines.join("\n");
|
44730
44791
|
}
|
@@ -44759,14 +44820,14 @@ var require_anchors = __commonJS({
|
|
44759
44820
|
});
|
44760
44821
|
return anchors;
|
44761
44822
|
}
|
44762
|
-
function findNewAnchor(
|
44823
|
+
function findNewAnchor(prefix2, exclude) {
|
44763
44824
|
for (let i2 = 1; true; ++i2) {
|
44764
|
-
const name = `${
|
44825
|
+
const name = `${prefix2}${i2}`;
|
44765
44826
|
if (!exclude.has(name))
|
44766
44827
|
return name;
|
44767
44828
|
}
|
44768
44829
|
}
|
44769
|
-
function createNodeAnchors(doc,
|
44830
|
+
function createNodeAnchors(doc, prefix2) {
|
44770
44831
|
const aliasObjects = [];
|
44771
44832
|
const sourceObjects = /* @__PURE__ */ new Map();
|
44772
44833
|
let prevAnchors = null;
|
@@ -44775,7 +44836,7 @@ var require_anchors = __commonJS({
|
|
44775
44836
|
aliasObjects.push(source);
|
44776
44837
|
if (!prevAnchors)
|
44777
44838
|
prevAnchors = anchorNames(doc);
|
44778
|
-
const anchor = findNewAnchor(
|
44839
|
+
const anchor = findNewAnchor(prefix2, prevAnchors);
|
44779
44840
|
prevAnchors.add(anchor);
|
44780
44841
|
return anchor;
|
44781
44842
|
},
|
@@ -46714,10 +46775,10 @@ var require_int = __commonJS({
|
|
46714
46775
|
var stringifyNumber = require_stringifyNumber();
|
46715
46776
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
46716
46777
|
var intResolve = (str, offset, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix);
|
46717
|
-
function intStringify(node, radix,
|
46778
|
+
function intStringify(node, radix, prefix2) {
|
46718
46779
|
const { value } = node;
|
46719
46780
|
if (intIdentify(value) && value >= 0)
|
46720
|
-
return
|
46781
|
+
return prefix2 + value.toString(radix);
|
46721
46782
|
return stringifyNumber.stringifyNumber(node);
|
46722
46783
|
}
|
46723
46784
|
var intOct = {
|
@@ -47177,11 +47238,11 @@ var require_int2 = __commonJS({
|
|
47177
47238
|
const n = parseInt(str, radix);
|
47178
47239
|
return sign === "-" ? -1 * n : n;
|
47179
47240
|
}
|
47180
|
-
function intStringify(node, radix,
|
47241
|
+
function intStringify(node, radix, prefix2) {
|
47181
47242
|
const { value } = node;
|
47182
47243
|
if (intIdentify(value)) {
|
47183
47244
|
const str = value.toString(radix);
|
47184
|
-
return value < 0 ? "-" +
|
47245
|
+
return value < 0 ? "-" + prefix2 + str.substr(1) : prefix2 + str;
|
47185
47246
|
}
|
47186
47247
|
return stringifyNumber.stringifyNumber(node);
|
47187
47248
|
}
|
@@ -53244,11 +53305,11 @@ var require_receiver = __commonJS({
|
|
53244
53305
|
* @return {(Error|RangeError)} The error
|
53245
53306
|
* @private
|
53246
53307
|
*/
|
53247
|
-
createError(ErrorCtor, message,
|
53308
|
+
createError(ErrorCtor, message, prefix2, statusCode, errorCode) {
|
53248
53309
|
this._loop = false;
|
53249
53310
|
this._errored = true;
|
53250
53311
|
const err2 = new ErrorCtor(
|
53251
|
-
|
53312
|
+
prefix2 ? `Invalid WebSocket frame: ${message}` : message
|
53252
53313
|
);
|
53253
53314
|
Error.captureStackTrace(err2, this.createError);
|
53254
53315
|
err2.code = errorCode;
|
@@ -58480,8 +58541,8 @@ var require_dist_cjs8 = __commonJS({
|
|
58480
58541
|
const userAgent = ((_a = context == null ? void 0 : context.userAgent) == null ? void 0 : _a.map(escapeUserAgent)) || [];
|
58481
58542
|
const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent);
|
58482
58543
|
const customUserAgent = ((_b = options == null ? void 0 : options.customUserAgent) == null ? void 0 : _b.map(escapeUserAgent)) || [];
|
58483
|
-
const
|
58484
|
-
const sdkUserAgentValue = (
|
58544
|
+
const prefix2 = (0, import_util_endpoints.getUserAgentPrefix)();
|
58545
|
+
const sdkUserAgentValue = (prefix2 ? [prefix2] : []).concat([...defaultUserAgent, ...userAgent, ...customUserAgent]).join(SPACE2);
|
58485
58546
|
const normalUAValue = [
|
58486
58547
|
...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")),
|
58487
58548
|
...customUserAgent
|
@@ -58504,12 +58565,12 @@ var require_dist_cjs8 = __commonJS({
|
|
58504
58565
|
const name = userAgentPair[0].split(UA_NAME_SEPARATOR).map((part) => part.replace(UA_NAME_ESCAPE_REGEX, UA_ESCAPE_CHAR)).join(UA_NAME_SEPARATOR);
|
58505
58566
|
const version2 = (_a = userAgentPair[1]) == null ? void 0 : _a.replace(UA_VALUE_ESCAPE_REGEX, UA_ESCAPE_CHAR);
|
58506
58567
|
const prefixSeparatorIndex = name.indexOf(UA_NAME_SEPARATOR);
|
58507
|
-
const
|
58568
|
+
const prefix2 = name.substring(0, prefixSeparatorIndex);
|
58508
58569
|
let uaName = name.substring(prefixSeparatorIndex + 1);
|
58509
|
-
if (
|
58570
|
+
if (prefix2 === "api") {
|
58510
58571
|
uaName = uaName.toLowerCase();
|
58511
58572
|
}
|
58512
|
-
return [
|
58573
|
+
return [prefix2, uaName, version2].filter((item) => item && item.length > 0).reduce((acc, item, index4) => {
|
58513
58574
|
switch (index4) {
|
58514
58575
|
case 0:
|
58515
58576
|
return item;
|
@@ -59177,9 +59238,9 @@ var require_dist_cjs13 = __commonJS({
|
|
59177
59238
|
const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);
|
59178
59239
|
const matches = prefixKeyRegex.exec(sectionName);
|
59179
59240
|
if (matches) {
|
59180
|
-
const [,
|
59181
|
-
if (Object.values(import_types7.IniSectionType).includes(
|
59182
|
-
currentSection = [
|
59241
|
+
const [, prefix2, , name] = matches;
|
59242
|
+
if (Object.values(import_types7.IniSectionType).includes(prefix2)) {
|
59243
|
+
currentSection = [prefix2, name].join(CONFIG_PREFIX_SEPARATOR);
|
59183
59244
|
}
|
59184
59245
|
} else {
|
59185
59246
|
currentSection = sectionName;
|
@@ -66153,12 +66214,12 @@ var require_OrderedObjParser = __commonJS({
|
|
66153
66214
|
function resolveNameSpace(tagname) {
|
66154
66215
|
if (this.options.removeNSPrefix) {
|
66155
66216
|
const tags = tagname.split(":");
|
66156
|
-
const
|
66217
|
+
const prefix2 = tagname.charAt(0) === "/" ? "/" : "";
|
66157
66218
|
if (tags[0] === "xmlns") {
|
66158
66219
|
return "";
|
66159
66220
|
}
|
66160
66221
|
if (tags.length === 2) {
|
66161
|
-
tagname =
|
66222
|
+
tagname = prefix2 + tags[1];
|
66162
66223
|
}
|
66163
66224
|
}
|
66164
66225
|
return tagname;
|
@@ -67362,10 +67423,10 @@ function __runInitializers(thisArg, initializers, value) {
|
|
67362
67423
|
function __propKey(x3) {
|
67363
67424
|
return typeof x3 === "symbol" ? x3 : "".concat(x3);
|
67364
67425
|
}
|
67365
|
-
function __setFunctionName(f3, name,
|
67426
|
+
function __setFunctionName(f3, name, prefix2) {
|
67366
67427
|
if (typeof name === "symbol")
|
67367
67428
|
name = name.description ? "[".concat(name.description, "]") : "";
|
67368
|
-
return Object.defineProperty(f3, "name", { configurable: true, value:
|
67429
|
+
return Object.defineProperty(f3, "name", { configurable: true, value: prefix2 ? "".concat(prefix2, " ", name) : name });
|
67369
67430
|
}
|
67370
67431
|
function __metadata(metadataKey, metadataValue) {
|
67371
67432
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
@@ -89467,9 +89528,9 @@ var require_receiver2 = __commonJS({
|
|
89467
89528
|
}
|
89468
89529
|
};
|
89469
89530
|
module2.exports = Receiver3;
|
89470
|
-
function error2(ErrorCtor, message,
|
89531
|
+
function error2(ErrorCtor, message, prefix2, statusCode, errorCode) {
|
89471
89532
|
const err2 = new ErrorCtor(
|
89472
|
-
|
89533
|
+
prefix2 ? `Invalid WebSocket frame: ${message}` : message
|
89473
89534
|
);
|
89474
89535
|
Error.captureStackTrace(err2, error2);
|
89475
89536
|
err2.code = errorCode;
|
@@ -91646,7 +91707,7 @@ var init_index_node = __esm({
|
|
91646
91707
|
}
|
91647
91708
|
});
|
91648
91709
|
|
91649
|
-
// node_modules/.pnpm/@neondatabase+serverless@0.9.
|
91710
|
+
// node_modules/.pnpm/@neondatabase+serverless@0.9.4/node_modules/@neondatabase/serverless/index.mjs
|
91650
91711
|
var serverless_exports = {};
|
91651
91712
|
__export(serverless_exports, {
|
91652
91713
|
Client: () => xn2,
|
@@ -92006,7 +92067,7 @@ function Qc2(r2, e2) {
|
|
92006
92067
|
}
|
92007
92068
|
var eo2, Ie2, to2, ro2, no2, io2, so, a2, z2, T2, ie, An, Qe, N, _2, Tn2, Pn, $n, b3, S3, v2, g, d2, m3, p3, we, je, Go2, He2, ni2, U, $e2, ii, Ot, Nt, Qt2, Wt2, ci, li, di, mi, Ei2, Ai, Bi, Ri, Je, Xe2, et2, qi2, Xt2, er2, tr2, rr2, nr2, au, ir2, Qi2, or2, sr2, Wi, $i, zi, Zi, hr2, Xi2, Cu, es2, ts, fr2, ns, mt, cs, ps2, ys2, ds2, Fu, E, Ae2, gt2, zr2, ms, ws2, bs2, vs2, on2, Es, _s2, cn2, Bs, Ms, Ds2, Ac, ks2, Us2, qs, Hs, wn2, At2, Ct2, Ks2, Sn3, Ce, $s, Nc2, Zs2, xe, vn3, xn2, En3, Ys2, export_ClientBase2, export_Connection2, export_DatabaseError2, export_Query2, export_defaults2, export_types2;
|
92008
92069
|
var init_serverless2 = __esm({
|
92009
|
-
"node_modules/.pnpm/@neondatabase+serverless@0.9.
|
92070
|
+
"node_modules/.pnpm/@neondatabase+serverless@0.9.4/node_modules/@neondatabase/serverless/index.mjs"() {
|
92010
92071
|
eo2 = Object.create;
|
92011
92072
|
Ie2 = Object.defineProperty;
|
92012
92073
|
to2 = Object.getOwnPropertyDescriptor;
|
@@ -103190,13 +103251,13 @@ var require_dbcs_codec = __commonJS({
|
|
103190
103251
|
uCode = seq[seq.length - 1];
|
103191
103252
|
node[uCode] = dbcsCode;
|
103192
103253
|
};
|
103193
|
-
DBCSCodec.prototype._fillEncodeTable = function(nodeIdx,
|
103254
|
+
DBCSCodec.prototype._fillEncodeTable = function(nodeIdx, prefix2, skipEncodeChars) {
|
103194
103255
|
var node = this.decodeTables[nodeIdx];
|
103195
103256
|
var hasValues = false;
|
103196
103257
|
var subNodeEmpty = {};
|
103197
103258
|
for (var i3 = 0; i3 < 256; i3++) {
|
103198
103259
|
var uCode = node[i3];
|
103199
|
-
var mbCode =
|
103260
|
+
var mbCode = prefix2 + i3;
|
103200
103261
|
if (skipEncodeChars[mbCode])
|
103201
103262
|
continue;
|
103202
103263
|
if (uCode >= 0) {
|
@@ -110717,11 +110778,11 @@ var require_esprima = __commonJS({
|
|
110717
110778
|
}();
|
110718
110779
|
exports3.UnaryExpression = UnaryExpression;
|
110719
110780
|
var UpdateExpression = /* @__PURE__ */ function() {
|
110720
|
-
function UpdateExpression2(operator, argument,
|
110781
|
+
function UpdateExpression2(operator, argument, prefix2) {
|
110721
110782
|
this.type = syntax_1.Syntax.UpdateExpression;
|
110722
110783
|
this.operator = operator;
|
110723
110784
|
this.argument = argument;
|
110724
|
-
this.prefix =
|
110785
|
+
this.prefix = prefix2;
|
110725
110786
|
}
|
110726
110787
|
return UpdateExpression2;
|
110727
110788
|
}();
|
@@ -111834,8 +111895,8 @@ var require_esprima = __commonJS({
|
|
111834
111895
|
if (!this.context.isAssignmentTarget) {
|
111835
111896
|
this.tolerateError(messages_1.Messages.InvalidLHSInAssignment);
|
111836
111897
|
}
|
111837
|
-
var
|
111838
|
-
expr = this.finalize(node, new Node3.UpdateExpression(token.value, expr,
|
111898
|
+
var prefix2 = true;
|
111899
|
+
expr = this.finalize(node, new Node3.UpdateExpression(token.value, expr, prefix2));
|
111839
111900
|
this.context.isAssignmentTarget = false;
|
111840
111901
|
this.context.isBindingElement = false;
|
111841
111902
|
} else {
|
@@ -111851,8 +111912,8 @@ var require_esprima = __commonJS({
|
|
111851
111912
|
this.context.isAssignmentTarget = false;
|
111852
111913
|
this.context.isBindingElement = false;
|
111853
111914
|
var operator = this.nextToken().value;
|
111854
|
-
var
|
111855
|
-
expr = this.finalize(this.startNode(startToken), new Node3.UpdateExpression(operator, expr,
|
111915
|
+
var prefix2 = false;
|
111916
|
+
expr = this.finalize(this.startNode(startToken), new Node3.UpdateExpression(operator, expr, prefix2));
|
111856
111917
|
}
|
111857
111918
|
}
|
111858
111919
|
}
|
@@ -114054,8 +114115,8 @@ var require_esprima = __commonJS({
|
|
114054
114115
|
}
|
114055
114116
|
return cp;
|
114056
114117
|
};
|
114057
|
-
Scanner2.prototype.scanHexEscape = function(
|
114058
|
-
var len =
|
114118
|
+
Scanner2.prototype.scanHexEscape = function(prefix2) {
|
114119
|
+
var len = prefix2 === "u" ? 4 : 2;
|
114059
114120
|
var code = 0;
|
114060
114121
|
for (var i2 = 0; i2 < len; ++i2) {
|
114061
114122
|
if (!this.eof() && character_1.Character.isHexDigit(this.source.charCodeAt(this.index))) {
|
@@ -114313,10 +114374,10 @@ var require_esprima = __commonJS({
|
|
114313
114374
|
end: this.index
|
114314
114375
|
};
|
114315
114376
|
};
|
114316
|
-
Scanner2.prototype.scanOctalLiteral = function(
|
114377
|
+
Scanner2.prototype.scanOctalLiteral = function(prefix2, start) {
|
114317
114378
|
var num = "";
|
114318
114379
|
var octal = false;
|
114319
|
-
if (character_1.Character.isOctalDigit(
|
114380
|
+
if (character_1.Character.isOctalDigit(prefix2.charCodeAt(0))) {
|
114320
114381
|
octal = true;
|
114321
114382
|
num = "0" + this.source[this.index++];
|
114322
114383
|
} else {
|
@@ -122107,7 +122168,7 @@ var init_pgPushUtils = __esm({
|
|
122107
122168
|
}
|
122108
122169
|
}
|
122109
122170
|
}
|
122110
|
-
const stmnt = fromJson([statement], "postgresql")
|
122171
|
+
const stmnt = fromJson([statement], "postgresql");
|
122111
122172
|
if (typeof stmnt !== "undefined") {
|
122112
122173
|
if (statement.type === "drop_table") {
|
122113
122174
|
statementsToExecute.push(
|
@@ -122117,7 +122178,7 @@ var init_pgPushUtils = __esm({
|
|
122117
122178
|
)} CASCADE;`
|
122118
122179
|
);
|
122119
122180
|
} else {
|
122120
|
-
statementsToExecute.push(stmnt);
|
122181
|
+
statementsToExecute.push(...stmnt);
|
122121
122182
|
}
|
122122
122183
|
}
|
122123
122184
|
}
|
@@ -122349,14 +122410,14 @@ var init_sqlitePushUtils = __esm({
|
|
122349
122410
|
}
|
122350
122411
|
tablesContext[newTableName] = _moveDataStatements(
|
122351
122412
|
statement.tableName,
|
122352
|
-
|
122413
|
+
json1,
|
122353
122414
|
true
|
122354
122415
|
);
|
122355
122416
|
} else {
|
122356
122417
|
if (typeof tablesContext[newTableName] === "undefined") {
|
122357
122418
|
tablesContext[newTableName] = _moveDataStatements(
|
122358
122419
|
statement.tableName,
|
122359
|
-
|
122420
|
+
json1
|
122360
122421
|
);
|
122361
122422
|
}
|
122362
122423
|
}
|
@@ -122375,7 +122436,7 @@ var init_sqlitePushUtils = __esm({
|
|
122375
122436
|
const uniqueTableRefs = [...new Set(tablesReferncingCurrent)];
|
122376
122437
|
for (const table4 of uniqueTableRefs) {
|
122377
122438
|
if (typeof tablesContext[table4] === "undefined") {
|
122378
|
-
tablesContext[table4] = [..._moveDataStatements(table4,
|
122439
|
+
tablesContext[table4] = [..._moveDataStatements(table4, json1)];
|
122379
122440
|
}
|
122380
122441
|
}
|
122381
122442
|
}
|
@@ -122396,9 +122457,9 @@ var init_sqlitePushUtils = __esm({
|
|
122396
122457
|
);
|
122397
122458
|
}
|
122398
122459
|
} else {
|
122399
|
-
const stmnt = fromJson([statement], "sqlite")
|
122460
|
+
const stmnt = fromJson([statement], "sqlite");
|
122400
122461
|
if (typeof stmnt !== "undefined") {
|
122401
|
-
statementsToExecute.push(stmnt);
|
122462
|
+
statementsToExecute.push(...stmnt);
|
122402
122463
|
}
|
122403
122464
|
}
|
122404
122465
|
}
|
@@ -123998,7 +124059,7 @@ var init_push = __esm({
|
|
123998
124059
|
init_mysqlPushUtils();
|
123999
124060
|
init_pgPushUtils();
|
124000
124061
|
init_sqlitePushUtils();
|
124001
|
-
mysqlPush = async (schemaPath, credentials2, tablesFilter, strict, verbose) => {
|
124062
|
+
mysqlPush = async (schemaPath, credentials2, tablesFilter, strict, verbose, force) => {
|
124002
124063
|
const { connectToMySQL: connectToMySQL2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
124003
124064
|
const { mysqlPushIntrospect: mysqlPushIntrospect2 } = await Promise.resolve().then(() => (init_mysqlIntrospect(), mysqlIntrospect_exports));
|
124004
124065
|
const { db: db2, database } = await connectToMySQL2(credentials2);
|
@@ -124039,7 +124100,7 @@ var init_push = __esm({
|
|
124039
124100
|
);
|
124040
124101
|
console.log();
|
124041
124102
|
}
|
124042
|
-
if (strict) {
|
124103
|
+
if (!force && strict) {
|
124043
124104
|
if (!shouldAskForApprove) {
|
124044
124105
|
const { status, data } = await (0, import_hanji11.render)(
|
124045
124106
|
new Select(["No, abort", `Yes, I want to execute all statements`])
|
@@ -124050,7 +124111,7 @@ var init_push = __esm({
|
|
124050
124111
|
}
|
124051
124112
|
}
|
124052
124113
|
}
|
124053
|
-
if (shouldAskForApprove) {
|
124114
|
+
if (!force && shouldAskForApprove) {
|
124054
124115
|
console.log(withStyle.warning("Found data-loss statements:"));
|
124055
124116
|
console.log(infoToPrint.join("\n"));
|
124056
124117
|
console.log();
|
@@ -124087,7 +124148,7 @@ var init_push = __esm({
|
|
124087
124148
|
console.log(e2);
|
124088
124149
|
}
|
124089
124150
|
};
|
124090
|
-
pgPush = async (schemaPath, verbose, strict, credentials2, tablesFilter, schemasFilter) => {
|
124151
|
+
pgPush = async (schemaPath, verbose, strict, credentials2, tablesFilter, schemasFilter, force) => {
|
124091
124152
|
const { preparePostgresDB: preparePostgresDB2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
124092
124153
|
const { pgPushIntrospect: pgPushIntrospect2 } = await Promise.resolve().then(() => (init_pgIntrospect(), pgIntrospect_exports));
|
124093
124154
|
const db2 = await preparePostgresDB2(credentials2);
|
@@ -124116,7 +124177,7 @@ var init_push = __esm({
|
|
124116
124177
|
console.log(statementsToExecute.map((s2) => source_default.blue(s2)).join("\n"));
|
124117
124178
|
console.log();
|
124118
124179
|
}
|
124119
|
-
if (strict) {
|
124180
|
+
if (!force && strict) {
|
124120
124181
|
if (!shouldAskForApprove) {
|
124121
124182
|
const { status, data } = await (0, import_hanji11.render)(
|
124122
124183
|
new Select(["No, abort", `Yes, I want to execute all statements`])
|
@@ -124127,7 +124188,7 @@ var init_push = __esm({
|
|
124127
124188
|
}
|
124128
124189
|
}
|
124129
124190
|
}
|
124130
|
-
if (shouldAskForApprove) {
|
124191
|
+
if (!force && shouldAskForApprove) {
|
124131
124192
|
console.log(withStyle.warning("Found data-loss statements:"));
|
124132
124193
|
console.log(infoToPrint.join("\n"));
|
124133
124194
|
console.log();
|
@@ -124161,7 +124222,7 @@ var init_push = __esm({
|
|
124161
124222
|
console.error(e2);
|
124162
124223
|
}
|
124163
124224
|
};
|
124164
|
-
sqlitePush = async (schemaPath, verbose, strict, credentials2, tablesFilter) => {
|
124225
|
+
sqlitePush = async (schemaPath, verbose, strict, credentials2, tablesFilter, force) => {
|
124165
124226
|
const { connectToSQLite: connectToSQLite2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
124166
124227
|
const { sqlitePushIntrospect: sqlitePushIntrospect2 } = await Promise.resolve().then(() => (init_sqliteIntrospect(), sqliteIntrospect_exports));
|
124167
124228
|
const db2 = await connectToSQLite2(credentials2);
|
@@ -124196,7 +124257,7 @@ var init_push = __esm({
|
|
124196
124257
|
console.log(statementsToExecute.map((s2) => source_default.blue(s2)).join("\n"));
|
124197
124258
|
console.log();
|
124198
124259
|
}
|
124199
|
-
if (strict) {
|
124260
|
+
if (!force && strict) {
|
124200
124261
|
if (!shouldAskForApprove) {
|
124201
124262
|
const { status, data } = await (0, import_hanji11.render)(
|
124202
124263
|
new Select(["No, abort", `Yes, I want to execute all statements`])
|
@@ -124207,7 +124268,7 @@ var init_push = __esm({
|
|
124207
124268
|
}
|
124208
124269
|
}
|
124209
124270
|
}
|
124210
|
-
if (shouldAskForApprove) {
|
124271
|
+
if (!force && shouldAskForApprove) {
|
124211
124272
|
console.log(withStyle.warning("Found data-loss statements:"));
|
124212
124273
|
console.log(infoToPrint.join("\n"));
|
124213
124274
|
console.log();
|
@@ -124228,25 +124289,24 @@ var init_push = __esm({
|
|
124228
124289
|
process.exit(0);
|
124229
124290
|
}
|
124230
124291
|
}
|
124231
|
-
if (!("driver" in credentials2)) {
|
124232
|
-
await db2.query("begin");
|
124233
|
-
try {
|
124234
|
-
for (const dStmnt of statementsToExecute) {
|
124235
|
-
await db2.query(dStmnt);
|
124236
|
-
}
|
124237
|
-
await db2.query("commit");
|
124238
|
-
} catch (e2) {
|
124239
|
-
await db2.query("rollback");
|
124240
|
-
}
|
124241
|
-
} else if (credentials2.driver === "turso") {
|
124242
|
-
await db2.batch(statementsToExecute.map((it) => ({ query: it })));
|
124243
|
-
}
|
124244
124292
|
if (statementsToExecute.length === 0) {
|
124245
124293
|
(0, import_hanji11.render)(`
|
124246
124294
|
[${source_default.blue("i")}] No changes detected`);
|
124247
124295
|
} else {
|
124248
|
-
|
124249
|
-
await db2.
|
124296
|
+
if (!("driver" in credentials2)) {
|
124297
|
+
await db2.query("begin");
|
124298
|
+
try {
|
124299
|
+
for (const dStmnt of statementsToExecute) {
|
124300
|
+
await db2.query(dStmnt);
|
124301
|
+
}
|
124302
|
+
await db2.query("commit");
|
124303
|
+
} catch (e2) {
|
124304
|
+
console.error(e2);
|
124305
|
+
await db2.query("rollback");
|
124306
|
+
process.exit(1);
|
124307
|
+
}
|
124308
|
+
} else if (credentials2.driver === "turso") {
|
124309
|
+
await db2.batch(statementsToExecute.map((it) => ({ query: it })));
|
124250
124310
|
}
|
124251
124311
|
(0, import_hanji11.render)(`[${source_default.green("\u2713")}] Changes applied`);
|
124252
124312
|
}
|
@@ -125902,7 +125962,7 @@ var init_introspect = __esm({
|
|
125902
125962
|
init_introspect_mysql();
|
125903
125963
|
init_introspect_pg();
|
125904
125964
|
import_pluralize = __toESM(require_pluralize());
|
125905
|
-
introspectPostgres = async (casing2, out, breakpoints, credentials2, tablesFilter, schemasFilter) => {
|
125965
|
+
introspectPostgres = async (casing2, out, breakpoints, credentials2, tablesFilter, schemasFilter, prefix2) => {
|
125906
125966
|
const { preparePostgresDB: preparePostgresDB2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
125907
125967
|
const db2 = await preparePostgresDB2(credentials2);
|
125908
125968
|
const matchers = tablesFilter.map((it) => {
|
@@ -125962,7 +126022,8 @@ var init_introspect = __esm({
|
|
125962
126022
|
_meta,
|
125963
126023
|
outFolder: out,
|
125964
126024
|
breakpoints,
|
125965
|
-
type: "introspect"
|
126025
|
+
type: "introspect",
|
126026
|
+
prefixMode: prefix2
|
125966
126027
|
});
|
125967
126028
|
} else {
|
125968
126029
|
(0, import_hanji12.render)(
|
@@ -125985,7 +126046,7 @@ var init_introspect = __esm({
|
|
125985
126046
|
);
|
125986
126047
|
process.exit(0);
|
125987
126048
|
};
|
125988
|
-
introspectMysql = async (casing2, out, breakpoints, credentials2, tablesFilter) => {
|
126049
|
+
introspectMysql = async (casing2, out, breakpoints, credentials2, tablesFilter, prefix2) => {
|
125989
126050
|
const { connectToMySQL: connectToMySQL2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
125990
126051
|
const { db: db2, database } = await connectToMySQL2(credentials2);
|
125991
126052
|
const matchers = tablesFilter.map((it) => {
|
@@ -126043,7 +126104,8 @@ var init_introspect = __esm({
|
|
126043
126104
|
_meta,
|
126044
126105
|
outFolder: out,
|
126045
126106
|
breakpoints,
|
126046
|
-
type: "introspect"
|
126107
|
+
type: "introspect",
|
126108
|
+
prefixMode: prefix2
|
126047
126109
|
});
|
126048
126110
|
} else {
|
126049
126111
|
(0, import_hanji12.render)(
|
@@ -126066,7 +126128,7 @@ var init_introspect = __esm({
|
|
126066
126128
|
);
|
126067
126129
|
process.exit(0);
|
126068
126130
|
};
|
126069
|
-
introspectSqlite = async (casing2, out, breakpoints, credentials2, tablesFilter) => {
|
126131
|
+
introspectSqlite = async (casing2, out, breakpoints, credentials2, tablesFilter, prefix2) => {
|
126070
126132
|
const { connectToSQLite: connectToSQLite2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
126071
126133
|
const db2 = await connectToSQLite2(credentials2);
|
126072
126134
|
const matchers = tablesFilter.map((it) => {
|
@@ -126123,7 +126185,8 @@ var init_introspect = __esm({
|
|
126123
126185
|
_meta,
|
126124
126186
|
outFolder: out,
|
126125
126187
|
breakpoints,
|
126126
|
-
type: "introspect"
|
126188
|
+
type: "introspect",
|
126189
|
+
prefixMode: prefix2
|
126127
126190
|
});
|
126128
126191
|
} else {
|
126129
126192
|
(0, import_hanji12.render)(
|
@@ -126693,10 +126756,10 @@ var init_dist3 = __esm({
|
|
126693
126756
|
}
|
126694
126757
|
});
|
126695
126758
|
|
126696
|
-
// node_modules/.pnpm/hono@4.4.
|
126759
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/url.js
|
126697
126760
|
var splitPath, splitRoutingPath, extractGroupsFromPath, replaceGroupMarks, patternCache, getPattern, tryDecodeURI, getPath, getPathNoStrict, mergePath, checkOptionalParameter, _decodeURI, _getQueryParam, getQueryParam, getQueryParams, decodeURIComponent_;
|
126698
126761
|
var init_url = __esm({
|
126699
|
-
"node_modules/.pnpm/hono@4.4.
|
126762
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/url.js"() {
|
126700
126763
|
splitPath = (path5) => {
|
126701
126764
|
const paths = path5.split("/");
|
126702
126765
|
if (paths[0] === "") {
|
@@ -126911,10 +126974,10 @@ var init_url = __esm({
|
|
126911
126974
|
}
|
126912
126975
|
});
|
126913
126976
|
|
126914
|
-
// node_modules/.pnpm/hono@4.4.
|
126977
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/cookie.js
|
126915
126978
|
var validCookieNameRegEx, validCookieValueRegEx, parse5;
|
126916
126979
|
var init_cookie = __esm({
|
126917
|
-
"node_modules/.pnpm/hono@4.4.
|
126980
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/cookie.js"() {
|
126918
126981
|
init_url();
|
126919
126982
|
validCookieNameRegEx = /^[\w!#$%&'*.^`|~+-]+$/;
|
126920
126983
|
validCookieValueRegEx = /^[ !#-:<-[\]-~]*$/;
|
@@ -126943,21 +127006,21 @@ var init_cookie = __esm({
|
|
126943
127006
|
}
|
126944
127007
|
});
|
126945
127008
|
|
126946
|
-
// node_modules/.pnpm/hono@4.4.
|
127009
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/helper/cookie/index.js
|
126947
127010
|
var getCookie;
|
126948
127011
|
var init_cookie2 = __esm({
|
126949
|
-
"node_modules/.pnpm/hono@4.4.
|
127012
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/helper/cookie/index.js"() {
|
126950
127013
|
init_cookie();
|
126951
|
-
getCookie = (c, key,
|
127014
|
+
getCookie = (c, key, prefix2) => {
|
126952
127015
|
const cookie = c.req.raw.headers.get("Cookie");
|
126953
127016
|
if (typeof key === "string") {
|
126954
127017
|
if (!cookie) {
|
126955
127018
|
return void 0;
|
126956
127019
|
}
|
126957
127020
|
let finalKey = key;
|
126958
|
-
if (
|
127021
|
+
if (prefix2 === "secure") {
|
126959
127022
|
finalKey = "__Secure-" + key;
|
126960
|
-
} else if (
|
127023
|
+
} else if (prefix2 === "host") {
|
126961
127024
|
finalKey = "__Host-" + key;
|
126962
127025
|
}
|
126963
127026
|
const obj2 = parse5(cookie, finalKey);
|
@@ -126972,10 +127035,10 @@ var init_cookie2 = __esm({
|
|
126972
127035
|
}
|
126973
127036
|
});
|
126974
127037
|
|
126975
|
-
// node_modules/.pnpm/hono@4.4.
|
127038
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/http-exception.js
|
126976
127039
|
var HTTPException;
|
126977
127040
|
var init_http_exception = __esm({
|
126978
|
-
"node_modules/.pnpm/hono@4.4.
|
127041
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/http-exception.js"() {
|
126979
127042
|
HTTPException = class extends Error {
|
126980
127043
|
res;
|
126981
127044
|
status;
|
@@ -127000,16 +127063,16 @@ var init_http_exception = __esm({
|
|
127000
127063
|
}
|
127001
127064
|
});
|
127002
127065
|
|
127003
|
-
// node_modules/.pnpm/hono@4.4.
|
127066
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/crypto.js
|
127004
127067
|
var init_crypto = __esm({
|
127005
|
-
"node_modules/.pnpm/hono@4.4.
|
127068
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/crypto.js"() {
|
127006
127069
|
}
|
127007
127070
|
});
|
127008
127071
|
|
127009
|
-
// node_modules/.pnpm/hono@4.4.
|
127072
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/buffer.js
|
127010
127073
|
var bufferToFormData;
|
127011
127074
|
var init_buffer = __esm({
|
127012
|
-
"node_modules/.pnpm/hono@4.4.
|
127075
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/buffer.js"() {
|
127013
127076
|
init_crypto();
|
127014
127077
|
bufferToFormData = (arrayBuffer, contentType) => {
|
127015
127078
|
const response = new Response(arrayBuffer, {
|
@@ -127022,10 +127085,10 @@ var init_buffer = __esm({
|
|
127022
127085
|
}
|
127023
127086
|
});
|
127024
127087
|
|
127025
|
-
// node_modules/.pnpm/hono@4.4.
|
127088
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/validator/validator.js
|
127026
127089
|
var validator;
|
127027
127090
|
var init_validator = __esm({
|
127028
|
-
"node_modules/.pnpm/hono@4.4.
|
127091
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/validator/validator.js"() {
|
127029
127092
|
init_cookie2();
|
127030
127093
|
init_http_exception();
|
127031
127094
|
init_buffer();
|
@@ -127107,17 +127170,17 @@ var init_validator = __esm({
|
|
127107
127170
|
}
|
127108
127171
|
});
|
127109
127172
|
|
127110
|
-
// node_modules/.pnpm/hono@4.4.
|
127173
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/validator/index.js
|
127111
127174
|
var init_validator2 = __esm({
|
127112
|
-
"node_modules/.pnpm/hono@4.4.
|
127175
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/validator/index.js"() {
|
127113
127176
|
init_validator();
|
127114
127177
|
}
|
127115
127178
|
});
|
127116
127179
|
|
127117
|
-
// node_modules/.pnpm/@hono+zod-validator@0.2.2_hono@4.4.
|
127180
|
+
// node_modules/.pnpm/@hono+zod-validator@0.2.2_hono@4.4.9_zod@3.23.8/node_modules/@hono/zod-validator/dist/esm/index.js
|
127118
127181
|
var zValidator;
|
127119
127182
|
var init_esm = __esm({
|
127120
|
-
"node_modules/.pnpm/@hono+zod-validator@0.2.2_hono@4.4.
|
127183
|
+
"node_modules/.pnpm/@hono+zod-validator@0.2.2_hono@4.4.9_zod@3.23.8/node_modules/@hono/zod-validator/dist/esm/index.js"() {
|
127121
127184
|
init_validator2();
|
127122
127185
|
zValidator = (target, schema5, hook2) => (
|
127123
127186
|
// @ts-expect-error not typed well
|
@@ -127143,10 +127206,195 @@ var init_esm = __esm({
|
|
127143
127206
|
}
|
127144
127207
|
});
|
127145
127208
|
|
127146
|
-
// node_modules/.pnpm/hono@4.4.
|
127209
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/body.js
|
127210
|
+
async function parseFormData(request, options) {
|
127211
|
+
const formData = await request.formData();
|
127212
|
+
if (formData) {
|
127213
|
+
return convertFormDataToBodyData(formData, options);
|
127214
|
+
}
|
127215
|
+
return {};
|
127216
|
+
}
|
127217
|
+
function convertFormDataToBodyData(formData, options) {
|
127218
|
+
const form = /* @__PURE__ */ Object.create(null);
|
127219
|
+
formData.forEach((value, key) => {
|
127220
|
+
const shouldParseAllValues = options.all || key.endsWith("[]");
|
127221
|
+
if (!shouldParseAllValues) {
|
127222
|
+
form[key] = value;
|
127223
|
+
} else {
|
127224
|
+
handleParsingAllValues(form, key, value);
|
127225
|
+
}
|
127226
|
+
});
|
127227
|
+
if (options.dot) {
|
127228
|
+
Object.entries(form).forEach(([key, value]) => {
|
127229
|
+
const shouldParseDotValues = key.includes(".");
|
127230
|
+
if (shouldParseDotValues) {
|
127231
|
+
handleParsingNestedValues(form, key, value);
|
127232
|
+
delete form[key];
|
127233
|
+
}
|
127234
|
+
});
|
127235
|
+
}
|
127236
|
+
return form;
|
127237
|
+
}
|
127238
|
+
var parseBody, handleParsingAllValues, handleParsingNestedValues;
|
127239
|
+
var init_body2 = __esm({
|
127240
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/body.js"() {
|
127241
|
+
init_request2();
|
127242
|
+
parseBody = async (request, options = /* @__PURE__ */ Object.create(null)) => {
|
127243
|
+
const { all = false, dot = false } = options;
|
127244
|
+
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
|
127245
|
+
const contentType = headers.get("Content-Type");
|
127246
|
+
if (contentType !== null && contentType.startsWith("multipart/form-data") || contentType !== null && contentType.startsWith("application/x-www-form-urlencoded")) {
|
127247
|
+
return parseFormData(request, { all, dot });
|
127248
|
+
}
|
127249
|
+
return {};
|
127250
|
+
};
|
127251
|
+
handleParsingAllValues = (form, key, value) => {
|
127252
|
+
if (form[key] !== void 0) {
|
127253
|
+
if (Array.isArray(form[key])) {
|
127254
|
+
;
|
127255
|
+
form[key].push(value);
|
127256
|
+
} else {
|
127257
|
+
form[key] = [form[key], value];
|
127258
|
+
}
|
127259
|
+
} else {
|
127260
|
+
form[key] = value;
|
127261
|
+
}
|
127262
|
+
};
|
127263
|
+
handleParsingNestedValues = (form, key, value) => {
|
127264
|
+
let nestedForm = form;
|
127265
|
+
const keys = key.split(".");
|
127266
|
+
keys.forEach((key2, index4) => {
|
127267
|
+
if (index4 === keys.length - 1) {
|
127268
|
+
nestedForm[key2] = value;
|
127269
|
+
} else {
|
127270
|
+
if (!nestedForm[key2] || typeof nestedForm[key2] !== "object" || Array.isArray(nestedForm[key2]) || nestedForm[key2] instanceof File) {
|
127271
|
+
nestedForm[key2] = /* @__PURE__ */ Object.create(null);
|
127272
|
+
}
|
127273
|
+
nestedForm = nestedForm[key2];
|
127274
|
+
}
|
127275
|
+
});
|
127276
|
+
};
|
127277
|
+
}
|
127278
|
+
});
|
127279
|
+
|
127280
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/request.js
|
127281
|
+
var HonoRequest;
|
127282
|
+
var init_request2 = __esm({
|
127283
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/request.js"() {
|
127284
|
+
init_body2();
|
127285
|
+
init_url();
|
127286
|
+
HonoRequest = class {
|
127287
|
+
raw;
|
127288
|
+
#validatedData;
|
127289
|
+
#matchResult;
|
127290
|
+
routeIndex = 0;
|
127291
|
+
path;
|
127292
|
+
bodyCache = {};
|
127293
|
+
constructor(request, path5 = "/", matchResult = [[]]) {
|
127294
|
+
this.raw = request;
|
127295
|
+
this.path = path5;
|
127296
|
+
this.#matchResult = matchResult;
|
127297
|
+
this.#validatedData = {};
|
127298
|
+
}
|
127299
|
+
param(key) {
|
127300
|
+
return key ? this.getDecodedParam(key) : this.getAllDecodedParams();
|
127301
|
+
}
|
127302
|
+
getDecodedParam(key) {
|
127303
|
+
const paramKey = this.#matchResult[0][this.routeIndex][1][key];
|
127304
|
+
const param = this.getParamValue(paramKey);
|
127305
|
+
return param ? /\%/.test(param) ? decodeURIComponent_(param) : param : void 0;
|
127306
|
+
}
|
127307
|
+
getAllDecodedParams() {
|
127308
|
+
const decoded = {};
|
127309
|
+
const keys = Object.keys(this.#matchResult[0][this.routeIndex][1]);
|
127310
|
+
for (const key of keys) {
|
127311
|
+
const value = this.getParamValue(this.#matchResult[0][this.routeIndex][1][key]);
|
127312
|
+
if (value && typeof value === "string") {
|
127313
|
+
decoded[key] = /\%/.test(value) ? decodeURIComponent_(value) : value;
|
127314
|
+
}
|
127315
|
+
}
|
127316
|
+
return decoded;
|
127317
|
+
}
|
127318
|
+
getParamValue(paramKey) {
|
127319
|
+
return this.#matchResult[1] ? this.#matchResult[1][paramKey] : paramKey;
|
127320
|
+
}
|
127321
|
+
query(key) {
|
127322
|
+
return getQueryParam(this.url, key);
|
127323
|
+
}
|
127324
|
+
queries(key) {
|
127325
|
+
return getQueryParams(this.url, key);
|
127326
|
+
}
|
127327
|
+
header(name) {
|
127328
|
+
if (name) {
|
127329
|
+
return this.raw.headers.get(name.toLowerCase()) ?? void 0;
|
127330
|
+
}
|
127331
|
+
const headerData = {};
|
127332
|
+
this.raw.headers.forEach((value, key) => {
|
127333
|
+
headerData[key] = value;
|
127334
|
+
});
|
127335
|
+
return headerData;
|
127336
|
+
}
|
127337
|
+
async parseBody(options) {
|
127338
|
+
return this.bodyCache.parsedBody ??= await parseBody(this, options);
|
127339
|
+
}
|
127340
|
+
cachedBody = (key) => {
|
127341
|
+
const { bodyCache, raw: raw2 } = this;
|
127342
|
+
const cachedBody = bodyCache[key];
|
127343
|
+
if (cachedBody) {
|
127344
|
+
return cachedBody;
|
127345
|
+
}
|
127346
|
+
const anyCachedKey = Object.keys(bodyCache)[0];
|
127347
|
+
if (anyCachedKey) {
|
127348
|
+
return bodyCache[anyCachedKey].then((body) => {
|
127349
|
+
if (anyCachedKey === "json") {
|
127350
|
+
body = JSON.stringify(body);
|
127351
|
+
}
|
127352
|
+
return new Response(body)[key]();
|
127353
|
+
});
|
127354
|
+
}
|
127355
|
+
return bodyCache[key] = raw2[key]();
|
127356
|
+
};
|
127357
|
+
json() {
|
127358
|
+
return this.cachedBody("json");
|
127359
|
+
}
|
127360
|
+
text() {
|
127361
|
+
return this.cachedBody("text");
|
127362
|
+
}
|
127363
|
+
arrayBuffer() {
|
127364
|
+
return this.cachedBody("arrayBuffer");
|
127365
|
+
}
|
127366
|
+
blob() {
|
127367
|
+
return this.cachedBody("blob");
|
127368
|
+
}
|
127369
|
+
formData() {
|
127370
|
+
return this.cachedBody("formData");
|
127371
|
+
}
|
127372
|
+
addValidatedData(target, data) {
|
127373
|
+
this.#validatedData[target] = data;
|
127374
|
+
}
|
127375
|
+
valid(target) {
|
127376
|
+
return this.#validatedData[target];
|
127377
|
+
}
|
127378
|
+
get url() {
|
127379
|
+
return this.raw.url;
|
127380
|
+
}
|
127381
|
+
get method() {
|
127382
|
+
return this.raw.method;
|
127383
|
+
}
|
127384
|
+
get matchedRoutes() {
|
127385
|
+
return this.#matchResult[0].map(([[, route]]) => route);
|
127386
|
+
}
|
127387
|
+
get routePath() {
|
127388
|
+
return this.#matchResult[0].map(([[, route]]) => route)[this.routeIndex].path;
|
127389
|
+
}
|
127390
|
+
};
|
127391
|
+
}
|
127392
|
+
});
|
127393
|
+
|
127394
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/html.js
|
127147
127395
|
var HtmlEscapedCallbackPhase, raw, resolveCallback;
|
127148
127396
|
var init_html = __esm({
|
127149
|
-
"node_modules/.pnpm/hono@4.4.
|
127397
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/html.js"() {
|
127150
127398
|
HtmlEscapedCallbackPhase = {
|
127151
127399
|
Stringify: 1,
|
127152
127400
|
BeforeStream: 2,
|
@@ -127182,10 +127430,11 @@ var init_html = __esm({
|
|
127182
127430
|
}
|
127183
127431
|
});
|
127184
127432
|
|
127185
|
-
// node_modules/.pnpm/hono@4.4.
|
127433
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/context.js
|
127186
127434
|
var TEXT_PLAIN, setHeaders, Context;
|
127187
127435
|
var init_context = __esm({
|
127188
|
-
"node_modules/.pnpm/hono@4.4.
|
127436
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/context.js"() {
|
127437
|
+
init_request2();
|
127189
127438
|
init_html();
|
127190
127439
|
TEXT_PLAIN = "text/plain; charset=UTF-8";
|
127191
127440
|
setHeaders = (headers, map = {}) => {
|
@@ -127193,30 +127442,37 @@ var init_context = __esm({
|
|
127193
127442
|
return headers;
|
127194
127443
|
};
|
127195
127444
|
Context = class {
|
127196
|
-
|
127445
|
+
#rawRequest;
|
127446
|
+
#req;
|
127197
127447
|
env = {};
|
127198
|
-
|
127448
|
+
#var;
|
127199
127449
|
finalized = false;
|
127200
|
-
error
|
127450
|
+
error;
|
127201
127451
|
#status = 200;
|
127202
127452
|
#executionCtx;
|
127203
|
-
#headers
|
127204
|
-
#preparedHeaders
|
127453
|
+
#headers;
|
127454
|
+
#preparedHeaders;
|
127205
127455
|
#res;
|
127206
127456
|
#isFresh = true;
|
127207
|
-
layout
|
127208
|
-
renderer
|
127209
|
-
notFoundHandler
|
127457
|
+
#layout;
|
127458
|
+
#renderer;
|
127459
|
+
#notFoundHandler;
|
127460
|
+
#matchResult;
|
127461
|
+
#path;
|
127210
127462
|
constructor(req, options) {
|
127211
|
-
this
|
127463
|
+
this.#rawRequest = req;
|
127212
127464
|
if (options) {
|
127213
127465
|
this.#executionCtx = options.executionCtx;
|
127214
127466
|
this.env = options.env;
|
127215
|
-
|
127216
|
-
|
127217
|
-
|
127467
|
+
this.#notFoundHandler = options.notFoundHandler;
|
127468
|
+
this.#path = options.path;
|
127469
|
+
this.#matchResult = options.matchResult;
|
127218
127470
|
}
|
127219
127471
|
}
|
127472
|
+
get req() {
|
127473
|
+
this.#req ??= new HonoRequest(this.#rawRequest, this.#path, this.#matchResult);
|
127474
|
+
return this.#req;
|
127475
|
+
}
|
127220
127476
|
get event() {
|
127221
127477
|
if (this.#executionCtx && "respondWith" in this.#executionCtx) {
|
127222
127478
|
return this.#executionCtx;
|
@@ -127254,11 +127510,14 @@ var init_context = __esm({
|
|
127254
127510
|
this.#res = _res;
|
127255
127511
|
this.finalized = true;
|
127256
127512
|
}
|
127257
|
-
render = (...args) =>
|
127258
|
-
|
127259
|
-
|
127513
|
+
render = (...args) => {
|
127514
|
+
this.#renderer ??= (content) => this.html(content);
|
127515
|
+
return this.#renderer(...args);
|
127516
|
+
};
|
127517
|
+
setLayout = (layout) => this.#layout = layout;
|
127518
|
+
getLayout = () => this.#layout;
|
127260
127519
|
setRenderer = (renderer) => {
|
127261
|
-
this
|
127520
|
+
this.#renderer = renderer;
|
127262
127521
|
};
|
127263
127522
|
header = (name, value, options) => {
|
127264
127523
|
if (value === void 0) {
|
@@ -127300,14 +127559,14 @@ var init_context = __esm({
|
|
127300
127559
|
this.#status = status;
|
127301
127560
|
};
|
127302
127561
|
set = (key, value) => {
|
127303
|
-
this
|
127304
|
-
this
|
127562
|
+
this.#var ??= {};
|
127563
|
+
this.#var[key] = value;
|
127305
127564
|
};
|
127306
127565
|
get = (key) => {
|
127307
|
-
return this
|
127566
|
+
return this.#var ? this.#var[key] : void 0;
|
127308
127567
|
};
|
127309
127568
|
get var() {
|
127310
|
-
return { ...this
|
127569
|
+
return { ...this.#var };
|
127311
127570
|
}
|
127312
127571
|
newResponse = (data, arg, headers) => {
|
127313
127572
|
if (this.#isFresh && !headers && !arg && this.#status === 200) {
|
@@ -127403,16 +127662,17 @@ var init_context = __esm({
|
|
127403
127662
|
return this.newResponse(null, status ?? 302);
|
127404
127663
|
};
|
127405
127664
|
notFound = () => {
|
127406
|
-
|
127665
|
+
this.#notFoundHandler ??= () => new Response();
|
127666
|
+
return this.#notFoundHandler(this);
|
127407
127667
|
};
|
127408
127668
|
};
|
127409
127669
|
}
|
127410
127670
|
});
|
127411
127671
|
|
127412
|
-
// node_modules/.pnpm/hono@4.4.
|
127672
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/compose.js
|
127413
127673
|
var compose;
|
127414
127674
|
var init_compose = __esm({
|
127415
|
-
"node_modules/.pnpm/hono@4.4.
|
127675
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/compose.js"() {
|
127416
127676
|
init_context();
|
127417
127677
|
compose = (middleware, onError, onNotFound) => {
|
127418
127678
|
return (context, next) => {
|
@@ -127463,195 +127723,10 @@ var init_compose = __esm({
|
|
127463
127723
|
}
|
127464
127724
|
});
|
127465
127725
|
|
127466
|
-
// node_modules/.pnpm/hono@4.4.
|
127467
|
-
async function parseFormData(request, options) {
|
127468
|
-
const formData = await request.formData();
|
127469
|
-
if (formData) {
|
127470
|
-
return convertFormDataToBodyData(formData, options);
|
127471
|
-
}
|
127472
|
-
return {};
|
127473
|
-
}
|
127474
|
-
function convertFormDataToBodyData(formData, options) {
|
127475
|
-
const form = /* @__PURE__ */ Object.create(null);
|
127476
|
-
formData.forEach((value, key) => {
|
127477
|
-
const shouldParseAllValues = options.all || key.endsWith("[]");
|
127478
|
-
if (!shouldParseAllValues) {
|
127479
|
-
form[key] = value;
|
127480
|
-
} else {
|
127481
|
-
handleParsingAllValues(form, key, value);
|
127482
|
-
}
|
127483
|
-
});
|
127484
|
-
if (options.dot) {
|
127485
|
-
Object.entries(form).forEach(([key, value]) => {
|
127486
|
-
const shouldParseDotValues = key.includes(".");
|
127487
|
-
if (shouldParseDotValues) {
|
127488
|
-
handleParsingNestedValues(form, key, value);
|
127489
|
-
delete form[key];
|
127490
|
-
}
|
127491
|
-
});
|
127492
|
-
}
|
127493
|
-
return form;
|
127494
|
-
}
|
127495
|
-
var parseBody, handleParsingAllValues, handleParsingNestedValues;
|
127496
|
-
var init_body2 = __esm({
|
127497
|
-
"node_modules/.pnpm/hono@4.4.8/node_modules/hono/dist/utils/body.js"() {
|
127498
|
-
init_request2();
|
127499
|
-
parseBody = async (request, options = /* @__PURE__ */ Object.create(null)) => {
|
127500
|
-
const { all = false, dot = false } = options;
|
127501
|
-
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
|
127502
|
-
const contentType = headers.get("Content-Type");
|
127503
|
-
if (contentType !== null && contentType.startsWith("multipart/form-data") || contentType !== null && contentType.startsWith("application/x-www-form-urlencoded")) {
|
127504
|
-
return parseFormData(request, { all, dot });
|
127505
|
-
}
|
127506
|
-
return {};
|
127507
|
-
};
|
127508
|
-
handleParsingAllValues = (form, key, value) => {
|
127509
|
-
if (form[key] !== void 0) {
|
127510
|
-
if (Array.isArray(form[key])) {
|
127511
|
-
;
|
127512
|
-
form[key].push(value);
|
127513
|
-
} else {
|
127514
|
-
form[key] = [form[key], value];
|
127515
|
-
}
|
127516
|
-
} else {
|
127517
|
-
form[key] = value;
|
127518
|
-
}
|
127519
|
-
};
|
127520
|
-
handleParsingNestedValues = (form, key, value) => {
|
127521
|
-
let nestedForm = form;
|
127522
|
-
const keys = key.split(".");
|
127523
|
-
keys.forEach((key2, index4) => {
|
127524
|
-
if (index4 === keys.length - 1) {
|
127525
|
-
nestedForm[key2] = value;
|
127526
|
-
} else {
|
127527
|
-
if (!nestedForm[key2] || typeof nestedForm[key2] !== "object" || Array.isArray(nestedForm[key2]) || nestedForm[key2] instanceof File) {
|
127528
|
-
nestedForm[key2] = /* @__PURE__ */ Object.create(null);
|
127529
|
-
}
|
127530
|
-
nestedForm = nestedForm[key2];
|
127531
|
-
}
|
127532
|
-
});
|
127533
|
-
};
|
127534
|
-
}
|
127535
|
-
});
|
127536
|
-
|
127537
|
-
// node_modules/.pnpm/hono@4.4.8/node_modules/hono/dist/request.js
|
127538
|
-
var HonoRequest;
|
127539
|
-
var init_request2 = __esm({
|
127540
|
-
"node_modules/.pnpm/hono@4.4.8/node_modules/hono/dist/request.js"() {
|
127541
|
-
init_body2();
|
127542
|
-
init_url();
|
127543
|
-
HonoRequest = class {
|
127544
|
-
raw;
|
127545
|
-
#validatedData;
|
127546
|
-
#matchResult;
|
127547
|
-
routeIndex = 0;
|
127548
|
-
path;
|
127549
|
-
bodyCache = {};
|
127550
|
-
constructor(request, path5 = "/", matchResult = [[]]) {
|
127551
|
-
this.raw = request;
|
127552
|
-
this.path = path5;
|
127553
|
-
this.#matchResult = matchResult;
|
127554
|
-
this.#validatedData = {};
|
127555
|
-
}
|
127556
|
-
param(key) {
|
127557
|
-
return key ? this.getDecodedParam(key) : this.getAllDecodedParams();
|
127558
|
-
}
|
127559
|
-
getDecodedParam(key) {
|
127560
|
-
const paramKey = this.#matchResult[0][this.routeIndex][1][key];
|
127561
|
-
const param = this.getParamValue(paramKey);
|
127562
|
-
return param ? /\%/.test(param) ? decodeURIComponent_(param) : param : void 0;
|
127563
|
-
}
|
127564
|
-
getAllDecodedParams() {
|
127565
|
-
const decoded = {};
|
127566
|
-
const keys = Object.keys(this.#matchResult[0][this.routeIndex][1]);
|
127567
|
-
for (const key of keys) {
|
127568
|
-
const value = this.getParamValue(this.#matchResult[0][this.routeIndex][1][key]);
|
127569
|
-
if (value && typeof value === "string") {
|
127570
|
-
decoded[key] = /\%/.test(value) ? decodeURIComponent_(value) : value;
|
127571
|
-
}
|
127572
|
-
}
|
127573
|
-
return decoded;
|
127574
|
-
}
|
127575
|
-
getParamValue(paramKey) {
|
127576
|
-
return this.#matchResult[1] ? this.#matchResult[1][paramKey] : paramKey;
|
127577
|
-
}
|
127578
|
-
query(key) {
|
127579
|
-
return getQueryParam(this.url, key);
|
127580
|
-
}
|
127581
|
-
queries(key) {
|
127582
|
-
return getQueryParams(this.url, key);
|
127583
|
-
}
|
127584
|
-
header(name) {
|
127585
|
-
if (name) {
|
127586
|
-
return this.raw.headers.get(name.toLowerCase()) ?? void 0;
|
127587
|
-
}
|
127588
|
-
const headerData = {};
|
127589
|
-
this.raw.headers.forEach((value, key) => {
|
127590
|
-
headerData[key] = value;
|
127591
|
-
});
|
127592
|
-
return headerData;
|
127593
|
-
}
|
127594
|
-
async parseBody(options) {
|
127595
|
-
return this.bodyCache.parsedBody ??= await parseBody(this, options);
|
127596
|
-
}
|
127597
|
-
cachedBody = (key) => {
|
127598
|
-
const { bodyCache, raw: raw2 } = this;
|
127599
|
-
const cachedBody = bodyCache[key];
|
127600
|
-
if (cachedBody) {
|
127601
|
-
return cachedBody;
|
127602
|
-
}
|
127603
|
-
const anyCachedKey = Object.keys(bodyCache)[0];
|
127604
|
-
if (anyCachedKey) {
|
127605
|
-
return bodyCache[anyCachedKey].then((body) => {
|
127606
|
-
if (anyCachedKey === "json") {
|
127607
|
-
body = JSON.stringify(body);
|
127608
|
-
}
|
127609
|
-
return new Response(body)[key]();
|
127610
|
-
});
|
127611
|
-
}
|
127612
|
-
return bodyCache[key] = raw2[key]();
|
127613
|
-
};
|
127614
|
-
json() {
|
127615
|
-
return this.cachedBody("json");
|
127616
|
-
}
|
127617
|
-
text() {
|
127618
|
-
return this.cachedBody("text");
|
127619
|
-
}
|
127620
|
-
arrayBuffer() {
|
127621
|
-
return this.cachedBody("arrayBuffer");
|
127622
|
-
}
|
127623
|
-
blob() {
|
127624
|
-
return this.cachedBody("blob");
|
127625
|
-
}
|
127626
|
-
formData() {
|
127627
|
-
return this.cachedBody("formData");
|
127628
|
-
}
|
127629
|
-
addValidatedData(target, data) {
|
127630
|
-
this.#validatedData[target] = data;
|
127631
|
-
}
|
127632
|
-
valid(target) {
|
127633
|
-
return this.#validatedData[target];
|
127634
|
-
}
|
127635
|
-
get url() {
|
127636
|
-
return this.raw.url;
|
127637
|
-
}
|
127638
|
-
get method() {
|
127639
|
-
return this.raw.method;
|
127640
|
-
}
|
127641
|
-
get matchedRoutes() {
|
127642
|
-
return this.#matchResult[0].map(([[, route]]) => route);
|
127643
|
-
}
|
127644
|
-
get routePath() {
|
127645
|
-
return this.#matchResult[0].map(([[, route]]) => route)[this.routeIndex].path;
|
127646
|
-
}
|
127647
|
-
};
|
127648
|
-
}
|
127649
|
-
});
|
127650
|
-
|
127651
|
-
// node_modules/.pnpm/hono@4.4.8/node_modules/hono/dist/router.js
|
127726
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router.js
|
127652
127727
|
var METHOD_NAME_ALL, METHOD_NAME_ALL_LOWERCASE, METHODS, MESSAGE_MATCHER_IS_ALREADY_BUILT, UnsupportedPathError;
|
127653
127728
|
var init_router = __esm({
|
127654
|
-
"node_modules/.pnpm/hono@4.4.
|
127729
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router.js"() {
|
127655
127730
|
METHOD_NAME_ALL = "ALL";
|
127656
127731
|
METHOD_NAME_ALL_LOWERCASE = "all";
|
127657
127732
|
METHODS = ["get", "post", "put", "delete", "options", "patch"];
|
@@ -127661,13 +127736,12 @@ var init_router = __esm({
|
|
127661
127736
|
}
|
127662
127737
|
});
|
127663
127738
|
|
127664
|
-
// node_modules/.pnpm/hono@4.4.
|
127739
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/hono-base.js
|
127665
127740
|
var COMPOSED_HANDLER, notFoundHandler, errorHandler, Hono;
|
127666
127741
|
var init_hono_base = __esm({
|
127667
|
-
"node_modules/.pnpm/hono@4.4.
|
127742
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/hono-base.js"() {
|
127668
127743
|
init_compose();
|
127669
127744
|
init_context();
|
127670
|
-
init_request2();
|
127671
127745
|
init_router();
|
127672
127746
|
init_url();
|
127673
127747
|
COMPOSED_HANDLER = Symbol("composedHandler");
|
@@ -127841,7 +127915,9 @@ var init_hono_base = __esm({
|
|
127841
127915
|
}
|
127842
127916
|
const path5 = this.getPath(request, { env: env3 });
|
127843
127917
|
const matchResult = this.matchRoute(method, path5);
|
127844
|
-
const c = new Context(
|
127918
|
+
const c = new Context(request, {
|
127919
|
+
path: path5,
|
127920
|
+
matchResult,
|
127845
127921
|
env: env3,
|
127846
127922
|
executionCtx,
|
127847
127923
|
notFoundHandler: this.notFoundHandler
|
@@ -127898,7 +127974,7 @@ var init_hono_base = __esm({
|
|
127898
127974
|
}
|
127899
127975
|
});
|
127900
127976
|
|
127901
|
-
// node_modules/.pnpm/hono@4.4.
|
127977
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/reg-exp-router/node.js
|
127902
127978
|
function compareKey(a3, b4) {
|
127903
127979
|
if (a3.length === 1) {
|
127904
127980
|
return b4.length === 1 ? a3 < b4 ? -1 : 1 : -1;
|
@@ -127920,7 +127996,7 @@ function compareKey(a3, b4) {
|
|
127920
127996
|
}
|
127921
127997
|
var LABEL_REG_EXP_STR, ONLY_WILDCARD_REG_EXP_STR, TAIL_WILDCARD_REG_EXP_STR, PATH_ERROR, regExpMetaChars, Node;
|
127922
127998
|
var init_node = __esm({
|
127923
|
-
"node_modules/.pnpm/hono@4.4.
|
127999
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/reg-exp-router/node.js"() {
|
127924
128000
|
LABEL_REG_EXP_STR = "[^/]+";
|
127925
128001
|
ONLY_WILDCARD_REG_EXP_STR = ".*";
|
127926
128002
|
TAIL_WILDCARD_REG_EXP_STR = "(?:|/.*)";
|
@@ -128008,10 +128084,10 @@ var init_node = __esm({
|
|
128008
128084
|
}
|
128009
128085
|
});
|
128010
128086
|
|
128011
|
-
// node_modules/.pnpm/hono@4.4.
|
128087
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/reg-exp-router/trie.js
|
128012
128088
|
var Trie;
|
128013
128089
|
var init_trie = __esm({
|
128014
|
-
"node_modules/.pnpm/hono@4.4.
|
128090
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/reg-exp-router/trie.js"() {
|
128015
128091
|
init_node();
|
128016
128092
|
Trie = class {
|
128017
128093
|
context = { varIndex: 0 };
|
@@ -128070,7 +128146,7 @@ var init_trie = __esm({
|
|
128070
128146
|
}
|
128071
128147
|
});
|
128072
128148
|
|
128073
|
-
// node_modules/.pnpm/hono@4.4.
|
128149
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/reg-exp-router/router.js
|
128074
128150
|
function buildWildcardRegExp(path5) {
|
128075
128151
|
return wildcardRegExpCache[path5] ??= new RegExp(
|
128076
128152
|
path5 === "*" ? "" : `^${path5.replace(
|
@@ -128153,7 +128229,7 @@ function findMiddleware(middleware, path5) {
|
|
128153
128229
|
}
|
128154
128230
|
var emptyParam, nullMatcher, wildcardRegExpCache, RegExpRouter;
|
128155
128231
|
var init_router2 = __esm({
|
128156
|
-
"node_modules/.pnpm/hono@4.4.
|
128232
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/reg-exp-router/router.js"() {
|
128157
128233
|
init_router();
|
128158
128234
|
init_url();
|
128159
128235
|
init_node();
|
@@ -128275,17 +128351,17 @@ var init_router2 = __esm({
|
|
128275
128351
|
}
|
128276
128352
|
});
|
128277
128353
|
|
128278
|
-
// node_modules/.pnpm/hono@4.4.
|
128354
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/reg-exp-router/index.js
|
128279
128355
|
var init_reg_exp_router = __esm({
|
128280
|
-
"node_modules/.pnpm/hono@4.4.
|
128356
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/reg-exp-router/index.js"() {
|
128281
128357
|
init_router2();
|
128282
128358
|
}
|
128283
128359
|
});
|
128284
128360
|
|
128285
|
-
// node_modules/.pnpm/hono@4.4.
|
128361
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/smart-router/router.js
|
128286
128362
|
var SmartRouter;
|
128287
128363
|
var init_router3 = __esm({
|
128288
|
-
"node_modules/.pnpm/hono@4.4.
|
128364
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/smart-router/router.js"() {
|
128289
128365
|
init_router();
|
128290
128366
|
SmartRouter = class {
|
128291
128367
|
name = "SmartRouter";
|
@@ -128342,17 +128418,17 @@ var init_router3 = __esm({
|
|
128342
128418
|
}
|
128343
128419
|
});
|
128344
128420
|
|
128345
|
-
// node_modules/.pnpm/hono@4.4.
|
128421
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/smart-router/index.js
|
128346
128422
|
var init_smart_router = __esm({
|
128347
|
-
"node_modules/.pnpm/hono@4.4.
|
128423
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/smart-router/index.js"() {
|
128348
128424
|
init_router3();
|
128349
128425
|
}
|
128350
128426
|
});
|
128351
128427
|
|
128352
|
-
// node_modules/.pnpm/hono@4.4.
|
128428
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/trie-router/node.js
|
128353
128429
|
var Node2;
|
128354
128430
|
var init_node2 = __esm({
|
128355
|
-
"node_modules/.pnpm/hono@4.4.
|
128431
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/trie-router/node.js"() {
|
128356
128432
|
init_router();
|
128357
128433
|
init_url();
|
128358
128434
|
Node2 = class {
|
@@ -128504,10 +128580,10 @@ var init_node2 = __esm({
|
|
128504
128580
|
}
|
128505
128581
|
});
|
128506
128582
|
|
128507
|
-
// node_modules/.pnpm/hono@4.4.
|
128583
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/trie-router/router.js
|
128508
128584
|
var TrieRouter;
|
128509
128585
|
var init_router4 = __esm({
|
128510
|
-
"node_modules/.pnpm/hono@4.4.
|
128586
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/trie-router/router.js"() {
|
128511
128587
|
init_url();
|
128512
128588
|
init_node2();
|
128513
128589
|
TrieRouter = class {
|
@@ -128533,17 +128609,17 @@ var init_router4 = __esm({
|
|
128533
128609
|
}
|
128534
128610
|
});
|
128535
128611
|
|
128536
|
-
// node_modules/.pnpm/hono@4.4.
|
128612
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/trie-router/index.js
|
128537
128613
|
var init_trie_router = __esm({
|
128538
|
-
"node_modules/.pnpm/hono@4.4.
|
128614
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/trie-router/index.js"() {
|
128539
128615
|
init_router4();
|
128540
128616
|
}
|
128541
128617
|
});
|
128542
128618
|
|
128543
|
-
// node_modules/.pnpm/hono@4.4.
|
128619
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/hono.js
|
128544
128620
|
var Hono2;
|
128545
128621
|
var init_hono = __esm({
|
128546
|
-
"node_modules/.pnpm/hono@4.4.
|
128622
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/hono.js"() {
|
128547
128623
|
init_hono_base();
|
128548
128624
|
init_reg_exp_router();
|
128549
128625
|
init_smart_router();
|
@@ -128559,17 +128635,17 @@ var init_hono = __esm({
|
|
128559
128635
|
}
|
128560
128636
|
});
|
128561
128637
|
|
128562
|
-
// node_modules/.pnpm/hono@4.4.
|
128638
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/index.js
|
128563
128639
|
var init_dist4 = __esm({
|
128564
|
-
"node_modules/.pnpm/hono@4.4.
|
128640
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/index.js"() {
|
128565
128641
|
init_hono();
|
128566
128642
|
}
|
128567
128643
|
});
|
128568
128644
|
|
128569
|
-
// node_modules/.pnpm/hono@4.4.
|
128645
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/middleware/cors/index.js
|
128570
128646
|
var cors;
|
128571
128647
|
var init_cors = __esm({
|
128572
|
-
"node_modules/.pnpm/hono@4.4.
|
128648
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/middleware/cors/index.js"() {
|
128573
128649
|
cors = (options) => {
|
128574
128650
|
const defaults3 = {
|
128575
128651
|
origin: "*",
|
@@ -131347,7 +131423,10 @@ var pushCommand = new Command("push").option(
|
|
131347
131423
|
).option("--dialect <dialect>", "Database dialect").option("--schema <schema...>", "Path to a schema file or folder").option("--tablesFilter", `Table name filters`).option("--schemaFilters", `Schema name filters`).option(
|
131348
131424
|
"--extensionsFilters",
|
131349
131425
|
`Database extensions internal database filters`
|
131350
|
-
).option("--url <url>", "Database connection URL").option("--host <host>", "Database host").option("--port <port>", "Database port").option("--user <user>", "Database user").option("--password <password>", "Database password").option("--database <database>", "Database name").option("--ssl <ssl>", "ssl mode").option("--auth-token <authToken>", "Database auth token [Turso]").option("--driver <driver>", "Driver used for querying the database").option("--verbose", "Print all statements for each push").option("--strict", "Always ask for confirmation").
|
131426
|
+
).option("--url <url>", "Database connection URL").option("--host <host>", "Database host").option("--port <port>", "Database port").option("--user <user>", "Database user").option("--password <password>", "Database password").option("--database <database>", "Database name").option("--ssl <ssl>", "ssl mode").option("--auth-token <authToken>", "Database auth token [Turso]").option("--driver <driver>", "Driver used for querying the database").option("--verbose", "Print all statements for each push").option("--strict", "Always ask for confirmation").option(
|
131427
|
+
"--force",
|
131428
|
+
"Auto-approve all data loss statements. Note: Data loss statements may truncate your tables and data"
|
131429
|
+
).action(async () => {
|
131351
131430
|
const options = pushCommand.optsWithGlobals();
|
131352
131431
|
await printVersions();
|
131353
131432
|
await assertPackages("drizzle-orm");
|
@@ -131359,12 +131438,20 @@ var pushCommand = new Command("push").option(
|
|
131359
131438
|
verbose,
|
131360
131439
|
credentials: credentials2,
|
131361
131440
|
tablesFilter,
|
131362
|
-
schemasFilter
|
131441
|
+
schemasFilter,
|
131442
|
+
force
|
131363
131443
|
} = await preparePushConfig(options);
|
131364
131444
|
try {
|
131365
131445
|
if (dialect7 === "mysql") {
|
131366
131446
|
const { mysqlPush: mysqlPush2 } = await Promise.resolve().then(() => (init_push(), push_exports));
|
131367
|
-
await mysqlPush2(
|
131447
|
+
await mysqlPush2(
|
131448
|
+
schemaPath,
|
131449
|
+
credentials2,
|
131450
|
+
tablesFilter,
|
131451
|
+
strict,
|
131452
|
+
verbose,
|
131453
|
+
force
|
131454
|
+
);
|
131368
131455
|
} else if (dialect7 === "postgresql") {
|
131369
131456
|
if ("driver" in credentials2) {
|
131370
131457
|
if (credentials2.driver === "aws-data-api") {
|
@@ -131385,7 +131472,8 @@ var pushCommand = new Command("push").option(
|
|
131385
131472
|
strict,
|
131386
131473
|
credentials2,
|
131387
131474
|
tablesFilter,
|
131388
|
-
schemasFilter
|
131475
|
+
schemasFilter,
|
131476
|
+
force
|
131389
131477
|
);
|
131390
131478
|
} else if (dialect7 === "sqlite") {
|
131391
131479
|
const { sqlitePush: sqlitePush2 } = await Promise.resolve().then(() => (init_push(), push_exports));
|
@@ -131394,7 +131482,8 @@ var pushCommand = new Command("push").option(
|
|
131394
131482
|
verbose,
|
131395
131483
|
strict,
|
131396
131484
|
credentials2,
|
131397
|
-
tablesFilter
|
131485
|
+
tablesFilter,
|
131486
|
+
force
|
131398
131487
|
);
|
131399
131488
|
} else {
|
131400
131489
|
assertUnreachable(dialect7);
|
@@ -131448,7 +131537,8 @@ var pullCommand = new Command("introspect").option("--config <config>", `Config
|
|
131448
131537
|
casing: casing2,
|
131449
131538
|
breakpoints,
|
131450
131539
|
tablesFilter,
|
131451
|
-
schemasFilter
|
131540
|
+
schemasFilter,
|
131541
|
+
prefix: prefix2
|
131452
131542
|
} = await preparePullConfig(options);
|
131453
131543
|
(0, import_fs14.mkdirSync)(out, { recursive: true });
|
131454
131544
|
console.log(
|
@@ -131478,7 +131568,8 @@ var pullCommand = new Command("introspect").option("--config <config>", `Config
|
|
131478
131568
|
breakpoints,
|
131479
131569
|
credentials2,
|
131480
131570
|
tablesFilter,
|
131481
|
-
schemasFilter
|
131571
|
+
schemasFilter,
|
131572
|
+
prefix2
|
131482
131573
|
);
|
131483
131574
|
} else if (dialect7 === "mysql") {
|
131484
131575
|
const { introspectMysql: introspectMysql2 } = await Promise.resolve().then(() => (init_introspect(), introspect_exports));
|
@@ -131487,7 +131578,8 @@ var pullCommand = new Command("introspect").option("--config <config>", `Config
|
|
131487
131578
|
out,
|
131488
131579
|
breakpoints,
|
131489
131580
|
credentials2,
|
131490
|
-
tablesFilter
|
131581
|
+
tablesFilter,
|
131582
|
+
prefix2
|
131491
131583
|
);
|
131492
131584
|
} else if (dialect7 === "sqlite") {
|
131493
131585
|
const { introspectSqlite: introspectSqlite2 } = await Promise.resolve().then(() => (init_introspect(), introspect_exports));
|
@@ -131496,7 +131588,8 @@ var pullCommand = new Command("introspect").option("--config <config>", `Config
|
|
131496
131588
|
out,
|
131497
131589
|
breakpoints,
|
131498
131590
|
credentials2,
|
131499
|
-
tablesFilter
|
131591
|
+
tablesFilter,
|
131592
|
+
prefix2
|
131500
131593
|
);
|
131501
131594
|
} else {
|
131502
131595
|
assertUnreachable(dialect7);
|