drizzle-kit 0.22.7-d059930 → 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 +579 -502
- package/index.d.mts +2 -0
- package/index.d.ts +2 -0
- package/package.json +1 -1
- package/payload.d.mts +6 -6
- package/payload.d.ts +6 -6
- package/payload.js +158 -122
- package/payload.mjs +158 -122
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(() => {
|
@@ -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) {
|
@@ -20431,6 +20457,7 @@ var init_utils4 = __esm({
|
|
20431
20457
|
assertUnreachable(dialect7);
|
20432
20458
|
};
|
20433
20459
|
preparePullConfig = async (options) => {
|
20460
|
+
var _a, _b, _c;
|
20434
20461
|
const from = assertCollisions(options, "introspect");
|
20435
20462
|
const config = pullParams.parse(
|
20436
20463
|
flattenPull(
|
@@ -20468,7 +20495,8 @@ var init_utils4 = __esm({
|
|
20468
20495
|
casing: config.introspectCasing,
|
20469
20496
|
credentials: parsed.data,
|
20470
20497
|
tablesFilter,
|
20471
|
-
schemasFilter
|
20498
|
+
schemasFilter,
|
20499
|
+
prefix: ((_a = config.database) == null ? void 0 : _a.prefix) || "index"
|
20472
20500
|
};
|
20473
20501
|
}
|
20474
20502
|
if (dialect7 === "mysql") {
|
@@ -20484,7 +20512,8 @@ var init_utils4 = __esm({
|
|
20484
20512
|
casing: config.introspectCasing,
|
20485
20513
|
credentials: parsed.data,
|
20486
20514
|
tablesFilter,
|
20487
|
-
schemasFilter
|
20515
|
+
schemasFilter,
|
20516
|
+
prefix: ((_b = config.database) == null ? void 0 : _b.prefix) || "index"
|
20488
20517
|
};
|
20489
20518
|
}
|
20490
20519
|
if (dialect7 === "sqlite") {
|
@@ -20500,7 +20529,8 @@ var init_utils4 = __esm({
|
|
20500
20529
|
casing: config.introspectCasing,
|
20501
20530
|
credentials: parsed.data,
|
20502
20531
|
tablesFilter,
|
20503
|
-
schemasFilter
|
20532
|
+
schemasFilter,
|
20533
|
+
prefix: ((_c = config.database) == null ? void 0 : _c.prefix) || "index"
|
20504
20534
|
};
|
20505
20535
|
}
|
20506
20536
|
assertUnreachable(dialect7);
|
@@ -20577,7 +20607,8 @@ var init_utils4 = __esm({
|
|
20577
20607
|
out: stringType().optional().default("drizzle"),
|
20578
20608
|
migrations: objectType({
|
20579
20609
|
table: stringType().optional(),
|
20580
|
-
schema: stringType().optional()
|
20610
|
+
schema: stringType().optional(),
|
20611
|
+
prefix: unionType([literalType("index"), literalType("timestamp"), literalType("none")]).optional().default("index")
|
20581
20612
|
}).optional()
|
20582
20613
|
});
|
20583
20614
|
prepareMigrateConfig = async (options) => {
|
@@ -22391,13 +22422,19 @@ function mapSqlToSqliteType(sqlType) {
|
|
22391
22422
|
}
|
22392
22423
|
function extractGeneratedColumns(input) {
|
22393
22424
|
const columns = {};
|
22394
|
-
const lines = input.split(
|
22425
|
+
const lines = input.split(/,\s*(?![^()]*\))/);
|
22395
22426
|
for (const line of lines) {
|
22396
22427
|
if (line.includes("GENERATED ALWAYS AS")) {
|
22397
22428
|
const parts = line.trim().split(/\s+/);
|
22398
|
-
const columnName = parts[0].
|
22429
|
+
const columnName = parts[0].replace(/[`'"]/g, "");
|
22399
22430
|
const expression = line.substring(line.indexOf("("), line.indexOf(")") + 1).trim();
|
22400
|
-
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
|
+
}
|
22401
22438
|
columns[columnName] = {
|
22402
22439
|
columnName,
|
22403
22440
|
expression,
|
@@ -22445,7 +22482,7 @@ var init_sqliteSerializer = __esm({
|
|
22445
22482
|
notNull,
|
22446
22483
|
autoincrement: (0, import_drizzle_orm7.is)(column7, import_sqlite_core2.SQLiteBaseInteger) ? column7.autoIncrement : false,
|
22447
22484
|
generated: generated ? {
|
22448
|
-
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})`,
|
22449
22486
|
type: generated.mode ?? "virtual"
|
22450
22487
|
} : void 0
|
22451
22488
|
};
|
@@ -22804,12 +22841,12 @@ WHERE
|
|
22804
22841
|
if (progressCallback) {
|
22805
22842
|
progressCallback("indexes", indexesCount, "fetching");
|
22806
22843
|
}
|
22807
|
-
if (typeof tableInResult.indexes[constraintName] !== "undefined") {
|
22844
|
+
if (typeof tableInResult.indexes[constraintName] !== "undefined" && columnName) {
|
22808
22845
|
tableInResult.indexes[constraintName].columns.push(columnName);
|
22809
22846
|
} else {
|
22810
22847
|
tableInResult.indexes[constraintName] = {
|
22811
22848
|
name: constraintName,
|
22812
|
-
columns: [columnName],
|
22849
|
+
columns: columnName ? [columnName] : [],
|
22813
22850
|
isUnique
|
22814
22851
|
};
|
22815
22852
|
}
|
@@ -23202,7 +23239,7 @@ var init_sqlgenerator = __esm({
|
|
23202
23239
|
const notNullStatement = column7.notNull ? " NOT NULL" : "";
|
23203
23240
|
const defaultStatement = column7.default !== void 0 ? ` DEFAULT ${column7.default}` : "";
|
23204
23241
|
const autoincrementStatement = column7.autoincrement ? " AUTOINCREMENT" : "";
|
23205
|
-
const generatedStatement = column7.generated ? ` GENERATED ALWAYS AS
|
23242
|
+
const generatedStatement = column7.generated ? ` GENERATED ALWAYS AS ${column7.generated.as} ${column7.generated.type.toUpperCase()}` : "";
|
23206
23243
|
statement += " ";
|
23207
23244
|
statement += `\`${column7.name}\` ${column7.type}${primaryKeyStatement}${autoincrementStatement}${defaultStatement}${notNullStatement}${generatedStatement}`;
|
23208
23245
|
statement += i2 === columns.length - 1 ? "" : ",\n";
|
@@ -23277,8 +23314,6 @@ var init_sqlgenerator = __esm({
|
|
23277
23314
|
const tableNameWithSchema = schema5 ? `"${schema5}"."${tableName}"` : `"${tableName}"`;
|
23278
23315
|
const unsquashedIdentity = PgSquasher.unsquashIdentity(identity);
|
23279
23316
|
const unsquashedOldIdentity = PgSquasher.unsquashIdentity(oldIdentity);
|
23280
|
-
const identityWithSchema = schema5 ? `"${schema5}"."${unsquashedIdentity == null ? void 0 : unsquashedIdentity.name}"` : `"${unsquashedIdentity == null ? void 0 : unsquashedIdentity.name}"`;
|
23281
|
-
const oldIdentityWithSchema = schema5 ? `"${schema5}"."${unsquashedOldIdentity == null ? void 0 : unsquashedOldIdentity.name}"` : `"${unsquashedOldIdentity == null ? void 0 : unsquashedOldIdentity.name}"`;
|
23282
23317
|
const statementsToReturn = [];
|
23283
23318
|
if (unsquashedOldIdentity.type !== unsquashedIdentity.type) {
|
23284
23319
|
statementsToReturn.push(
|
@@ -23587,14 +23622,18 @@ var init_sqlgenerator = __esm({
|
|
23587
23622
|
}
|
23588
23623
|
convert(statement) {
|
23589
23624
|
const { tableName, column: column7, schema: schema5 } = statement;
|
23590
|
-
const { name, type, notNull, generated } = column7;
|
23625
|
+
const { name, type, notNull, generated, primaryKey, identity } = column7;
|
23626
|
+
const primaryKeyStatement = primaryKey ? " PRIMARY KEY" : "";
|
23591
23627
|
const tableNameWithSchema = schema5 ? `"${schema5}"."${tableName}"` : `"${tableName}"`;
|
23592
23628
|
const defaultStatement = `${column7.default !== void 0 ? ` DEFAULT ${column7.default}` : ""}`;
|
23593
23629
|
const schemaPrefix = column7.typeSchema && column7.typeSchema !== "public" ? `"${column7.typeSchema}".` : "";
|
23594
23630
|
const fixedType = isPgNativeType(column7.type) ? column7.type : `${schemaPrefix}"${column7.type}"`;
|
23595
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` : ""})` : "";
|
23596
23635
|
const generatedStatement = ` GENERATED ALWAYS AS (${generated == null ? void 0 : generated.as}) STORED`;
|
23597
|
-
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};`;
|
23598
23637
|
}
|
23599
23638
|
};
|
23600
23639
|
MySqlAlterTableAddColumnConvertor = class extends Convertor {
|
@@ -23633,7 +23672,7 @@ var init_sqlgenerator = __esm({
|
|
23633
23672
|
const primaryKeyStatement = `${primaryKey ? " PRIMARY KEY" : ""}`;
|
23634
23673
|
const referenceAsObject = referenceData ? SQLiteSquasher.unsquashFK(referenceData) : void 0;
|
23635
23674
|
const referenceStatement = `${referenceAsObject ? ` REFERENCES ${referenceAsObject.tableTo}(${referenceAsObject.columnsTo})` : ""}`;
|
23636
|
-
const generatedStatement = generated ? ` GENERATED ALWAYS AS
|
23675
|
+
const generatedStatement = generated ? ` GENERATED ALWAYS AS ${generated.as} ${generated.type.toUpperCase()}` : "";
|
23637
23676
|
return `ALTER TABLE \`${tableName}\` ADD \`${name}\` ${type}${primaryKeyStatement}${defaultStatement}${notNullStatement}${generatedStatement}${referenceStatement};`;
|
23638
23677
|
}
|
23639
23678
|
};
|
@@ -23922,8 +23961,8 @@ var init_sqlgenerator = __esm({
|
|
23922
23961
|
columnPk,
|
23923
23962
|
columnGenerated
|
23924
23963
|
} = statement;
|
23925
|
-
const tableNameWithSchema = schema5 ?
|
23926
|
-
const addColumnStatement = new
|
23964
|
+
const tableNameWithSchema = schema5 ? `\`${schema5}\`.\`${tableName}\`` : `\`${tableName}\``;
|
23965
|
+
const addColumnStatement = new MySqlAlterTableAddColumnConvertor().convert({
|
23927
23966
|
schema: schema5,
|
23928
23967
|
tableName,
|
23929
23968
|
column: {
|
@@ -23939,7 +23978,7 @@ var init_sqlgenerator = __esm({
|
|
23939
23978
|
type: "alter_table_add_column"
|
23940
23979
|
});
|
23941
23980
|
return [
|
23942
|
-
`ALTER TABLE ${tableNameWithSchema} drop column
|
23981
|
+
`ALTER TABLE ${tableNameWithSchema} drop column \`${columnName}\`;`,
|
23943
23982
|
addColumnStatement
|
23944
23983
|
];
|
23945
23984
|
}
|
@@ -25883,7 +25922,7 @@ var require_difflib = __commonJS({
|
|
25883
25922
|
return `${beginning},${beginning + length - 1}`;
|
25884
25923
|
};
|
25885
25924
|
contextDiff = function(a3, b4, { fromfile, tofile, fromfiledate, tofiledate, n, lineterm } = {}) {
|
25886
|
-
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;
|
25887
25926
|
if (fromfile == null) {
|
25888
25927
|
fromfile = "";
|
25889
25928
|
}
|
@@ -25902,7 +25941,7 @@ var require_difflib = __commonJS({
|
|
25902
25941
|
if (lineterm == null) {
|
25903
25942
|
lineterm = "\n";
|
25904
25943
|
}
|
25905
|
-
|
25944
|
+
prefix2 = {
|
25906
25945
|
insert: "+ ",
|
25907
25946
|
delete: "- ",
|
25908
25947
|
replace: "! ",
|
@@ -25938,7 +25977,7 @@ var require_difflib = __commonJS({
|
|
25938
25977
|
ref1 = a3.slice(i1, i2);
|
25939
25978
|
for (o = 0, len2 = ref1.length; o < len2; o++) {
|
25940
25979
|
line = ref1[o];
|
25941
|
-
lines.push(
|
25980
|
+
lines.push(prefix2[tag] + line);
|
25942
25981
|
}
|
25943
25982
|
}
|
25944
25983
|
}
|
@@ -25960,7 +25999,7 @@ var require_difflib = __commonJS({
|
|
25960
25999
|
ref2 = b4.slice(j1, j2);
|
25961
26000
|
for (q = 0, len4 = ref2.length; q < len4; q++) {
|
25962
26001
|
line = ref2[q];
|
25963
|
-
lines.push(
|
26002
|
+
lines.push(prefix2[tag] + line);
|
25964
26003
|
}
|
25965
26004
|
}
|
25966
26005
|
}
|
@@ -26123,8 +26162,8 @@ var require_has_flag2 = __commonJS({
|
|
26123
26162
|
module2.exports = function(flag, argv2) {
|
26124
26163
|
argv2 = argv2 || process.argv;
|
26125
26164
|
var terminatorPos = argv2.indexOf("--");
|
26126
|
-
var
|
26127
|
-
var pos = argv2.indexOf(
|
26165
|
+
var prefix2 = /^-{1,2}/.test(flag) ? "" : "--";
|
26166
|
+
var pos = argv2.indexOf(prefix2 + flag);
|
26128
26167
|
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
26129
26168
|
};
|
26130
26169
|
}
|
@@ -26725,7 +26764,7 @@ var require_colorize = __commonJS({
|
|
26725
26764
|
};
|
26726
26765
|
var subcolorizeToCallback = function(options, key, diff2, output, color2, indent) {
|
26727
26766
|
let subvalue;
|
26728
|
-
const
|
26767
|
+
const prefix2 = key ? `${key}: ` : "";
|
26729
26768
|
const subindent = indent + " ";
|
26730
26769
|
const outputElisions = (n) => {
|
26731
26770
|
const maxElisions = options.maxElisions === void 0 ? Infinity : options.maxElisions;
|
@@ -26743,7 +26782,7 @@ var require_colorize = __commonJS({
|
|
26743
26782
|
subcolorizeToCallback(options, key, diff2.__old, output, "-", indent);
|
26744
26783
|
return subcolorizeToCallback(options, key, diff2.__new, output, "+", indent);
|
26745
26784
|
} else {
|
26746
|
-
output(color2, `${indent}${
|
26785
|
+
output(color2, `${indent}${prefix2}{`);
|
26747
26786
|
for (const subkey of Object.keys(diff2)) {
|
26748
26787
|
let m4;
|
26749
26788
|
subvalue = diff2[subkey];
|
@@ -26758,7 +26797,7 @@ var require_colorize = __commonJS({
|
|
26758
26797
|
return output(color2, `${indent}}`);
|
26759
26798
|
}
|
26760
26799
|
case "array": {
|
26761
|
-
output(color2, `${indent}${
|
26800
|
+
output(color2, `${indent}${prefix2}[`);
|
26762
26801
|
let looksLikeDiff = true;
|
26763
26802
|
for (const item of diff2) {
|
26764
26803
|
if (extendedTypeOf(item) !== "array" || !(item.length === 2 || item.length === 1 && item[0] === " ") || !(typeof item[0] === "string") || item[0].length !== 1 || ![" ", "-", "+", "~"].includes(item[0])) {
|
@@ -26797,7 +26836,7 @@ var require_colorize = __commonJS({
|
|
26797
26836
|
}
|
26798
26837
|
default:
|
26799
26838
|
if (diff2 === 0 || diff2 === null || diff2 === false || diff2 === "" || diff2) {
|
26800
|
-
return output(color2, indent +
|
26839
|
+
return output(color2, indent + prefix2 + JSON.stringify(diff2));
|
26801
26840
|
}
|
26802
26841
|
}
|
26803
26842
|
};
|
@@ -29549,6 +29588,13 @@ var init_snapshotsDiffer = __esm({
|
|
29549
29588
|
return false;
|
29550
29589
|
}
|
29551
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
|
+
}
|
29552
29598
|
return true;
|
29553
29599
|
});
|
29554
29600
|
const sqlStatements = fromJson(filteredJsonStatements, "postgresql");
|
@@ -30103,7 +30149,12 @@ var init_snapshotsDiffer = __esm({
|
|
30103
30149
|
{}
|
30104
30150
|
);
|
30105
30151
|
jsonCreateIndexesForAllAlteredTables.push(
|
30106
|
-
...prepareCreateIndexesJson(
|
30152
|
+
...prepareCreateIndexesJson(
|
30153
|
+
it.name,
|
30154
|
+
it.schema,
|
30155
|
+
createdIndexes || {},
|
30156
|
+
curFull.internal
|
30157
|
+
)
|
30107
30158
|
);
|
30108
30159
|
jsonDropIndexesForAllAlteredTables.push(
|
30109
30160
|
...prepareDropIndexesJson(it.name, it.schema, droppedIndexes || {})
|
@@ -30175,11 +30226,11 @@ var prepareMigrationMetadata, adjectives, heroes;
|
|
30175
30226
|
var init_words = __esm({
|
30176
30227
|
"src/utils/words.ts"() {
|
30177
30228
|
"use strict";
|
30178
|
-
prepareMigrationMetadata = (idx, name) => {
|
30179
|
-
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) : "";
|
30180
30231
|
const suffix = name || `${adjectives.random()}_${heroes.random()}`;
|
30181
|
-
const tag = `${
|
30182
|
-
return { prefix, suffix, tag };
|
30232
|
+
const tag = `${prefix2}_${suffix}`;
|
30233
|
+
return { prefix: prefix2, suffix, tag };
|
30183
30234
|
};
|
30184
30235
|
adjectives = [
|
30185
30236
|
"abandoned",
|
@@ -31634,7 +31685,8 @@ var init_migrate = __esm({
|
|
31634
31685
|
outFolder,
|
31635
31686
|
name: config.name,
|
31636
31687
|
breakpoints: config.breakpoints,
|
31637
|
-
type: "custom"
|
31688
|
+
type: "custom",
|
31689
|
+
prefixMode: config.prefix
|
31638
31690
|
});
|
31639
31691
|
return;
|
31640
31692
|
}
|
@@ -31657,7 +31709,8 @@ var init_migrate = __esm({
|
|
31657
31709
|
journal,
|
31658
31710
|
outFolder,
|
31659
31711
|
name: config.name,
|
31660
|
-
breakpoints: config.breakpoints
|
31712
|
+
breakpoints: config.breakpoints,
|
31713
|
+
prefixMode: config.prefix
|
31661
31714
|
});
|
31662
31715
|
} catch (e2) {
|
31663
31716
|
console.error(e2);
|
@@ -31732,7 +31785,8 @@ var init_migrate = __esm({
|
|
31732
31785
|
outFolder,
|
31733
31786
|
name: config.name,
|
31734
31787
|
breakpoints: config.breakpoints,
|
31735
|
-
type: "custom"
|
31788
|
+
type: "custom",
|
31789
|
+
prefixMode: config.prefix
|
31736
31790
|
});
|
31737
31791
|
return;
|
31738
31792
|
}
|
@@ -31753,7 +31807,8 @@ var init_migrate = __esm({
|
|
31753
31807
|
_meta,
|
31754
31808
|
outFolder,
|
31755
31809
|
name: config.name,
|
31756
|
-
breakpoints: config.breakpoints
|
31810
|
+
breakpoints: config.breakpoints,
|
31811
|
+
prefixMode: config.prefix
|
31757
31812
|
});
|
31758
31813
|
} catch (e2) {
|
31759
31814
|
console.error(e2);
|
@@ -31780,7 +31835,8 @@ var init_migrate = __esm({
|
|
31780
31835
|
name: config.name,
|
31781
31836
|
breakpoints: config.breakpoints,
|
31782
31837
|
bundle: config.bundle,
|
31783
|
-
type: "custom"
|
31838
|
+
type: "custom",
|
31839
|
+
prefixMode: config.prefix
|
31784
31840
|
});
|
31785
31841
|
return;
|
31786
31842
|
}
|
@@ -31802,7 +31858,8 @@ var init_migrate = __esm({
|
|
31802
31858
|
outFolder,
|
31803
31859
|
name: config.name,
|
31804
31860
|
breakpoints: config.breakpoints,
|
31805
|
-
bundle: config.bundle
|
31861
|
+
bundle: config.bundle,
|
31862
|
+
prefixMode: config.prefix
|
31806
31863
|
});
|
31807
31864
|
} catch (e2) {
|
31808
31865
|
console.error(e2);
|
@@ -31993,7 +32050,8 @@ var init_migrate = __esm({
|
|
31993
32050
|
breakpoints,
|
31994
32051
|
name,
|
31995
32052
|
bundle = false,
|
31996
|
-
type = "none"
|
32053
|
+
type = "none",
|
32054
|
+
prefixMode
|
31997
32055
|
}) => {
|
31998
32056
|
if (type === "none") {
|
31999
32057
|
console.log(schema(cur));
|
@@ -32004,13 +32062,13 @@ var init_migrate = __esm({
|
|
32004
32062
|
}
|
32005
32063
|
const lastEntryInJournal = journal.entries[journal.entries.length - 1];
|
32006
32064
|
const idx = typeof lastEntryInJournal === "undefined" ? 0 : lastEntryInJournal.idx + 1;
|
32007
|
-
const { prefix, tag } = prepareMigrationMetadata(idx, name);
|
32065
|
+
const { prefix: prefix2, tag } = prepareMigrationMetadata(idx, prefixMode, name);
|
32008
32066
|
const toSave = JSON.parse(JSON.stringify(cur));
|
32009
32067
|
toSave["_meta"] = _meta;
|
32010
32068
|
const metaFolderPath = (0, import_path4.join)(outFolder, "meta");
|
32011
32069
|
const metaJournal = (0, import_path4.join)(metaFolderPath, "_journal.json");
|
32012
32070
|
import_fs7.default.writeFileSync(
|
32013
|
-
(0, import_path4.join)(metaFolderPath, `${
|
32071
|
+
(0, import_path4.join)(metaFolderPath, `${prefix2}_snapshot.json`),
|
32014
32072
|
JSON.stringify(toSave, null, 2)
|
32015
32073
|
);
|
32016
32074
|
const sqlDelimiter = breakpoints ? BREAKPOINT : "\n";
|
@@ -32619,8 +32677,8 @@ var require_lib2 = __commonJS({
|
|
32619
32677
|
};
|
32620
32678
|
var getPathPart = (raw2, cmd) => {
|
32621
32679
|
const pathPart = /^".*"$/.test(raw2) ? raw2.slice(1, -1) : raw2;
|
32622
|
-
const
|
32623
|
-
return
|
32680
|
+
const prefix2 = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "";
|
32681
|
+
return prefix2 + join7(pathPart, cmd);
|
32624
32682
|
};
|
32625
32683
|
var which2 = async (cmd, opt = {}) => {
|
32626
32684
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
@@ -34096,15 +34154,15 @@ var require_to_regex_range = __commonJS({
|
|
34096
34154
|
}
|
34097
34155
|
return tokens;
|
34098
34156
|
}
|
34099
|
-
function filterPatterns(arr, comparison,
|
34157
|
+
function filterPatterns(arr, comparison, prefix2, intersection, options) {
|
34100
34158
|
let result = [];
|
34101
34159
|
for (let ele of arr) {
|
34102
34160
|
let { string } = ele;
|
34103
34161
|
if (!intersection && !contains(comparison, "string", string)) {
|
34104
|
-
result.push(
|
34162
|
+
result.push(prefix2 + string);
|
34105
34163
|
}
|
34106
34164
|
if (intersection && contains(comparison, "string", string)) {
|
34107
|
-
result.push(
|
34165
|
+
result.push(prefix2 + string);
|
34108
34166
|
}
|
34109
34167
|
}
|
34110
34168
|
return result;
|
@@ -34220,7 +34278,7 @@ var require_fill_range = __commonJS({
|
|
34220
34278
|
var toSequence = (parts, options, maxLen) => {
|
34221
34279
|
parts.negatives.sort((a3, b4) => a3 < b4 ? -1 : a3 > b4 ? 1 : 0);
|
34222
34280
|
parts.positives.sort((a3, b4) => a3 < b4 ? -1 : a3 > b4 ? 1 : 0);
|
34223
|
-
let
|
34281
|
+
let prefix2 = options.capture ? "" : "?:";
|
34224
34282
|
let positives = "";
|
34225
34283
|
let negatives = "";
|
34226
34284
|
let result;
|
@@ -34228,7 +34286,7 @@ var require_fill_range = __commonJS({
|
|
34228
34286
|
positives = parts.positives.map((v6) => toMaxLen(String(v6), maxLen)).join("|");
|
34229
34287
|
}
|
34230
34288
|
if (parts.negatives.length) {
|
34231
|
-
negatives = `-(${
|
34289
|
+
negatives = `-(${prefix2}${parts.negatives.map((v6) => toMaxLen(String(v6), maxLen)).join("|")})`;
|
34232
34290
|
}
|
34233
34291
|
if (positives && negatives) {
|
34234
34292
|
result = `${positives}|${negatives}`;
|
@@ -34236,7 +34294,7 @@ var require_fill_range = __commonJS({
|
|
34236
34294
|
result = positives || negatives;
|
34237
34295
|
}
|
34238
34296
|
if (options.wrap) {
|
34239
|
-
return `(${
|
34297
|
+
return `(${prefix2}${result})`;
|
34240
34298
|
}
|
34241
34299
|
return result;
|
34242
34300
|
};
|
@@ -34253,8 +34311,8 @@ var require_fill_range = __commonJS({
|
|
34253
34311
|
var toRegex = (start, end, options) => {
|
34254
34312
|
if (Array.isArray(start)) {
|
34255
34313
|
let wrap = options.wrap === true;
|
34256
|
-
let
|
34257
|
-
return wrap ? `(${
|
34314
|
+
let prefix2 = options.capture ? "" : "?:";
|
34315
|
+
return wrap ? `(${prefix2}${start.join("|")})` : start.join("|");
|
34258
34316
|
}
|
34259
34317
|
return toRegexRange(start, end, options);
|
34260
34318
|
};
|
@@ -34381,20 +34439,20 @@ var require_compile = __commonJS({
|
|
34381
34439
|
const invalidBlock = utils.isInvalidBrace(parent);
|
34382
34440
|
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
34383
34441
|
const invalid = invalidBlock === true || invalidNode === true;
|
34384
|
-
const
|
34442
|
+
const prefix2 = options.escapeInvalid === true ? "\\" : "";
|
34385
34443
|
let output = "";
|
34386
34444
|
if (node.isOpen === true) {
|
34387
|
-
return
|
34445
|
+
return prefix2 + node.value;
|
34388
34446
|
}
|
34389
34447
|
if (node.isClose === true) {
|
34390
|
-
console.log("node.isClose",
|
34391
|
-
return
|
34448
|
+
console.log("node.isClose", prefix2, node.value);
|
34449
|
+
return prefix2 + node.value;
|
34392
34450
|
}
|
34393
34451
|
if (node.type === "open") {
|
34394
|
-
return invalid ?
|
34452
|
+
return invalid ? prefix2 + node.value : "(";
|
34395
34453
|
}
|
34396
34454
|
if (node.type === "close") {
|
34397
|
-
return invalid ?
|
34455
|
+
return invalid ? prefix2 + node.value : ")";
|
34398
34456
|
}
|
34399
34457
|
if (node.type === "comma") {
|
34400
34458
|
return node.prev.type === "comma" ? "" : invalid ? node.value : "|";
|
@@ -35430,10 +35488,10 @@ var require_scan = __commonJS({
|
|
35430
35488
|
isGlob = false;
|
35431
35489
|
}
|
35432
35490
|
let base = str;
|
35433
|
-
let
|
35491
|
+
let prefix2 = "";
|
35434
35492
|
let glob2 = "";
|
35435
35493
|
if (start > 0) {
|
35436
|
-
|
35494
|
+
prefix2 = str.slice(0, start);
|
35437
35495
|
str = str.slice(start);
|
35438
35496
|
lastIndex -= start;
|
35439
35497
|
}
|
@@ -35459,7 +35517,7 @@ var require_scan = __commonJS({
|
|
35459
35517
|
}
|
35460
35518
|
}
|
35461
35519
|
const state = {
|
35462
|
-
prefix,
|
35520
|
+
prefix: prefix2,
|
35463
35521
|
input,
|
35464
35522
|
start,
|
35465
35523
|
base,
|
@@ -35488,7 +35546,7 @@ var require_scan = __commonJS({
|
|
35488
35546
|
if (opts.tokens) {
|
35489
35547
|
if (idx === 0 && start !== 0) {
|
35490
35548
|
tokens[idx].isPrefix = true;
|
35491
|
-
tokens[idx].value =
|
35549
|
+
tokens[idx].value = prefix2;
|
35492
35550
|
} else {
|
35493
35551
|
tokens[idx].value = value;
|
35494
35552
|
}
|
@@ -39180,8 +39238,8 @@ var require_ignore = __commonJS({
|
|
39180
39238
|
[
|
39181
39239
|
/(\^|\\\/)?\\\*$/,
|
39182
39240
|
(_3, p1) => {
|
39183
|
-
const
|
39184
|
-
return `${
|
39241
|
+
const prefix2 = p1 ? `${p1}[^/]+` : "[^/]*";
|
39242
|
+
return `${prefix2}(?=$|\\/$)`;
|
39185
39243
|
}
|
39186
39244
|
]
|
39187
39245
|
];
|
@@ -44634,8 +44692,8 @@ var require_directives = __commonJS({
|
|
44634
44692
|
if (parts.length < 2)
|
44635
44693
|
return false;
|
44636
44694
|
}
|
44637
|
-
const [handle,
|
44638
|
-
this.tags[handle] =
|
44695
|
+
const [handle, prefix2] = parts;
|
44696
|
+
this.tags[handle] = prefix2;
|
44639
44697
|
return true;
|
44640
44698
|
}
|
44641
44699
|
case "%YAML": {
|
@@ -44685,10 +44743,10 @@ var require_directives = __commonJS({
|
|
44685
44743
|
const [, handle, suffix] = source.match(/^(.*!)([^!]*)$/s);
|
44686
44744
|
if (!suffix)
|
44687
44745
|
onError(`The ${source} tag has no suffix`);
|
44688
|
-
const
|
44689
|
-
if (
|
44746
|
+
const prefix2 = this.tags[handle];
|
44747
|
+
if (prefix2) {
|
44690
44748
|
try {
|
44691
|
-
return
|
44749
|
+
return prefix2 + decodeURIComponent(suffix);
|
44692
44750
|
} catch (error2) {
|
44693
44751
|
onError(String(error2));
|
44694
44752
|
return null;
|
@@ -44704,9 +44762,9 @@ var require_directives = __commonJS({
|
|
44704
44762
|
* taking into account current tag prefixes and defaults.
|
44705
44763
|
*/
|
44706
44764
|
tagString(tag) {
|
44707
|
-
for (const [handle,
|
44708
|
-
if (tag.startsWith(
|
44709
|
-
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));
|
44710
44768
|
}
|
44711
44769
|
return tag[0] === "!" ? tag : `!<${tag}>`;
|
44712
44770
|
}
|
@@ -44723,11 +44781,11 @@ var require_directives = __commonJS({
|
|
44723
44781
|
tagNames = Object.keys(tags);
|
44724
44782
|
} else
|
44725
44783
|
tagNames = [];
|
44726
|
-
for (const [handle,
|
44727
|
-
if (handle === "!!" &&
|
44784
|
+
for (const [handle, prefix2] of tagEntries) {
|
44785
|
+
if (handle === "!!" && prefix2 === "tag:yaml.org,2002:")
|
44728
44786
|
continue;
|
44729
|
-
if (!doc || tagNames.some((tn) => tn.startsWith(
|
44730
|
-
lines.push(`%TAG ${handle} ${
|
44787
|
+
if (!doc || tagNames.some((tn) => tn.startsWith(prefix2)))
|
44788
|
+
lines.push(`%TAG ${handle} ${prefix2}`);
|
44731
44789
|
}
|
44732
44790
|
return lines.join("\n");
|
44733
44791
|
}
|
@@ -44762,14 +44820,14 @@ var require_anchors = __commonJS({
|
|
44762
44820
|
});
|
44763
44821
|
return anchors;
|
44764
44822
|
}
|
44765
|
-
function findNewAnchor(
|
44823
|
+
function findNewAnchor(prefix2, exclude) {
|
44766
44824
|
for (let i2 = 1; true; ++i2) {
|
44767
|
-
const name = `${
|
44825
|
+
const name = `${prefix2}${i2}`;
|
44768
44826
|
if (!exclude.has(name))
|
44769
44827
|
return name;
|
44770
44828
|
}
|
44771
44829
|
}
|
44772
|
-
function createNodeAnchors(doc,
|
44830
|
+
function createNodeAnchors(doc, prefix2) {
|
44773
44831
|
const aliasObjects = [];
|
44774
44832
|
const sourceObjects = /* @__PURE__ */ new Map();
|
44775
44833
|
let prevAnchors = null;
|
@@ -44778,7 +44836,7 @@ var require_anchors = __commonJS({
|
|
44778
44836
|
aliasObjects.push(source);
|
44779
44837
|
if (!prevAnchors)
|
44780
44838
|
prevAnchors = anchorNames(doc);
|
44781
|
-
const anchor = findNewAnchor(
|
44839
|
+
const anchor = findNewAnchor(prefix2, prevAnchors);
|
44782
44840
|
prevAnchors.add(anchor);
|
44783
44841
|
return anchor;
|
44784
44842
|
},
|
@@ -46717,10 +46775,10 @@ var require_int = __commonJS({
|
|
46717
46775
|
var stringifyNumber = require_stringifyNumber();
|
46718
46776
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
46719
46777
|
var intResolve = (str, offset, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix);
|
46720
|
-
function intStringify(node, radix,
|
46778
|
+
function intStringify(node, radix, prefix2) {
|
46721
46779
|
const { value } = node;
|
46722
46780
|
if (intIdentify(value) && value >= 0)
|
46723
|
-
return
|
46781
|
+
return prefix2 + value.toString(radix);
|
46724
46782
|
return stringifyNumber.stringifyNumber(node);
|
46725
46783
|
}
|
46726
46784
|
var intOct = {
|
@@ -47180,11 +47238,11 @@ var require_int2 = __commonJS({
|
|
47180
47238
|
const n = parseInt(str, radix);
|
47181
47239
|
return sign === "-" ? -1 * n : n;
|
47182
47240
|
}
|
47183
|
-
function intStringify(node, radix,
|
47241
|
+
function intStringify(node, radix, prefix2) {
|
47184
47242
|
const { value } = node;
|
47185
47243
|
if (intIdentify(value)) {
|
47186
47244
|
const str = value.toString(radix);
|
47187
|
-
return value < 0 ? "-" +
|
47245
|
+
return value < 0 ? "-" + prefix2 + str.substr(1) : prefix2 + str;
|
47188
47246
|
}
|
47189
47247
|
return stringifyNumber.stringifyNumber(node);
|
47190
47248
|
}
|
@@ -53247,11 +53305,11 @@ var require_receiver = __commonJS({
|
|
53247
53305
|
* @return {(Error|RangeError)} The error
|
53248
53306
|
* @private
|
53249
53307
|
*/
|
53250
|
-
createError(ErrorCtor, message,
|
53308
|
+
createError(ErrorCtor, message, prefix2, statusCode, errorCode) {
|
53251
53309
|
this._loop = false;
|
53252
53310
|
this._errored = true;
|
53253
53311
|
const err2 = new ErrorCtor(
|
53254
|
-
|
53312
|
+
prefix2 ? `Invalid WebSocket frame: ${message}` : message
|
53255
53313
|
);
|
53256
53314
|
Error.captureStackTrace(err2, this.createError);
|
53257
53315
|
err2.code = errorCode;
|
@@ -58483,8 +58541,8 @@ var require_dist_cjs8 = __commonJS({
|
|
58483
58541
|
const userAgent = ((_a = context == null ? void 0 : context.userAgent) == null ? void 0 : _a.map(escapeUserAgent)) || [];
|
58484
58542
|
const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent);
|
58485
58543
|
const customUserAgent = ((_b = options == null ? void 0 : options.customUserAgent) == null ? void 0 : _b.map(escapeUserAgent)) || [];
|
58486
|
-
const
|
58487
|
-
const sdkUserAgentValue = (
|
58544
|
+
const prefix2 = (0, import_util_endpoints.getUserAgentPrefix)();
|
58545
|
+
const sdkUserAgentValue = (prefix2 ? [prefix2] : []).concat([...defaultUserAgent, ...userAgent, ...customUserAgent]).join(SPACE2);
|
58488
58546
|
const normalUAValue = [
|
58489
58547
|
...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")),
|
58490
58548
|
...customUserAgent
|
@@ -58507,12 +58565,12 @@ var require_dist_cjs8 = __commonJS({
|
|
58507
58565
|
const name = userAgentPair[0].split(UA_NAME_SEPARATOR).map((part) => part.replace(UA_NAME_ESCAPE_REGEX, UA_ESCAPE_CHAR)).join(UA_NAME_SEPARATOR);
|
58508
58566
|
const version2 = (_a = userAgentPair[1]) == null ? void 0 : _a.replace(UA_VALUE_ESCAPE_REGEX, UA_ESCAPE_CHAR);
|
58509
58567
|
const prefixSeparatorIndex = name.indexOf(UA_NAME_SEPARATOR);
|
58510
|
-
const
|
58568
|
+
const prefix2 = name.substring(0, prefixSeparatorIndex);
|
58511
58569
|
let uaName = name.substring(prefixSeparatorIndex + 1);
|
58512
|
-
if (
|
58570
|
+
if (prefix2 === "api") {
|
58513
58571
|
uaName = uaName.toLowerCase();
|
58514
58572
|
}
|
58515
|
-
return [
|
58573
|
+
return [prefix2, uaName, version2].filter((item) => item && item.length > 0).reduce((acc, item, index4) => {
|
58516
58574
|
switch (index4) {
|
58517
58575
|
case 0:
|
58518
58576
|
return item;
|
@@ -59180,9 +59238,9 @@ var require_dist_cjs13 = __commonJS({
|
|
59180
59238
|
const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);
|
59181
59239
|
const matches = prefixKeyRegex.exec(sectionName);
|
59182
59240
|
if (matches) {
|
59183
|
-
const [,
|
59184
|
-
if (Object.values(import_types7.IniSectionType).includes(
|
59185
|
-
currentSection = [
|
59241
|
+
const [, prefix2, , name] = matches;
|
59242
|
+
if (Object.values(import_types7.IniSectionType).includes(prefix2)) {
|
59243
|
+
currentSection = [prefix2, name].join(CONFIG_PREFIX_SEPARATOR);
|
59186
59244
|
}
|
59187
59245
|
} else {
|
59188
59246
|
currentSection = sectionName;
|
@@ -66156,12 +66214,12 @@ var require_OrderedObjParser = __commonJS({
|
|
66156
66214
|
function resolveNameSpace(tagname) {
|
66157
66215
|
if (this.options.removeNSPrefix) {
|
66158
66216
|
const tags = tagname.split(":");
|
66159
|
-
const
|
66217
|
+
const prefix2 = tagname.charAt(0) === "/" ? "/" : "";
|
66160
66218
|
if (tags[0] === "xmlns") {
|
66161
66219
|
return "";
|
66162
66220
|
}
|
66163
66221
|
if (tags.length === 2) {
|
66164
|
-
tagname =
|
66222
|
+
tagname = prefix2 + tags[1];
|
66165
66223
|
}
|
66166
66224
|
}
|
66167
66225
|
return tagname;
|
@@ -67365,10 +67423,10 @@ function __runInitializers(thisArg, initializers, value) {
|
|
67365
67423
|
function __propKey(x3) {
|
67366
67424
|
return typeof x3 === "symbol" ? x3 : "".concat(x3);
|
67367
67425
|
}
|
67368
|
-
function __setFunctionName(f3, name,
|
67426
|
+
function __setFunctionName(f3, name, prefix2) {
|
67369
67427
|
if (typeof name === "symbol")
|
67370
67428
|
name = name.description ? "[".concat(name.description, "]") : "";
|
67371
|
-
return Object.defineProperty(f3, "name", { configurable: true, value:
|
67429
|
+
return Object.defineProperty(f3, "name", { configurable: true, value: prefix2 ? "".concat(prefix2, " ", name) : name });
|
67372
67430
|
}
|
67373
67431
|
function __metadata(metadataKey, metadataValue) {
|
67374
67432
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
@@ -89470,9 +89528,9 @@ var require_receiver2 = __commonJS({
|
|
89470
89528
|
}
|
89471
89529
|
};
|
89472
89530
|
module2.exports = Receiver3;
|
89473
|
-
function error2(ErrorCtor, message,
|
89531
|
+
function error2(ErrorCtor, message, prefix2, statusCode, errorCode) {
|
89474
89532
|
const err2 = new ErrorCtor(
|
89475
|
-
|
89533
|
+
prefix2 ? `Invalid WebSocket frame: ${message}` : message
|
89476
89534
|
);
|
89477
89535
|
Error.captureStackTrace(err2, error2);
|
89478
89536
|
err2.code = errorCode;
|
@@ -103193,13 +103251,13 @@ var require_dbcs_codec = __commonJS({
|
|
103193
103251
|
uCode = seq[seq.length - 1];
|
103194
103252
|
node[uCode] = dbcsCode;
|
103195
103253
|
};
|
103196
|
-
DBCSCodec.prototype._fillEncodeTable = function(nodeIdx,
|
103254
|
+
DBCSCodec.prototype._fillEncodeTable = function(nodeIdx, prefix2, skipEncodeChars) {
|
103197
103255
|
var node = this.decodeTables[nodeIdx];
|
103198
103256
|
var hasValues = false;
|
103199
103257
|
var subNodeEmpty = {};
|
103200
103258
|
for (var i3 = 0; i3 < 256; i3++) {
|
103201
103259
|
var uCode = node[i3];
|
103202
|
-
var mbCode =
|
103260
|
+
var mbCode = prefix2 + i3;
|
103203
103261
|
if (skipEncodeChars[mbCode])
|
103204
103262
|
continue;
|
103205
103263
|
if (uCode >= 0) {
|
@@ -110720,11 +110778,11 @@ var require_esprima = __commonJS({
|
|
110720
110778
|
}();
|
110721
110779
|
exports3.UnaryExpression = UnaryExpression;
|
110722
110780
|
var UpdateExpression = /* @__PURE__ */ function() {
|
110723
|
-
function UpdateExpression2(operator, argument,
|
110781
|
+
function UpdateExpression2(operator, argument, prefix2) {
|
110724
110782
|
this.type = syntax_1.Syntax.UpdateExpression;
|
110725
110783
|
this.operator = operator;
|
110726
110784
|
this.argument = argument;
|
110727
|
-
this.prefix =
|
110785
|
+
this.prefix = prefix2;
|
110728
110786
|
}
|
110729
110787
|
return UpdateExpression2;
|
110730
110788
|
}();
|
@@ -111837,8 +111895,8 @@ var require_esprima = __commonJS({
|
|
111837
111895
|
if (!this.context.isAssignmentTarget) {
|
111838
111896
|
this.tolerateError(messages_1.Messages.InvalidLHSInAssignment);
|
111839
111897
|
}
|
111840
|
-
var
|
111841
|
-
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));
|
111842
111900
|
this.context.isAssignmentTarget = false;
|
111843
111901
|
this.context.isBindingElement = false;
|
111844
111902
|
} else {
|
@@ -111854,8 +111912,8 @@ var require_esprima = __commonJS({
|
|
111854
111912
|
this.context.isAssignmentTarget = false;
|
111855
111913
|
this.context.isBindingElement = false;
|
111856
111914
|
var operator = this.nextToken().value;
|
111857
|
-
var
|
111858
|
-
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));
|
111859
111917
|
}
|
111860
111918
|
}
|
111861
111919
|
}
|
@@ -114057,8 +114115,8 @@ var require_esprima = __commonJS({
|
|
114057
114115
|
}
|
114058
114116
|
return cp;
|
114059
114117
|
};
|
114060
|
-
Scanner2.prototype.scanHexEscape = function(
|
114061
|
-
var len =
|
114118
|
+
Scanner2.prototype.scanHexEscape = function(prefix2) {
|
114119
|
+
var len = prefix2 === "u" ? 4 : 2;
|
114062
114120
|
var code = 0;
|
114063
114121
|
for (var i2 = 0; i2 < len; ++i2) {
|
114064
114122
|
if (!this.eof() && character_1.Character.isHexDigit(this.source.charCodeAt(this.index))) {
|
@@ -114316,10 +114374,10 @@ var require_esprima = __commonJS({
|
|
114316
114374
|
end: this.index
|
114317
114375
|
};
|
114318
114376
|
};
|
114319
|
-
Scanner2.prototype.scanOctalLiteral = function(
|
114377
|
+
Scanner2.prototype.scanOctalLiteral = function(prefix2, start) {
|
114320
114378
|
var num = "";
|
114321
114379
|
var octal = false;
|
114322
|
-
if (character_1.Character.isOctalDigit(
|
114380
|
+
if (character_1.Character.isOctalDigit(prefix2.charCodeAt(0))) {
|
114323
114381
|
octal = true;
|
114324
114382
|
num = "0" + this.source[this.index++];
|
114325
114383
|
} else {
|
@@ -122110,7 +122168,7 @@ var init_pgPushUtils = __esm({
|
|
122110
122168
|
}
|
122111
122169
|
}
|
122112
122170
|
}
|
122113
|
-
const stmnt = fromJson([statement], "postgresql")
|
122171
|
+
const stmnt = fromJson([statement], "postgresql");
|
122114
122172
|
if (typeof stmnt !== "undefined") {
|
122115
122173
|
if (statement.type === "drop_table") {
|
122116
122174
|
statementsToExecute.push(
|
@@ -122120,7 +122178,7 @@ var init_pgPushUtils = __esm({
|
|
122120
122178
|
)} CASCADE;`
|
122121
122179
|
);
|
122122
122180
|
} else {
|
122123
|
-
statementsToExecute.push(stmnt);
|
122181
|
+
statementsToExecute.push(...stmnt);
|
122124
122182
|
}
|
122125
122183
|
}
|
122126
122184
|
}
|
@@ -122352,14 +122410,14 @@ var init_sqlitePushUtils = __esm({
|
|
122352
122410
|
}
|
122353
122411
|
tablesContext[newTableName] = _moveDataStatements(
|
122354
122412
|
statement.tableName,
|
122355
|
-
|
122413
|
+
json1,
|
122356
122414
|
true
|
122357
122415
|
);
|
122358
122416
|
} else {
|
122359
122417
|
if (typeof tablesContext[newTableName] === "undefined") {
|
122360
122418
|
tablesContext[newTableName] = _moveDataStatements(
|
122361
122419
|
statement.tableName,
|
122362
|
-
|
122420
|
+
json1
|
122363
122421
|
);
|
122364
122422
|
}
|
122365
122423
|
}
|
@@ -122378,7 +122436,7 @@ var init_sqlitePushUtils = __esm({
|
|
122378
122436
|
const uniqueTableRefs = [...new Set(tablesReferncingCurrent)];
|
122379
122437
|
for (const table4 of uniqueTableRefs) {
|
122380
122438
|
if (typeof tablesContext[table4] === "undefined") {
|
122381
|
-
tablesContext[table4] = [..._moveDataStatements(table4,
|
122439
|
+
tablesContext[table4] = [..._moveDataStatements(table4, json1)];
|
122382
122440
|
}
|
122383
122441
|
}
|
122384
122442
|
}
|
@@ -122399,9 +122457,9 @@ var init_sqlitePushUtils = __esm({
|
|
122399
122457
|
);
|
122400
122458
|
}
|
122401
122459
|
} else {
|
122402
|
-
const stmnt = fromJson([statement], "sqlite")
|
122460
|
+
const stmnt = fromJson([statement], "sqlite");
|
122403
122461
|
if (typeof stmnt !== "undefined") {
|
122404
|
-
statementsToExecute.push(stmnt);
|
122462
|
+
statementsToExecute.push(...stmnt);
|
122405
122463
|
}
|
122406
122464
|
}
|
122407
122465
|
}
|
@@ -124231,25 +124289,24 @@ var init_push = __esm({
|
|
124231
124289
|
process.exit(0);
|
124232
124290
|
}
|
124233
124291
|
}
|
124234
|
-
if (!("driver" in credentials2)) {
|
124235
|
-
await db2.query("begin");
|
124236
|
-
try {
|
124237
|
-
for (const dStmnt of statementsToExecute) {
|
124238
|
-
await db2.query(dStmnt);
|
124239
|
-
}
|
124240
|
-
await db2.query("commit");
|
124241
|
-
} catch (e2) {
|
124242
|
-
await db2.query("rollback");
|
124243
|
-
}
|
124244
|
-
} else if (credentials2.driver === "turso") {
|
124245
|
-
await db2.batch(statementsToExecute.map((it) => ({ query: it })));
|
124246
|
-
}
|
124247
124292
|
if (statementsToExecute.length === 0) {
|
124248
124293
|
(0, import_hanji11.render)(`
|
124249
124294
|
[${source_default.blue("i")}] No changes detected`);
|
124250
124295
|
} else {
|
124251
|
-
|
124252
|
-
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 })));
|
124253
124310
|
}
|
124254
124311
|
(0, import_hanji11.render)(`[${source_default.green("\u2713")}] Changes applied`);
|
124255
124312
|
}
|
@@ -125905,7 +125962,7 @@ var init_introspect = __esm({
|
|
125905
125962
|
init_introspect_mysql();
|
125906
125963
|
init_introspect_pg();
|
125907
125964
|
import_pluralize = __toESM(require_pluralize());
|
125908
|
-
introspectPostgres = async (casing2, out, breakpoints, credentials2, tablesFilter, schemasFilter) => {
|
125965
|
+
introspectPostgres = async (casing2, out, breakpoints, credentials2, tablesFilter, schemasFilter, prefix2) => {
|
125909
125966
|
const { preparePostgresDB: preparePostgresDB2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
125910
125967
|
const db2 = await preparePostgresDB2(credentials2);
|
125911
125968
|
const matchers = tablesFilter.map((it) => {
|
@@ -125965,7 +126022,8 @@ var init_introspect = __esm({
|
|
125965
126022
|
_meta,
|
125966
126023
|
outFolder: out,
|
125967
126024
|
breakpoints,
|
125968
|
-
type: "introspect"
|
126025
|
+
type: "introspect",
|
126026
|
+
prefixMode: prefix2
|
125969
126027
|
});
|
125970
126028
|
} else {
|
125971
126029
|
(0, import_hanji12.render)(
|
@@ -125988,7 +126046,7 @@ var init_introspect = __esm({
|
|
125988
126046
|
);
|
125989
126047
|
process.exit(0);
|
125990
126048
|
};
|
125991
|
-
introspectMysql = async (casing2, out, breakpoints, credentials2, tablesFilter) => {
|
126049
|
+
introspectMysql = async (casing2, out, breakpoints, credentials2, tablesFilter, prefix2) => {
|
125992
126050
|
const { connectToMySQL: connectToMySQL2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
125993
126051
|
const { db: db2, database } = await connectToMySQL2(credentials2);
|
125994
126052
|
const matchers = tablesFilter.map((it) => {
|
@@ -126046,7 +126104,8 @@ var init_introspect = __esm({
|
|
126046
126104
|
_meta,
|
126047
126105
|
outFolder: out,
|
126048
126106
|
breakpoints,
|
126049
|
-
type: "introspect"
|
126107
|
+
type: "introspect",
|
126108
|
+
prefixMode: prefix2
|
126050
126109
|
});
|
126051
126110
|
} else {
|
126052
126111
|
(0, import_hanji12.render)(
|
@@ -126069,7 +126128,7 @@ var init_introspect = __esm({
|
|
126069
126128
|
);
|
126070
126129
|
process.exit(0);
|
126071
126130
|
};
|
126072
|
-
introspectSqlite = async (casing2, out, breakpoints, credentials2, tablesFilter) => {
|
126131
|
+
introspectSqlite = async (casing2, out, breakpoints, credentials2, tablesFilter, prefix2) => {
|
126073
126132
|
const { connectToSQLite: connectToSQLite2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
126074
126133
|
const db2 = await connectToSQLite2(credentials2);
|
126075
126134
|
const matchers = tablesFilter.map((it) => {
|
@@ -126126,7 +126185,8 @@ var init_introspect = __esm({
|
|
126126
126185
|
_meta,
|
126127
126186
|
outFolder: out,
|
126128
126187
|
breakpoints,
|
126129
|
-
type: "introspect"
|
126188
|
+
type: "introspect",
|
126189
|
+
prefixMode: prefix2
|
126130
126190
|
});
|
126131
126191
|
} else {
|
126132
126192
|
(0, import_hanji12.render)(
|
@@ -126696,10 +126756,10 @@ var init_dist3 = __esm({
|
|
126696
126756
|
}
|
126697
126757
|
});
|
126698
126758
|
|
126699
|
-
// node_modules/.pnpm/hono@4.4.
|
126759
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/url.js
|
126700
126760
|
var splitPath, splitRoutingPath, extractGroupsFromPath, replaceGroupMarks, patternCache, getPattern, tryDecodeURI, getPath, getPathNoStrict, mergePath, checkOptionalParameter, _decodeURI, _getQueryParam, getQueryParam, getQueryParams, decodeURIComponent_;
|
126701
126761
|
var init_url = __esm({
|
126702
|
-
"node_modules/.pnpm/hono@4.4.
|
126762
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/url.js"() {
|
126703
126763
|
splitPath = (path5) => {
|
126704
126764
|
const paths = path5.split("/");
|
126705
126765
|
if (paths[0] === "") {
|
@@ -126914,10 +126974,10 @@ var init_url = __esm({
|
|
126914
126974
|
}
|
126915
126975
|
});
|
126916
126976
|
|
126917
|
-
// node_modules/.pnpm/hono@4.4.
|
126977
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/cookie.js
|
126918
126978
|
var validCookieNameRegEx, validCookieValueRegEx, parse5;
|
126919
126979
|
var init_cookie = __esm({
|
126920
|
-
"node_modules/.pnpm/hono@4.4.
|
126980
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/cookie.js"() {
|
126921
126981
|
init_url();
|
126922
126982
|
validCookieNameRegEx = /^[\w!#$%&'*.^`|~+-]+$/;
|
126923
126983
|
validCookieValueRegEx = /^[ !#-:<-[\]-~]*$/;
|
@@ -126946,21 +127006,21 @@ var init_cookie = __esm({
|
|
126946
127006
|
}
|
126947
127007
|
});
|
126948
127008
|
|
126949
|
-
// node_modules/.pnpm/hono@4.4.
|
127009
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/helper/cookie/index.js
|
126950
127010
|
var getCookie;
|
126951
127011
|
var init_cookie2 = __esm({
|
126952
|
-
"node_modules/.pnpm/hono@4.4.
|
127012
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/helper/cookie/index.js"() {
|
126953
127013
|
init_cookie();
|
126954
|
-
getCookie = (c, key,
|
127014
|
+
getCookie = (c, key, prefix2) => {
|
126955
127015
|
const cookie = c.req.raw.headers.get("Cookie");
|
126956
127016
|
if (typeof key === "string") {
|
126957
127017
|
if (!cookie) {
|
126958
127018
|
return void 0;
|
126959
127019
|
}
|
126960
127020
|
let finalKey = key;
|
126961
|
-
if (
|
127021
|
+
if (prefix2 === "secure") {
|
126962
127022
|
finalKey = "__Secure-" + key;
|
126963
|
-
} else if (
|
127023
|
+
} else if (prefix2 === "host") {
|
126964
127024
|
finalKey = "__Host-" + key;
|
126965
127025
|
}
|
126966
127026
|
const obj2 = parse5(cookie, finalKey);
|
@@ -126975,10 +127035,10 @@ var init_cookie2 = __esm({
|
|
126975
127035
|
}
|
126976
127036
|
});
|
126977
127037
|
|
126978
|
-
// node_modules/.pnpm/hono@4.4.
|
127038
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/http-exception.js
|
126979
127039
|
var HTTPException;
|
126980
127040
|
var init_http_exception = __esm({
|
126981
|
-
"node_modules/.pnpm/hono@4.4.
|
127041
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/http-exception.js"() {
|
126982
127042
|
HTTPException = class extends Error {
|
126983
127043
|
res;
|
126984
127044
|
status;
|
@@ -127003,16 +127063,16 @@ var init_http_exception = __esm({
|
|
127003
127063
|
}
|
127004
127064
|
});
|
127005
127065
|
|
127006
|
-
// node_modules/.pnpm/hono@4.4.
|
127066
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/crypto.js
|
127007
127067
|
var init_crypto = __esm({
|
127008
|
-
"node_modules/.pnpm/hono@4.4.
|
127068
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/crypto.js"() {
|
127009
127069
|
}
|
127010
127070
|
});
|
127011
127071
|
|
127012
|
-
// node_modules/.pnpm/hono@4.4.
|
127072
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/buffer.js
|
127013
127073
|
var bufferToFormData;
|
127014
127074
|
var init_buffer = __esm({
|
127015
|
-
"node_modules/.pnpm/hono@4.4.
|
127075
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/buffer.js"() {
|
127016
127076
|
init_crypto();
|
127017
127077
|
bufferToFormData = (arrayBuffer, contentType) => {
|
127018
127078
|
const response = new Response(arrayBuffer, {
|
@@ -127025,10 +127085,10 @@ var init_buffer = __esm({
|
|
127025
127085
|
}
|
127026
127086
|
});
|
127027
127087
|
|
127028
|
-
// node_modules/.pnpm/hono@4.4.
|
127088
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/validator/validator.js
|
127029
127089
|
var validator;
|
127030
127090
|
var init_validator = __esm({
|
127031
|
-
"node_modules/.pnpm/hono@4.4.
|
127091
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/validator/validator.js"() {
|
127032
127092
|
init_cookie2();
|
127033
127093
|
init_http_exception();
|
127034
127094
|
init_buffer();
|
@@ -127110,17 +127170,17 @@ var init_validator = __esm({
|
|
127110
127170
|
}
|
127111
127171
|
});
|
127112
127172
|
|
127113
|
-
// node_modules/.pnpm/hono@4.4.
|
127173
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/validator/index.js
|
127114
127174
|
var init_validator2 = __esm({
|
127115
|
-
"node_modules/.pnpm/hono@4.4.
|
127175
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/validator/index.js"() {
|
127116
127176
|
init_validator();
|
127117
127177
|
}
|
127118
127178
|
});
|
127119
127179
|
|
127120
|
-
// 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
|
127121
127181
|
var zValidator;
|
127122
127182
|
var init_esm = __esm({
|
127123
|
-
"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"() {
|
127124
127184
|
init_validator2();
|
127125
127185
|
zValidator = (target, schema5, hook2) => (
|
127126
127186
|
// @ts-expect-error not typed well
|
@@ -127146,10 +127206,195 @@ var init_esm = __esm({
|
|
127146
127206
|
}
|
127147
127207
|
});
|
127148
127208
|
|
127149
|
-
// 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
|
127150
127395
|
var HtmlEscapedCallbackPhase, raw, resolveCallback;
|
127151
127396
|
var init_html = __esm({
|
127152
|
-
"node_modules/.pnpm/hono@4.4.
|
127397
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/utils/html.js"() {
|
127153
127398
|
HtmlEscapedCallbackPhase = {
|
127154
127399
|
Stringify: 1,
|
127155
127400
|
BeforeStream: 2,
|
@@ -127185,10 +127430,11 @@ var init_html = __esm({
|
|
127185
127430
|
}
|
127186
127431
|
});
|
127187
127432
|
|
127188
|
-
// node_modules/.pnpm/hono@4.4.
|
127433
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/context.js
|
127189
127434
|
var TEXT_PLAIN, setHeaders, Context;
|
127190
127435
|
var init_context = __esm({
|
127191
|
-
"node_modules/.pnpm/hono@4.4.
|
127436
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/context.js"() {
|
127437
|
+
init_request2();
|
127192
127438
|
init_html();
|
127193
127439
|
TEXT_PLAIN = "text/plain; charset=UTF-8";
|
127194
127440
|
setHeaders = (headers, map = {}) => {
|
@@ -127196,30 +127442,37 @@ var init_context = __esm({
|
|
127196
127442
|
return headers;
|
127197
127443
|
};
|
127198
127444
|
Context = class {
|
127199
|
-
|
127445
|
+
#rawRequest;
|
127446
|
+
#req;
|
127200
127447
|
env = {};
|
127201
|
-
|
127448
|
+
#var;
|
127202
127449
|
finalized = false;
|
127203
|
-
error
|
127450
|
+
error;
|
127204
127451
|
#status = 200;
|
127205
127452
|
#executionCtx;
|
127206
|
-
#headers
|
127207
|
-
#preparedHeaders
|
127453
|
+
#headers;
|
127454
|
+
#preparedHeaders;
|
127208
127455
|
#res;
|
127209
127456
|
#isFresh = true;
|
127210
|
-
layout
|
127211
|
-
renderer
|
127212
|
-
notFoundHandler
|
127457
|
+
#layout;
|
127458
|
+
#renderer;
|
127459
|
+
#notFoundHandler;
|
127460
|
+
#matchResult;
|
127461
|
+
#path;
|
127213
127462
|
constructor(req, options) {
|
127214
|
-
this
|
127463
|
+
this.#rawRequest = req;
|
127215
127464
|
if (options) {
|
127216
127465
|
this.#executionCtx = options.executionCtx;
|
127217
127466
|
this.env = options.env;
|
127218
|
-
|
127219
|
-
|
127220
|
-
|
127467
|
+
this.#notFoundHandler = options.notFoundHandler;
|
127468
|
+
this.#path = options.path;
|
127469
|
+
this.#matchResult = options.matchResult;
|
127221
127470
|
}
|
127222
127471
|
}
|
127472
|
+
get req() {
|
127473
|
+
this.#req ??= new HonoRequest(this.#rawRequest, this.#path, this.#matchResult);
|
127474
|
+
return this.#req;
|
127475
|
+
}
|
127223
127476
|
get event() {
|
127224
127477
|
if (this.#executionCtx && "respondWith" in this.#executionCtx) {
|
127225
127478
|
return this.#executionCtx;
|
@@ -127257,11 +127510,14 @@ var init_context = __esm({
|
|
127257
127510
|
this.#res = _res;
|
127258
127511
|
this.finalized = true;
|
127259
127512
|
}
|
127260
|
-
render = (...args) =>
|
127261
|
-
|
127262
|
-
|
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;
|
127263
127519
|
setRenderer = (renderer) => {
|
127264
|
-
this
|
127520
|
+
this.#renderer = renderer;
|
127265
127521
|
};
|
127266
127522
|
header = (name, value, options) => {
|
127267
127523
|
if (value === void 0) {
|
@@ -127303,14 +127559,14 @@ var init_context = __esm({
|
|
127303
127559
|
this.#status = status;
|
127304
127560
|
};
|
127305
127561
|
set = (key, value) => {
|
127306
|
-
this
|
127307
|
-
this
|
127562
|
+
this.#var ??= {};
|
127563
|
+
this.#var[key] = value;
|
127308
127564
|
};
|
127309
127565
|
get = (key) => {
|
127310
|
-
return this
|
127566
|
+
return this.#var ? this.#var[key] : void 0;
|
127311
127567
|
};
|
127312
127568
|
get var() {
|
127313
|
-
return { ...this
|
127569
|
+
return { ...this.#var };
|
127314
127570
|
}
|
127315
127571
|
newResponse = (data, arg, headers) => {
|
127316
127572
|
if (this.#isFresh && !headers && !arg && this.#status === 200) {
|
@@ -127406,16 +127662,17 @@ var init_context = __esm({
|
|
127406
127662
|
return this.newResponse(null, status ?? 302);
|
127407
127663
|
};
|
127408
127664
|
notFound = () => {
|
127409
|
-
|
127665
|
+
this.#notFoundHandler ??= () => new Response();
|
127666
|
+
return this.#notFoundHandler(this);
|
127410
127667
|
};
|
127411
127668
|
};
|
127412
127669
|
}
|
127413
127670
|
});
|
127414
127671
|
|
127415
|
-
// node_modules/.pnpm/hono@4.4.
|
127672
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/compose.js
|
127416
127673
|
var compose;
|
127417
127674
|
var init_compose = __esm({
|
127418
|
-
"node_modules/.pnpm/hono@4.4.
|
127675
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/compose.js"() {
|
127419
127676
|
init_context();
|
127420
127677
|
compose = (middleware, onError, onNotFound) => {
|
127421
127678
|
return (context, next) => {
|
@@ -127466,195 +127723,10 @@ var init_compose = __esm({
|
|
127466
127723
|
}
|
127467
127724
|
});
|
127468
127725
|
|
127469
|
-
// node_modules/.pnpm/hono@4.4.
|
127470
|
-
async function parseFormData(request, options) {
|
127471
|
-
const formData = await request.formData();
|
127472
|
-
if (formData) {
|
127473
|
-
return convertFormDataToBodyData(formData, options);
|
127474
|
-
}
|
127475
|
-
return {};
|
127476
|
-
}
|
127477
|
-
function convertFormDataToBodyData(formData, options) {
|
127478
|
-
const form = /* @__PURE__ */ Object.create(null);
|
127479
|
-
formData.forEach((value, key) => {
|
127480
|
-
const shouldParseAllValues = options.all || key.endsWith("[]");
|
127481
|
-
if (!shouldParseAllValues) {
|
127482
|
-
form[key] = value;
|
127483
|
-
} else {
|
127484
|
-
handleParsingAllValues(form, key, value);
|
127485
|
-
}
|
127486
|
-
});
|
127487
|
-
if (options.dot) {
|
127488
|
-
Object.entries(form).forEach(([key, value]) => {
|
127489
|
-
const shouldParseDotValues = key.includes(".");
|
127490
|
-
if (shouldParseDotValues) {
|
127491
|
-
handleParsingNestedValues(form, key, value);
|
127492
|
-
delete form[key];
|
127493
|
-
}
|
127494
|
-
});
|
127495
|
-
}
|
127496
|
-
return form;
|
127497
|
-
}
|
127498
|
-
var parseBody, handleParsingAllValues, handleParsingNestedValues;
|
127499
|
-
var init_body2 = __esm({
|
127500
|
-
"node_modules/.pnpm/hono@4.4.8/node_modules/hono/dist/utils/body.js"() {
|
127501
|
-
init_request2();
|
127502
|
-
parseBody = async (request, options = /* @__PURE__ */ Object.create(null)) => {
|
127503
|
-
const { all = false, dot = false } = options;
|
127504
|
-
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
|
127505
|
-
const contentType = headers.get("Content-Type");
|
127506
|
-
if (contentType !== null && contentType.startsWith("multipart/form-data") || contentType !== null && contentType.startsWith("application/x-www-form-urlencoded")) {
|
127507
|
-
return parseFormData(request, { all, dot });
|
127508
|
-
}
|
127509
|
-
return {};
|
127510
|
-
};
|
127511
|
-
handleParsingAllValues = (form, key, value) => {
|
127512
|
-
if (form[key] !== void 0) {
|
127513
|
-
if (Array.isArray(form[key])) {
|
127514
|
-
;
|
127515
|
-
form[key].push(value);
|
127516
|
-
} else {
|
127517
|
-
form[key] = [form[key], value];
|
127518
|
-
}
|
127519
|
-
} else {
|
127520
|
-
form[key] = value;
|
127521
|
-
}
|
127522
|
-
};
|
127523
|
-
handleParsingNestedValues = (form, key, value) => {
|
127524
|
-
let nestedForm = form;
|
127525
|
-
const keys = key.split(".");
|
127526
|
-
keys.forEach((key2, index4) => {
|
127527
|
-
if (index4 === keys.length - 1) {
|
127528
|
-
nestedForm[key2] = value;
|
127529
|
-
} else {
|
127530
|
-
if (!nestedForm[key2] || typeof nestedForm[key2] !== "object" || Array.isArray(nestedForm[key2]) || nestedForm[key2] instanceof File) {
|
127531
|
-
nestedForm[key2] = /* @__PURE__ */ Object.create(null);
|
127532
|
-
}
|
127533
|
-
nestedForm = nestedForm[key2];
|
127534
|
-
}
|
127535
|
-
});
|
127536
|
-
};
|
127537
|
-
}
|
127538
|
-
});
|
127539
|
-
|
127540
|
-
// node_modules/.pnpm/hono@4.4.8/node_modules/hono/dist/request.js
|
127541
|
-
var HonoRequest;
|
127542
|
-
var init_request2 = __esm({
|
127543
|
-
"node_modules/.pnpm/hono@4.4.8/node_modules/hono/dist/request.js"() {
|
127544
|
-
init_body2();
|
127545
|
-
init_url();
|
127546
|
-
HonoRequest = class {
|
127547
|
-
raw;
|
127548
|
-
#validatedData;
|
127549
|
-
#matchResult;
|
127550
|
-
routeIndex = 0;
|
127551
|
-
path;
|
127552
|
-
bodyCache = {};
|
127553
|
-
constructor(request, path5 = "/", matchResult = [[]]) {
|
127554
|
-
this.raw = request;
|
127555
|
-
this.path = path5;
|
127556
|
-
this.#matchResult = matchResult;
|
127557
|
-
this.#validatedData = {};
|
127558
|
-
}
|
127559
|
-
param(key) {
|
127560
|
-
return key ? this.getDecodedParam(key) : this.getAllDecodedParams();
|
127561
|
-
}
|
127562
|
-
getDecodedParam(key) {
|
127563
|
-
const paramKey = this.#matchResult[0][this.routeIndex][1][key];
|
127564
|
-
const param = this.getParamValue(paramKey);
|
127565
|
-
return param ? /\%/.test(param) ? decodeURIComponent_(param) : param : void 0;
|
127566
|
-
}
|
127567
|
-
getAllDecodedParams() {
|
127568
|
-
const decoded = {};
|
127569
|
-
const keys = Object.keys(this.#matchResult[0][this.routeIndex][1]);
|
127570
|
-
for (const key of keys) {
|
127571
|
-
const value = this.getParamValue(this.#matchResult[0][this.routeIndex][1][key]);
|
127572
|
-
if (value && typeof value === "string") {
|
127573
|
-
decoded[key] = /\%/.test(value) ? decodeURIComponent_(value) : value;
|
127574
|
-
}
|
127575
|
-
}
|
127576
|
-
return decoded;
|
127577
|
-
}
|
127578
|
-
getParamValue(paramKey) {
|
127579
|
-
return this.#matchResult[1] ? this.#matchResult[1][paramKey] : paramKey;
|
127580
|
-
}
|
127581
|
-
query(key) {
|
127582
|
-
return getQueryParam(this.url, key);
|
127583
|
-
}
|
127584
|
-
queries(key) {
|
127585
|
-
return getQueryParams(this.url, key);
|
127586
|
-
}
|
127587
|
-
header(name) {
|
127588
|
-
if (name) {
|
127589
|
-
return this.raw.headers.get(name.toLowerCase()) ?? void 0;
|
127590
|
-
}
|
127591
|
-
const headerData = {};
|
127592
|
-
this.raw.headers.forEach((value, key) => {
|
127593
|
-
headerData[key] = value;
|
127594
|
-
});
|
127595
|
-
return headerData;
|
127596
|
-
}
|
127597
|
-
async parseBody(options) {
|
127598
|
-
return this.bodyCache.parsedBody ??= await parseBody(this, options);
|
127599
|
-
}
|
127600
|
-
cachedBody = (key) => {
|
127601
|
-
const { bodyCache, raw: raw2 } = this;
|
127602
|
-
const cachedBody = bodyCache[key];
|
127603
|
-
if (cachedBody) {
|
127604
|
-
return cachedBody;
|
127605
|
-
}
|
127606
|
-
const anyCachedKey = Object.keys(bodyCache)[0];
|
127607
|
-
if (anyCachedKey) {
|
127608
|
-
return bodyCache[anyCachedKey].then((body) => {
|
127609
|
-
if (anyCachedKey === "json") {
|
127610
|
-
body = JSON.stringify(body);
|
127611
|
-
}
|
127612
|
-
return new Response(body)[key]();
|
127613
|
-
});
|
127614
|
-
}
|
127615
|
-
return bodyCache[key] = raw2[key]();
|
127616
|
-
};
|
127617
|
-
json() {
|
127618
|
-
return this.cachedBody("json");
|
127619
|
-
}
|
127620
|
-
text() {
|
127621
|
-
return this.cachedBody("text");
|
127622
|
-
}
|
127623
|
-
arrayBuffer() {
|
127624
|
-
return this.cachedBody("arrayBuffer");
|
127625
|
-
}
|
127626
|
-
blob() {
|
127627
|
-
return this.cachedBody("blob");
|
127628
|
-
}
|
127629
|
-
formData() {
|
127630
|
-
return this.cachedBody("formData");
|
127631
|
-
}
|
127632
|
-
addValidatedData(target, data) {
|
127633
|
-
this.#validatedData[target] = data;
|
127634
|
-
}
|
127635
|
-
valid(target) {
|
127636
|
-
return this.#validatedData[target];
|
127637
|
-
}
|
127638
|
-
get url() {
|
127639
|
-
return this.raw.url;
|
127640
|
-
}
|
127641
|
-
get method() {
|
127642
|
-
return this.raw.method;
|
127643
|
-
}
|
127644
|
-
get matchedRoutes() {
|
127645
|
-
return this.#matchResult[0].map(([[, route]]) => route);
|
127646
|
-
}
|
127647
|
-
get routePath() {
|
127648
|
-
return this.#matchResult[0].map(([[, route]]) => route)[this.routeIndex].path;
|
127649
|
-
}
|
127650
|
-
};
|
127651
|
-
}
|
127652
|
-
});
|
127653
|
-
|
127654
|
-
// 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
|
127655
127727
|
var METHOD_NAME_ALL, METHOD_NAME_ALL_LOWERCASE, METHODS, MESSAGE_MATCHER_IS_ALREADY_BUILT, UnsupportedPathError;
|
127656
127728
|
var init_router = __esm({
|
127657
|
-
"node_modules/.pnpm/hono@4.4.
|
127729
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router.js"() {
|
127658
127730
|
METHOD_NAME_ALL = "ALL";
|
127659
127731
|
METHOD_NAME_ALL_LOWERCASE = "all";
|
127660
127732
|
METHODS = ["get", "post", "put", "delete", "options", "patch"];
|
@@ -127664,13 +127736,12 @@ var init_router = __esm({
|
|
127664
127736
|
}
|
127665
127737
|
});
|
127666
127738
|
|
127667
|
-
// node_modules/.pnpm/hono@4.4.
|
127739
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/hono-base.js
|
127668
127740
|
var COMPOSED_HANDLER, notFoundHandler, errorHandler, Hono;
|
127669
127741
|
var init_hono_base = __esm({
|
127670
|
-
"node_modules/.pnpm/hono@4.4.
|
127742
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/hono-base.js"() {
|
127671
127743
|
init_compose();
|
127672
127744
|
init_context();
|
127673
|
-
init_request2();
|
127674
127745
|
init_router();
|
127675
127746
|
init_url();
|
127676
127747
|
COMPOSED_HANDLER = Symbol("composedHandler");
|
@@ -127844,7 +127915,9 @@ var init_hono_base = __esm({
|
|
127844
127915
|
}
|
127845
127916
|
const path5 = this.getPath(request, { env: env3 });
|
127846
127917
|
const matchResult = this.matchRoute(method, path5);
|
127847
|
-
const c = new Context(
|
127918
|
+
const c = new Context(request, {
|
127919
|
+
path: path5,
|
127920
|
+
matchResult,
|
127848
127921
|
env: env3,
|
127849
127922
|
executionCtx,
|
127850
127923
|
notFoundHandler: this.notFoundHandler
|
@@ -127901,7 +127974,7 @@ var init_hono_base = __esm({
|
|
127901
127974
|
}
|
127902
127975
|
});
|
127903
127976
|
|
127904
|
-
// node_modules/.pnpm/hono@4.4.
|
127977
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/reg-exp-router/node.js
|
127905
127978
|
function compareKey(a3, b4) {
|
127906
127979
|
if (a3.length === 1) {
|
127907
127980
|
return b4.length === 1 ? a3 < b4 ? -1 : 1 : -1;
|
@@ -127923,7 +127996,7 @@ function compareKey(a3, b4) {
|
|
127923
127996
|
}
|
127924
127997
|
var LABEL_REG_EXP_STR, ONLY_WILDCARD_REG_EXP_STR, TAIL_WILDCARD_REG_EXP_STR, PATH_ERROR, regExpMetaChars, Node;
|
127925
127998
|
var init_node = __esm({
|
127926
|
-
"node_modules/.pnpm/hono@4.4.
|
127999
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/reg-exp-router/node.js"() {
|
127927
128000
|
LABEL_REG_EXP_STR = "[^/]+";
|
127928
128001
|
ONLY_WILDCARD_REG_EXP_STR = ".*";
|
127929
128002
|
TAIL_WILDCARD_REG_EXP_STR = "(?:|/.*)";
|
@@ -128011,10 +128084,10 @@ var init_node = __esm({
|
|
128011
128084
|
}
|
128012
128085
|
});
|
128013
128086
|
|
128014
|
-
// node_modules/.pnpm/hono@4.4.
|
128087
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/reg-exp-router/trie.js
|
128015
128088
|
var Trie;
|
128016
128089
|
var init_trie = __esm({
|
128017
|
-
"node_modules/.pnpm/hono@4.4.
|
128090
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/reg-exp-router/trie.js"() {
|
128018
128091
|
init_node();
|
128019
128092
|
Trie = class {
|
128020
128093
|
context = { varIndex: 0 };
|
@@ -128073,7 +128146,7 @@ var init_trie = __esm({
|
|
128073
128146
|
}
|
128074
128147
|
});
|
128075
128148
|
|
128076
|
-
// node_modules/.pnpm/hono@4.4.
|
128149
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/reg-exp-router/router.js
|
128077
128150
|
function buildWildcardRegExp(path5) {
|
128078
128151
|
return wildcardRegExpCache[path5] ??= new RegExp(
|
128079
128152
|
path5 === "*" ? "" : `^${path5.replace(
|
@@ -128156,7 +128229,7 @@ function findMiddleware(middleware, path5) {
|
|
128156
128229
|
}
|
128157
128230
|
var emptyParam, nullMatcher, wildcardRegExpCache, RegExpRouter;
|
128158
128231
|
var init_router2 = __esm({
|
128159
|
-
"node_modules/.pnpm/hono@4.4.
|
128232
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/reg-exp-router/router.js"() {
|
128160
128233
|
init_router();
|
128161
128234
|
init_url();
|
128162
128235
|
init_node();
|
@@ -128278,17 +128351,17 @@ var init_router2 = __esm({
|
|
128278
128351
|
}
|
128279
128352
|
});
|
128280
128353
|
|
128281
|
-
// node_modules/.pnpm/hono@4.4.
|
128354
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/reg-exp-router/index.js
|
128282
128355
|
var init_reg_exp_router = __esm({
|
128283
|
-
"node_modules/.pnpm/hono@4.4.
|
128356
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/reg-exp-router/index.js"() {
|
128284
128357
|
init_router2();
|
128285
128358
|
}
|
128286
128359
|
});
|
128287
128360
|
|
128288
|
-
// node_modules/.pnpm/hono@4.4.
|
128361
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/smart-router/router.js
|
128289
128362
|
var SmartRouter;
|
128290
128363
|
var init_router3 = __esm({
|
128291
|
-
"node_modules/.pnpm/hono@4.4.
|
128364
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/smart-router/router.js"() {
|
128292
128365
|
init_router();
|
128293
128366
|
SmartRouter = class {
|
128294
128367
|
name = "SmartRouter";
|
@@ -128345,17 +128418,17 @@ var init_router3 = __esm({
|
|
128345
128418
|
}
|
128346
128419
|
});
|
128347
128420
|
|
128348
|
-
// node_modules/.pnpm/hono@4.4.
|
128421
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/smart-router/index.js
|
128349
128422
|
var init_smart_router = __esm({
|
128350
|
-
"node_modules/.pnpm/hono@4.4.
|
128423
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/smart-router/index.js"() {
|
128351
128424
|
init_router3();
|
128352
128425
|
}
|
128353
128426
|
});
|
128354
128427
|
|
128355
|
-
// node_modules/.pnpm/hono@4.4.
|
128428
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/trie-router/node.js
|
128356
128429
|
var Node2;
|
128357
128430
|
var init_node2 = __esm({
|
128358
|
-
"node_modules/.pnpm/hono@4.4.
|
128431
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/trie-router/node.js"() {
|
128359
128432
|
init_router();
|
128360
128433
|
init_url();
|
128361
128434
|
Node2 = class {
|
@@ -128507,10 +128580,10 @@ var init_node2 = __esm({
|
|
128507
128580
|
}
|
128508
128581
|
});
|
128509
128582
|
|
128510
|
-
// node_modules/.pnpm/hono@4.4.
|
128583
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/trie-router/router.js
|
128511
128584
|
var TrieRouter;
|
128512
128585
|
var init_router4 = __esm({
|
128513
|
-
"node_modules/.pnpm/hono@4.4.
|
128586
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/trie-router/router.js"() {
|
128514
128587
|
init_url();
|
128515
128588
|
init_node2();
|
128516
128589
|
TrieRouter = class {
|
@@ -128536,17 +128609,17 @@ var init_router4 = __esm({
|
|
128536
128609
|
}
|
128537
128610
|
});
|
128538
128611
|
|
128539
|
-
// node_modules/.pnpm/hono@4.4.
|
128612
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/trie-router/index.js
|
128540
128613
|
var init_trie_router = __esm({
|
128541
|
-
"node_modules/.pnpm/hono@4.4.
|
128614
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/router/trie-router/index.js"() {
|
128542
128615
|
init_router4();
|
128543
128616
|
}
|
128544
128617
|
});
|
128545
128618
|
|
128546
|
-
// node_modules/.pnpm/hono@4.4.
|
128619
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/hono.js
|
128547
128620
|
var Hono2;
|
128548
128621
|
var init_hono = __esm({
|
128549
|
-
"node_modules/.pnpm/hono@4.4.
|
128622
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/hono.js"() {
|
128550
128623
|
init_hono_base();
|
128551
128624
|
init_reg_exp_router();
|
128552
128625
|
init_smart_router();
|
@@ -128562,17 +128635,17 @@ var init_hono = __esm({
|
|
128562
128635
|
}
|
128563
128636
|
});
|
128564
128637
|
|
128565
|
-
// node_modules/.pnpm/hono@4.4.
|
128638
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/index.js
|
128566
128639
|
var init_dist4 = __esm({
|
128567
|
-
"node_modules/.pnpm/hono@4.4.
|
128640
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/index.js"() {
|
128568
128641
|
init_hono();
|
128569
128642
|
}
|
128570
128643
|
});
|
128571
128644
|
|
128572
|
-
// node_modules/.pnpm/hono@4.4.
|
128645
|
+
// node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/middleware/cors/index.js
|
128573
128646
|
var cors;
|
128574
128647
|
var init_cors = __esm({
|
128575
|
-
"node_modules/.pnpm/hono@4.4.
|
128648
|
+
"node_modules/.pnpm/hono@4.4.9/node_modules/hono/dist/middleware/cors/index.js"() {
|
128576
128649
|
cors = (options) => {
|
128577
128650
|
const defaults3 = {
|
128578
128651
|
origin: "*",
|
@@ -131464,7 +131537,8 @@ var pullCommand = new Command("introspect").option("--config <config>", `Config
|
|
131464
131537
|
casing: casing2,
|
131465
131538
|
breakpoints,
|
131466
131539
|
tablesFilter,
|
131467
|
-
schemasFilter
|
131540
|
+
schemasFilter,
|
131541
|
+
prefix: prefix2
|
131468
131542
|
} = await preparePullConfig(options);
|
131469
131543
|
(0, import_fs14.mkdirSync)(out, { recursive: true });
|
131470
131544
|
console.log(
|
@@ -131494,7 +131568,8 @@ var pullCommand = new Command("introspect").option("--config <config>", `Config
|
|
131494
131568
|
breakpoints,
|
131495
131569
|
credentials2,
|
131496
131570
|
tablesFilter,
|
131497
|
-
schemasFilter
|
131571
|
+
schemasFilter,
|
131572
|
+
prefix2
|
131498
131573
|
);
|
131499
131574
|
} else if (dialect7 === "mysql") {
|
131500
131575
|
const { introspectMysql: introspectMysql2 } = await Promise.resolve().then(() => (init_introspect(), introspect_exports));
|
@@ -131503,7 +131578,8 @@ var pullCommand = new Command("introspect").option("--config <config>", `Config
|
|
131503
131578
|
out,
|
131504
131579
|
breakpoints,
|
131505
131580
|
credentials2,
|
131506
|
-
tablesFilter
|
131581
|
+
tablesFilter,
|
131582
|
+
prefix2
|
131507
131583
|
);
|
131508
131584
|
} else if (dialect7 === "sqlite") {
|
131509
131585
|
const { introspectSqlite: introspectSqlite2 } = await Promise.resolve().then(() => (init_introspect(), introspect_exports));
|
@@ -131512,7 +131588,8 @@ var pullCommand = new Command("introspect").option("--config <config>", `Config
|
|
131512
131588
|
out,
|
131513
131589
|
breakpoints,
|
131514
131590
|
credentials2,
|
131515
|
-
tablesFilter
|
131591
|
+
tablesFilter,
|
131592
|
+
prefix2
|
131516
131593
|
);
|
131517
131594
|
} else {
|
131518
131595
|
assertUnreachable(dialect7);
|