@prisma/query-plan-executor 7.1.0-dev.2 → 7.1.0-dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +284 -2178
- package/dist/index.js +221 -216
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -8493,10 +8493,10 @@ var require_utils2 = __commonJS({
|
|
|
8493
8493
|
var escapeString = (val) => {
|
|
8494
8494
|
let offset = 0;
|
|
8495
8495
|
let escaped = "";
|
|
8496
|
-
let
|
|
8497
|
-
while (
|
|
8498
|
-
escaped += val.substring(offset,
|
|
8499
|
-
escaped += LITTERAL_ESCAPE[
|
|
8496
|
+
let match2;
|
|
8497
|
+
while (match2 = CHARS_GLOBAL_REGEXP.exec(val)) {
|
|
8498
|
+
escaped += val.substring(offset, match2.index);
|
|
8499
|
+
escaped += LITTERAL_ESCAPE[match2[0]];
|
|
8500
8500
|
offset = CHARS_GLOBAL_REGEXP.lastIndex;
|
|
8501
8501
|
}
|
|
8502
8502
|
if (offset === 0) {
|
|
@@ -9091,12 +9091,12 @@ var require_packet_output_stream = __commonJS({
|
|
|
9091
9091
|
*/
|
|
9092
9092
|
writeDefaultStringEscapeQuote(str) {
|
|
9093
9093
|
this.writeInt8(QUOTE);
|
|
9094
|
-
let
|
|
9094
|
+
let match2;
|
|
9095
9095
|
let lastIndex = 0;
|
|
9096
|
-
while ((
|
|
9097
|
-
this.writeString(str.slice(lastIndex,
|
|
9096
|
+
while ((match2 = CHARS_GLOBAL_REGEXP.exec(str)) !== null) {
|
|
9097
|
+
this.writeString(str.slice(lastIndex, match2.index));
|
|
9098
9098
|
this.writeInt8(SLASH);
|
|
9099
|
-
this.writeInt8(
|
|
9099
|
+
this.writeInt8(match2[0].charCodeAt(0));
|
|
9100
9100
|
lastIndex = CHARS_GLOBAL_REGEXP.lastIndex;
|
|
9101
9101
|
}
|
|
9102
9102
|
if (lastIndex === 0) {
|
|
@@ -21920,14 +21920,14 @@ var require_ms = __commonJS({
|
|
|
21920
21920
|
if (str.length > 100) {
|
|
21921
21921
|
return;
|
|
21922
21922
|
}
|
|
21923
|
-
var
|
|
21923
|
+
var match2 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
21924
21924
|
str
|
|
21925
21925
|
);
|
|
21926
|
-
if (!
|
|
21926
|
+
if (!match2) {
|
|
21927
21927
|
return;
|
|
21928
21928
|
}
|
|
21929
|
-
var n2 = parseFloat(
|
|
21930
|
-
var type2 = (
|
|
21929
|
+
var n2 = parseFloat(match2[1]);
|
|
21930
|
+
var type2 = (match2[2] || "ms").toLowerCase();
|
|
21931
21931
|
switch (type2) {
|
|
21932
21932
|
case "years":
|
|
21933
21933
|
case "year":
|
|
@@ -22059,19 +22059,19 @@ var require_common = __commonJS({
|
|
|
22059
22059
|
args.unshift("%O");
|
|
22060
22060
|
}
|
|
22061
22061
|
let index = 0;
|
|
22062
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (
|
|
22063
|
-
if (
|
|
22062
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2, format) => {
|
|
22063
|
+
if (match2 === "%%") {
|
|
22064
22064
|
return "%";
|
|
22065
22065
|
}
|
|
22066
22066
|
index++;
|
|
22067
22067
|
const formatter = createDebug.formatters[format];
|
|
22068
22068
|
if (typeof formatter === "function") {
|
|
22069
22069
|
const val = args[index];
|
|
22070
|
-
|
|
22070
|
+
match2 = formatter.call(self2, val);
|
|
22071
22071
|
args.splice(index, 1);
|
|
22072
22072
|
index--;
|
|
22073
22073
|
}
|
|
22074
|
-
return
|
|
22074
|
+
return match2;
|
|
22075
22075
|
});
|
|
22076
22076
|
createDebug.formatArgs.call(self2, args);
|
|
22077
22077
|
const logFn = self2.log || createDebug.log;
|
|
@@ -22307,12 +22307,12 @@ var require_browser = __commonJS({
|
|
|
22307
22307
|
args.splice(1, 0, c2, "color: inherit");
|
|
22308
22308
|
let index = 0;
|
|
22309
22309
|
let lastC = 0;
|
|
22310
|
-
args[0].replace(/%[a-zA-Z%]/g, (
|
|
22311
|
-
if (
|
|
22310
|
+
args[0].replace(/%[a-zA-Z%]/g, (match2) => {
|
|
22311
|
+
if (match2 === "%%") {
|
|
22312
22312
|
return;
|
|
22313
22313
|
}
|
|
22314
22314
|
index++;
|
|
22315
|
-
if (
|
|
22315
|
+
if (match2 === "%c") {
|
|
22316
22316
|
lastC = index;
|
|
22317
22317
|
}
|
|
22318
22318
|
});
|
|
@@ -38046,12 +38046,12 @@ var require_mime_types = __commonJS({
|
|
|
38046
38046
|
if (!type2 || typeof type2 !== "string") {
|
|
38047
38047
|
return false;
|
|
38048
38048
|
}
|
|
38049
|
-
var
|
|
38050
|
-
var mime =
|
|
38049
|
+
var match2 = EXTRACT_TYPE_REGEXP.exec(type2);
|
|
38050
|
+
var mime = match2 && db[match2[1].toLowerCase()];
|
|
38051
38051
|
if (mime && mime.charset) {
|
|
38052
38052
|
return mime.charset;
|
|
38053
38053
|
}
|
|
38054
|
-
if (
|
|
38054
|
+
if (match2 && TEXT_TYPE_REGEXP.test(match2[1])) {
|
|
38055
38055
|
return "UTF-8";
|
|
38056
38056
|
}
|
|
38057
38057
|
return false;
|
|
@@ -38074,8 +38074,8 @@ var require_mime_types = __commonJS({
|
|
|
38074
38074
|
if (!type2 || typeof type2 !== "string") {
|
|
38075
38075
|
return false;
|
|
38076
38076
|
}
|
|
38077
|
-
var
|
|
38078
|
-
var exts =
|
|
38077
|
+
var match2 = EXTRACT_TYPE_REGEXP.exec(type2);
|
|
38078
|
+
var exts = match2 && exports2.extensions[match2[1].toLowerCase()];
|
|
38079
38079
|
if (!exts || !exts.length) {
|
|
38080
38080
|
return false;
|
|
38081
38081
|
}
|
|
@@ -39046,8 +39046,8 @@ var require_get_intrinsic = __commonJS({
|
|
|
39046
39046
|
throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
|
|
39047
39047
|
}
|
|
39048
39048
|
var result = [];
|
|
39049
|
-
$replace(string4, rePropName, function(
|
|
39050
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number4 ||
|
|
39049
|
+
$replace(string4, rePropName, function(match2, number4, quote, subString) {
|
|
39050
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number4 || match2;
|
|
39051
39051
|
});
|
|
39052
39052
|
return result;
|
|
39053
39053
|
};
|
|
@@ -39181,9 +39181,9 @@ var require_es_set_tostringtag = __commonJS({
|
|
|
39181
39181
|
}
|
|
39182
39182
|
});
|
|
39183
39183
|
|
|
39184
|
-
// ../../node_modules/.pnpm/form-data@4.0.
|
|
39184
|
+
// ../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/populate.js
|
|
39185
39185
|
var require_populate = __commonJS({
|
|
39186
|
-
"../../node_modules/.pnpm/form-data@4.0.
|
|
39186
|
+
"../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/populate.js"(exports2, module2) {
|
|
39187
39187
|
"use strict";
|
|
39188
39188
|
module2.exports = function(dst, src) {
|
|
39189
39189
|
Object.keys(src).forEach(function(prop) {
|
|
@@ -39194,9 +39194,9 @@ var require_populate = __commonJS({
|
|
|
39194
39194
|
}
|
|
39195
39195
|
});
|
|
39196
39196
|
|
|
39197
|
-
// ../../node_modules/.pnpm/form-data@4.0.
|
|
39197
|
+
// ../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/form_data.js
|
|
39198
39198
|
var require_form_data = __commonJS({
|
|
39199
|
-
"../../node_modules/.pnpm/form-data@4.0.
|
|
39199
|
+
"../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/form_data.js"(exports2, module2) {
|
|
39200
39200
|
"use strict";
|
|
39201
39201
|
var CombinedStream = require_combined_stream();
|
|
39202
39202
|
var util2 = require("util");
|
|
@@ -39206,12 +39206,12 @@ var require_form_data = __commonJS({
|
|
|
39206
39206
|
var parseUrl = require("url").parse;
|
|
39207
39207
|
var fs3 = require("fs");
|
|
39208
39208
|
var Stream = require("stream").Stream;
|
|
39209
|
+
var crypto7 = require("crypto");
|
|
39209
39210
|
var mime = require_mime_types();
|
|
39210
39211
|
var asynckit = require_asynckit();
|
|
39211
39212
|
var setToStringTag = require_es_set_tostringtag();
|
|
39213
|
+
var hasOwn = require_hasown();
|
|
39212
39214
|
var populate = require_populate();
|
|
39213
|
-
module2.exports = FormData2;
|
|
39214
|
-
util2.inherits(FormData2, CombinedStream);
|
|
39215
39215
|
function FormData2(options) {
|
|
39216
39216
|
if (!(this instanceof FormData2)) {
|
|
39217
39217
|
return new FormData2(options);
|
|
@@ -39225,16 +39225,17 @@ var require_form_data = __commonJS({
|
|
|
39225
39225
|
this[option] = options[option];
|
|
39226
39226
|
}
|
|
39227
39227
|
}
|
|
39228
|
+
util2.inherits(FormData2, CombinedStream);
|
|
39228
39229
|
FormData2.LINE_BREAK = "\r\n";
|
|
39229
39230
|
FormData2.DEFAULT_CONTENT_TYPE = "application/octet-stream";
|
|
39230
39231
|
FormData2.prototype.append = function(field, value, options) {
|
|
39231
39232
|
options = options || {};
|
|
39232
|
-
if (typeof options
|
|
39233
|
+
if (typeof options === "string") {
|
|
39233
39234
|
options = { filename: options };
|
|
39234
39235
|
}
|
|
39235
39236
|
var append = CombinedStream.prototype.append.bind(this);
|
|
39236
|
-
if (typeof value
|
|
39237
|
-
value =
|
|
39237
|
+
if (typeof value === "number" || value == null) {
|
|
39238
|
+
value = String(value);
|
|
39238
39239
|
}
|
|
39239
39240
|
if (Array.isArray(value)) {
|
|
39240
39241
|
this._error(new Error("Arrays are not supported."));
|
|
@@ -39250,7 +39251,7 @@ var require_form_data = __commonJS({
|
|
|
39250
39251
|
FormData2.prototype._trackLength = function(header, value, options) {
|
|
39251
39252
|
var valueLength = 0;
|
|
39252
39253
|
if (options.knownLength != null) {
|
|
39253
|
-
valueLength +=
|
|
39254
|
+
valueLength += Number(options.knownLength);
|
|
39254
39255
|
} else if (Buffer.isBuffer(value)) {
|
|
39255
39256
|
valueLength = value.length;
|
|
39256
39257
|
} else if (typeof value === "string") {
|
|
@@ -39258,7 +39259,7 @@ var require_form_data = __commonJS({
|
|
|
39258
39259
|
}
|
|
39259
39260
|
this._valueLength += valueLength;
|
|
39260
39261
|
this._overheadLength += Buffer.byteLength(header) + FormData2.LINE_BREAK.length;
|
|
39261
|
-
if (!value || !value.path && !(value.readable &&
|
|
39262
|
+
if (!value || !value.path && !(value.readable && hasOwn(value, "httpVersion")) && !(value instanceof Stream)) {
|
|
39262
39263
|
return;
|
|
39263
39264
|
}
|
|
39264
39265
|
if (!options.knownLength) {
|
|
@@ -39266,26 +39267,25 @@ var require_form_data = __commonJS({
|
|
|
39266
39267
|
}
|
|
39267
39268
|
};
|
|
39268
39269
|
FormData2.prototype._lengthRetriever = function(value, callback) {
|
|
39269
|
-
if (
|
|
39270
|
+
if (hasOwn(value, "fd")) {
|
|
39270
39271
|
if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
|
|
39271
39272
|
callback(null, value.end + 1 - (value.start ? value.start : 0));
|
|
39272
39273
|
} else {
|
|
39273
39274
|
fs3.stat(value.path, function(err, stat) {
|
|
39274
|
-
var fileSize;
|
|
39275
39275
|
if (err) {
|
|
39276
39276
|
callback(err);
|
|
39277
39277
|
return;
|
|
39278
39278
|
}
|
|
39279
|
-
fileSize = stat.size - (value.start ? value.start : 0);
|
|
39279
|
+
var fileSize = stat.size - (value.start ? value.start : 0);
|
|
39280
39280
|
callback(null, fileSize);
|
|
39281
39281
|
});
|
|
39282
39282
|
}
|
|
39283
|
-
} else if (
|
|
39284
|
-
callback(null,
|
|
39285
|
-
} else if (
|
|
39283
|
+
} else if (hasOwn(value, "httpVersion")) {
|
|
39284
|
+
callback(null, Number(value.headers["content-length"]));
|
|
39285
|
+
} else if (hasOwn(value, "httpModule")) {
|
|
39286
39286
|
value.on("response", function(response) {
|
|
39287
39287
|
value.pause();
|
|
39288
|
-
callback(null,
|
|
39288
|
+
callback(null, Number(response.headers["content-length"]));
|
|
39289
39289
|
});
|
|
39290
39290
|
value.resume();
|
|
39291
39291
|
} else {
|
|
@@ -39293,7 +39293,7 @@ var require_form_data = __commonJS({
|
|
|
39293
39293
|
}
|
|
39294
39294
|
};
|
|
39295
39295
|
FormData2.prototype._multiPartHeader = function(field, value, options) {
|
|
39296
|
-
if (typeof options.header
|
|
39296
|
+
if (typeof options.header === "string") {
|
|
39297
39297
|
return options.header;
|
|
39298
39298
|
}
|
|
39299
39299
|
var contentDisposition = this._getContentDisposition(value, options);
|
|
@@ -39305,12 +39305,12 @@ var require_form_data = __commonJS({
|
|
|
39305
39305
|
// if no content type. allow it to be empty array
|
|
39306
39306
|
"Content-Type": [].concat(contentType || [])
|
|
39307
39307
|
};
|
|
39308
|
-
if (typeof options.header
|
|
39308
|
+
if (typeof options.header === "object") {
|
|
39309
39309
|
populate(headers, options.header);
|
|
39310
39310
|
}
|
|
39311
39311
|
var header;
|
|
39312
39312
|
for (var prop in headers) {
|
|
39313
|
-
if (
|
|
39313
|
+
if (hasOwn(headers, prop)) {
|
|
39314
39314
|
header = headers[prop];
|
|
39315
39315
|
if (header == null) {
|
|
39316
39316
|
continue;
|
|
@@ -39326,34 +39326,33 @@ var require_form_data = __commonJS({
|
|
|
39326
39326
|
return "--" + this.getBoundary() + FormData2.LINE_BREAK + contents + FormData2.LINE_BREAK;
|
|
39327
39327
|
};
|
|
39328
39328
|
FormData2.prototype._getContentDisposition = function(value, options) {
|
|
39329
|
-
var filename
|
|
39329
|
+
var filename;
|
|
39330
39330
|
if (typeof options.filepath === "string") {
|
|
39331
39331
|
filename = path3.normalize(options.filepath).replace(/\\/g, "/");
|
|
39332
|
-
} else if (options.filename || value.name || value.path) {
|
|
39333
|
-
filename = path3.basename(options.filename || value.name || value.path);
|
|
39334
|
-
} else if (value.readable &&
|
|
39332
|
+
} else if (options.filename || value && (value.name || value.path)) {
|
|
39333
|
+
filename = path3.basename(options.filename || value && (value.name || value.path));
|
|
39334
|
+
} else if (value && value.readable && hasOwn(value, "httpVersion")) {
|
|
39335
39335
|
filename = path3.basename(value.client._httpMessage.path || "");
|
|
39336
39336
|
}
|
|
39337
39337
|
if (filename) {
|
|
39338
|
-
|
|
39338
|
+
return 'filename="' + filename + '"';
|
|
39339
39339
|
}
|
|
39340
|
-
return contentDisposition;
|
|
39341
39340
|
};
|
|
39342
39341
|
FormData2.prototype._getContentType = function(value, options) {
|
|
39343
39342
|
var contentType = options.contentType;
|
|
39344
|
-
if (!contentType && value.name) {
|
|
39343
|
+
if (!contentType && value && value.name) {
|
|
39345
39344
|
contentType = mime.lookup(value.name);
|
|
39346
39345
|
}
|
|
39347
|
-
if (!contentType && value.path) {
|
|
39346
|
+
if (!contentType && value && value.path) {
|
|
39348
39347
|
contentType = mime.lookup(value.path);
|
|
39349
39348
|
}
|
|
39350
|
-
if (!contentType && value.readable &&
|
|
39349
|
+
if (!contentType && value && value.readable && hasOwn(value, "httpVersion")) {
|
|
39351
39350
|
contentType = value.headers["content-type"];
|
|
39352
39351
|
}
|
|
39353
39352
|
if (!contentType && (options.filepath || options.filename)) {
|
|
39354
39353
|
contentType = mime.lookup(options.filepath || options.filename);
|
|
39355
39354
|
}
|
|
39356
|
-
if (!contentType && typeof value
|
|
39355
|
+
if (!contentType && value && typeof value === "object") {
|
|
39357
39356
|
contentType = FormData2.DEFAULT_CONTENT_TYPE;
|
|
39358
39357
|
}
|
|
39359
39358
|
return contentType;
|
|
@@ -39377,13 +39376,16 @@ var require_form_data = __commonJS({
|
|
|
39377
39376
|
"content-type": "multipart/form-data; boundary=" + this.getBoundary()
|
|
39378
39377
|
};
|
|
39379
39378
|
for (header in userHeaders) {
|
|
39380
|
-
if (
|
|
39379
|
+
if (hasOwn(userHeaders, header)) {
|
|
39381
39380
|
formHeaders[header.toLowerCase()] = userHeaders[header];
|
|
39382
39381
|
}
|
|
39383
39382
|
}
|
|
39384
39383
|
return formHeaders;
|
|
39385
39384
|
};
|
|
39386
39385
|
FormData2.prototype.setBoundary = function(boundary) {
|
|
39386
|
+
if (typeof boundary !== "string") {
|
|
39387
|
+
throw new TypeError("FormData boundary must be a string");
|
|
39388
|
+
}
|
|
39387
39389
|
this._boundary = boundary;
|
|
39388
39390
|
};
|
|
39389
39391
|
FormData2.prototype.getBoundary = function() {
|
|
@@ -39410,11 +39412,7 @@ var require_form_data = __commonJS({
|
|
|
39410
39412
|
return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
|
|
39411
39413
|
};
|
|
39412
39414
|
FormData2.prototype._generateBoundary = function() {
|
|
39413
|
-
|
|
39414
|
-
for (var i2 = 0; i2 < 24; i2++) {
|
|
39415
|
-
boundary += Math.floor(Math.random() * 10).toString(16);
|
|
39416
|
-
}
|
|
39417
|
-
this._boundary = boundary;
|
|
39415
|
+
this._boundary = "--------------------------" + crypto7.randomBytes(12).toString("hex");
|
|
39418
39416
|
};
|
|
39419
39417
|
FormData2.prototype.getLengthSync = function() {
|
|
39420
39418
|
var knownLength = this._overheadLength + this._valueLength;
|
|
@@ -39454,8 +39452,10 @@ var require_form_data = __commonJS({
|
|
|
39454
39452
|
});
|
|
39455
39453
|
};
|
|
39456
39454
|
FormData2.prototype.submit = function(params, cb) {
|
|
39457
|
-
var request3
|
|
39458
|
-
|
|
39455
|
+
var request3;
|
|
39456
|
+
var options;
|
|
39457
|
+
var defaults2 = { method: "post" };
|
|
39458
|
+
if (typeof params === "string") {
|
|
39459
39459
|
params = parseUrl(params);
|
|
39460
39460
|
options = populate({
|
|
39461
39461
|
port: params.port,
|
|
@@ -39466,11 +39466,11 @@ var require_form_data = __commonJS({
|
|
|
39466
39466
|
} else {
|
|
39467
39467
|
options = populate(params, defaults2);
|
|
39468
39468
|
if (!options.port) {
|
|
39469
|
-
options.port = options.protocol
|
|
39469
|
+
options.port = options.protocol === "https:" ? 443 : 80;
|
|
39470
39470
|
}
|
|
39471
39471
|
}
|
|
39472
39472
|
options.headers = this.getHeaders(params.headers);
|
|
39473
|
-
if (options.protocol
|
|
39473
|
+
if (options.protocol === "https:") {
|
|
39474
39474
|
request3 = https4.request(options);
|
|
39475
39475
|
} else {
|
|
39476
39476
|
request3 = http4.request(options);
|
|
@@ -39508,7 +39508,8 @@ var require_form_data = __commonJS({
|
|
|
39508
39508
|
FormData2.prototype.toString = function() {
|
|
39509
39509
|
return "[object FormData]";
|
|
39510
39510
|
};
|
|
39511
|
-
setToStringTag(FormData2, "FormData");
|
|
39511
|
+
setToStringTag(FormData2.prototype, "FormData");
|
|
39512
|
+
module2.exports = FormData2;
|
|
39512
39513
|
}
|
|
39513
39514
|
});
|
|
39514
39515
|
|
|
@@ -39633,19 +39634,19 @@ var require_common2 = __commonJS({
|
|
|
39633
39634
|
args.unshift("%O");
|
|
39634
39635
|
}
|
|
39635
39636
|
let index = 0;
|
|
39636
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (
|
|
39637
|
-
if (
|
|
39637
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2, format) => {
|
|
39638
|
+
if (match2 === "%%") {
|
|
39638
39639
|
return "%";
|
|
39639
39640
|
}
|
|
39640
39641
|
index++;
|
|
39641
39642
|
const formatter = createDebug.formatters[format];
|
|
39642
39643
|
if (typeof formatter === "function") {
|
|
39643
39644
|
const val = args[index];
|
|
39644
|
-
|
|
39645
|
+
match2 = formatter.call(self2, val);
|
|
39645
39646
|
args.splice(index, 1);
|
|
39646
39647
|
index--;
|
|
39647
39648
|
}
|
|
39648
|
-
return
|
|
39649
|
+
return match2;
|
|
39649
39650
|
});
|
|
39650
39651
|
createDebug.formatArgs.call(self2, args);
|
|
39651
39652
|
const logFn = self2.log || createDebug.log;
|
|
@@ -39881,12 +39882,12 @@ var require_browser2 = __commonJS({
|
|
|
39881
39882
|
args.splice(1, 0, c2, "color: inherit");
|
|
39882
39883
|
let index = 0;
|
|
39883
39884
|
let lastC = 0;
|
|
39884
|
-
args[0].replace(/%[a-zA-Z%]/g, (
|
|
39885
|
-
if (
|
|
39885
|
+
args[0].replace(/%[a-zA-Z%]/g, (match2) => {
|
|
39886
|
+
if (match2 === "%%") {
|
|
39886
39887
|
return;
|
|
39887
39888
|
}
|
|
39888
39889
|
index++;
|
|
39889
|
-
if (
|
|
39890
|
+
if (match2 === "%c") {
|
|
39890
39891
|
lastC = index;
|
|
39891
39892
|
}
|
|
39892
39893
|
});
|
|
@@ -44648,15 +44649,15 @@ var init_UrlString = __esm({
|
|
|
44648
44649
|
*/
|
|
44649
44650
|
getUrlComponents() {
|
|
44650
44651
|
const regEx = RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?");
|
|
44651
|
-
const
|
|
44652
|
-
if (!
|
|
44652
|
+
const match2 = this.urlString.match(regEx);
|
|
44653
|
+
if (!match2) {
|
|
44653
44654
|
throw createClientConfigurationError(urlParseError);
|
|
44654
44655
|
}
|
|
44655
44656
|
const urlComponents = {
|
|
44656
|
-
Protocol:
|
|
44657
|
-
HostNameAndPort:
|
|
44658
|
-
AbsolutePath:
|
|
44659
|
-
QueryString:
|
|
44657
|
+
Protocol: match2[1],
|
|
44658
|
+
HostNameAndPort: match2[4],
|
|
44659
|
+
AbsolutePath: match2[5],
|
|
44660
|
+
QueryString: match2[7]
|
|
44660
44661
|
};
|
|
44661
44662
|
let pathSegments = urlComponents.AbsolutePath.split("/");
|
|
44662
44663
|
pathSegments = pathSegments.filter((val) => val && val.length > 0);
|
|
@@ -44668,11 +44669,11 @@ var init_UrlString = __esm({
|
|
|
44668
44669
|
}
|
|
44669
44670
|
static getDomainFromUrl(url2) {
|
|
44670
44671
|
const regEx = RegExp("^([^:/?#]+://)?([^/?#]*)");
|
|
44671
|
-
const
|
|
44672
|
-
if (!
|
|
44672
|
+
const match2 = url2.match(regEx);
|
|
44673
|
+
if (!match2) {
|
|
44673
44674
|
throw createClientConfigurationError(urlParseError);
|
|
44674
44675
|
}
|
|
44675
|
-
return
|
|
44676
|
+
return match2[2];
|
|
44676
44677
|
}
|
|
44677
44678
|
static getAbsoluteUrl(relativeUrl, baseUrl) {
|
|
44678
44679
|
if (relativeUrl[0] === Constants.FORWARD_SLASH) {
|
|
@@ -46286,7 +46287,7 @@ var init_Authority = __esm({
|
|
|
46286
46287
|
this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId);
|
|
46287
46288
|
const instanceDiscoveryEndpoint = `${Constants.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`;
|
|
46288
46289
|
const options = {};
|
|
46289
|
-
let
|
|
46290
|
+
let match2 = null;
|
|
46290
46291
|
try {
|
|
46291
46292
|
const response = await this.networkInterface.sendGetRequestAsync(instanceDiscoveryEndpoint, options);
|
|
46292
46293
|
let typedResponseBody;
|
|
@@ -46311,7 +46312,7 @@ var init_Authority = __esm({
|
|
|
46311
46312
|
return null;
|
|
46312
46313
|
}
|
|
46313
46314
|
this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request.");
|
|
46314
|
-
|
|
46315
|
+
match2 = getCloudDiscoveryMetadataFromNetworkResponse(metadata, this.hostnameAndPort);
|
|
46315
46316
|
} catch (error44) {
|
|
46316
46317
|
if (error44 instanceof AuthError) {
|
|
46317
46318
|
this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
|
|
@@ -46325,12 +46326,12 @@ Error Description: ${typedError.message}`);
|
|
|
46325
46326
|
}
|
|
46326
46327
|
return null;
|
|
46327
46328
|
}
|
|
46328
|
-
if (!
|
|
46329
|
+
if (!match2) {
|
|
46329
46330
|
this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request.");
|
|
46330
46331
|
this.logger.verbose("Creating custom Authority for custom domain scenario.");
|
|
46331
|
-
|
|
46332
|
+
match2 = _Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);
|
|
46332
46333
|
}
|
|
46333
|
-
return
|
|
46334
|
+
return match2;
|
|
46334
46335
|
}
|
|
46335
46336
|
/**
|
|
46336
46337
|
* Helper function to determine if this host is included in the knownAuthorities config option
|
|
@@ -53013,11 +53014,11 @@ var require_jwa = __commonJS({
|
|
|
53013
53014
|
es: createECDSAVerifer,
|
|
53014
53015
|
none: createNoneVerifier
|
|
53015
53016
|
};
|
|
53016
|
-
var
|
|
53017
|
-
if (!
|
|
53017
|
+
var match2 = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);
|
|
53018
|
+
if (!match2)
|
|
53018
53019
|
throw typeError(MSG_INVALID_ALGORITHM, algorithm);
|
|
53019
|
-
var algo = (
|
|
53020
|
-
var bits =
|
|
53020
|
+
var algo = (match2[1] || match2[3]).toLowerCase();
|
|
53021
|
+
var bits = match2[2];
|
|
53021
53022
|
return {
|
|
53022
53023
|
sign: signerFactories[algo](bits),
|
|
53023
53024
|
verify: verifierFactories[algo](bits)
|
|
@@ -53683,8 +53684,8 @@ var require_semver = __commonJS({
|
|
|
53683
53684
|
throw new Error("invalid increment argument: identifier is empty");
|
|
53684
53685
|
}
|
|
53685
53686
|
if (identifier) {
|
|
53686
|
-
const
|
|
53687
|
-
if (!
|
|
53687
|
+
const match2 = `-${identifier}`.match(this.options.loose ? re3[t2.PRERELEASELOOSE] : re3[t2.PRERELEASE]);
|
|
53688
|
+
if (!match2 || match2[1] !== identifier) {
|
|
53688
53689
|
throw new Error(`invalid identifier: ${identifier}`);
|
|
53689
53690
|
}
|
|
53690
53691
|
}
|
|
@@ -54144,28 +54145,28 @@ var require_coerce = __commonJS({
|
|
|
54144
54145
|
return null;
|
|
54145
54146
|
}
|
|
54146
54147
|
options = options || {};
|
|
54147
|
-
let
|
|
54148
|
+
let match2 = null;
|
|
54148
54149
|
if (!options.rtl) {
|
|
54149
|
-
|
|
54150
|
+
match2 = version5.match(options.includePrerelease ? re3[t2.COERCEFULL] : re3[t2.COERCE]);
|
|
54150
54151
|
} else {
|
|
54151
54152
|
const coerceRtlRegex = options.includePrerelease ? re3[t2.COERCERTLFULL] : re3[t2.COERCERTL];
|
|
54152
54153
|
let next;
|
|
54153
|
-
while ((next = coerceRtlRegex.exec(version5)) && (!
|
|
54154
|
-
if (!
|
|
54155
|
-
|
|
54154
|
+
while ((next = coerceRtlRegex.exec(version5)) && (!match2 || match2.index + match2[0].length !== version5.length)) {
|
|
54155
|
+
if (!match2 || next.index + next[0].length !== match2.index + match2[0].length) {
|
|
54156
|
+
match2 = next;
|
|
54156
54157
|
}
|
|
54157
54158
|
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
54158
54159
|
}
|
|
54159
54160
|
coerceRtlRegex.lastIndex = -1;
|
|
54160
54161
|
}
|
|
54161
|
-
if (
|
|
54162
|
+
if (match2 === null) {
|
|
54162
54163
|
return null;
|
|
54163
54164
|
}
|
|
54164
|
-
const major2 =
|
|
54165
|
-
const minor =
|
|
54166
|
-
const patch =
|
|
54167
|
-
const prerelease = options.includePrerelease &&
|
|
54168
|
-
const build = options.includePrerelease &&
|
|
54165
|
+
const major2 = match2[2];
|
|
54166
|
+
const minor = match2[3] || "0";
|
|
54167
|
+
const patch = match2[4] || "0";
|
|
54168
|
+
const prerelease = options.includePrerelease && match2[5] ? `-${match2[5]}` : "";
|
|
54169
|
+
const build = options.includePrerelease && match2[6] ? `+${match2[6]}` : "";
|
|
54169
54170
|
return parse5(`${major2}.${minor}.${patch}${prerelease}${build}`, options);
|
|
54170
54171
|
};
|
|
54171
54172
|
module2.exports = coerce;
|
|
@@ -55510,12 +55511,12 @@ var require_verify = __commonJS({
|
|
|
55510
55511
|
if (options.audience) {
|
|
55511
55512
|
const audiences = Array.isArray(options.audience) ? options.audience : [options.audience];
|
|
55512
55513
|
const target = Array.isArray(payload.aud) ? payload.aud : [payload.aud];
|
|
55513
|
-
const
|
|
55514
|
+
const match2 = target.some(function(targetAudience) {
|
|
55514
55515
|
return audiences.some(function(audience) {
|
|
55515
55516
|
return audience instanceof RegExp ? audience.test(targetAudience) : audience === targetAudience;
|
|
55516
55517
|
});
|
|
55517
55518
|
});
|
|
55518
|
-
if (!
|
|
55519
|
+
if (!match2) {
|
|
55519
55520
|
return done(new JsonWebTokenError("jwt audience invalid. expected: " + audiences.join(" or ")));
|
|
55520
55521
|
}
|
|
55521
55522
|
}
|
|
@@ -60644,13 +60645,13 @@ var init_clientCertificateCredential = __esm({
|
|
|
60644
60645
|
const x5c = this.sendCertificateChain ? certificateContents : void 0;
|
|
60645
60646
|
const certificatePattern = /(-+BEGIN CERTIFICATE-+)(\n\r?|\r\n?)([A-Za-z0-9+/\n\r]+=*)(\n\r?|\r\n?)(-+END CERTIFICATE-+)/g;
|
|
60646
60647
|
const publicKeys = [];
|
|
60647
|
-
let
|
|
60648
|
+
let match2;
|
|
60648
60649
|
do {
|
|
60649
|
-
|
|
60650
|
-
if (
|
|
60651
|
-
publicKeys.push(
|
|
60650
|
+
match2 = certificatePattern.exec(certificateContents);
|
|
60651
|
+
if (match2) {
|
|
60652
|
+
publicKeys.push(match2[3]);
|
|
60652
60653
|
}
|
|
60653
|
-
} while (
|
|
60654
|
+
} while (match2);
|
|
60654
60655
|
if (publicKeys.length === 0) {
|
|
60655
60656
|
throw new Error("The file at the specified path does not contain a PEM-encoded certificate.");
|
|
60656
60657
|
}
|
|
@@ -62064,13 +62065,13 @@ async function parseCertificate(configuration, sendCertificateChain) {
|
|
|
62064
62065
|
}
|
|
62065
62066
|
const certificatePattern = /(-+BEGIN CERTIFICATE-+)(\n\r?|\r\n?)([A-Za-z0-9+/\n\r]+=*)(\n\r?|\r\n?)(-+END CERTIFICATE-+)/g;
|
|
62066
62067
|
const publicKeys = [];
|
|
62067
|
-
let
|
|
62068
|
+
let match2;
|
|
62068
62069
|
do {
|
|
62069
|
-
|
|
62070
|
-
if (
|
|
62071
|
-
publicKeys.push(
|
|
62070
|
+
match2 = certificatePattern.exec(certificateParts.certificateContents);
|
|
62071
|
+
if (match2) {
|
|
62072
|
+
publicKeys.push(match2[3]);
|
|
62072
62073
|
}
|
|
62073
|
-
} while (
|
|
62074
|
+
} while (match2);
|
|
62074
62075
|
if (publicKeys.length === 0) {
|
|
62075
62076
|
throw new Error("The file at the specified path does not contain a PEM-encoded certificate.");
|
|
62076
62077
|
}
|
|
@@ -62791,16 +62792,16 @@ var require_sprintf = __commonJS({
|
|
|
62791
62792
|
if (sprintf_cache[fmt]) {
|
|
62792
62793
|
return sprintf_cache[fmt];
|
|
62793
62794
|
}
|
|
62794
|
-
var _fmt = fmt,
|
|
62795
|
+
var _fmt = fmt, match2, parse_tree = [], arg_names = 0;
|
|
62795
62796
|
while (_fmt) {
|
|
62796
|
-
if ((
|
|
62797
|
-
parse_tree.push(
|
|
62798
|
-
} else if ((
|
|
62797
|
+
if ((match2 = re3.text.exec(_fmt)) !== null) {
|
|
62798
|
+
parse_tree.push(match2[0]);
|
|
62799
|
+
} else if ((match2 = re3.modulo.exec(_fmt)) !== null) {
|
|
62799
62800
|
parse_tree.push("%");
|
|
62800
|
-
} else if ((
|
|
62801
|
-
if (
|
|
62801
|
+
} else if ((match2 = re3.placeholder.exec(_fmt)) !== null) {
|
|
62802
|
+
if (match2[2]) {
|
|
62802
62803
|
arg_names |= 1;
|
|
62803
|
-
var field_list = [], replacement_field =
|
|
62804
|
+
var field_list = [], replacement_field = match2[2], field_match = [];
|
|
62804
62805
|
if ((field_match = re3.key.exec(replacement_field)) !== null) {
|
|
62805
62806
|
field_list.push(field_match[1]);
|
|
62806
62807
|
while ((replacement_field = replacement_field.substring(field_match[0].length)) !== "") {
|
|
@@ -62815,7 +62816,7 @@ var require_sprintf = __commonJS({
|
|
|
62815
62816
|
} else {
|
|
62816
62817
|
throw new SyntaxError("[sprintf] failed to parse named argument key");
|
|
62817
62818
|
}
|
|
62818
|
-
|
|
62819
|
+
match2[2] = field_list;
|
|
62819
62820
|
} else {
|
|
62820
62821
|
arg_names |= 2;
|
|
62821
62822
|
}
|
|
@@ -62824,21 +62825,21 @@ var require_sprintf = __commonJS({
|
|
|
62824
62825
|
}
|
|
62825
62826
|
parse_tree.push(
|
|
62826
62827
|
{
|
|
62827
|
-
placeholder:
|
|
62828
|
-
param_no:
|
|
62829
|
-
keys:
|
|
62830
|
-
sign:
|
|
62831
|
-
pad_char:
|
|
62832
|
-
align:
|
|
62833
|
-
width:
|
|
62834
|
-
precision:
|
|
62835
|
-
type:
|
|
62828
|
+
placeholder: match2[0],
|
|
62829
|
+
param_no: match2[1],
|
|
62830
|
+
keys: match2[2],
|
|
62831
|
+
sign: match2[3],
|
|
62832
|
+
pad_char: match2[4],
|
|
62833
|
+
align: match2[5],
|
|
62834
|
+
width: match2[6],
|
|
62835
|
+
precision: match2[7],
|
|
62836
|
+
type: match2[8]
|
|
62836
62837
|
}
|
|
62837
62838
|
);
|
|
62838
62839
|
} else {
|
|
62839
62840
|
throw new SyntaxError("[sprintf] unexpected placeholder");
|
|
62840
62841
|
}
|
|
62841
|
-
_fmt = _fmt.substring(
|
|
62842
|
+
_fmt = _fmt.substring(match2[0].length);
|
|
62842
62843
|
}
|
|
62843
62844
|
return sprintf_cache[fmt] = parse_tree;
|
|
62844
62845
|
}
|
|
@@ -94613,19 +94614,19 @@ var require_result = __commonJS({
|
|
|
94613
94614
|
}
|
|
94614
94615
|
// adds a command complete message
|
|
94615
94616
|
addCommandComplete(msg) {
|
|
94616
|
-
let
|
|
94617
|
+
let match2;
|
|
94617
94618
|
if (msg.text) {
|
|
94618
|
-
|
|
94619
|
+
match2 = matchRegexp.exec(msg.text);
|
|
94619
94620
|
} else {
|
|
94620
|
-
|
|
94621
|
+
match2 = matchRegexp.exec(msg.command);
|
|
94621
94622
|
}
|
|
94622
|
-
if (
|
|
94623
|
-
this.command =
|
|
94624
|
-
if (
|
|
94625
|
-
this.oid = parseInt(
|
|
94626
|
-
this.rowCount = parseInt(
|
|
94627
|
-
} else if (
|
|
94628
|
-
this.rowCount = parseInt(
|
|
94623
|
+
if (match2) {
|
|
94624
|
+
this.command = match2[1];
|
|
94625
|
+
if (match2[3]) {
|
|
94626
|
+
this.oid = parseInt(match2[2], 10);
|
|
94627
|
+
this.rowCount = parseInt(match2[3], 10);
|
|
94628
|
+
} else if (match2[2]) {
|
|
94629
|
+
this.rowCount = parseInt(match2[2], 10);
|
|
94629
94630
|
}
|
|
94630
94631
|
}
|
|
94631
94632
|
}
|
|
@@ -97751,7 +97752,7 @@ __export(index_exports, {
|
|
|
97751
97752
|
module.exports = __toCommonJS(index_exports);
|
|
97752
97753
|
|
|
97753
97754
|
// package.json
|
|
97754
|
-
var version = "7.1.0-dev.
|
|
97755
|
+
var version = "7.1.0-dev.4";
|
|
97755
97756
|
|
|
97756
97757
|
// ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
|
|
97757
97758
|
function clampProp(e2, n2, t2, o2, r2) {
|
|
@@ -101501,11 +101502,11 @@ function parseSize(value) {
|
|
|
101501
101502
|
if (/^\d+$/.test(value)) {
|
|
101502
101503
|
return parseInteger(value);
|
|
101503
101504
|
}
|
|
101504
|
-
const
|
|
101505
|
-
if (!
|
|
101505
|
+
const match2 = value.match(/^([\d.]+)\s*([A-Za-z]+)$/);
|
|
101506
|
+
if (!match2) {
|
|
101506
101507
|
throw new Error(`Invalid size format: ${value}`);
|
|
101507
101508
|
}
|
|
101508
|
-
const [_3, numStr, unit] =
|
|
101509
|
+
const [_3, numStr, unit] = match2;
|
|
101509
101510
|
const num = parseFloat(numStr);
|
|
101510
101511
|
if (Number.isNaN(num)) {
|
|
101511
101512
|
throw new Error(`Invalid size value: ${numStr}`);
|
|
@@ -102615,7 +102616,7 @@ function createConsoleLogger(logFormat, logLevel) {
|
|
|
102615
102616
|
return new Logger(sink);
|
|
102616
102617
|
}
|
|
102617
102618
|
|
|
102618
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
102619
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/utils/url.js
|
|
102619
102620
|
var splitPath = (path3) => {
|
|
102620
102621
|
const paths = path3.split("/");
|
|
102621
102622
|
if (paths[0] === "") {
|
|
@@ -102630,9 +102631,9 @@ var splitRoutingPath = (routePath) => {
|
|
|
102630
102631
|
};
|
|
102631
102632
|
var extractGroupsFromPath = (path3) => {
|
|
102632
102633
|
const groups = [];
|
|
102633
|
-
path3 = path3.replace(/\{[^}]+\}/g, (
|
|
102634
|
+
path3 = path3.replace(/\{[^}]+\}/g, (match2, index) => {
|
|
102634
102635
|
const mark = `@${index}`;
|
|
102635
|
-
groups.push([mark,
|
|
102636
|
+
groups.push([mark, match2]);
|
|
102636
102637
|
return mark;
|
|
102637
102638
|
});
|
|
102638
102639
|
return { groups, path: path3 };
|
|
@@ -102654,14 +102655,14 @@ var getPattern = (label, next) => {
|
|
|
102654
102655
|
if (label === "*") {
|
|
102655
102656
|
return "*";
|
|
102656
102657
|
}
|
|
102657
|
-
const
|
|
102658
|
-
if (
|
|
102658
|
+
const match2 = label.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);
|
|
102659
|
+
if (match2) {
|
|
102659
102660
|
const cacheKey = `${label}#${next}`;
|
|
102660
102661
|
if (!patternCache[cacheKey]) {
|
|
102661
|
-
if (
|
|
102662
|
-
patternCache[cacheKey] = next && next[0] !== ":" && next[0] !== "*" ? [cacheKey,
|
|
102662
|
+
if (match2[2]) {
|
|
102663
|
+
patternCache[cacheKey] = next && next[0] !== ":" && next[0] !== "*" ? [cacheKey, match2[1], new RegExp(`^${match2[2]}(?=/${next})`)] : [label, match2[1], new RegExp(`^${match2[2]}$`)];
|
|
102663
102664
|
} else {
|
|
102664
|
-
patternCache[cacheKey] = [label,
|
|
102665
|
+
patternCache[cacheKey] = [label, match2[1], true];
|
|
102665
102666
|
}
|
|
102666
102667
|
}
|
|
102667
102668
|
return patternCache[cacheKey];
|
|
@@ -102672,11 +102673,11 @@ var tryDecode = (str, decoder) => {
|
|
|
102672
102673
|
try {
|
|
102673
102674
|
return decoder(str);
|
|
102674
102675
|
} catch {
|
|
102675
|
-
return str.replace(/(?:%[0-9A-Fa-f]{2})+/g, (
|
|
102676
|
+
return str.replace(/(?:%[0-9A-Fa-f]{2})+/g, (match2) => {
|
|
102676
102677
|
try {
|
|
102677
|
-
return decoder(
|
|
102678
|
+
return decoder(match2);
|
|
102678
102679
|
} catch {
|
|
102679
|
-
return
|
|
102680
|
+
return match2;
|
|
102680
102681
|
}
|
|
102681
102682
|
});
|
|
102682
102683
|
}
|
|
@@ -102684,10 +102685,7 @@ var tryDecode = (str, decoder) => {
|
|
|
102684
102685
|
var tryDecodeURI = (str) => tryDecode(str, decodeURI);
|
|
102685
102686
|
var getPath = (request3) => {
|
|
102686
102687
|
const url2 = request3.url;
|
|
102687
|
-
const start = url2.indexOf(
|
|
102688
|
-
"/",
|
|
102689
|
-
url2.charCodeAt(9) === 58 ? 13 : 8
|
|
102690
|
-
);
|
|
102688
|
+
const start = url2.indexOf("/", url2.indexOf(":") + 4);
|
|
102691
102689
|
let i2 = start;
|
|
102692
102690
|
for (; i2 < url2.length; i2++) {
|
|
102693
102691
|
const charCode = url2.charCodeAt(i2);
|
|
@@ -102750,9 +102748,12 @@ var _decodeURI = (value) => {
|
|
|
102750
102748
|
var _getQueryParam = (url2, key, multiple) => {
|
|
102751
102749
|
let encoded;
|
|
102752
102750
|
if (!multiple && key && !/[%+]/.test(key)) {
|
|
102753
|
-
let keyIndex2 = url2.indexOf(
|
|
102751
|
+
let keyIndex2 = url2.indexOf("?", 8);
|
|
102754
102752
|
if (keyIndex2 === -1) {
|
|
102755
|
-
|
|
102753
|
+
return void 0;
|
|
102754
|
+
}
|
|
102755
|
+
if (!url2.startsWith(key, keyIndex2 + 1)) {
|
|
102756
|
+
keyIndex2 = url2.indexOf(`&${key}`, keyIndex2 + 1);
|
|
102756
102757
|
}
|
|
102757
102758
|
while (keyIndex2 !== -1) {
|
|
102758
102759
|
const trailingKeyCode = url2.charCodeAt(keyIndex2 + key.length + 1);
|
|
@@ -102817,7 +102818,7 @@ var getQueryParams = (url2, key) => {
|
|
|
102817
102818
|
};
|
|
102818
102819
|
var decodeURIComponent_ = decodeURIComponent;
|
|
102819
102820
|
|
|
102820
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
102821
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/utils/cookie.js
|
|
102821
102822
|
var validCookieNameRegEx = /^[\w!#$%&'*.^`|~+-]+$/;
|
|
102822
102823
|
var validCookieValueRegEx = /^[ !#-:<-[\]-~]*$/;
|
|
102823
102824
|
var parse = (cookie, name6) => {
|
|
@@ -102850,7 +102851,7 @@ var parse = (cookie, name6) => {
|
|
|
102850
102851
|
return parsedCookie;
|
|
102851
102852
|
};
|
|
102852
102853
|
|
|
102853
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
102854
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/helper/cookie/index.js
|
|
102854
102855
|
var getCookie = (c2, key, prefix) => {
|
|
102855
102856
|
const cookie = c2.req.raw.headers.get("Cookie");
|
|
102856
102857
|
if (typeof key === "string") {
|
|
@@ -102873,7 +102874,7 @@ var getCookie = (c2, key, prefix) => {
|
|
|
102873
102874
|
return obj;
|
|
102874
102875
|
};
|
|
102875
102876
|
|
|
102876
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
102877
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/http-exception.js
|
|
102877
102878
|
var HTTPException = class extends Error {
|
|
102878
102879
|
res;
|
|
102879
102880
|
status;
|
|
@@ -102896,7 +102897,7 @@ var HTTPException = class extends Error {
|
|
|
102896
102897
|
}
|
|
102897
102898
|
};
|
|
102898
102899
|
|
|
102899
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
102900
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/utils/buffer.js
|
|
102900
102901
|
var bufferToFormData = (arrayBuffer, contentType) => {
|
|
102901
102902
|
const response = new Response(arrayBuffer, {
|
|
102902
102903
|
headers: {
|
|
@@ -102906,7 +102907,7 @@ var bufferToFormData = (arrayBuffer, contentType) => {
|
|
|
102906
102907
|
return response.formData();
|
|
102907
102908
|
};
|
|
102908
102909
|
|
|
102909
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
102910
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/validator/validator.js
|
|
102910
102911
|
var jsonRegex = /^application\/([a-z-\.]+\+)?json(;\s*[a-zA-Z0-9\-]+\=([^;]+))*$/;
|
|
102911
102912
|
var multipartRegex = /^multipart\/form-data(;\s?boundary=[a-zA-Z0-9'"()+_,\-./:=?]+)?$/;
|
|
102912
102913
|
var urlencodedRegex = /^application\/x-www-form-urlencoded(;\s*[a-zA-Z0-9\-]+\=([^;]+))*$/;
|
|
@@ -102983,11 +102984,11 @@ var validator = (target, validationFunc) => {
|
|
|
102983
102984
|
return res;
|
|
102984
102985
|
}
|
|
102985
102986
|
c2.req.addValidatedData(target, res);
|
|
102986
|
-
await next();
|
|
102987
|
+
return await next();
|
|
102987
102988
|
};
|
|
102988
102989
|
};
|
|
102989
102990
|
|
|
102990
|
-
// ../../node_modules/.pnpm/@hono+zod-validator@0.7.2_hono@4.
|
|
102991
|
+
// ../../node_modules/.pnpm/@hono+zod-validator@0.7.2_hono@4.10.6_zod@4.1.3/node_modules/@hono/zod-validator/dist/index.js
|
|
102991
102992
|
var zValidator = (target, schema, hook, options) => (
|
|
102992
102993
|
// @ts-expect-error not typed well
|
|
102993
102994
|
validator(target, async (value, c2) => {
|
|
@@ -107939,7 +107940,7 @@ function createTimeoutIfDefined(cb, ms) {
|
|
|
107939
107940
|
return ms !== void 0 ? setTimeout(cb, ms) : void 0;
|
|
107940
107941
|
}
|
|
107941
107942
|
|
|
107942
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
107943
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/compose.js
|
|
107943
107944
|
var compose = (middleware, onError, onNotFound) => {
|
|
107944
107945
|
return (context2, next) => {
|
|
107945
107946
|
let index = -1;
|
|
@@ -107983,10 +107984,10 @@ var compose = (middleware, onError, onNotFound) => {
|
|
|
107983
107984
|
};
|
|
107984
107985
|
};
|
|
107985
107986
|
|
|
107986
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
107987
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/request/constants.js
|
|
107987
107988
|
var GET_MATCH_RESULT = Symbol();
|
|
107988
107989
|
|
|
107989
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
107990
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/utils/body.js
|
|
107990
107991
|
var parseBody = async (request3, options = /* @__PURE__ */ Object.create(null)) => {
|
|
107991
107992
|
const { all = false, dot = false } = options;
|
|
107992
107993
|
const headers = request3 instanceof HonoRequest ? request3.raw.headers : request3.headers;
|
|
@@ -108055,7 +108056,7 @@ var handleParsingNestedValues = (form, key, value) => {
|
|
|
108055
108056
|
});
|
|
108056
108057
|
};
|
|
108057
108058
|
|
|
108058
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
108059
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/request.js
|
|
108059
108060
|
var tryDecodeURIComponent = (str) => tryDecode(str, decodeURIComponent_);
|
|
108060
108061
|
var HonoRequest = class {
|
|
108061
108062
|
raw;
|
|
@@ -108076,14 +108077,14 @@ var HonoRequest = class {
|
|
|
108076
108077
|
#getDecodedParam(key) {
|
|
108077
108078
|
const paramKey = this.#matchResult[0][this.routeIndex][1][key];
|
|
108078
108079
|
const param = this.#getParamValue(paramKey);
|
|
108079
|
-
return param
|
|
108080
|
+
return param && /\%/.test(param) ? tryDecodeURIComponent(param) : param;
|
|
108080
108081
|
}
|
|
108081
108082
|
#getAllDecodedParams() {
|
|
108082
108083
|
const decoded = {};
|
|
108083
108084
|
const keys = Object.keys(this.#matchResult[0][this.routeIndex][1]);
|
|
108084
108085
|
for (const key of keys) {
|
|
108085
108086
|
const value = this.#getParamValue(this.#matchResult[0][this.routeIndex][1][key]);
|
|
108086
|
-
if (value
|
|
108087
|
+
if (value !== void 0) {
|
|
108087
108088
|
decoded[key] = /\%/.test(value) ? tryDecodeURIComponent(value) : value;
|
|
108088
108089
|
}
|
|
108089
108090
|
}
|
|
@@ -108166,7 +108167,7 @@ var HonoRequest = class {
|
|
|
108166
108167
|
}
|
|
108167
108168
|
};
|
|
108168
108169
|
|
|
108169
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
108170
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/utils/html.js
|
|
108170
108171
|
var HtmlEscapedCallbackPhase = {
|
|
108171
108172
|
Stringify: 1,
|
|
108172
108173
|
BeforeStream: 2,
|
|
@@ -108208,7 +108209,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context2, buffer) =>
|
|
|
108208
108209
|
}
|
|
108209
108210
|
};
|
|
108210
108211
|
|
|
108211
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
108212
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/context.js
|
|
108212
108213
|
var TEXT_PLAIN = "text/plain; charset=UTF-8";
|
|
108213
108214
|
var setDefaultContentType = (contentType, headers) => {
|
|
108214
108215
|
return {
|
|
@@ -108385,7 +108386,7 @@ var Context = class {
|
|
|
108385
108386
|
};
|
|
108386
108387
|
};
|
|
108387
108388
|
|
|
108388
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
108389
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/router.js
|
|
108389
108390
|
var METHOD_NAME_ALL = "ALL";
|
|
108390
108391
|
var METHOD_NAME_ALL_LOWERCASE = "all";
|
|
108391
108392
|
var METHODS = ["get", "post", "put", "delete", "options", "patch"];
|
|
@@ -108393,10 +108394,10 @@ var MESSAGE_MATCHER_IS_ALREADY_BUILT = "Can not add a route since the matcher is
|
|
|
108393
108394
|
var UnsupportedPathError = class extends Error {
|
|
108394
108395
|
};
|
|
108395
108396
|
|
|
108396
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
108397
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/utils/constants.js
|
|
108397
108398
|
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
|
|
108398
108399
|
|
|
108399
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
108400
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/hono-base.js
|
|
108400
108401
|
var notFoundHandler = (c2) => {
|
|
108401
108402
|
return c2.text("404 Not Found", 404);
|
|
108402
108403
|
};
|
|
@@ -108627,7 +108628,28 @@ var Hono = class {
|
|
|
108627
108628
|
};
|
|
108628
108629
|
};
|
|
108629
108630
|
|
|
108630
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
108631
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/router/reg-exp-router/matcher.js
|
|
108632
|
+
var emptyParam = [];
|
|
108633
|
+
function match(method, path3) {
|
|
108634
|
+
const matchers = this.buildAllMatchers();
|
|
108635
|
+
const match2 = (method2, path22) => {
|
|
108636
|
+
const matcher = matchers[method2] || matchers[METHOD_NAME_ALL];
|
|
108637
|
+
const staticMatch = matcher[2][path22];
|
|
108638
|
+
if (staticMatch) {
|
|
108639
|
+
return staticMatch;
|
|
108640
|
+
}
|
|
108641
|
+
const match3 = path22.match(matcher[0]);
|
|
108642
|
+
if (!match3) {
|
|
108643
|
+
return [[], emptyParam];
|
|
108644
|
+
}
|
|
108645
|
+
const index = match3.indexOf("", 1);
|
|
108646
|
+
return [matcher[1][index], match3];
|
|
108647
|
+
};
|
|
108648
|
+
this.match = match2;
|
|
108649
|
+
return match2(method, path3);
|
|
108650
|
+
}
|
|
108651
|
+
|
|
108652
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/router/reg-exp-router/node.js
|
|
108631
108653
|
var LABEL_REG_EXP_STR = "[^/]+";
|
|
108632
108654
|
var ONLY_WILDCARD_REG_EXP_STR = ".*";
|
|
108633
108655
|
var TAIL_WILDCARD_REG_EXP_STR = "(?:|/.*)";
|
|
@@ -108735,7 +108757,7 @@ var Node = class {
|
|
|
108735
108757
|
}
|
|
108736
108758
|
};
|
|
108737
108759
|
|
|
108738
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
108760
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/router/reg-exp-router/trie.js
|
|
108739
108761
|
var Trie = class {
|
|
108740
108762
|
#context = { varIndex: 0 };
|
|
108741
108763
|
#root = new Node();
|
|
@@ -108791,8 +108813,7 @@ var Trie = class {
|
|
|
108791
108813
|
}
|
|
108792
108814
|
};
|
|
108793
108815
|
|
|
108794
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
108795
|
-
var emptyParam = [];
|
|
108816
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/router/reg-exp-router/router.js
|
|
108796
108817
|
var nullMatcher = [/^$/, [], /* @__PURE__ */ Object.create(null)];
|
|
108797
108818
|
var wildcardRegExpCache = /* @__PURE__ */ Object.create(null);
|
|
108798
108819
|
function buildWildcardRegExp(path3) {
|
|
@@ -108939,30 +108960,14 @@ var RegExpRouter = class {
|
|
|
108939
108960
|
});
|
|
108940
108961
|
}
|
|
108941
108962
|
}
|
|
108942
|
-
match
|
|
108943
|
-
|
|
108944
|
-
const matchers = this.#buildAllMatchers();
|
|
108945
|
-
this.match = (method2, path22) => {
|
|
108946
|
-
const matcher = matchers[method2] || matchers[METHOD_NAME_ALL];
|
|
108947
|
-
const staticMatch = matcher[2][path22];
|
|
108948
|
-
if (staticMatch) {
|
|
108949
|
-
return staticMatch;
|
|
108950
|
-
}
|
|
108951
|
-
const match = path22.match(matcher[0]);
|
|
108952
|
-
if (!match) {
|
|
108953
|
-
return [[], emptyParam];
|
|
108954
|
-
}
|
|
108955
|
-
const index = match.indexOf("", 1);
|
|
108956
|
-
return [matcher[1][index], match];
|
|
108957
|
-
};
|
|
108958
|
-
return this.match(method, path3);
|
|
108959
|
-
}
|
|
108960
|
-
#buildAllMatchers() {
|
|
108963
|
+
match = match;
|
|
108964
|
+
buildAllMatchers() {
|
|
108961
108965
|
const matchers = /* @__PURE__ */ Object.create(null);
|
|
108962
108966
|
Object.keys(this.#routes).concat(Object.keys(this.#middleware)).forEach((method) => {
|
|
108963
108967
|
matchers[method] ||= this.#buildMatcher(method);
|
|
108964
108968
|
});
|
|
108965
108969
|
this.#middleware = this.#routes = void 0;
|
|
108970
|
+
clearWildcardRegExpCache();
|
|
108966
108971
|
return matchers;
|
|
108967
108972
|
}
|
|
108968
108973
|
#buildMatcher(method) {
|
|
@@ -108987,7 +108992,7 @@ var RegExpRouter = class {
|
|
|
108987
108992
|
}
|
|
108988
108993
|
};
|
|
108989
108994
|
|
|
108990
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
108995
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/router/smart-router/router.js
|
|
108991
108996
|
var SmartRouter = class {
|
|
108992
108997
|
name = "SmartRouter";
|
|
108993
108998
|
#routers = [];
|
|
@@ -109042,7 +109047,7 @@ var SmartRouter = class {
|
|
|
109042
109047
|
}
|
|
109043
109048
|
};
|
|
109044
109049
|
|
|
109045
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
109050
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/router/trie-router/node.js
|
|
109046
109051
|
var emptyParams = /* @__PURE__ */ Object.create(null);
|
|
109047
109052
|
var Node2 = class {
|
|
109048
109053
|
#methods;
|
|
@@ -109200,7 +109205,7 @@ var Node2 = class {
|
|
|
109200
109205
|
}
|
|
109201
109206
|
};
|
|
109202
109207
|
|
|
109203
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
109208
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/router/trie-router/router.js
|
|
109204
109209
|
var TrieRouter = class {
|
|
109205
109210
|
name = "TrieRouter";
|
|
109206
109211
|
#node;
|
|
@@ -109222,7 +109227,7 @@ var TrieRouter = class {
|
|
|
109222
109227
|
}
|
|
109223
109228
|
};
|
|
109224
109229
|
|
|
109225
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
109230
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/hono.js
|
|
109226
109231
|
var Hono2 = class extends Hono {
|
|
109227
109232
|
constructor(options = {}) {
|
|
109228
109233
|
super(options);
|
|
@@ -111850,7 +111855,7 @@ function logQuery(event) {
|
|
|
111850
111855
|
});
|
|
111851
111856
|
}
|
|
111852
111857
|
|
|
111853
|
-
// ../../node_modules/.pnpm/hono@4.
|
|
111858
|
+
// ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/helper/factory/index.js
|
|
111854
111859
|
var createMiddleware = (middleware) => middleware;
|
|
111855
111860
|
|
|
111856
111861
|
// src/server/middleware/client-telemetry.ts
|
|
@@ -112683,9 +112688,9 @@ function floatSafeRemainder(val, step) {
|
|
|
112683
112688
|
const stepString = step.toString();
|
|
112684
112689
|
let stepDecCount = (stepString.split(".")[1] || "").length;
|
|
112685
112690
|
if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
|
|
112686
|
-
const
|
|
112687
|
-
if (
|
|
112688
|
-
stepDecCount = Number.parseInt(
|
|
112691
|
+
const match2 = stepString.match(/\d?e-(\d?)/);
|
|
112692
|
+
if (match2?.[1]) {
|
|
112693
|
+
stepDecCount = Number.parseInt(match2[1]);
|
|
112689
112694
|
}
|
|
112690
112695
|
}
|
|
112691
112696
|
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|