ortoni-report 2.0.9 → 3.0.0
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/LICENSE.md +675 -675
- package/changelog.md +324 -305
- package/dist/{chunk-RHM5OWYN.mjs → chunk-DW4XGLAZ.mjs} +149 -222
- package/dist/cli/cli.d.mts +1 -0
- package/dist/cli/cli.js +480 -583
- package/dist/cli/cli.mjs +53 -84
- package/dist/ortoni-report.d.mts +114 -0
- package/dist/ortoni-report.d.ts +108 -103
- package/dist/ortoni-report.js +793 -842
- package/dist/ortoni-report.mjs +139 -116
- package/dist/style/main.css +80 -93
- package/dist/views/head.hbs +10 -10
- package/dist/views/main.hbs +1116 -599
- package/dist/views/navbar.hbs +34 -35
- package/dist/views/project.hbs +237 -237
- package/dist/views/sidebar.hbs +236 -0
- package/dist/views/summaryCard.hbs +14 -7
- package/dist/views/testIcons.hbs +12 -12
- package/dist/views/testPanel.hbs +44 -44
- package/dist/views/testStatus.hbs +8 -8
- package/dist/views/userInfo.hbs +251 -208
- package/package.json +54 -56
- package/readme.md +210 -178
|
@@ -7,9 +7,8 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
7
7
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
8
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
9
|
}) : x)(function(x) {
|
|
10
|
-
if (typeof require !== "undefined")
|
|
11
|
-
|
|
12
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
10
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
12
|
});
|
|
14
13
|
var __commonJS = (cb, mod) => function __require2() {
|
|
15
14
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
@@ -34,6 +33,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
34
33
|
// node_modules/depd/index.js
|
|
35
34
|
var require_depd = __commonJS({
|
|
36
35
|
"node_modules/depd/index.js"(exports, module) {
|
|
36
|
+
"use strict";
|
|
37
37
|
var relative = __require("path").relative;
|
|
38
38
|
module.exports = depd;
|
|
39
39
|
var basePath = process.cwd();
|
|
@@ -695,6 +695,7 @@ var require_statuses = __commonJS({
|
|
|
695
695
|
// node_modules/inherits/inherits_browser.js
|
|
696
696
|
var require_inherits_browser = __commonJS({
|
|
697
697
|
"node_modules/inherits/inherits_browser.js"(exports, module) {
|
|
698
|
+
"use strict";
|
|
698
699
|
if (typeof Object.create === "function") {
|
|
699
700
|
module.exports = function inherits(ctor, superCtor) {
|
|
700
701
|
if (superCtor) {
|
|
@@ -727,10 +728,10 @@ var require_inherits_browser = __commonJS({
|
|
|
727
728
|
// node_modules/inherits/inherits.js
|
|
728
729
|
var require_inherits = __commonJS({
|
|
729
730
|
"node_modules/inherits/inherits.js"(exports, module) {
|
|
731
|
+
"use strict";
|
|
730
732
|
try {
|
|
731
733
|
util = __require("util");
|
|
732
|
-
if (typeof util.inherits !== "function")
|
|
733
|
-
throw "";
|
|
734
|
+
if (typeof util.inherits !== "function") throw "";
|
|
734
735
|
module.exports = util.inherits;
|
|
735
736
|
} catch (e) {
|
|
736
737
|
module.exports = require_inherits_browser();
|
|
@@ -919,6 +920,7 @@ var require_http_errors = __commonJS({
|
|
|
919
920
|
// node_modules/ms/index.js
|
|
920
921
|
var require_ms = __commonJS({
|
|
921
922
|
"node_modules/ms/index.js"(exports, module) {
|
|
923
|
+
"use strict";
|
|
922
924
|
var s = 1e3;
|
|
923
925
|
var m = s * 60;
|
|
924
926
|
var h = m * 60;
|
|
@@ -1021,6 +1023,7 @@ var require_ms = __commonJS({
|
|
|
1021
1023
|
// node_modules/debug/src/debug.js
|
|
1022
1024
|
var require_debug = __commonJS({
|
|
1023
1025
|
"node_modules/debug/src/debug.js"(exports, module) {
|
|
1026
|
+
"use strict";
|
|
1024
1027
|
exports = module.exports = createDebug.debug = createDebug["default"] = createDebug;
|
|
1025
1028
|
exports.coerce = coerce;
|
|
1026
1029
|
exports.disable = disable;
|
|
@@ -1041,8 +1044,7 @@ var require_debug = __commonJS({
|
|
|
1041
1044
|
}
|
|
1042
1045
|
function createDebug(namespace) {
|
|
1043
1046
|
function debug() {
|
|
1044
|
-
if (!debug.enabled)
|
|
1045
|
-
return;
|
|
1047
|
+
if (!debug.enabled) return;
|
|
1046
1048
|
var self = debug;
|
|
1047
1049
|
var curr = +/* @__PURE__ */ new Date();
|
|
1048
1050
|
var ms = curr - (prevTime || curr);
|
|
@@ -1060,8 +1062,7 @@ var require_debug = __commonJS({
|
|
|
1060
1062
|
}
|
|
1061
1063
|
var index = 0;
|
|
1062
1064
|
args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {
|
|
1063
|
-
if (match === "%%")
|
|
1064
|
-
return match;
|
|
1065
|
+
if (match === "%%") return match;
|
|
1065
1066
|
index++;
|
|
1066
1067
|
var formatter = exports.formatters[format];
|
|
1067
1068
|
if ("function" === typeof formatter) {
|
|
@@ -1092,8 +1093,7 @@ var require_debug = __commonJS({
|
|
|
1092
1093
|
var split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
|
|
1093
1094
|
var len = split.length;
|
|
1094
1095
|
for (var i = 0; i < len; i++) {
|
|
1095
|
-
if (!split[i])
|
|
1096
|
-
continue;
|
|
1096
|
+
if (!split[i]) continue;
|
|
1097
1097
|
namespaces = split[i].replace(/\*/g, ".*?");
|
|
1098
1098
|
if (namespaces[0] === "-") {
|
|
1099
1099
|
exports.skips.push(new RegExp("^" + namespaces.substr(1) + "$"));
|
|
@@ -1120,8 +1120,7 @@ var require_debug = __commonJS({
|
|
|
1120
1120
|
return false;
|
|
1121
1121
|
}
|
|
1122
1122
|
function coerce(val) {
|
|
1123
|
-
if (val instanceof Error)
|
|
1124
|
-
return val.stack || val.message;
|
|
1123
|
+
if (val instanceof Error) return val.stack || val.message;
|
|
1125
1124
|
return val;
|
|
1126
1125
|
}
|
|
1127
1126
|
}
|
|
@@ -1130,6 +1129,7 @@ var require_debug = __commonJS({
|
|
|
1130
1129
|
// node_modules/debug/src/browser.js
|
|
1131
1130
|
var require_browser = __commonJS({
|
|
1132
1131
|
"node_modules/debug/src/browser.js"(exports, module) {
|
|
1132
|
+
"use strict";
|
|
1133
1133
|
exports = module.exports = require_debug();
|
|
1134
1134
|
exports.log = log;
|
|
1135
1135
|
exports.formatArgs = formatArgs;
|
|
@@ -1165,15 +1165,13 @@ var require_browser = __commonJS({
|
|
|
1165
1165
|
function formatArgs(args) {
|
|
1166
1166
|
var useColors2 = this.useColors;
|
|
1167
1167
|
args[0] = (useColors2 ? "%c" : "") + this.namespace + (useColors2 ? " %c" : " ") + args[0] + (useColors2 ? "%c " : " ") + "+" + exports.humanize(this.diff);
|
|
1168
|
-
if (!useColors2)
|
|
1169
|
-
return;
|
|
1168
|
+
if (!useColors2) return;
|
|
1170
1169
|
var c = "color: " + this.color;
|
|
1171
1170
|
args.splice(1, 0, c, "color: inherit");
|
|
1172
1171
|
var index = 0;
|
|
1173
1172
|
var lastC = 0;
|
|
1174
1173
|
args[0].replace(/%[a-zA-Z%]/g, function(match) {
|
|
1175
|
-
if ("%%" === match)
|
|
1176
|
-
return;
|
|
1174
|
+
if ("%%" === match) return;
|
|
1177
1175
|
index++;
|
|
1178
1176
|
if ("%c" === match) {
|
|
1179
1177
|
lastC = index;
|
|
@@ -1218,6 +1216,7 @@ var require_browser = __commonJS({
|
|
|
1218
1216
|
// node_modules/debug/src/node.js
|
|
1219
1217
|
var require_node = __commonJS({
|
|
1220
1218
|
"node_modules/debug/src/node.js"(exports, module) {
|
|
1219
|
+
"use strict";
|
|
1221
1220
|
var tty = __require("tty");
|
|
1222
1221
|
var util = __require("util");
|
|
1223
1222
|
exports = module.exports = require_debug();
|
|
@@ -1235,14 +1234,10 @@ var require_node = __commonJS({
|
|
|
1235
1234
|
return k.toUpperCase();
|
|
1236
1235
|
});
|
|
1237
1236
|
var val = process.env[key];
|
|
1238
|
-
if (/^(yes|on|true|enabled)$/i.test(val))
|
|
1239
|
-
|
|
1240
|
-
else if (
|
|
1241
|
-
|
|
1242
|
-
else if (val === "null")
|
|
1243
|
-
val = null;
|
|
1244
|
-
else
|
|
1245
|
-
val = Number(val);
|
|
1237
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
|
|
1238
|
+
else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
|
|
1239
|
+
else if (val === "null") val = null;
|
|
1240
|
+
else val = Number(val);
|
|
1246
1241
|
obj[prop] = val;
|
|
1247
1242
|
return obj;
|
|
1248
1243
|
}, {});
|
|
@@ -1342,6 +1337,7 @@ var require_node = __commonJS({
|
|
|
1342
1337
|
// node_modules/debug/src/index.js
|
|
1343
1338
|
var require_src = __commonJS({
|
|
1344
1339
|
"node_modules/debug/src/index.js"(exports, module) {
|
|
1340
|
+
"use strict";
|
|
1345
1341
|
if (typeof process !== "undefined" && process.type === "renderer") {
|
|
1346
1342
|
module.exports = require_browser();
|
|
1347
1343
|
} else {
|
|
@@ -1446,18 +1442,14 @@ var require_safer = __commonJS({
|
|
|
1446
1442
|
var safer = {};
|
|
1447
1443
|
var key;
|
|
1448
1444
|
for (key in buffer) {
|
|
1449
|
-
if (!buffer.hasOwnProperty(key))
|
|
1450
|
-
|
|
1451
|
-
if (key === "SlowBuffer" || key === "Buffer")
|
|
1452
|
-
continue;
|
|
1445
|
+
if (!buffer.hasOwnProperty(key)) continue;
|
|
1446
|
+
if (key === "SlowBuffer" || key === "Buffer") continue;
|
|
1453
1447
|
safer[key] = buffer[key];
|
|
1454
1448
|
}
|
|
1455
1449
|
var Safer = safer.Buffer = {};
|
|
1456
1450
|
for (key in Buffer2) {
|
|
1457
|
-
if (!Buffer2.hasOwnProperty(key))
|
|
1458
|
-
|
|
1459
|
-
if (key === "allocUnsafe" || key === "allocUnsafeSlow")
|
|
1460
|
-
continue;
|
|
1451
|
+
if (!Buffer2.hasOwnProperty(key)) continue;
|
|
1452
|
+
if (key === "allocUnsafe" || key === "allocUnsafeSlow") continue;
|
|
1461
1453
|
Safer[key] = Buffer2[key];
|
|
1462
1454
|
}
|
|
1463
1455
|
safer.Buffer.prototype = Buffer2.prototype;
|
|
@@ -1799,10 +1791,8 @@ var require_utf16 = __commonJS({
|
|
|
1799
1791
|
else {
|
|
1800
1792
|
var asciiCharsLE = 0, asciiCharsBE = 0, _len = Math.min(buf.length - buf.length % 2, 64);
|
|
1801
1793
|
for (var i = 0; i < _len; i += 2) {
|
|
1802
|
-
if (buf[i] === 0 && buf[i + 1] !== 0)
|
|
1803
|
-
|
|
1804
|
-
if (buf[i] !== 0 && buf[i + 1] === 0)
|
|
1805
|
-
asciiCharsLE++;
|
|
1794
|
+
if (buf[i] === 0 && buf[i + 1] !== 0) asciiCharsBE++;
|
|
1795
|
+
if (buf[i] !== 0 && buf[i + 1] === 0) asciiCharsLE++;
|
|
1806
1796
|
}
|
|
1807
1797
|
if (asciiCharsBE > asciiCharsLE)
|
|
1808
1798
|
enc = "utf-16be";
|
|
@@ -2723,10 +2713,8 @@ var require_dbcs_codec = __commonJS({
|
|
|
2723
2713
|
this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]);
|
|
2724
2714
|
}
|
|
2725
2715
|
this.defCharSB = this.encodeTable[0][iconv.defaultCharSingleByte.charCodeAt(0)];
|
|
2726
|
-
if (this.defCharSB === UNASSIGNED)
|
|
2727
|
-
|
|
2728
|
-
if (this.defCharSB === UNASSIGNED)
|
|
2729
|
-
this.defCharSB = "?".charCodeAt(0);
|
|
2716
|
+
if (this.defCharSB === UNASSIGNED) this.defCharSB = this.encodeTable[0]["?"];
|
|
2717
|
+
if (this.defCharSB === UNASSIGNED) this.defCharSB = "?".charCodeAt(0);
|
|
2730
2718
|
if (typeof codecOptions.gb18030 === "function") {
|
|
2731
2719
|
this.gb18030 = codecOptions.gb18030();
|
|
2732
2720
|
var thirdByteNodeIdx = this.decodeTables.length;
|
|
@@ -2824,8 +2812,7 @@ var require_dbcs_codec = __commonJS({
|
|
|
2824
2812
|
node = this.encodeTableSeq[SEQ_START - bucket[low]];
|
|
2825
2813
|
} else {
|
|
2826
2814
|
node = {};
|
|
2827
|
-
if (bucket[low] !== UNASSIGNED)
|
|
2828
|
-
node[DEF_CHAR] = bucket[low];
|
|
2815
|
+
if (bucket[low] !== UNASSIGNED) node[DEF_CHAR] = bucket[low];
|
|
2829
2816
|
bucket[low] = SEQ_START - this.encodeTableSeq.length;
|
|
2830
2817
|
this.encodeTableSeq.push(node);
|
|
2831
2818
|
}
|
|
@@ -2869,8 +2856,7 @@ var require_dbcs_codec = __commonJS({
|
|
|
2869
2856
|
var newBuf = Buffer2.alloc(str.length * (this.gb18030 ? 4 : 3)), leadSurrogate = this.leadSurrogate, seqObj = this.seqObj, nextChar = -1, i2 = 0, j = 0;
|
|
2870
2857
|
while (true) {
|
|
2871
2858
|
if (nextChar === -1) {
|
|
2872
|
-
if (i2 == str.length)
|
|
2873
|
-
break;
|
|
2859
|
+
if (i2 == str.length) break;
|
|
2874
2860
|
var uCode = str.charCodeAt(i2++);
|
|
2875
2861
|
} else {
|
|
2876
2862
|
var uCode = nextChar;
|
|
@@ -4541,8 +4527,7 @@ var require_streams = __commonJS({
|
|
|
4541
4527
|
return done(new Error("Iconv encoding stream needs strings as its input."));
|
|
4542
4528
|
try {
|
|
4543
4529
|
var res = this.conv.write(chunk);
|
|
4544
|
-
if (res && res.length)
|
|
4545
|
-
this.push(res);
|
|
4530
|
+
if (res && res.length) this.push(res);
|
|
4546
4531
|
done();
|
|
4547
4532
|
} catch (e) {
|
|
4548
4533
|
done(e);
|
|
@@ -4551,8 +4536,7 @@ var require_streams = __commonJS({
|
|
|
4551
4536
|
IconvLiteEncoderStream.prototype._flush = function(done) {
|
|
4552
4537
|
try {
|
|
4553
4538
|
var res = this.conv.end();
|
|
4554
|
-
if (res && res.length)
|
|
4555
|
-
this.push(res);
|
|
4539
|
+
if (res && res.length) this.push(res);
|
|
4556
4540
|
done();
|
|
4557
4541
|
} catch (e) {
|
|
4558
4542
|
done(e);
|
|
@@ -4583,8 +4567,7 @@ var require_streams = __commonJS({
|
|
|
4583
4567
|
return done(new Error("Iconv decoding stream needs buffers as its input."));
|
|
4584
4568
|
try {
|
|
4585
4569
|
var res = this.conv.write(chunk);
|
|
4586
|
-
if (res && res.length)
|
|
4587
|
-
this.push(res, this.encoding);
|
|
4570
|
+
if (res && res.length) this.push(res, this.encoding);
|
|
4588
4571
|
done();
|
|
4589
4572
|
} catch (e) {
|
|
4590
4573
|
done(e);
|
|
@@ -4593,8 +4576,7 @@ var require_streams = __commonJS({
|
|
|
4593
4576
|
IconvLiteDecoderStream.prototype._flush = function(done) {
|
|
4594
4577
|
try {
|
|
4595
4578
|
var res = this.conv.end();
|
|
4596
|
-
if (res && res.length)
|
|
4597
|
-
this.push(res, this.encoding);
|
|
4579
|
+
if (res && res.length) this.push(res, this.encoding);
|
|
4598
4580
|
done();
|
|
4599
4581
|
} catch (e) {
|
|
4600
4582
|
done(e);
|
|
@@ -4623,8 +4605,7 @@ var require_extend_node = __commonJS({
|
|
|
4623
4605
|
var original = void 0;
|
|
4624
4606
|
iconv.supportsNodeEncodingsExtension = !(Buffer2.from || new Buffer2(0) instanceof Uint8Array);
|
|
4625
4607
|
iconv.extendNodeEncodings = function extendNodeEncodings() {
|
|
4626
|
-
if (original)
|
|
4627
|
-
return;
|
|
4608
|
+
if (original) return;
|
|
4628
4609
|
original = {};
|
|
4629
4610
|
if (!iconv.supportsNodeEncodingsExtension) {
|
|
4630
4611
|
console.error("ACTION NEEDED: require('iconv-lite').extendNodeEncodings() is not supported in your version of Node");
|
|
@@ -4652,10 +4633,8 @@ var require_extend_node = __commonJS({
|
|
|
4652
4633
|
encoding = String(encoding || "utf8").toLowerCase();
|
|
4653
4634
|
if (Buffer2.isNativeEncoding(encoding))
|
|
4654
4635
|
return original.SlowBufferToString.call(this, encoding, start, end);
|
|
4655
|
-
if (typeof start == "undefined")
|
|
4656
|
-
|
|
4657
|
-
if (typeof end == "undefined")
|
|
4658
|
-
end = this.length;
|
|
4636
|
+
if (typeof start == "undefined") start = 0;
|
|
4637
|
+
if (typeof end == "undefined") end = this.length;
|
|
4659
4638
|
return iconv.decode(this.slice(start, end), encoding);
|
|
4660
4639
|
};
|
|
4661
4640
|
original.SlowBufferWrite = SlowBuffer.prototype.write;
|
|
@@ -4687,8 +4666,7 @@ var require_extend_node = __commonJS({
|
|
|
4687
4666
|
if (string.length > 0 && (length < 0 || offset < 0))
|
|
4688
4667
|
throw new RangeError("attempt to write beyond buffer bounds");
|
|
4689
4668
|
var buf = iconv.encode(string, encoding);
|
|
4690
|
-
if (buf.length < length)
|
|
4691
|
-
length = buf.length;
|
|
4669
|
+
if (buf.length < length) length = buf.length;
|
|
4692
4670
|
buf.copy(this, offset, 0, length);
|
|
4693
4671
|
return length;
|
|
4694
4672
|
};
|
|
@@ -4708,10 +4686,8 @@ var require_extend_node = __commonJS({
|
|
|
4708
4686
|
encoding = String(encoding || "utf8").toLowerCase();
|
|
4709
4687
|
if (Buffer2.isNativeEncoding(encoding))
|
|
4710
4688
|
return original.BufferToString.call(this, encoding, start, end);
|
|
4711
|
-
if (typeof start == "undefined")
|
|
4712
|
-
|
|
4713
|
-
if (typeof end == "undefined")
|
|
4714
|
-
end = this.length;
|
|
4689
|
+
if (typeof start == "undefined") start = 0;
|
|
4690
|
+
if (typeof end == "undefined") end = this.length;
|
|
4715
4691
|
return iconv.decode(this.slice(start, end), encoding);
|
|
4716
4692
|
};
|
|
4717
4693
|
original.BufferWrite = Buffer2.prototype.write;
|
|
@@ -4744,8 +4720,7 @@ var require_extend_node = __commonJS({
|
|
|
4744
4720
|
if (string.length > 0 && (length < 0 || offset < 0))
|
|
4745
4721
|
throw new RangeError("attempt to write beyond buffer bounds");
|
|
4746
4722
|
var buf = iconv.encode(string, encoding);
|
|
4747
|
-
if (buf.length < length)
|
|
4748
|
-
length = buf.length;
|
|
4723
|
+
if (buf.length < length) length = buf.length;
|
|
4749
4724
|
buf.copy(this, offset, 0, length);
|
|
4750
4725
|
return length;
|
|
4751
4726
|
};
|
|
@@ -4936,13 +4911,11 @@ var require_raw_body = __commonJS({
|
|
|
4936
4911
|
module.exports = getRawBody;
|
|
4937
4912
|
var ICONV_ENCODING_MESSAGE_REGEXP = /^Encoding not recognized: /;
|
|
4938
4913
|
function getDecoder(encoding) {
|
|
4939
|
-
if (!encoding)
|
|
4940
|
-
return null;
|
|
4914
|
+
if (!encoding) return null;
|
|
4941
4915
|
try {
|
|
4942
4916
|
return iconv.getDecoder(encoding);
|
|
4943
4917
|
} catch (e) {
|
|
4944
|
-
if (!ICONV_ENCODING_MESSAGE_REGEXP.test(e.message))
|
|
4945
|
-
throw e;
|
|
4918
|
+
if (!ICONV_ENCODING_MESSAGE_REGEXP.test(e.message)) throw e;
|
|
4946
4919
|
throw createError(415, "specified encoding unsupported", {
|
|
4947
4920
|
encoding,
|
|
4948
4921
|
type: "encoding.unsupported"
|
|
@@ -4980,8 +4953,7 @@ var require_raw_body = __commonJS({
|
|
|
4980
4953
|
}
|
|
4981
4954
|
return new Promise(function executor(resolve, reject) {
|
|
4982
4955
|
readStream(stream, encoding, length, limit, function onRead(err, buf) {
|
|
4983
|
-
if (err)
|
|
4984
|
-
return reject(err);
|
|
4956
|
+
if (err) return reject(err);
|
|
4985
4957
|
resolve(buf);
|
|
4986
4958
|
});
|
|
4987
4959
|
});
|
|
@@ -5048,8 +5020,7 @@ var require_raw_body = __commonJS({
|
|
|
5048
5020
|
}
|
|
5049
5021
|
}
|
|
5050
5022
|
function onAborted() {
|
|
5051
|
-
if (complete)
|
|
5052
|
-
return;
|
|
5023
|
+
if (complete) return;
|
|
5053
5024
|
done(createError(400, "request aborted", {
|
|
5054
5025
|
code: "ECONNABORTED",
|
|
5055
5026
|
expected: length,
|
|
@@ -5059,8 +5030,7 @@ var require_raw_body = __commonJS({
|
|
|
5059
5030
|
}));
|
|
5060
5031
|
}
|
|
5061
5032
|
function onData(chunk) {
|
|
5062
|
-
if (complete)
|
|
5063
|
-
return;
|
|
5033
|
+
if (complete) return;
|
|
5064
5034
|
received += chunk.length;
|
|
5065
5035
|
if (limit !== null && received > limit) {
|
|
5066
5036
|
done(createError(413, "request entity too large", {
|
|
@@ -5075,10 +5045,8 @@ var require_raw_body = __commonJS({
|
|
|
5075
5045
|
}
|
|
5076
5046
|
}
|
|
5077
5047
|
function onEnd(err) {
|
|
5078
|
-
if (complete)
|
|
5079
|
-
|
|
5080
|
-
if (err)
|
|
5081
|
-
return done(err);
|
|
5048
|
+
if (complete) return;
|
|
5049
|
+
if (err) return done(err);
|
|
5082
5050
|
if (length !== null && received !== length) {
|
|
5083
5051
|
done(createError(400, "request size did not match content length", {
|
|
5084
5052
|
expected: length,
|
|
@@ -5218,10 +5186,8 @@ var require_on_finished = __commonJS({
|
|
|
5218
5186
|
eeMsg = eeSocket = first([[msg, "end", "finish"]], onFinish);
|
|
5219
5187
|
function onSocket(socket) {
|
|
5220
5188
|
msg.removeListener("socket", onSocket);
|
|
5221
|
-
if (finished)
|
|
5222
|
-
|
|
5223
|
-
if (eeMsg !== eeSocket)
|
|
5224
|
-
return;
|
|
5189
|
+
if (finished) return;
|
|
5190
|
+
if (eeMsg !== eeSocket) return;
|
|
5225
5191
|
eeSocket = first([[socket, "error", "close"]], onFinish);
|
|
5226
5192
|
}
|
|
5227
5193
|
if (msg.socket) {
|
|
@@ -5243,10 +5209,8 @@ var require_on_finished = __commonJS({
|
|
|
5243
5209
|
}
|
|
5244
5210
|
function createListener(msg) {
|
|
5245
5211
|
function listener(err) {
|
|
5246
|
-
if (msg.__onFinished === listener)
|
|
5247
|
-
|
|
5248
|
-
if (!listener.queue)
|
|
5249
|
-
return;
|
|
5212
|
+
if (msg.__onFinished === listener) msg.__onFinished = null;
|
|
5213
|
+
if (!listener.queue) return;
|
|
5250
5214
|
var queue = listener.queue;
|
|
5251
5215
|
listener.queue = null;
|
|
5252
5216
|
for (var i = 0; i < queue.length; i++) {
|
|
@@ -5258,8 +5222,7 @@ var require_on_finished = __commonJS({
|
|
|
5258
5222
|
}
|
|
5259
5223
|
function patchAssignSocket(res, callback) {
|
|
5260
5224
|
var assignSocket = res.assignSocket;
|
|
5261
|
-
if (typeof assignSocket !== "function")
|
|
5262
|
-
return;
|
|
5225
|
+
if (typeof assignSocket !== "function") return;
|
|
5263
5226
|
res.assignSocket = function _assignSocket(socket) {
|
|
5264
5227
|
assignSocket.call(this, socket);
|
|
5265
5228
|
callback(socket);
|
|
@@ -5415,6 +5378,7 @@ var require_read = __commonJS({
|
|
|
5415
5378
|
// node_modules/media-typer/index.js
|
|
5416
5379
|
var require_media_typer = __commonJS({
|
|
5417
5380
|
"node_modules/media-typer/index.js"(exports) {
|
|
5381
|
+
"use strict";
|
|
5418
5382
|
var paramRegExp = /; *([!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) *= *("(?:[ !\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u0020-\u007e])*"|[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) */g;
|
|
5419
5383
|
var textRegExp = /^[\u0020-\u007e\u0080-\u00ff]+$/;
|
|
5420
5384
|
var tokenRegExp = /^[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+$/;
|
|
@@ -14064,6 +14028,7 @@ var require_db = __commonJS({
|
|
|
14064
14028
|
// node_modules/mime-db/index.js
|
|
14065
14029
|
var require_mime_db = __commonJS({
|
|
14066
14030
|
"node_modules/mime-db/index.js"(exports, module) {
|
|
14031
|
+
"use strict";
|
|
14067
14032
|
module.exports = require_db();
|
|
14068
14033
|
}
|
|
14069
14034
|
});
|
|
@@ -14108,8 +14073,7 @@ var require_mime_types = __commonJS({
|
|
|
14108
14073
|
}
|
|
14109
14074
|
if (mime.indexOf("charset") === -1) {
|
|
14110
14075
|
var charset2 = exports.charset(mime);
|
|
14111
|
-
if (charset2)
|
|
14112
|
-
mime += "; charset=" + charset2.toLowerCase();
|
|
14076
|
+
if (charset2) mime += "; charset=" + charset2.toLowerCase();
|
|
14113
14077
|
}
|
|
14114
14078
|
return mime;
|
|
14115
14079
|
}
|
|
@@ -15053,7 +15017,7 @@ var require_get_intrinsic = __commonJS({
|
|
|
15053
15017
|
if (!allowMissing) {
|
|
15054
15018
|
throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
|
|
15055
15019
|
}
|
|
15056
|
-
return void
|
|
15020
|
+
return void undefined2;
|
|
15057
15021
|
}
|
|
15058
15022
|
if ($gOPD && i + 1 >= parts.length) {
|
|
15059
15023
|
var desc = $gOPD(value, part);
|
|
@@ -15289,6 +15253,7 @@ var require_callBound = __commonJS({
|
|
|
15289
15253
|
// node_modules/object-inspect/util.inspect.js
|
|
15290
15254
|
var require_util_inspect = __commonJS({
|
|
15291
15255
|
"node_modules/object-inspect/util.inspect.js"(exports, module) {
|
|
15256
|
+
"use strict";
|
|
15292
15257
|
module.exports = __require("util").inspect;
|
|
15293
15258
|
}
|
|
15294
15259
|
});
|
|
@@ -15296,6 +15261,7 @@ var require_util_inspect = __commonJS({
|
|
|
15296
15261
|
// node_modules/object-inspect/index.js
|
|
15297
15262
|
var require_object_inspect = __commonJS({
|
|
15298
15263
|
"node_modules/object-inspect/index.js"(exports, module) {
|
|
15264
|
+
"use strict";
|
|
15299
15265
|
var hasMap = typeof Map === "function" && Map.prototype;
|
|
15300
15266
|
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
|
|
15301
15267
|
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
|
|
@@ -16894,8 +16860,7 @@ var require_body_parser = __commonJS({
|
|
|
16894
16860
|
var _json = exports.json(opts);
|
|
16895
16861
|
return function bodyParser2(req, res, next) {
|
|
16896
16862
|
_json(req, res, function(err) {
|
|
16897
|
-
if (err)
|
|
16898
|
-
return next(err);
|
|
16863
|
+
if (err) return next(err);
|
|
16899
16864
|
_urlencoded(req, res, next);
|
|
16900
16865
|
});
|
|
16901
16866
|
};
|
|
@@ -17070,11 +17035,17 @@ var require_parseurl = __commonJS({
|
|
|
17070
17035
|
}
|
|
17071
17036
|
break;
|
|
17072
17037
|
case 9:
|
|
17038
|
+
/* \t */
|
|
17073
17039
|
case 10:
|
|
17040
|
+
/* \n */
|
|
17074
17041
|
case 12:
|
|
17042
|
+
/* \f */
|
|
17075
17043
|
case 13:
|
|
17044
|
+
/* \r */
|
|
17076
17045
|
case 32:
|
|
17046
|
+
/* */
|
|
17077
17047
|
case 35:
|
|
17048
|
+
/* # */
|
|
17078
17049
|
case 160:
|
|
17079
17050
|
case 65279:
|
|
17080
17051
|
return parse(str);
|
|
@@ -17285,6 +17256,7 @@ var require_array_flatten = __commonJS({
|
|
|
17285
17256
|
// node_modules/path-to-regexp/index.js
|
|
17286
17257
|
var require_path_to_regexp = __commonJS({
|
|
17287
17258
|
"node_modules/path-to-regexp/index.js"(exports, module) {
|
|
17259
|
+
"use strict";
|
|
17288
17260
|
module.exports = pathToRegexp;
|
|
17289
17261
|
var MATCHING_GROUP_REGEXP = /\\.|\((?:\?<(.*?)>)?(?!\?)/g;
|
|
17290
17262
|
function pathToRegexp(path2, keys, options) {
|
|
@@ -17303,8 +17275,7 @@ var require_path_to_regexp = __commonJS({
|
|
|
17303
17275
|
var m;
|
|
17304
17276
|
if (path2 instanceof RegExp) {
|
|
17305
17277
|
while (m = MATCHING_GROUP_REGEXP.exec(path2.source)) {
|
|
17306
|
-
if (m[0][0] === "\\")
|
|
17307
|
-
continue;
|
|
17278
|
+
if (m[0][0] === "\\") continue;
|
|
17308
17279
|
keys.push({
|
|
17309
17280
|
name: m[1] || name++,
|
|
17310
17281
|
optional: false,
|
|
@@ -17319,20 +17290,29 @@ var require_path_to_regexp = __commonJS({
|
|
|
17319
17290
|
});
|
|
17320
17291
|
return new RegExp(path2.join("|"), flags);
|
|
17321
17292
|
}
|
|
17293
|
+
if (typeof path2 !== "string") {
|
|
17294
|
+
throw new TypeError("path must be a string, array of strings, or regular expression");
|
|
17295
|
+
}
|
|
17322
17296
|
path2 = path2.replace(
|
|
17323
17297
|
/\\.|(\/)?(\.)?:(\w+)(\(.*?\))?(\*)?(\?)?|[.*]|\/\(/g,
|
|
17324
17298
|
function(match, slash, format, key, capture, star, optional, offset) {
|
|
17325
|
-
pos = offset + match.length;
|
|
17326
17299
|
if (match[0] === "\\") {
|
|
17327
17300
|
backtrack += match;
|
|
17301
|
+
pos += 2;
|
|
17328
17302
|
return match;
|
|
17329
17303
|
}
|
|
17330
17304
|
if (match === ".") {
|
|
17331
17305
|
backtrack += "\\.";
|
|
17332
17306
|
extraOffset += 1;
|
|
17307
|
+
pos += 1;
|
|
17333
17308
|
return "\\.";
|
|
17334
17309
|
}
|
|
17335
|
-
|
|
17310
|
+
if (slash || format) {
|
|
17311
|
+
backtrack = "";
|
|
17312
|
+
} else {
|
|
17313
|
+
backtrack += path2.slice(pos, offset);
|
|
17314
|
+
}
|
|
17315
|
+
pos = offset + match.length;
|
|
17336
17316
|
if (match === "*") {
|
|
17337
17317
|
extraOffset += 3;
|
|
17338
17318
|
return "(.*)";
|
|
@@ -17359,8 +17339,7 @@ var require_path_to_regexp = __commonJS({
|
|
|
17359
17339
|
}
|
|
17360
17340
|
);
|
|
17361
17341
|
while (m = MATCHING_GROUP_REGEXP.exec(path2)) {
|
|
17362
|
-
if (m[0][0] === "\\")
|
|
17363
|
-
continue;
|
|
17342
|
+
if (m[0][0] === "\\") continue;
|
|
17364
17343
|
if (keysOffset + i === keys.length || keys[keysOffset + i].offset > m.index) {
|
|
17365
17344
|
keys.splice(keysOffset + i, 0, {
|
|
17366
17345
|
name: name++,
|
|
@@ -17636,6 +17615,7 @@ var require_route = __commonJS({
|
|
|
17636
17615
|
// node_modules/utils-merge/index.js
|
|
17637
17616
|
var require_utils_merge = __commonJS({
|
|
17638
17617
|
"node_modules/utils-merge/index.js"(exports, module) {
|
|
17618
|
+
"use strict";
|
|
17639
17619
|
exports = module.exports = function(a, b) {
|
|
17640
17620
|
if (a && b) {
|
|
17641
17621
|
for (var key in b) {
|
|
@@ -17718,8 +17698,7 @@ var require_router = __commonJS({
|
|
|
17718
17698
|
req.next = next;
|
|
17719
17699
|
if (req.method === "OPTIONS") {
|
|
17720
17700
|
done = wrap(done, function(old, err) {
|
|
17721
|
-
if (err || options.length === 0)
|
|
17722
|
-
return old(err);
|
|
17701
|
+
if (err || options.length === 0) return old(err);
|
|
17723
17702
|
sendOptionsResponse(res, options, old);
|
|
17724
17703
|
});
|
|
17725
17704
|
}
|
|
@@ -17807,8 +17786,7 @@ var require_router = __commonJS({
|
|
|
17807
17786
|
return;
|
|
17808
17787
|
}
|
|
17809
17788
|
var c = path2[layerPath.length];
|
|
17810
|
-
if (c && c !== "/" && c !== ".")
|
|
17811
|
-
return next(layerError);
|
|
17789
|
+
if (c && c !== "/" && c !== ".") return next(layerError);
|
|
17812
17790
|
debug("trim prefix (%s) from url %s", layerPath, req.url);
|
|
17813
17791
|
removed = layerPath;
|
|
17814
17792
|
req.url = protohost + req.url.slice(protohost.length + removed.length);
|
|
@@ -17874,8 +17852,7 @@ var require_router = __commonJS({
|
|
|
17874
17852
|
param(err);
|
|
17875
17853
|
return;
|
|
17876
17854
|
}
|
|
17877
|
-
if (!fn)
|
|
17878
|
-
return param();
|
|
17855
|
+
if (!fn) return param();
|
|
17879
17856
|
try {
|
|
17880
17857
|
fn(req, res, paramCallback, paramVal, key.name);
|
|
17881
17858
|
} catch (e) {
|
|
@@ -18040,8 +18017,7 @@ var require_init = __commonJS({
|
|
|
18040
18017
|
var setPrototypeOf = require_setprototypeof();
|
|
18041
18018
|
exports.init = function(app) {
|
|
18042
18019
|
return function expressInit(req, res, next) {
|
|
18043
|
-
if (app.enabled("x-powered-by"))
|
|
18044
|
-
res.setHeader("X-Powered-By", "Express");
|
|
18020
|
+
if (app.enabled("x-powered-by")) res.setHeader("X-Powered-By", "Express");
|
|
18045
18021
|
req.res = res;
|
|
18046
18022
|
res.req = req;
|
|
18047
18023
|
req.next = next;
|
|
@@ -18165,6 +18141,7 @@ var require_view = __commonJS({
|
|
|
18165
18141
|
// node_modules/safe-buffer/index.js
|
|
18166
18142
|
var require_safe_buffer = __commonJS({
|
|
18167
18143
|
"node_modules/safe-buffer/index.js"(exports, module) {
|
|
18144
|
+
"use strict";
|
|
18168
18145
|
var buffer = __require("buffer");
|
|
18169
18146
|
var Buffer2 = buffer.Buffer;
|
|
18170
18147
|
function copyProps(src, dst) {
|
|
@@ -18522,6 +18499,7 @@ var require_types = __commonJS({
|
|
|
18522
18499
|
// node_modules/mime/mime.js
|
|
18523
18500
|
var require_mime = __commonJS({
|
|
18524
18501
|
"node_modules/mime/mime.js"(exports, module) {
|
|
18502
|
+
"use strict";
|
|
18525
18503
|
var path2 = __require("path");
|
|
18526
18504
|
var fs = __require("fs");
|
|
18527
18505
|
function Mime() {
|
|
@@ -18576,6 +18554,7 @@ var require_mime = __commonJS({
|
|
|
18576
18554
|
// node_modules/send/node_modules/ms/index.js
|
|
18577
18555
|
var require_ms2 = __commonJS({
|
|
18578
18556
|
"node_modules/send/node_modules/ms/index.js"(exports, module) {
|
|
18557
|
+
"use strict";
|
|
18579
18558
|
var s = 1e3;
|
|
18580
18559
|
var m = s * 60;
|
|
18581
18560
|
var h = m * 60;
|
|
@@ -19074,8 +19053,7 @@ var require_send = __commonJS({
|
|
|
19074
19053
|
len = Math.max(0, len - offset);
|
|
19075
19054
|
if (options.end !== void 0) {
|
|
19076
19055
|
var bytes = options.end - offset + 1;
|
|
19077
|
-
if (len > bytes)
|
|
19078
|
-
len = bytes;
|
|
19056
|
+
if (len > bytes) len = bytes;
|
|
19079
19057
|
}
|
|
19080
19058
|
if (this._acceptRanges && BYTES_RANGE_REGEXP.test(ranges)) {
|
|
19081
19059
|
ranges = parseRange(len, ranges, {
|
|
@@ -19120,10 +19098,8 @@ var require_send = __commonJS({
|
|
|
19120
19098
|
if (err && err.code === "ENOENT" && !extname(path3) && path3[path3.length - 1] !== sep) {
|
|
19121
19099
|
return next(err);
|
|
19122
19100
|
}
|
|
19123
|
-
if (err)
|
|
19124
|
-
|
|
19125
|
-
if (stat.isDirectory())
|
|
19126
|
-
return self.redirect(path3);
|
|
19101
|
+
if (err) return self.onStatError(err);
|
|
19102
|
+
if (stat.isDirectory()) return self.redirect(path3);
|
|
19127
19103
|
self.emit("file", path3, stat);
|
|
19128
19104
|
self.send(path3, stat);
|
|
19129
19105
|
});
|
|
@@ -19134,10 +19110,8 @@ var require_send = __commonJS({
|
|
|
19134
19110
|
var p = path3 + "." + self._extensions[i++];
|
|
19135
19111
|
debug('stat "%s"', p);
|
|
19136
19112
|
fs.stat(p, function(err2, stat) {
|
|
19137
|
-
if (err2)
|
|
19138
|
-
|
|
19139
|
-
if (stat.isDirectory())
|
|
19140
|
-
return next();
|
|
19113
|
+
if (err2) return next(err2);
|
|
19114
|
+
if (stat.isDirectory()) return next();
|
|
19141
19115
|
self.emit("file", p, stat);
|
|
19142
19116
|
self.send(p, stat);
|
|
19143
19117
|
});
|
|
@@ -19148,17 +19122,14 @@ var require_send = __commonJS({
|
|
|
19148
19122
|
var self = this;
|
|
19149
19123
|
function next(err) {
|
|
19150
19124
|
if (++i >= self._index.length) {
|
|
19151
|
-
if (err)
|
|
19152
|
-
return self.onStatError(err);
|
|
19125
|
+
if (err) return self.onStatError(err);
|
|
19153
19126
|
return self.error(404);
|
|
19154
19127
|
}
|
|
19155
19128
|
var p = join(path3, self._index[i]);
|
|
19156
19129
|
debug('stat "%s"', p);
|
|
19157
19130
|
fs.stat(p, function(err2, stat) {
|
|
19158
|
-
if (err2)
|
|
19159
|
-
|
|
19160
|
-
if (stat.isDirectory())
|
|
19161
|
-
return next();
|
|
19131
|
+
if (err2) return next(err2);
|
|
19132
|
+
if (stat.isDirectory()) return next();
|
|
19162
19133
|
self.emit("file", p, stat);
|
|
19163
19134
|
self.send(p, stat);
|
|
19164
19135
|
});
|
|
@@ -19185,8 +19156,7 @@ var require_send = __commonJS({
|
|
|
19185
19156
|
};
|
|
19186
19157
|
SendStream.prototype.type = function type(path3) {
|
|
19187
19158
|
var res = this.res;
|
|
19188
|
-
if (res.getHeader("Content-Type"))
|
|
19189
|
-
return;
|
|
19159
|
+
if (res.getHeader("Content-Type")) return;
|
|
19190
19160
|
var type2 = mime.lookup(path3);
|
|
19191
19161
|
if (!type2) {
|
|
19192
19162
|
debug("no content-type");
|
|
@@ -19374,6 +19344,7 @@ var require_forwarded = __commonJS({
|
|
|
19374
19344
|
// node_modules/ipaddr.js/lib/ipaddr.js
|
|
19375
19345
|
var require_ipaddr = __commonJS({
|
|
19376
19346
|
"node_modules/ipaddr.js/lib/ipaddr.js"(exports, module) {
|
|
19347
|
+
"use strict";
|
|
19377
19348
|
(function() {
|
|
19378
19349
|
var expandIPv6, ipaddr, ipv4Part, ipv4Regexes, ipv6Part, ipv6Regexes, matchCIDR, root, zoneIndex;
|
|
19379
19350
|
ipaddr = {};
|
|
@@ -20019,8 +19990,7 @@ var require_proxy_addr = __commonJS({
|
|
|
20019
19990
|
trust = compile(trust);
|
|
20020
19991
|
}
|
|
20021
19992
|
for (var i = 0; i < addrs.length - 1; i++) {
|
|
20022
|
-
if (trust(addrs[i], i))
|
|
20023
|
-
continue;
|
|
19993
|
+
if (trust(addrs[i], i)) continue;
|
|
20024
19994
|
addrs.length = i + 1;
|
|
20025
19995
|
}
|
|
20026
19996
|
return addrs;
|
|
@@ -20106,8 +20076,7 @@ var require_proxy_addr = __commonJS({
|
|
|
20106
20076
|
}
|
|
20107
20077
|
function trustMulti(subnets) {
|
|
20108
20078
|
return function trust(addr) {
|
|
20109
|
-
if (!isip(addr))
|
|
20110
|
-
return false;
|
|
20079
|
+
if (!isip(addr)) return false;
|
|
20111
20080
|
var ip = parseip(addr);
|
|
20112
20081
|
var ipconv;
|
|
20113
20082
|
var kind = ip.kind();
|
|
@@ -20139,8 +20108,7 @@ var require_proxy_addr = __commonJS({
|
|
|
20139
20108
|
var subnetisipv4 = subnetkind === "ipv4";
|
|
20140
20109
|
var subnetrange = subnet[1];
|
|
20141
20110
|
return function trust(addr) {
|
|
20142
|
-
if (!isip(addr))
|
|
20143
|
-
return false;
|
|
20111
|
+
if (!isip(addr)) return false;
|
|
20144
20112
|
var ip = parseip(addr);
|
|
20145
20113
|
var kind = ip.kind();
|
|
20146
20114
|
if (kind !== subnetkind) {
|
|
@@ -20172,12 +20140,9 @@ var require_utils2 = __commonJS({
|
|
|
20172
20140
|
exports.etag = createETagGenerator({ weak: false });
|
|
20173
20141
|
exports.wetag = createETagGenerator({ weak: true });
|
|
20174
20142
|
exports.isAbsolute = function(path2) {
|
|
20175
|
-
if ("/" === path2[0])
|
|
20176
|
-
|
|
20177
|
-
if ("
|
|
20178
|
-
return true;
|
|
20179
|
-
if ("\\\\" === path2.substring(0, 2))
|
|
20180
|
-
return true;
|
|
20143
|
+
if ("/" === path2[0]) return true;
|
|
20144
|
+
if (":" === path2[1] && ("\\" === path2[2] || "/" === path2[2])) return true;
|
|
20145
|
+
if ("\\\\" === path2.substring(0, 2)) return true;
|
|
20181
20146
|
};
|
|
20182
20147
|
exports.flatten = deprecate.function(
|
|
20183
20148
|
flatten,
|
|
@@ -20252,8 +20217,7 @@ var require_utils2 = __commonJS({
|
|
|
20252
20217
|
return fn;
|
|
20253
20218
|
};
|
|
20254
20219
|
exports.compileTrust = function(val) {
|
|
20255
|
-
if (typeof val === "function")
|
|
20256
|
-
return val;
|
|
20220
|
+
if (typeof val === "function") return val;
|
|
20257
20221
|
if (val === true) {
|
|
20258
20222
|
return function() {
|
|
20259
20223
|
return true;
|
|
@@ -20560,8 +20524,7 @@ var require_application = __commonJS({
|
|
|
20560
20524
|
return server.listen.apply(server, arguments);
|
|
20561
20525
|
};
|
|
20562
20526
|
function logerror(err) {
|
|
20563
|
-
if (this.get("env") !== "test")
|
|
20564
|
-
console.error(err.stack || err.toString());
|
|
20527
|
+
if (this.get("env") !== "test") console.error(err.stack || err.toString());
|
|
20565
20528
|
}
|
|
20566
20529
|
function tryRender(view, options, callback) {
|
|
20567
20530
|
try {
|
|
@@ -20593,8 +20556,7 @@ var require_charset = __commonJS({
|
|
|
20593
20556
|
}
|
|
20594
20557
|
function parseCharset(str, i) {
|
|
20595
20558
|
var match = simpleCharsetRegExp.exec(str);
|
|
20596
|
-
if (!match)
|
|
20597
|
-
return null;
|
|
20559
|
+
if (!match) return null;
|
|
20598
20560
|
var charset = match[1];
|
|
20599
20561
|
var q = 1;
|
|
20600
20562
|
if (match[2]) {
|
|
@@ -20692,8 +20654,7 @@ var require_encoding = __commonJS({
|
|
|
20692
20654
|
}
|
|
20693
20655
|
function parseEncoding(str, i) {
|
|
20694
20656
|
var match = simpleEncodingRegExp.exec(str);
|
|
20695
|
-
if (!match)
|
|
20696
|
-
return null;
|
|
20657
|
+
if (!match) return null;
|
|
20697
20658
|
var encoding = match[1];
|
|
20698
20659
|
var q = 1;
|
|
20699
20660
|
if (match[2]) {
|
|
@@ -20780,20 +20741,17 @@ var require_language = __commonJS({
|
|
|
20780
20741
|
}
|
|
20781
20742
|
function parseLanguage(str, i) {
|
|
20782
20743
|
var match = simpleLanguageRegExp.exec(str);
|
|
20783
|
-
if (!match)
|
|
20784
|
-
return null;
|
|
20744
|
+
if (!match) return null;
|
|
20785
20745
|
var prefix = match[1];
|
|
20786
20746
|
var suffix = match[2];
|
|
20787
20747
|
var full = prefix;
|
|
20788
|
-
if (suffix)
|
|
20789
|
-
full += "-" + suffix;
|
|
20748
|
+
if (suffix) full += "-" + suffix;
|
|
20790
20749
|
var q = 1;
|
|
20791
20750
|
if (match[3]) {
|
|
20792
20751
|
var params = match[3].split(";");
|
|
20793
20752
|
for (var j = 0; j < params.length; j++) {
|
|
20794
20753
|
var p = params[j].split("=");
|
|
20795
|
-
if (p[0] === "q")
|
|
20796
|
-
q = parseFloat(p[1]);
|
|
20754
|
+
if (p[0] === "q") q = parseFloat(p[1]);
|
|
20797
20755
|
}
|
|
20798
20756
|
}
|
|
20799
20757
|
return {
|
|
@@ -20816,8 +20774,7 @@ var require_language = __commonJS({
|
|
|
20816
20774
|
}
|
|
20817
20775
|
function specify(language, spec, index) {
|
|
20818
20776
|
var p = parseLanguage(language);
|
|
20819
|
-
if (!p)
|
|
20820
|
-
return null;
|
|
20777
|
+
if (!p) return null;
|
|
20821
20778
|
var s = 0;
|
|
20822
20779
|
if (spec.full.toLowerCase() === p.full.toLowerCase()) {
|
|
20823
20780
|
s |= 4;
|
|
@@ -20879,8 +20836,7 @@ var require_mediaType = __commonJS({
|
|
|
20879
20836
|
}
|
|
20880
20837
|
function parseMediaType(str, i) {
|
|
20881
20838
|
var match = simpleMediaTypeRegExp.exec(str);
|
|
20882
|
-
if (!match)
|
|
20883
|
-
return null;
|
|
20839
|
+
if (!match) return null;
|
|
20884
20840
|
var params = /* @__PURE__ */ Object.create(null);
|
|
20885
20841
|
var q = 1;
|
|
20886
20842
|
var subtype = match[2];
|
|
@@ -21219,8 +21175,7 @@ var require_request = __commonJS({
|
|
|
21219
21175
|
);
|
|
21220
21176
|
req.range = function range(size, options) {
|
|
21221
21177
|
var range2 = this.get("Range");
|
|
21222
|
-
if (!range2)
|
|
21223
|
-
return;
|
|
21178
|
+
if (!range2) return;
|
|
21224
21179
|
return parseRange(size, range2, options);
|
|
21225
21180
|
};
|
|
21226
21181
|
req.param = function param(name, defaultValue) {
|
|
@@ -21229,12 +21184,9 @@ var require_request = __commonJS({
|
|
|
21229
21184
|
var query = this.query || {};
|
|
21230
21185
|
var args = arguments.length === 1 ? "name" : "name, default";
|
|
21231
21186
|
deprecate("req.param(" + args + "): Use req.params, req.body, or req.query instead");
|
|
21232
|
-
if (null != params[name] && params.hasOwnProperty(name))
|
|
21233
|
-
|
|
21234
|
-
if (null !=
|
|
21235
|
-
return body[name];
|
|
21236
|
-
if (null != query[name])
|
|
21237
|
-
return query[name];
|
|
21187
|
+
if (null != params[name] && params.hasOwnProperty(name)) return params[name];
|
|
21188
|
+
if (null != body[name]) return body[name];
|
|
21189
|
+
if (null != query[name]) return query[name];
|
|
21238
21190
|
return defaultValue;
|
|
21239
21191
|
};
|
|
21240
21192
|
req.is = function is(types) {
|
|
@@ -21272,8 +21224,7 @@ var require_request = __commonJS({
|
|
|
21272
21224
|
});
|
|
21273
21225
|
defineGetter(req, "subdomains", function subdomains() {
|
|
21274
21226
|
var hostname = this.hostname;
|
|
21275
|
-
if (!hostname)
|
|
21276
|
-
return [];
|
|
21227
|
+
if (!hostname) return [];
|
|
21277
21228
|
var offset = this.app.get("subdomain offset");
|
|
21278
21229
|
var subdomains2 = !isIP(hostname) ? hostname.split(".").reverse() : [hostname];
|
|
21279
21230
|
return subdomains2.slice(offset);
|
|
@@ -21289,8 +21240,7 @@ var require_request = __commonJS({
|
|
|
21289
21240
|
} else if (host.indexOf(",") !== -1) {
|
|
21290
21241
|
host = host.substring(0, host.indexOf(",")).trimRight();
|
|
21291
21242
|
}
|
|
21292
|
-
if (!host)
|
|
21293
|
-
return;
|
|
21243
|
+
if (!host) return;
|
|
21294
21244
|
var offset = host[0] === "[" ? host.indexOf("]") + 1 : 0;
|
|
21295
21245
|
var index = host.indexOf(":", offset);
|
|
21296
21246
|
return index !== -1 ? host.substring(0, index) : host;
|
|
@@ -21302,8 +21252,7 @@ var require_request = __commonJS({
|
|
|
21302
21252
|
var method = this.method;
|
|
21303
21253
|
var res = this.res;
|
|
21304
21254
|
var status = res.statusCode;
|
|
21305
|
-
if ("GET" !== method && "HEAD" !== method)
|
|
21306
|
-
return false;
|
|
21255
|
+
if ("GET" !== method && "HEAD" !== method) return false;
|
|
21307
21256
|
if (status >= 200 && status < 300 || 304 === status) {
|
|
21308
21257
|
return fresh(this.headers, {
|
|
21309
21258
|
"etag": res.get("ETag"),
|
|
@@ -21332,19 +21281,16 @@ var require_request = __commonJS({
|
|
|
21332
21281
|
// node_modules/cookie-signature/index.js
|
|
21333
21282
|
var require_cookie_signature = __commonJS({
|
|
21334
21283
|
"node_modules/cookie-signature/index.js"(exports) {
|
|
21284
|
+
"use strict";
|
|
21335
21285
|
var crypto = __require("crypto");
|
|
21336
21286
|
exports.sign = function(val, secret) {
|
|
21337
|
-
if ("string" != typeof val)
|
|
21338
|
-
|
|
21339
|
-
if ("string" != typeof secret)
|
|
21340
|
-
throw new TypeError("Secret string must be provided.");
|
|
21287
|
+
if ("string" != typeof val) throw new TypeError("Cookie value must be provided as a string.");
|
|
21288
|
+
if ("string" != typeof secret) throw new TypeError("Secret string must be provided.");
|
|
21341
21289
|
return val + "." + crypto.createHmac("sha256", secret).update(val).digest("base64").replace(/\=+$/, "");
|
|
21342
21290
|
};
|
|
21343
21291
|
exports.unsign = function(val, secret) {
|
|
21344
|
-
if ("string" != typeof val)
|
|
21345
|
-
|
|
21346
|
-
if ("string" != typeof secret)
|
|
21347
|
-
throw new TypeError("Secret string must be provided.");
|
|
21292
|
+
if ("string" != typeof val) throw new TypeError("Signed cookie string must be provided.");
|
|
21293
|
+
if ("string" != typeof secret) throw new TypeError("Secret string must be provided.");
|
|
21348
21294
|
var str = val.slice(0, val.lastIndexOf(".")), mac = exports.sign(str, secret);
|
|
21349
21295
|
return sha1(mac) == sha1(val) ? str : false;
|
|
21350
21296
|
};
|
|
@@ -21371,16 +21317,14 @@ var require_cookie = __commonJS({
|
|
|
21371
21317
|
}
|
|
21372
21318
|
var obj = {};
|
|
21373
21319
|
var len = str.length;
|
|
21374
|
-
if (len < 2)
|
|
21375
|
-
return obj;
|
|
21320
|
+
if (len < 2) return obj;
|
|
21376
21321
|
var dec = opt && opt.decode || decode;
|
|
21377
21322
|
var index = 0;
|
|
21378
21323
|
var eqIdx = 0;
|
|
21379
21324
|
var endIdx = 0;
|
|
21380
21325
|
do {
|
|
21381
21326
|
eqIdx = str.indexOf("=", index);
|
|
21382
|
-
if (eqIdx === -1)
|
|
21383
|
-
break;
|
|
21327
|
+
if (eqIdx === -1) break;
|
|
21384
21328
|
endIdx = str.indexOf(";", index);
|
|
21385
21329
|
if (endIdx === -1) {
|
|
21386
21330
|
endIdx = len;
|
|
@@ -21408,16 +21352,14 @@ var require_cookie = __commonJS({
|
|
|
21408
21352
|
function startIndex(str, index, max) {
|
|
21409
21353
|
do {
|
|
21410
21354
|
var code = str.charCodeAt(index);
|
|
21411
|
-
if (code !== 32 && code !== 9)
|
|
21412
|
-
return index;
|
|
21355
|
+
if (code !== 32 && code !== 9) return index;
|
|
21413
21356
|
} while (++index < max);
|
|
21414
21357
|
return max;
|
|
21415
21358
|
}
|
|
21416
21359
|
function endIndex(str, index, min) {
|
|
21417
21360
|
while (index > min) {
|
|
21418
21361
|
var code = str.charCodeAt(--index);
|
|
21419
|
-
if (code !== 32 && code !== 9)
|
|
21420
|
-
return index + 1;
|
|
21362
|
+
if (code !== 32 && code !== 9) return index + 1;
|
|
21421
21363
|
}
|
|
21422
21364
|
return min;
|
|
21423
21365
|
}
|
|
@@ -21434,8 +21376,7 @@ var require_cookie = __commonJS({
|
|
|
21434
21376
|
throw new TypeError("argument val is invalid");
|
|
21435
21377
|
}
|
|
21436
21378
|
var str = name + "=" + value;
|
|
21437
|
-
if (!opt)
|
|
21438
|
-
return str;
|
|
21379
|
+
if (!opt) return str;
|
|
21439
21380
|
if (null != opt.maxAge) {
|
|
21440
21381
|
var maxAge = Math.floor(opt.maxAge);
|
|
21441
21382
|
if (!isFinite(maxAge)) {
|
|
@@ -21635,8 +21576,7 @@ var require_response = __commonJS({
|
|
|
21635
21576
|
};
|
|
21636
21577
|
res.links = function(links) {
|
|
21637
21578
|
var link = this.get("Link") || "";
|
|
21638
|
-
if (link)
|
|
21639
|
-
link += ", ";
|
|
21579
|
+
if (link) link += ", ";
|
|
21640
21580
|
return this.set("Link", link + Object.keys(links).map(function(rel) {
|
|
21641
21581
|
return "<" + links[rel] + '>; rel="' + rel + '"';
|
|
21642
21582
|
}).join(", "));
|
|
@@ -21666,6 +21606,7 @@ var require_response = __commonJS({
|
|
|
21666
21606
|
chunk = statuses.message[chunk];
|
|
21667
21607
|
}
|
|
21668
21608
|
switch (typeof chunk) {
|
|
21609
|
+
// string defaulting to html
|
|
21669
21610
|
case "string":
|
|
21670
21611
|
if (!this.get("Content-Type")) {
|
|
21671
21612
|
this.type("html");
|
|
@@ -21713,8 +21654,7 @@ var require_response = __commonJS({
|
|
|
21713
21654
|
this.set("ETag", etag);
|
|
21714
21655
|
}
|
|
21715
21656
|
}
|
|
21716
|
-
if (req.fresh)
|
|
21717
|
-
this.statusCode = 304;
|
|
21657
|
+
if (req.fresh) this.statusCode = 304;
|
|
21718
21658
|
if (204 === this.statusCode || 304 === this.statusCode) {
|
|
21719
21659
|
this.removeHeader("Content-Type");
|
|
21720
21660
|
this.removeHeader("Content-Length");
|
|
@@ -21821,10 +21761,8 @@ var require_response = __commonJS({
|
|
|
21821
21761
|
var pathname = encodeURI(path3);
|
|
21822
21762
|
var file = send(req, pathname, opts);
|
|
21823
21763
|
sendfile(res2, file, opts, function(err) {
|
|
21824
|
-
if (done)
|
|
21825
|
-
|
|
21826
|
-
if (err && err.code === "EISDIR")
|
|
21827
|
-
return next();
|
|
21764
|
+
if (done) return done(err);
|
|
21765
|
+
if (err && err.code === "EISDIR") return next();
|
|
21828
21766
|
if (err && err.code !== "ECONNABORTED" && err.syscall !== "write") {
|
|
21829
21767
|
next(err);
|
|
21830
21768
|
}
|
|
@@ -21842,10 +21780,8 @@ var require_response = __commonJS({
|
|
|
21842
21780
|
}
|
|
21843
21781
|
var file = send(req, path3, opts);
|
|
21844
21782
|
sendfile(res2, file, opts, function(err) {
|
|
21845
|
-
if (done)
|
|
21846
|
-
|
|
21847
|
-
if (err && err.code === "EISDIR")
|
|
21848
|
-
return next();
|
|
21783
|
+
if (done) return done(err);
|
|
21784
|
+
if (err && err.code === "EISDIR") return next();
|
|
21849
21785
|
if (err && err.code !== "ECONNABORTED" && err.syscall !== "write") {
|
|
21850
21786
|
next(err);
|
|
21851
21787
|
}
|
|
@@ -21938,8 +21874,7 @@ var require_response = __commonJS({
|
|
|
21938
21874
|
}
|
|
21939
21875
|
if (!charsetRegExp.test(value)) {
|
|
21940
21876
|
var charset = mime.charsets.lookup(value.split(";")[0]);
|
|
21941
|
-
if (charset)
|
|
21942
|
-
value += "; charset=" + charset.toLowerCase();
|
|
21877
|
+
if (charset) value += "; charset=" + charset.toLowerCase();
|
|
21943
21878
|
}
|
|
21944
21879
|
}
|
|
21945
21880
|
this.setHeader(field, value);
|
|
@@ -22053,8 +21988,7 @@ var require_response = __commonJS({
|
|
|
22053
21988
|
}
|
|
22054
21989
|
opts._locals = self.locals;
|
|
22055
21990
|
done = done || function(err, str) {
|
|
22056
|
-
if (err)
|
|
22057
|
-
return req.next(err);
|
|
21991
|
+
if (err) return req.next(err);
|
|
22058
21992
|
self.send(str);
|
|
22059
21993
|
};
|
|
22060
21994
|
app.render(view, opts, done);
|
|
@@ -22063,30 +21997,26 @@ var require_response = __commonJS({
|
|
|
22063
21997
|
var done = false;
|
|
22064
21998
|
var streaming;
|
|
22065
21999
|
function onaborted() {
|
|
22066
|
-
if (done)
|
|
22067
|
-
return;
|
|
22000
|
+
if (done) return;
|
|
22068
22001
|
done = true;
|
|
22069
22002
|
var err = new Error("Request aborted");
|
|
22070
22003
|
err.code = "ECONNABORTED";
|
|
22071
22004
|
callback(err);
|
|
22072
22005
|
}
|
|
22073
22006
|
function ondirectory() {
|
|
22074
|
-
if (done)
|
|
22075
|
-
return;
|
|
22007
|
+
if (done) return;
|
|
22076
22008
|
done = true;
|
|
22077
22009
|
var err = new Error("EISDIR, read");
|
|
22078
22010
|
err.code = "EISDIR";
|
|
22079
22011
|
callback(err);
|
|
22080
22012
|
}
|
|
22081
22013
|
function onerror(err) {
|
|
22082
|
-
if (done)
|
|
22083
|
-
return;
|
|
22014
|
+
if (done) return;
|
|
22084
22015
|
done = true;
|
|
22085
22016
|
callback(err);
|
|
22086
22017
|
}
|
|
22087
22018
|
function onend() {
|
|
22088
|
-
if (done)
|
|
22089
|
-
return;
|
|
22019
|
+
if (done) return;
|
|
22090
22020
|
done = true;
|
|
22091
22021
|
callback();
|
|
22092
22022
|
}
|
|
@@ -22094,19 +22024,15 @@ var require_response = __commonJS({
|
|
|
22094
22024
|
streaming = false;
|
|
22095
22025
|
}
|
|
22096
22026
|
function onfinish(err) {
|
|
22097
|
-
if (err && err.code === "ECONNRESET")
|
|
22098
|
-
|
|
22099
|
-
if (
|
|
22100
|
-
return onerror(err);
|
|
22101
|
-
if (done)
|
|
22102
|
-
return;
|
|
22027
|
+
if (err && err.code === "ECONNRESET") return onaborted();
|
|
22028
|
+
if (err) return onerror(err);
|
|
22029
|
+
if (done) return;
|
|
22103
22030
|
setImmediate(function() {
|
|
22104
22031
|
if (streaming !== false && !done) {
|
|
22105
22032
|
onaborted();
|
|
22106
22033
|
return;
|
|
22107
22034
|
}
|
|
22108
|
-
if (done)
|
|
22109
|
-
return;
|
|
22035
|
+
if (done) return;
|
|
22110
22036
|
done = true;
|
|
22111
22037
|
callback();
|
|
22112
22038
|
});
|
|
@@ -22143,6 +22069,7 @@ var require_response = __commonJS({
|
|
|
22143
22069
|
return "\\u003e";
|
|
22144
22070
|
case 38:
|
|
22145
22071
|
return "\\u0026";
|
|
22072
|
+
/* istanbul ignore next: unreachable default */
|
|
22146
22073
|
default:
|
|
22147
22074
|
return c;
|
|
22148
22075
|
}
|