@lark-apaas/fullstack-nestjs-core 1.1.33-alpha.1 → 1.1.33-alpha.2
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.cjs +120 -1328
- package/dist/index.d.cts +4 -65
- package/dist/index.d.ts +4 -65
- package/dist/index.js +109 -1315
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -1371,8 +1371,8 @@ var require_node = __commonJS({
|
|
|
1371
1371
|
}
|
|
1372
1372
|
break;
|
|
1373
1373
|
case "FILE":
|
|
1374
|
-
var
|
|
1375
|
-
stream2 = new
|
|
1374
|
+
var fs2 = require("fs");
|
|
1375
|
+
stream2 = new fs2.SyncWriteStream(fd2, {
|
|
1376
1376
|
autoClose: false
|
|
1377
1377
|
});
|
|
1378
1378
|
stream2._type = "fs";
|
|
@@ -1590,9 +1590,9 @@ var require_safer = __commonJS({
|
|
|
1590
1590
|
}
|
|
1591
1591
|
});
|
|
1592
1592
|
|
|
1593
|
-
// ../../../node_modules/
|
|
1593
|
+
// ../../../node_modules/iconv-lite/lib/bom-handling.js
|
|
1594
1594
|
var require_bom_handling = __commonJS({
|
|
1595
|
-
"../../../node_modules/
|
|
1595
|
+
"../../../node_modules/iconv-lite/lib/bom-handling.js"(exports2) {
|
|
1596
1596
|
"use strict";
|
|
1597
1597
|
var BOMChar = "\uFEFF";
|
|
1598
1598
|
exports2.PrependBOM = PrependBOMWrapper;
|
|
@@ -1634,9 +1634,9 @@ var require_bom_handling = __commonJS({
|
|
|
1634
1634
|
}
|
|
1635
1635
|
});
|
|
1636
1636
|
|
|
1637
|
-
// ../../../node_modules/
|
|
1637
|
+
// ../../../node_modules/iconv-lite/encodings/internal.js
|
|
1638
1638
|
var require_internal = __commonJS({
|
|
1639
|
-
"../../../node_modules/
|
|
1639
|
+
"../../../node_modules/iconv-lite/encodings/internal.js"(exports2, module2) {
|
|
1640
1640
|
"use strict";
|
|
1641
1641
|
var Buffer2 = require_safer().Buffer;
|
|
1642
1642
|
module2.exports = {
|
|
@@ -1793,9 +1793,9 @@ var require_internal = __commonJS({
|
|
|
1793
1793
|
}
|
|
1794
1794
|
});
|
|
1795
1795
|
|
|
1796
|
-
// ../../../node_modules/
|
|
1796
|
+
// ../../../node_modules/iconv-lite/encodings/utf16.js
|
|
1797
1797
|
var require_utf16 = __commonJS({
|
|
1798
|
-
"../../../node_modules/
|
|
1798
|
+
"../../../node_modules/iconv-lite/encodings/utf16.js"(exports2) {
|
|
1799
1799
|
"use strict";
|
|
1800
1800
|
var Buffer2 = require_safer().Buffer;
|
|
1801
1801
|
exports2.utf16be = Utf16BECodec;
|
|
@@ -1909,9 +1909,9 @@ var require_utf16 = __commonJS({
|
|
|
1909
1909
|
}
|
|
1910
1910
|
});
|
|
1911
1911
|
|
|
1912
|
-
// ../../../node_modules/
|
|
1912
|
+
// ../../../node_modules/iconv-lite/encodings/utf7.js
|
|
1913
1913
|
var require_utf7 = __commonJS({
|
|
1914
|
-
"../../../node_modules/
|
|
1914
|
+
"../../../node_modules/iconv-lite/encodings/utf7.js"(exports2) {
|
|
1915
1915
|
"use strict";
|
|
1916
1916
|
var Buffer2 = require_safer().Buffer;
|
|
1917
1917
|
exports2.utf7 = Utf7Codec;
|
|
@@ -2110,9 +2110,9 @@ var require_utf7 = __commonJS({
|
|
|
2110
2110
|
}
|
|
2111
2111
|
});
|
|
2112
2112
|
|
|
2113
|
-
// ../../../node_modules/
|
|
2113
|
+
// ../../../node_modules/iconv-lite/encodings/sbcs-codec.js
|
|
2114
2114
|
var require_sbcs_codec = __commonJS({
|
|
2115
|
-
"../../../node_modules/
|
|
2115
|
+
"../../../node_modules/iconv-lite/encodings/sbcs-codec.js"(exports2) {
|
|
2116
2116
|
"use strict";
|
|
2117
2117
|
var Buffer2 = require_safer().Buffer;
|
|
2118
2118
|
exports2._sbcs = SBCSCodec;
|
|
@@ -2164,9 +2164,9 @@ var require_sbcs_codec = __commonJS({
|
|
|
2164
2164
|
}
|
|
2165
2165
|
});
|
|
2166
2166
|
|
|
2167
|
-
// ../../../node_modules/
|
|
2167
|
+
// ../../../node_modules/iconv-lite/encodings/sbcs-data.js
|
|
2168
2168
|
var require_sbcs_data = __commonJS({
|
|
2169
|
-
"../../../node_modules/
|
|
2169
|
+
"../../../node_modules/iconv-lite/encodings/sbcs-data.js"(exports2, module2) {
|
|
2170
2170
|
"use strict";
|
|
2171
2171
|
module2.exports = {
|
|
2172
2172
|
// Not supported by iconv, not sure why.
|
|
@@ -2313,9 +2313,9 @@ var require_sbcs_data = __commonJS({
|
|
|
2313
2313
|
}
|
|
2314
2314
|
});
|
|
2315
2315
|
|
|
2316
|
-
// ../../../node_modules/
|
|
2316
|
+
// ../../../node_modules/iconv-lite/encodings/sbcs-data-generated.js
|
|
2317
2317
|
var require_sbcs_data_generated = __commonJS({
|
|
2318
|
-
"../../../node_modules/
|
|
2318
|
+
"../../../node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports2, module2) {
|
|
2319
2319
|
"use strict";
|
|
2320
2320
|
module2.exports = {
|
|
2321
2321
|
"437": "cp437",
|
|
@@ -2768,9 +2768,9 @@ var require_sbcs_data_generated = __commonJS({
|
|
|
2768
2768
|
}
|
|
2769
2769
|
});
|
|
2770
2770
|
|
|
2771
|
-
// ../../../node_modules/
|
|
2771
|
+
// ../../../node_modules/iconv-lite/encodings/dbcs-codec.js
|
|
2772
2772
|
var require_dbcs_codec = __commonJS({
|
|
2773
|
-
"../../../node_modules/
|
|
2773
|
+
"../../../node_modules/iconv-lite/encodings/dbcs-codec.js"(exports2) {
|
|
2774
2774
|
"use strict";
|
|
2775
2775
|
var Buffer2 = require_safer().Buffer;
|
|
2776
2776
|
exports2._dbcs = DBCSCodec;
|
|
@@ -3115,9 +3115,9 @@ var require_dbcs_codec = __commonJS({
|
|
|
3115
3115
|
}
|
|
3116
3116
|
});
|
|
3117
3117
|
|
|
3118
|
-
// ../../../node_modules/
|
|
3118
|
+
// ../../../node_modules/iconv-lite/encodings/tables/shiftjis.json
|
|
3119
3119
|
var require_shiftjis = __commonJS({
|
|
3120
|
-
"../../../node_modules/
|
|
3120
|
+
"../../../node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports2, module2) {
|
|
3121
3121
|
module2.exports = [
|
|
3122
3122
|
["0", "\0", 128],
|
|
3123
3123
|
["a1", "\uFF61", 62],
|
|
@@ -3246,9 +3246,9 @@ var require_shiftjis = __commonJS({
|
|
|
3246
3246
|
}
|
|
3247
3247
|
});
|
|
3248
3248
|
|
|
3249
|
-
// ../../../node_modules/
|
|
3249
|
+
// ../../../node_modules/iconv-lite/encodings/tables/eucjp.json
|
|
3250
3250
|
var require_eucjp = __commonJS({
|
|
3251
|
-
"../../../node_modules/
|
|
3251
|
+
"../../../node_modules/iconv-lite/encodings/tables/eucjp.json"(exports2, module2) {
|
|
3252
3252
|
module2.exports = [
|
|
3253
3253
|
["0", "\0", 127],
|
|
3254
3254
|
["8ea1", "\uFF61", 62],
|
|
@@ -3434,9 +3434,9 @@ var require_eucjp = __commonJS({
|
|
|
3434
3434
|
}
|
|
3435
3435
|
});
|
|
3436
3436
|
|
|
3437
|
-
// ../../../node_modules/
|
|
3437
|
+
// ../../../node_modules/iconv-lite/encodings/tables/cp936.json
|
|
3438
3438
|
var require_cp936 = __commonJS({
|
|
3439
|
-
"../../../node_modules/
|
|
3439
|
+
"../../../node_modules/iconv-lite/encodings/tables/cp936.json"(exports2, module2) {
|
|
3440
3440
|
module2.exports = [
|
|
3441
3441
|
["0", "\0", 127, "\u20AC"],
|
|
3442
3442
|
["8140", "\u4E02\u4E04\u4E05\u4E06\u4E0F\u4E12\u4E17\u4E1F\u4E20\u4E21\u4E23\u4E26\u4E29\u4E2E\u4E2F\u4E31\u4E33\u4E35\u4E37\u4E3C\u4E40\u4E41\u4E42\u4E44\u4E46\u4E4A\u4E51\u4E55\u4E57\u4E5A\u4E5B\u4E62\u4E63\u4E64\u4E65\u4E67\u4E68\u4E6A", 5, "\u4E72\u4E74", 9, "\u4E7F", 6, "\u4E87\u4E8A"],
|
|
@@ -3704,9 +3704,9 @@ var require_cp936 = __commonJS({
|
|
|
3704
3704
|
}
|
|
3705
3705
|
});
|
|
3706
3706
|
|
|
3707
|
-
// ../../../node_modules/
|
|
3707
|
+
// ../../../node_modules/iconv-lite/encodings/tables/gbk-added.json
|
|
3708
3708
|
var require_gbk_added = __commonJS({
|
|
3709
|
-
"../../../node_modules/
|
|
3709
|
+
"../../../node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports2, module2) {
|
|
3710
3710
|
module2.exports = [
|
|
3711
3711
|
["a140", "\uE4C6", 62],
|
|
3712
3712
|
["a180", "\uE505", 32],
|
|
@@ -3765,16 +3765,16 @@ var require_gbk_added = __commonJS({
|
|
|
3765
3765
|
}
|
|
3766
3766
|
});
|
|
3767
3767
|
|
|
3768
|
-
// ../../../node_modules/
|
|
3768
|
+
// ../../../node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
|
|
3769
3769
|
var require_gb18030_ranges = __commonJS({
|
|
3770
|
-
"../../../node_modules/
|
|
3770
|
+
"../../../node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports2, module2) {
|
|
3771
3771
|
module2.exports = { uChars: [128, 165, 169, 178, 184, 216, 226, 235, 238, 244, 248, 251, 253, 258, 276, 284, 300, 325, 329, 334, 364, 463, 465, 467, 469, 471, 473, 475, 477, 506, 594, 610, 712, 716, 730, 930, 938, 962, 970, 1026, 1104, 1106, 8209, 8215, 8218, 8222, 8231, 8241, 8244, 8246, 8252, 8365, 8452, 8454, 8458, 8471, 8482, 8556, 8570, 8596, 8602, 8713, 8720, 8722, 8726, 8731, 8737, 8740, 8742, 8748, 8751, 8760, 8766, 8777, 8781, 8787, 8802, 8808, 8816, 8854, 8858, 8870, 8896, 8979, 9322, 9372, 9548, 9588, 9616, 9622, 9634, 9652, 9662, 9672, 9676, 9680, 9702, 9735, 9738, 9793, 9795, 11906, 11909, 11913, 11917, 11928, 11944, 11947, 11951, 11956, 11960, 11964, 11979, 12284, 12292, 12312, 12319, 12330, 12351, 12436, 12447, 12535, 12543, 12586, 12842, 12850, 12964, 13200, 13215, 13218, 13253, 13263, 13267, 13270, 13384, 13428, 13727, 13839, 13851, 14617, 14703, 14801, 14816, 14964, 15183, 15471, 15585, 16471, 16736, 17208, 17325, 17330, 17374, 17623, 17997, 18018, 18212, 18218, 18301, 18318, 18760, 18811, 18814, 18820, 18823, 18844, 18848, 18872, 19576, 19620, 19738, 19887, 40870, 59244, 59336, 59367, 59413, 59417, 59423, 59431, 59437, 59443, 59452, 59460, 59478, 59493, 63789, 63866, 63894, 63976, 63986, 64016, 64018, 64021, 64025, 64034, 64037, 64042, 65074, 65093, 65107, 65112, 65127, 65132, 65375, 65510, 65536], gbChars: [0, 36, 38, 45, 50, 81, 89, 95, 96, 100, 103, 104, 105, 109, 126, 133, 148, 172, 175, 179, 208, 306, 307, 308, 309, 310, 311, 312, 313, 341, 428, 443, 544, 545, 558, 741, 742, 749, 750, 805, 819, 820, 7922, 7924, 7925, 7927, 7934, 7943, 7944, 7945, 7950, 8062, 8148, 8149, 8152, 8164, 8174, 8236, 8240, 8262, 8264, 8374, 8380, 8381, 8384, 8388, 8390, 8392, 8393, 8394, 8396, 8401, 8406, 8416, 8419, 8424, 8437, 8439, 8445, 8482, 8485, 8496, 8521, 8603, 8936, 8946, 9046, 9050, 9063, 9066, 9076, 9092, 9100, 9108, 9111, 9113, 9131, 9162, 9164, 9218, 9219, 11329, 11331, 11334, 11336, 11346, 11361, 11363, 11366, 11370, 11372, 11375, 11389, 11682, 11686, 11687, 11692, 11694, 11714, 11716, 11723, 11725, 11730, 11736, 11982, 11989, 12102, 12336, 12348, 12350, 12384, 12393, 12395, 12397, 12510, 12553, 12851, 12962, 12973, 13738, 13823, 13919, 13933, 14080, 14298, 14585, 14698, 15583, 15847, 16318, 16434, 16438, 16481, 16729, 17102, 17122, 17315, 17320, 17402, 17418, 17859, 17909, 17911, 17915, 17916, 17936, 17939, 17961, 18664, 18703, 18814, 18962, 19043, 33469, 33470, 33471, 33484, 33485, 33490, 33497, 33501, 33505, 33513, 33520, 33536, 33550, 37845, 37921, 37948, 38029, 38038, 38064, 38065, 38066, 38069, 38075, 38076, 38078, 39108, 39109, 39113, 39114, 39115, 39116, 39265, 39394, 189e3] };
|
|
3772
3772
|
}
|
|
3773
3773
|
});
|
|
3774
3774
|
|
|
3775
|
-
// ../../../node_modules/
|
|
3775
|
+
// ../../../node_modules/iconv-lite/encodings/tables/cp949.json
|
|
3776
3776
|
var require_cp949 = __commonJS({
|
|
3777
|
-
"../../../node_modules/
|
|
3777
|
+
"../../../node_modules/iconv-lite/encodings/tables/cp949.json"(exports2, module2) {
|
|
3778
3778
|
module2.exports = [
|
|
3779
3779
|
["0", "\0", 127],
|
|
3780
3780
|
["8141", "\uAC02\uAC03\uAC05\uAC06\uAC0B", 4, "\uAC18\uAC1E\uAC1F\uAC21\uAC22\uAC23\uAC25", 6, "\uAC2E\uAC32\uAC33\uAC34"],
|
|
@@ -4051,9 +4051,9 @@ var require_cp949 = __commonJS({
|
|
|
4051
4051
|
}
|
|
4052
4052
|
});
|
|
4053
4053
|
|
|
4054
|
-
// ../../../node_modules/
|
|
4054
|
+
// ../../../node_modules/iconv-lite/encodings/tables/cp950.json
|
|
4055
4055
|
var require_cp950 = __commonJS({
|
|
4056
|
-
"../../../node_modules/
|
|
4056
|
+
"../../../node_modules/iconv-lite/encodings/tables/cp950.json"(exports2, module2) {
|
|
4057
4057
|
module2.exports = [
|
|
4058
4058
|
["0", "\0", 127],
|
|
4059
4059
|
["a140", "\u3000\uFF0C\u3001\u3002\uFF0E\u2027\uFF1B\uFF1A\uFF1F\uFF01\uFE30\u2026\u2025\uFE50\uFE51\uFE52\xB7\uFE54\uFE55\uFE56\uFE57\uFF5C\u2013\uFE31\u2014\uFE33\u2574\uFE34\uFE4F\uFF08\uFF09\uFE35\uFE36\uFF5B\uFF5D\uFE37\uFE38\u3014\u3015\uFE39\uFE3A\u3010\u3011\uFE3B\uFE3C\u300A\u300B\uFE3D\uFE3E\u3008\u3009\uFE3F\uFE40\u300C\u300D\uFE41\uFE42\u300E\u300F\uFE43\uFE44\uFE59\uFE5A"],
|
|
@@ -4234,9 +4234,9 @@ var require_cp950 = __commonJS({
|
|
|
4234
4234
|
}
|
|
4235
4235
|
});
|
|
4236
4236
|
|
|
4237
|
-
// ../../../node_modules/
|
|
4237
|
+
// ../../../node_modules/iconv-lite/encodings/tables/big5-added.json
|
|
4238
4238
|
var require_big5_added = __commonJS({
|
|
4239
|
-
"../../../node_modules/
|
|
4239
|
+
"../../../node_modules/iconv-lite/encodings/tables/big5-added.json"(exports2, module2) {
|
|
4240
4240
|
module2.exports = [
|
|
4241
4241
|
["8740", "\u43F0\u4C32\u4603\u45A6\u4578\u{27267}\u4D77\u45B3\u{27CB1}\u4CE2\u{27CC5}\u3B95\u4736\u4744\u4C47\u4C40\u{242BF}\u{23617}\u{27352}\u{26E8B}\u{270D2}\u4C57\u{2A351}\u474F\u45DA\u4C85\u{27C6C}\u4D07\u4AA4\u46A1\u{26B23}\u7225\u{25A54}\u{21A63}\u{23E06}\u{23F61}\u664D\u56FB"],
|
|
4242
4242
|
["8767", "\u7D95\u591D\u{28BB9}\u3DF4\u9734\u{27BEF}\u5BDB\u{21D5E}\u5AA4\u3625\u{29EB0}\u5AD1\u5BB7\u5CFC\u676E\u8593\u{29945}\u7461\u749D\u3875\u{21D53}\u{2369E}\u{26021}\u3EEC"],
|
|
@@ -4362,9 +4362,9 @@ var require_big5_added = __commonJS({
|
|
|
4362
4362
|
}
|
|
4363
4363
|
});
|
|
4364
4364
|
|
|
4365
|
-
// ../../../node_modules/
|
|
4365
|
+
// ../../../node_modules/iconv-lite/encodings/dbcs-data.js
|
|
4366
4366
|
var require_dbcs_data = __commonJS({
|
|
4367
|
-
"../../../node_modules/
|
|
4367
|
+
"../../../node_modules/iconv-lite/encodings/dbcs-data.js"(exports2, module2) {
|
|
4368
4368
|
"use strict";
|
|
4369
4369
|
module2.exports = {
|
|
4370
4370
|
// == Japanese/ShiftJIS ====================================================
|
|
@@ -4554,9 +4554,9 @@ var require_dbcs_data = __commonJS({
|
|
|
4554
4554
|
}
|
|
4555
4555
|
});
|
|
4556
4556
|
|
|
4557
|
-
// ../../../node_modules/
|
|
4557
|
+
// ../../../node_modules/iconv-lite/encodings/index.js
|
|
4558
4558
|
var require_encodings = __commonJS({
|
|
4559
|
-
"../../../node_modules/
|
|
4559
|
+
"../../../node_modules/iconv-lite/encodings/index.js"(exports2, module2) {
|
|
4560
4560
|
"use strict";
|
|
4561
4561
|
var modules = [
|
|
4562
4562
|
require_internal(),
|
|
@@ -4578,9 +4578,9 @@ var require_encodings = __commonJS({
|
|
|
4578
4578
|
}
|
|
4579
4579
|
});
|
|
4580
4580
|
|
|
4581
|
-
// ../../../node_modules/
|
|
4581
|
+
// ../../../node_modules/iconv-lite/lib/streams.js
|
|
4582
4582
|
var require_streams = __commonJS({
|
|
4583
|
-
"../../../node_modules/
|
|
4583
|
+
"../../../node_modules/iconv-lite/lib/streams.js"(exports2, module2) {
|
|
4584
4584
|
"use strict";
|
|
4585
4585
|
var Buffer2 = require("buffer").Buffer;
|
|
4586
4586
|
var Transform = require("stream").Transform;
|
|
@@ -4683,9 +4683,9 @@ var require_streams = __commonJS({
|
|
|
4683
4683
|
}
|
|
4684
4684
|
});
|
|
4685
4685
|
|
|
4686
|
-
// ../../../node_modules/
|
|
4686
|
+
// ../../../node_modules/iconv-lite/lib/extend-node.js
|
|
4687
4687
|
var require_extend_node = __commonJS({
|
|
4688
|
-
"../../../node_modules/
|
|
4688
|
+
"../../../node_modules/iconv-lite/lib/extend-node.js"(exports2, module2) {
|
|
4689
4689
|
"use strict";
|
|
4690
4690
|
var Buffer2 = require("buffer").Buffer;
|
|
4691
4691
|
module2.exports = function(iconv) {
|
|
@@ -4836,9 +4836,9 @@ var require_extend_node = __commonJS({
|
|
|
4836
4836
|
}
|
|
4837
4837
|
});
|
|
4838
4838
|
|
|
4839
|
-
// ../../../node_modules/
|
|
4839
|
+
// ../../../node_modules/iconv-lite/lib/index.js
|
|
4840
4840
|
var require_lib = __commonJS({
|
|
4841
|
-
"../../../node_modules/
|
|
4841
|
+
"../../../node_modules/iconv-lite/lib/index.js"(exports2, module2) {
|
|
4842
4842
|
"use strict";
|
|
4843
4843
|
var Buffer2 = require_safer().Buffer;
|
|
4844
4844
|
var bomHandling = require_bom_handling();
|
|
@@ -16502,9 +16502,9 @@ var require_side_channel = __commonJS({
|
|
|
16502
16502
|
}
|
|
16503
16503
|
});
|
|
16504
16504
|
|
|
16505
|
-
// ../../../node_modules/
|
|
16505
|
+
// ../../../node_modules/qs/lib/formats.js
|
|
16506
16506
|
var require_formats = __commonJS({
|
|
16507
|
-
"../../../node_modules/
|
|
16507
|
+
"../../../node_modules/qs/lib/formats.js"(exports2, module2) {
|
|
16508
16508
|
"use strict";
|
|
16509
16509
|
var replace = String.prototype.replace;
|
|
16510
16510
|
var percentTwenties = /%20/g;
|
|
@@ -16528,9 +16528,9 @@ var require_formats = __commonJS({
|
|
|
16528
16528
|
}
|
|
16529
16529
|
});
|
|
16530
16530
|
|
|
16531
|
-
// ../../../node_modules/
|
|
16531
|
+
// ../../../node_modules/qs/lib/utils.js
|
|
16532
16532
|
var require_utils = __commonJS({
|
|
16533
|
-
"../../../node_modules/
|
|
16533
|
+
"../../../node_modules/qs/lib/utils.js"(exports2, module2) {
|
|
16534
16534
|
"use strict";
|
|
16535
16535
|
var formats = require_formats();
|
|
16536
16536
|
var getSideChannel = require_side_channel();
|
|
@@ -16553,7 +16553,7 @@ var require_utils = __commonJS({
|
|
|
16553
16553
|
var hexTable = (function() {
|
|
16554
16554
|
var array = [];
|
|
16555
16555
|
for (var i = 0; i < 256; ++i) {
|
|
16556
|
-
array
|
|
16556
|
+
array.push("%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase());
|
|
16557
16557
|
}
|
|
16558
16558
|
return array;
|
|
16559
16559
|
})();
|
|
@@ -16565,7 +16565,7 @@ var require_utils = __commonJS({
|
|
|
16565
16565
|
var compacted = [];
|
|
16566
16566
|
for (var j = 0; j < obj.length; ++j) {
|
|
16567
16567
|
if (typeof obj[j] !== "undefined") {
|
|
16568
|
-
compacted
|
|
16568
|
+
compacted.push(obj[j]);
|
|
16569
16569
|
}
|
|
16570
16570
|
}
|
|
16571
16571
|
item.obj[item.prop] = compacted;
|
|
@@ -16589,11 +16589,7 @@ var require_utils = __commonJS({
|
|
|
16589
16589
|
}
|
|
16590
16590
|
if (typeof source !== "object" && typeof source !== "function") {
|
|
16591
16591
|
if (isArray(target)) {
|
|
16592
|
-
|
|
16593
|
-
if (options && typeof options.arrayLimit === "number" && nextIndex > options.arrayLimit) {
|
|
16594
|
-
return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
|
|
16595
|
-
}
|
|
16596
|
-
target[nextIndex] = source;
|
|
16592
|
+
target.push(source);
|
|
16597
16593
|
} else if (target && typeof target === "object") {
|
|
16598
16594
|
if (isOverflow(target)) {
|
|
16599
16595
|
var newIndex = getMaxIndex(target) + 1;
|
|
@@ -16625,13 +16621,9 @@ var require_utils = __commonJS({
|
|
|
16625
16621
|
}
|
|
16626
16622
|
return markOverflow(result, getMaxIndex(source) + 1);
|
|
16627
16623
|
}
|
|
16628
|
-
|
|
16624
|
+
return [
|
|
16629
16625
|
target
|
|
16630
16626
|
].concat(source);
|
|
16631
|
-
if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
|
|
16632
|
-
return markOverflow(arrayToObject(combined, options), combined.length - 1);
|
|
16633
|
-
}
|
|
16634
|
-
return combined;
|
|
16635
16627
|
}
|
|
16636
16628
|
var mergeTarget = target;
|
|
16637
16629
|
if (isArray(target) && !isArray(source)) {
|
|
@@ -16644,7 +16636,7 @@ var require_utils = __commonJS({
|
|
|
16644
16636
|
if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
|
|
16645
16637
|
target[i] = merge2(targetItem, item, options);
|
|
16646
16638
|
} else {
|
|
16647
|
-
target
|
|
16639
|
+
target.push(item);
|
|
16648
16640
|
}
|
|
16649
16641
|
} else {
|
|
16650
16642
|
target[i] = item;
|
|
@@ -16659,15 +16651,6 @@ var require_utils = __commonJS({
|
|
|
16659
16651
|
} else {
|
|
16660
16652
|
acc[key] = value;
|
|
16661
16653
|
}
|
|
16662
|
-
if (isOverflow(source) && !isOverflow(acc)) {
|
|
16663
|
-
markOverflow(acc, getMaxIndex(source));
|
|
16664
|
-
}
|
|
16665
|
-
if (isOverflow(acc)) {
|
|
16666
|
-
var keyNum = parseInt(key, 10);
|
|
16667
|
-
if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
|
|
16668
|
-
setMaxIndex(acc, keyNum);
|
|
16669
|
-
}
|
|
16670
|
-
}
|
|
16671
16654
|
return acc;
|
|
16672
16655
|
}, mergeTarget);
|
|
16673
16656
|
}, "merge");
|
|
@@ -16752,11 +16735,11 @@ var require_utils = __commonJS({
|
|
|
16752
16735
|
var key = keys[j];
|
|
16753
16736
|
var val = obj[key];
|
|
16754
16737
|
if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
|
|
16755
|
-
queue
|
|
16738
|
+
queue.push({
|
|
16756
16739
|
obj,
|
|
16757
16740
|
prop: key
|
|
16758
|
-
};
|
|
16759
|
-
refs
|
|
16741
|
+
});
|
|
16742
|
+
refs.push(val);
|
|
16760
16743
|
}
|
|
16761
16744
|
}
|
|
16762
16745
|
}
|
|
@@ -16791,7 +16774,7 @@ var require_utils = __commonJS({
|
|
|
16791
16774
|
if (isArray(val)) {
|
|
16792
16775
|
var mapped = [];
|
|
16793
16776
|
for (var i = 0; i < val.length; i += 1) {
|
|
16794
|
-
mapped
|
|
16777
|
+
mapped.push(fn(val[i]));
|
|
16795
16778
|
}
|
|
16796
16779
|
return mapped;
|
|
16797
16780
|
}
|
|
@@ -16807,16 +16790,15 @@ var require_utils = __commonJS({
|
|
|
16807
16790
|
isBuffer,
|
|
16808
16791
|
isOverflow,
|
|
16809
16792
|
isRegExp,
|
|
16810
|
-
markOverflow,
|
|
16811
16793
|
maybeMap,
|
|
16812
16794
|
merge
|
|
16813
16795
|
};
|
|
16814
16796
|
}
|
|
16815
16797
|
});
|
|
16816
16798
|
|
|
16817
|
-
// ../../../node_modules/
|
|
16799
|
+
// ../../../node_modules/qs/lib/stringify.js
|
|
16818
16800
|
var require_stringify = __commonJS({
|
|
16819
|
-
"../../../node_modules/
|
|
16801
|
+
"../../../node_modules/qs/lib/stringify.js"(exports2, module2) {
|
|
16820
16802
|
"use strict";
|
|
16821
16803
|
var getSideChannel = require_side_channel();
|
|
16822
16804
|
var utils = require_utils();
|
|
@@ -17069,9 +17051,9 @@ var require_stringify = __commonJS({
|
|
|
17069
17051
|
}
|
|
17070
17052
|
});
|
|
17071
17053
|
|
|
17072
|
-
// ../../../node_modules/
|
|
17054
|
+
// ../../../node_modules/qs/lib/parse.js
|
|
17073
17055
|
var require_parse = __commonJS({
|
|
17074
|
-
"../../../node_modules/
|
|
17056
|
+
"../../../node_modules/qs/lib/parse.js"(exports2, module2) {
|
|
17075
17057
|
"use strict";
|
|
17076
17058
|
var utils = require_utils();
|
|
17077
17059
|
var has = Object.prototype.hasOwnProperty;
|
|
@@ -17170,12 +17152,6 @@ var require_parse = __commonJS({
|
|
|
17170
17152
|
val
|
|
17171
17153
|
] : val;
|
|
17172
17154
|
}
|
|
17173
|
-
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
17174
|
-
if (options.throwOnLimitExceeded) {
|
|
17175
|
-
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
17176
|
-
}
|
|
17177
|
-
val = utils.combine([], val, options.arrayLimit, options.plainObjects);
|
|
17178
|
-
}
|
|
17179
17155
|
if (key !== null) {
|
|
17180
17156
|
var existing = has.call(obj, key);
|
|
17181
17157
|
if (existing && options.duplicates === "combine") {
|
|
@@ -17210,19 +17186,13 @@ var require_parse = __commonJS({
|
|
|
17210
17186
|
var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
|
|
17211
17187
|
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
|
|
17212
17188
|
var index = parseInt(decodedRoot, 10);
|
|
17213
|
-
var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
|
|
17214
17189
|
if (!options.parseArrays && decodedRoot === "") {
|
|
17215
17190
|
obj = {
|
|
17216
17191
|
0: leaf
|
|
17217
17192
|
};
|
|
17218
|
-
} else if (
|
|
17193
|
+
} else if (!isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays && index <= options.arrayLimit) {
|
|
17219
17194
|
obj = [];
|
|
17220
17195
|
obj[index] = leaf;
|
|
17221
|
-
} else if (isValidArrayIndex && options.throwOnLimitExceeded) {
|
|
17222
|
-
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
17223
|
-
} else if (isValidArrayIndex) {
|
|
17224
|
-
obj[index] = leaf;
|
|
17225
|
-
utils.markOverflow(obj, index);
|
|
17226
17196
|
} else if (decodedRoot !== "__proto__") {
|
|
17227
17197
|
obj[decodedRoot] = leaf;
|
|
17228
17198
|
}
|
|
@@ -17254,7 +17224,7 @@ var require_parse = __commonJS({
|
|
|
17254
17224
|
return;
|
|
17255
17225
|
}
|
|
17256
17226
|
}
|
|
17257
|
-
keys
|
|
17227
|
+
keys.push(parent);
|
|
17258
17228
|
}
|
|
17259
17229
|
var i = 0;
|
|
17260
17230
|
while ((segment = child.exec(key)) !== null && i < options.depth) {
|
|
@@ -17265,13 +17235,13 @@ var require_parse = __commonJS({
|
|
|
17265
17235
|
return;
|
|
17266
17236
|
}
|
|
17267
17237
|
}
|
|
17268
|
-
keys
|
|
17238
|
+
keys.push(segment[1]);
|
|
17269
17239
|
}
|
|
17270
17240
|
if (segment) {
|
|
17271
17241
|
if (options.strictDepth === true) {
|
|
17272
17242
|
throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
|
|
17273
17243
|
}
|
|
17274
|
-
keys
|
|
17244
|
+
keys.push("[" + key.slice(segment.index) + "]");
|
|
17275
17245
|
}
|
|
17276
17246
|
return keys;
|
|
17277
17247
|
}, "splitKeyIntoSegments");
|
|
@@ -17360,9 +17330,9 @@ var require_parse = __commonJS({
|
|
|
17360
17330
|
}
|
|
17361
17331
|
});
|
|
17362
17332
|
|
|
17363
|
-
// ../../../node_modules/
|
|
17333
|
+
// ../../../node_modules/qs/lib/index.js
|
|
17364
17334
|
var require_lib2 = __commonJS({
|
|
17365
|
-
"../../../node_modules/
|
|
17335
|
+
"../../../node_modules/qs/lib/index.js"(exports2, module2) {
|
|
17366
17336
|
"use strict";
|
|
17367
17337
|
var stringify = require_stringify();
|
|
17368
17338
|
var parse = require_parse();
|
|
@@ -18069,8 +18039,8 @@ var require_node2 = __commonJS({
|
|
|
18069
18039
|
}
|
|
18070
18040
|
break;
|
|
18071
18041
|
case "FILE":
|
|
18072
|
-
var
|
|
18073
|
-
stream2 = new
|
|
18042
|
+
var fs2 = require("fs");
|
|
18043
|
+
stream2 = new fs2.SyncWriteStream(fd2, {
|
|
18074
18044
|
autoClose: false
|
|
18075
18045
|
});
|
|
18076
18046
|
stream2._type = "fs";
|
|
@@ -18839,8 +18809,8 @@ var require_node3 = __commonJS({
|
|
|
18839
18809
|
}
|
|
18840
18810
|
break;
|
|
18841
18811
|
case "FILE":
|
|
18842
|
-
var
|
|
18843
|
-
stream2 = new
|
|
18812
|
+
var fs2 = require("fs");
|
|
18813
|
+
stream2 = new fs2.SyncWriteStream(fd2, {
|
|
18844
18814
|
autoClose: false
|
|
18845
18815
|
});
|
|
18846
18816
|
stream2._type = "fs";
|
|
@@ -19727,886 +19697,13 @@ var require_init = __commonJS({
|
|
|
19727
19697
|
}
|
|
19728
19698
|
});
|
|
19729
19699
|
|
|
19730
|
-
// ../../../node_modules/express/node_modules/qs/lib/formats.js
|
|
19731
|
-
var require_formats2 = __commonJS({
|
|
19732
|
-
"../../../node_modules/express/node_modules/qs/lib/formats.js"(exports2, module2) {
|
|
19733
|
-
"use strict";
|
|
19734
|
-
var replace = String.prototype.replace;
|
|
19735
|
-
var percentTwenties = /%20/g;
|
|
19736
|
-
var Format = {
|
|
19737
|
-
RFC1738: "RFC1738",
|
|
19738
|
-
RFC3986: "RFC3986"
|
|
19739
|
-
};
|
|
19740
|
-
module2.exports = {
|
|
19741
|
-
"default": Format.RFC3986,
|
|
19742
|
-
formatters: {
|
|
19743
|
-
RFC1738: /* @__PURE__ */ __name(function(value) {
|
|
19744
|
-
return replace.call(value, percentTwenties, "+");
|
|
19745
|
-
}, "RFC1738"),
|
|
19746
|
-
RFC3986: /* @__PURE__ */ __name(function(value) {
|
|
19747
|
-
return String(value);
|
|
19748
|
-
}, "RFC3986")
|
|
19749
|
-
},
|
|
19750
|
-
RFC1738: Format.RFC1738,
|
|
19751
|
-
RFC3986: Format.RFC3986
|
|
19752
|
-
};
|
|
19753
|
-
}
|
|
19754
|
-
});
|
|
19755
|
-
|
|
19756
|
-
// ../../../node_modules/express/node_modules/qs/lib/utils.js
|
|
19757
|
-
var require_utils2 = __commonJS({
|
|
19758
|
-
"../../../node_modules/express/node_modules/qs/lib/utils.js"(exports2, module2) {
|
|
19759
|
-
"use strict";
|
|
19760
|
-
var formats = require_formats2();
|
|
19761
|
-
var getSideChannel = require_side_channel();
|
|
19762
|
-
var has = Object.prototype.hasOwnProperty;
|
|
19763
|
-
var isArray = Array.isArray;
|
|
19764
|
-
var overflowChannel = getSideChannel();
|
|
19765
|
-
var markOverflow = /* @__PURE__ */ __name(function markOverflow2(obj, maxIndex) {
|
|
19766
|
-
overflowChannel.set(obj, maxIndex);
|
|
19767
|
-
return obj;
|
|
19768
|
-
}, "markOverflow");
|
|
19769
|
-
var isOverflow = /* @__PURE__ */ __name(function isOverflow2(obj) {
|
|
19770
|
-
return overflowChannel.has(obj);
|
|
19771
|
-
}, "isOverflow");
|
|
19772
|
-
var getMaxIndex = /* @__PURE__ */ __name(function getMaxIndex2(obj) {
|
|
19773
|
-
return overflowChannel.get(obj);
|
|
19774
|
-
}, "getMaxIndex");
|
|
19775
|
-
var setMaxIndex = /* @__PURE__ */ __name(function setMaxIndex2(obj, maxIndex) {
|
|
19776
|
-
overflowChannel.set(obj, maxIndex);
|
|
19777
|
-
}, "setMaxIndex");
|
|
19778
|
-
var hexTable = (function() {
|
|
19779
|
-
var array = [];
|
|
19780
|
-
for (var i = 0; i < 256; ++i) {
|
|
19781
|
-
array[array.length] = "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase();
|
|
19782
|
-
}
|
|
19783
|
-
return array;
|
|
19784
|
-
})();
|
|
19785
|
-
var compactQueue = /* @__PURE__ */ __name(function compactQueue2(queue) {
|
|
19786
|
-
while (queue.length > 1) {
|
|
19787
|
-
var item = queue.pop();
|
|
19788
|
-
var obj = item.obj[item.prop];
|
|
19789
|
-
if (isArray(obj)) {
|
|
19790
|
-
var compacted = [];
|
|
19791
|
-
for (var j = 0; j < obj.length; ++j) {
|
|
19792
|
-
if (typeof obj[j] !== "undefined") {
|
|
19793
|
-
compacted[compacted.length] = obj[j];
|
|
19794
|
-
}
|
|
19795
|
-
}
|
|
19796
|
-
item.obj[item.prop] = compacted;
|
|
19797
|
-
}
|
|
19798
|
-
}
|
|
19799
|
-
}, "compactQueue");
|
|
19800
|
-
var arrayToObject = /* @__PURE__ */ __name(function arrayToObject2(source, options) {
|
|
19801
|
-
var obj = options && options.plainObjects ? {
|
|
19802
|
-
__proto__: null
|
|
19803
|
-
} : {};
|
|
19804
|
-
for (var i = 0; i < source.length; ++i) {
|
|
19805
|
-
if (typeof source[i] !== "undefined") {
|
|
19806
|
-
obj[i] = source[i];
|
|
19807
|
-
}
|
|
19808
|
-
}
|
|
19809
|
-
return obj;
|
|
19810
|
-
}, "arrayToObject");
|
|
19811
|
-
var merge = /* @__PURE__ */ __name(function merge2(target, source, options) {
|
|
19812
|
-
if (!source) {
|
|
19813
|
-
return target;
|
|
19814
|
-
}
|
|
19815
|
-
if (typeof source !== "object" && typeof source !== "function") {
|
|
19816
|
-
if (isArray(target)) {
|
|
19817
|
-
var nextIndex = target.length;
|
|
19818
|
-
if (options && typeof options.arrayLimit === "number" && nextIndex > options.arrayLimit) {
|
|
19819
|
-
return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
|
|
19820
|
-
}
|
|
19821
|
-
target[nextIndex] = source;
|
|
19822
|
-
} else if (target && typeof target === "object") {
|
|
19823
|
-
if (isOverflow(target)) {
|
|
19824
|
-
var newIndex = getMaxIndex(target) + 1;
|
|
19825
|
-
target[newIndex] = source;
|
|
19826
|
-
setMaxIndex(target, newIndex);
|
|
19827
|
-
} else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
|
|
19828
|
-
target[source] = true;
|
|
19829
|
-
}
|
|
19830
|
-
} else {
|
|
19831
|
-
return [
|
|
19832
|
-
target,
|
|
19833
|
-
source
|
|
19834
|
-
];
|
|
19835
|
-
}
|
|
19836
|
-
return target;
|
|
19837
|
-
}
|
|
19838
|
-
if (!target || typeof target !== "object") {
|
|
19839
|
-
if (isOverflow(source)) {
|
|
19840
|
-
var sourceKeys = Object.keys(source);
|
|
19841
|
-
var result = options && options.plainObjects ? {
|
|
19842
|
-
__proto__: null,
|
|
19843
|
-
0: target
|
|
19844
|
-
} : {
|
|
19845
|
-
0: target
|
|
19846
|
-
};
|
|
19847
|
-
for (var m = 0; m < sourceKeys.length; m++) {
|
|
19848
|
-
var oldKey = parseInt(sourceKeys[m], 10);
|
|
19849
|
-
result[oldKey + 1] = source[sourceKeys[m]];
|
|
19850
|
-
}
|
|
19851
|
-
return markOverflow(result, getMaxIndex(source) + 1);
|
|
19852
|
-
}
|
|
19853
|
-
var combined = [
|
|
19854
|
-
target
|
|
19855
|
-
].concat(source);
|
|
19856
|
-
if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
|
|
19857
|
-
return markOverflow(arrayToObject(combined, options), combined.length - 1);
|
|
19858
|
-
}
|
|
19859
|
-
return combined;
|
|
19860
|
-
}
|
|
19861
|
-
var mergeTarget = target;
|
|
19862
|
-
if (isArray(target) && !isArray(source)) {
|
|
19863
|
-
mergeTarget = arrayToObject(target, options);
|
|
19864
|
-
}
|
|
19865
|
-
if (isArray(target) && isArray(source)) {
|
|
19866
|
-
source.forEach(function(item, i) {
|
|
19867
|
-
if (has.call(target, i)) {
|
|
19868
|
-
var targetItem = target[i];
|
|
19869
|
-
if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
|
|
19870
|
-
target[i] = merge2(targetItem, item, options);
|
|
19871
|
-
} else {
|
|
19872
|
-
target[target.length] = item;
|
|
19873
|
-
}
|
|
19874
|
-
} else {
|
|
19875
|
-
target[i] = item;
|
|
19876
|
-
}
|
|
19877
|
-
});
|
|
19878
|
-
return target;
|
|
19879
|
-
}
|
|
19880
|
-
return Object.keys(source).reduce(function(acc, key) {
|
|
19881
|
-
var value = source[key];
|
|
19882
|
-
if (has.call(acc, key)) {
|
|
19883
|
-
acc[key] = merge2(acc[key], value, options);
|
|
19884
|
-
} else {
|
|
19885
|
-
acc[key] = value;
|
|
19886
|
-
}
|
|
19887
|
-
if (isOverflow(source) && !isOverflow(acc)) {
|
|
19888
|
-
markOverflow(acc, getMaxIndex(source));
|
|
19889
|
-
}
|
|
19890
|
-
if (isOverflow(acc)) {
|
|
19891
|
-
var keyNum = parseInt(key, 10);
|
|
19892
|
-
if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
|
|
19893
|
-
setMaxIndex(acc, keyNum);
|
|
19894
|
-
}
|
|
19895
|
-
}
|
|
19896
|
-
return acc;
|
|
19897
|
-
}, mergeTarget);
|
|
19898
|
-
}, "merge");
|
|
19899
|
-
var assign = /* @__PURE__ */ __name(function assignSingleSource(target, source) {
|
|
19900
|
-
return Object.keys(source).reduce(function(acc, key) {
|
|
19901
|
-
acc[key] = source[key];
|
|
19902
|
-
return acc;
|
|
19903
|
-
}, target);
|
|
19904
|
-
}, "assignSingleSource");
|
|
19905
|
-
var decode = /* @__PURE__ */ __name(function(str, defaultDecoder, charset) {
|
|
19906
|
-
var strWithoutPlus = str.replace(/\+/g, " ");
|
|
19907
|
-
if (charset === "iso-8859-1") {
|
|
19908
|
-
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
19909
|
-
}
|
|
19910
|
-
try {
|
|
19911
|
-
return decodeURIComponent(strWithoutPlus);
|
|
19912
|
-
} catch (e) {
|
|
19913
|
-
return strWithoutPlus;
|
|
19914
|
-
}
|
|
19915
|
-
}, "decode");
|
|
19916
|
-
var limit = 1024;
|
|
19917
|
-
var encode = /* @__PURE__ */ __name(function encode2(str, defaultEncoder, charset, kind, format) {
|
|
19918
|
-
if (str.length === 0) {
|
|
19919
|
-
return str;
|
|
19920
|
-
}
|
|
19921
|
-
var string = str;
|
|
19922
|
-
if (typeof str === "symbol") {
|
|
19923
|
-
string = Symbol.prototype.toString.call(str);
|
|
19924
|
-
} else if (typeof str !== "string") {
|
|
19925
|
-
string = String(str);
|
|
19926
|
-
}
|
|
19927
|
-
if (charset === "iso-8859-1") {
|
|
19928
|
-
return escape(string).replace(/%u[0-9a-f]{4}/gi, function($0) {
|
|
19929
|
-
return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
|
|
19930
|
-
});
|
|
19931
|
-
}
|
|
19932
|
-
var out = "";
|
|
19933
|
-
for (var j = 0; j < string.length; j += limit) {
|
|
19934
|
-
var segment = string.length >= limit ? string.slice(j, j + limit) : string;
|
|
19935
|
-
var arr = [];
|
|
19936
|
-
for (var i = 0; i < segment.length; ++i) {
|
|
19937
|
-
var c = segment.charCodeAt(i);
|
|
19938
|
-
if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
|
|
19939
|
-
arr[arr.length] = segment.charAt(i);
|
|
19940
|
-
continue;
|
|
19941
|
-
}
|
|
19942
|
-
if (c < 128) {
|
|
19943
|
-
arr[arr.length] = hexTable[c];
|
|
19944
|
-
continue;
|
|
19945
|
-
}
|
|
19946
|
-
if (c < 2048) {
|
|
19947
|
-
arr[arr.length] = hexTable[192 | c >> 6] + hexTable[128 | c & 63];
|
|
19948
|
-
continue;
|
|
19949
|
-
}
|
|
19950
|
-
if (c < 55296 || c >= 57344) {
|
|
19951
|
-
arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
19952
|
-
continue;
|
|
19953
|
-
}
|
|
19954
|
-
i += 1;
|
|
19955
|
-
c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
|
|
19956
|
-
arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
19957
|
-
}
|
|
19958
|
-
out += arr.join("");
|
|
19959
|
-
}
|
|
19960
|
-
return out;
|
|
19961
|
-
}, "encode");
|
|
19962
|
-
var compact = /* @__PURE__ */ __name(function compact2(value) {
|
|
19963
|
-
var queue = [
|
|
19964
|
-
{
|
|
19965
|
-
obj: {
|
|
19966
|
-
o: value
|
|
19967
|
-
},
|
|
19968
|
-
prop: "o"
|
|
19969
|
-
}
|
|
19970
|
-
];
|
|
19971
|
-
var refs = [];
|
|
19972
|
-
for (var i = 0; i < queue.length; ++i) {
|
|
19973
|
-
var item = queue[i];
|
|
19974
|
-
var obj = item.obj[item.prop];
|
|
19975
|
-
var keys = Object.keys(obj);
|
|
19976
|
-
for (var j = 0; j < keys.length; ++j) {
|
|
19977
|
-
var key = keys[j];
|
|
19978
|
-
var val = obj[key];
|
|
19979
|
-
if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
|
|
19980
|
-
queue[queue.length] = {
|
|
19981
|
-
obj,
|
|
19982
|
-
prop: key
|
|
19983
|
-
};
|
|
19984
|
-
refs[refs.length] = val;
|
|
19985
|
-
}
|
|
19986
|
-
}
|
|
19987
|
-
}
|
|
19988
|
-
compactQueue(queue);
|
|
19989
|
-
return value;
|
|
19990
|
-
}, "compact");
|
|
19991
|
-
var isRegExp = /* @__PURE__ */ __name(function isRegExp2(obj) {
|
|
19992
|
-
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
19993
|
-
}, "isRegExp");
|
|
19994
|
-
var isBuffer = /* @__PURE__ */ __name(function isBuffer2(obj) {
|
|
19995
|
-
if (!obj || typeof obj !== "object") {
|
|
19996
|
-
return false;
|
|
19997
|
-
}
|
|
19998
|
-
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
19999
|
-
}, "isBuffer");
|
|
20000
|
-
var combine = /* @__PURE__ */ __name(function combine2(a, b, arrayLimit, plainObjects) {
|
|
20001
|
-
if (isOverflow(a)) {
|
|
20002
|
-
var newIndex = getMaxIndex(a) + 1;
|
|
20003
|
-
a[newIndex] = b;
|
|
20004
|
-
setMaxIndex(a, newIndex);
|
|
20005
|
-
return a;
|
|
20006
|
-
}
|
|
20007
|
-
var result = [].concat(a, b);
|
|
20008
|
-
if (result.length > arrayLimit) {
|
|
20009
|
-
return markOverflow(arrayToObject(result, {
|
|
20010
|
-
plainObjects
|
|
20011
|
-
}), result.length - 1);
|
|
20012
|
-
}
|
|
20013
|
-
return result;
|
|
20014
|
-
}, "combine");
|
|
20015
|
-
var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val, fn) {
|
|
20016
|
-
if (isArray(val)) {
|
|
20017
|
-
var mapped = [];
|
|
20018
|
-
for (var i = 0; i < val.length; i += 1) {
|
|
20019
|
-
mapped[mapped.length] = fn(val[i]);
|
|
20020
|
-
}
|
|
20021
|
-
return mapped;
|
|
20022
|
-
}
|
|
20023
|
-
return fn(val);
|
|
20024
|
-
}, "maybeMap");
|
|
20025
|
-
module2.exports = {
|
|
20026
|
-
arrayToObject,
|
|
20027
|
-
assign,
|
|
20028
|
-
combine,
|
|
20029
|
-
compact,
|
|
20030
|
-
decode,
|
|
20031
|
-
encode,
|
|
20032
|
-
isBuffer,
|
|
20033
|
-
isOverflow,
|
|
20034
|
-
isRegExp,
|
|
20035
|
-
markOverflow,
|
|
20036
|
-
maybeMap,
|
|
20037
|
-
merge
|
|
20038
|
-
};
|
|
20039
|
-
}
|
|
20040
|
-
});
|
|
20041
|
-
|
|
20042
|
-
// ../../../node_modules/express/node_modules/qs/lib/stringify.js
|
|
20043
|
-
var require_stringify2 = __commonJS({
|
|
20044
|
-
"../../../node_modules/express/node_modules/qs/lib/stringify.js"(exports2, module2) {
|
|
20045
|
-
"use strict";
|
|
20046
|
-
var getSideChannel = require_side_channel();
|
|
20047
|
-
var utils = require_utils2();
|
|
20048
|
-
var formats = require_formats2();
|
|
20049
|
-
var has = Object.prototype.hasOwnProperty;
|
|
20050
|
-
var arrayPrefixGenerators = {
|
|
20051
|
-
brackets: /* @__PURE__ */ __name(function brackets(prefix) {
|
|
20052
|
-
return prefix + "[]";
|
|
20053
|
-
}, "brackets"),
|
|
20054
|
-
comma: "comma",
|
|
20055
|
-
indices: /* @__PURE__ */ __name(function indices(prefix, key) {
|
|
20056
|
-
return prefix + "[" + key + "]";
|
|
20057
|
-
}, "indices"),
|
|
20058
|
-
repeat: /* @__PURE__ */ __name(function repeat(prefix) {
|
|
20059
|
-
return prefix;
|
|
20060
|
-
}, "repeat")
|
|
20061
|
-
};
|
|
20062
|
-
var isArray = Array.isArray;
|
|
20063
|
-
var push = Array.prototype.push;
|
|
20064
|
-
var pushToArray = /* @__PURE__ */ __name(function(arr, valueOrArray) {
|
|
20065
|
-
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [
|
|
20066
|
-
valueOrArray
|
|
20067
|
-
]);
|
|
20068
|
-
}, "pushToArray");
|
|
20069
|
-
var toISO = Date.prototype.toISOString;
|
|
20070
|
-
var defaultFormat = formats["default"];
|
|
20071
|
-
var defaults = {
|
|
20072
|
-
addQueryPrefix: false,
|
|
20073
|
-
allowDots: false,
|
|
20074
|
-
allowEmptyArrays: false,
|
|
20075
|
-
arrayFormat: "indices",
|
|
20076
|
-
charset: "utf-8",
|
|
20077
|
-
charsetSentinel: false,
|
|
20078
|
-
commaRoundTrip: false,
|
|
20079
|
-
delimiter: "&",
|
|
20080
|
-
encode: true,
|
|
20081
|
-
encodeDotInKeys: false,
|
|
20082
|
-
encoder: utils.encode,
|
|
20083
|
-
encodeValuesOnly: false,
|
|
20084
|
-
filter: void 0,
|
|
20085
|
-
format: defaultFormat,
|
|
20086
|
-
formatter: formats.formatters[defaultFormat],
|
|
20087
|
-
// deprecated
|
|
20088
|
-
indices: false,
|
|
20089
|
-
serializeDate: /* @__PURE__ */ __name(function serializeDate(date) {
|
|
20090
|
-
return toISO.call(date);
|
|
20091
|
-
}, "serializeDate"),
|
|
20092
|
-
skipNulls: false,
|
|
20093
|
-
strictNullHandling: false
|
|
20094
|
-
};
|
|
20095
|
-
var isNonNullishPrimitive = /* @__PURE__ */ __name(function isNonNullishPrimitive2(v) {
|
|
20096
|
-
return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
|
|
20097
|
-
}, "isNonNullishPrimitive");
|
|
20098
|
-
var sentinel = {};
|
|
20099
|
-
var stringify = /* @__PURE__ */ __name(function stringify2(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
|
|
20100
|
-
var obj = object;
|
|
20101
|
-
var tmpSc = sideChannel;
|
|
20102
|
-
var step = 0;
|
|
20103
|
-
var findFlag = false;
|
|
20104
|
-
while ((tmpSc = tmpSc.get(sentinel)) !== void 0 && !findFlag) {
|
|
20105
|
-
var pos = tmpSc.get(object);
|
|
20106
|
-
step += 1;
|
|
20107
|
-
if (typeof pos !== "undefined") {
|
|
20108
|
-
if (pos === step) {
|
|
20109
|
-
throw new RangeError("Cyclic object value");
|
|
20110
|
-
} else {
|
|
20111
|
-
findFlag = true;
|
|
20112
|
-
}
|
|
20113
|
-
}
|
|
20114
|
-
if (typeof tmpSc.get(sentinel) === "undefined") {
|
|
20115
|
-
step = 0;
|
|
20116
|
-
}
|
|
20117
|
-
}
|
|
20118
|
-
if (typeof filter === "function") {
|
|
20119
|
-
obj = filter(prefix, obj);
|
|
20120
|
-
} else if (obj instanceof Date) {
|
|
20121
|
-
obj = serializeDate(obj);
|
|
20122
|
-
} else if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
20123
|
-
obj = utils.maybeMap(obj, function(value2) {
|
|
20124
|
-
if (value2 instanceof Date) {
|
|
20125
|
-
return serializeDate(value2);
|
|
20126
|
-
}
|
|
20127
|
-
return value2;
|
|
20128
|
-
});
|
|
20129
|
-
}
|
|
20130
|
-
if (obj === null) {
|
|
20131
|
-
if (strictNullHandling) {
|
|
20132
|
-
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix;
|
|
20133
|
-
}
|
|
20134
|
-
obj = "";
|
|
20135
|
-
}
|
|
20136
|
-
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
20137
|
-
if (encoder) {
|
|
20138
|
-
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key", format);
|
|
20139
|
-
return [
|
|
20140
|
-
formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value", format))
|
|
20141
|
-
];
|
|
20142
|
-
}
|
|
20143
|
-
return [
|
|
20144
|
-
formatter(prefix) + "=" + formatter(String(obj))
|
|
20145
|
-
];
|
|
20146
|
-
}
|
|
20147
|
-
var values = [];
|
|
20148
|
-
if (typeof obj === "undefined") {
|
|
20149
|
-
return values;
|
|
20150
|
-
}
|
|
20151
|
-
var objKeys;
|
|
20152
|
-
if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
20153
|
-
if (encodeValuesOnly && encoder) {
|
|
20154
|
-
obj = utils.maybeMap(obj, encoder);
|
|
20155
|
-
}
|
|
20156
|
-
objKeys = [
|
|
20157
|
-
{
|
|
20158
|
-
value: obj.length > 0 ? obj.join(",") || null : void 0
|
|
20159
|
-
}
|
|
20160
|
-
];
|
|
20161
|
-
} else if (isArray(filter)) {
|
|
20162
|
-
objKeys = filter;
|
|
20163
|
-
} else {
|
|
20164
|
-
var keys = Object.keys(obj);
|
|
20165
|
-
objKeys = sort ? keys.sort(sort) : keys;
|
|
20166
|
-
}
|
|
20167
|
-
var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix);
|
|
20168
|
-
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
|
|
20169
|
-
if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
|
|
20170
|
-
return adjustedPrefix + "[]";
|
|
20171
|
-
}
|
|
20172
|
-
for (var j = 0; j < objKeys.length; ++j) {
|
|
20173
|
-
var key = objKeys[j];
|
|
20174
|
-
var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key];
|
|
20175
|
-
if (skipNulls && value === null) {
|
|
20176
|
-
continue;
|
|
20177
|
-
}
|
|
20178
|
-
var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
|
|
20179
|
-
var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
|
|
20180
|
-
sideChannel.set(object, step);
|
|
20181
|
-
var valueSideChannel = getSideChannel();
|
|
20182
|
-
valueSideChannel.set(sentinel, sideChannel);
|
|
20183
|
-
pushToArray(values, stringify2(value, keyPrefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel));
|
|
20184
|
-
}
|
|
20185
|
-
return values;
|
|
20186
|
-
}, "stringify");
|
|
20187
|
-
var normalizeStringifyOptions = /* @__PURE__ */ __name(function normalizeStringifyOptions2(opts) {
|
|
20188
|
-
if (!opts) {
|
|
20189
|
-
return defaults;
|
|
20190
|
-
}
|
|
20191
|
-
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
20192
|
-
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
20193
|
-
}
|
|
20194
|
-
if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
|
|
20195
|
-
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
20196
|
-
}
|
|
20197
|
-
if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
|
|
20198
|
-
throw new TypeError("Encoder has to be a function.");
|
|
20199
|
-
}
|
|
20200
|
-
var charset = opts.charset || defaults.charset;
|
|
20201
|
-
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
20202
|
-
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
20203
|
-
}
|
|
20204
|
-
var format = formats["default"];
|
|
20205
|
-
if (typeof opts.format !== "undefined") {
|
|
20206
|
-
if (!has.call(formats.formatters, opts.format)) {
|
|
20207
|
-
throw new TypeError("Unknown format option provided.");
|
|
20208
|
-
}
|
|
20209
|
-
format = opts.format;
|
|
20210
|
-
}
|
|
20211
|
-
var formatter = formats.formatters[format];
|
|
20212
|
-
var filter = defaults.filter;
|
|
20213
|
-
if (typeof opts.filter === "function" || isArray(opts.filter)) {
|
|
20214
|
-
filter = opts.filter;
|
|
20215
|
-
}
|
|
20216
|
-
var arrayFormat;
|
|
20217
|
-
if (opts.arrayFormat in arrayPrefixGenerators) {
|
|
20218
|
-
arrayFormat = opts.arrayFormat;
|
|
20219
|
-
} else if ("indices" in opts) {
|
|
20220
|
-
arrayFormat = opts.indices ? "indices" : "repeat";
|
|
20221
|
-
} else {
|
|
20222
|
-
arrayFormat = defaults.arrayFormat;
|
|
20223
|
-
}
|
|
20224
|
-
if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
|
|
20225
|
-
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
20226
|
-
}
|
|
20227
|
-
var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
20228
|
-
return {
|
|
20229
|
-
addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
20230
|
-
allowDots,
|
|
20231
|
-
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
20232
|
-
arrayFormat,
|
|
20233
|
-
charset,
|
|
20234
|
-
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
20235
|
-
commaRoundTrip: !!opts.commaRoundTrip,
|
|
20236
|
-
delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
|
|
20237
|
-
encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
|
|
20238
|
-
encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
20239
|
-
encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
|
|
20240
|
-
encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
20241
|
-
filter,
|
|
20242
|
-
format,
|
|
20243
|
-
formatter,
|
|
20244
|
-
serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults.serializeDate,
|
|
20245
|
-
skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults.skipNulls,
|
|
20246
|
-
sort: typeof opts.sort === "function" ? opts.sort : null,
|
|
20247
|
-
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
|
|
20248
|
-
};
|
|
20249
|
-
}, "normalizeStringifyOptions");
|
|
20250
|
-
module2.exports = function(object, opts) {
|
|
20251
|
-
var obj = object;
|
|
20252
|
-
var options = normalizeStringifyOptions(opts);
|
|
20253
|
-
var objKeys;
|
|
20254
|
-
var filter;
|
|
20255
|
-
if (typeof options.filter === "function") {
|
|
20256
|
-
filter = options.filter;
|
|
20257
|
-
obj = filter("", obj);
|
|
20258
|
-
} else if (isArray(options.filter)) {
|
|
20259
|
-
filter = options.filter;
|
|
20260
|
-
objKeys = filter;
|
|
20261
|
-
}
|
|
20262
|
-
var keys = [];
|
|
20263
|
-
if (typeof obj !== "object" || obj === null) {
|
|
20264
|
-
return "";
|
|
20265
|
-
}
|
|
20266
|
-
var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
|
|
20267
|
-
var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip;
|
|
20268
|
-
if (!objKeys) {
|
|
20269
|
-
objKeys = Object.keys(obj);
|
|
20270
|
-
}
|
|
20271
|
-
if (options.sort) {
|
|
20272
|
-
objKeys.sort(options.sort);
|
|
20273
|
-
}
|
|
20274
|
-
var sideChannel = getSideChannel();
|
|
20275
|
-
for (var i = 0; i < objKeys.length; ++i) {
|
|
20276
|
-
var key = objKeys[i];
|
|
20277
|
-
var value = obj[key];
|
|
20278
|
-
if (options.skipNulls && value === null) {
|
|
20279
|
-
continue;
|
|
20280
|
-
}
|
|
20281
|
-
pushToArray(keys, stringify(value, key, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel));
|
|
20282
|
-
}
|
|
20283
|
-
var joined = keys.join(options.delimiter);
|
|
20284
|
-
var prefix = options.addQueryPrefix === true ? "?" : "";
|
|
20285
|
-
if (options.charsetSentinel) {
|
|
20286
|
-
if (options.charset === "iso-8859-1") {
|
|
20287
|
-
prefix += "utf8=%26%2310003%3B&";
|
|
20288
|
-
} else {
|
|
20289
|
-
prefix += "utf8=%E2%9C%93&";
|
|
20290
|
-
}
|
|
20291
|
-
}
|
|
20292
|
-
return joined.length > 0 ? prefix + joined : "";
|
|
20293
|
-
};
|
|
20294
|
-
}
|
|
20295
|
-
});
|
|
20296
|
-
|
|
20297
|
-
// ../../../node_modules/express/node_modules/qs/lib/parse.js
|
|
20298
|
-
var require_parse2 = __commonJS({
|
|
20299
|
-
"../../../node_modules/express/node_modules/qs/lib/parse.js"(exports2, module2) {
|
|
20300
|
-
"use strict";
|
|
20301
|
-
var utils = require_utils2();
|
|
20302
|
-
var has = Object.prototype.hasOwnProperty;
|
|
20303
|
-
var isArray = Array.isArray;
|
|
20304
|
-
var defaults = {
|
|
20305
|
-
allowDots: false,
|
|
20306
|
-
allowEmptyArrays: false,
|
|
20307
|
-
allowPrototypes: false,
|
|
20308
|
-
allowSparse: false,
|
|
20309
|
-
arrayLimit: 20,
|
|
20310
|
-
charset: "utf-8",
|
|
20311
|
-
charsetSentinel: false,
|
|
20312
|
-
comma: false,
|
|
20313
|
-
decodeDotInKeys: false,
|
|
20314
|
-
decoder: utils.decode,
|
|
20315
|
-
delimiter: "&",
|
|
20316
|
-
depth: 5,
|
|
20317
|
-
duplicates: "combine",
|
|
20318
|
-
ignoreQueryPrefix: false,
|
|
20319
|
-
interpretNumericEntities: false,
|
|
20320
|
-
parameterLimit: 1e3,
|
|
20321
|
-
parseArrays: true,
|
|
20322
|
-
plainObjects: false,
|
|
20323
|
-
strictDepth: false,
|
|
20324
|
-
strictNullHandling: false,
|
|
20325
|
-
throwOnLimitExceeded: false
|
|
20326
|
-
};
|
|
20327
|
-
var interpretNumericEntities = /* @__PURE__ */ __name(function(str) {
|
|
20328
|
-
return str.replace(/&#(\d+);/g, function($0, numberStr) {
|
|
20329
|
-
return String.fromCharCode(parseInt(numberStr, 10));
|
|
20330
|
-
});
|
|
20331
|
-
}, "interpretNumericEntities");
|
|
20332
|
-
var parseArrayValue = /* @__PURE__ */ __name(function(val, options, currentArrayLength) {
|
|
20333
|
-
if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
|
|
20334
|
-
return val.split(",");
|
|
20335
|
-
}
|
|
20336
|
-
if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
|
|
20337
|
-
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
20338
|
-
}
|
|
20339
|
-
return val;
|
|
20340
|
-
}, "parseArrayValue");
|
|
20341
|
-
var isoSentinel = "utf8=%26%2310003%3B";
|
|
20342
|
-
var charsetSentinel = "utf8=%E2%9C%93";
|
|
20343
|
-
var parseValues = /* @__PURE__ */ __name(function parseQueryStringValues(str, options) {
|
|
20344
|
-
var obj = {
|
|
20345
|
-
__proto__: null
|
|
20346
|
-
};
|
|
20347
|
-
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
|
|
20348
|
-
cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
20349
|
-
var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
|
|
20350
|
-
var parts = cleanStr.split(options.delimiter, options.throwOnLimitExceeded ? limit + 1 : limit);
|
|
20351
|
-
if (options.throwOnLimitExceeded && parts.length > limit) {
|
|
20352
|
-
throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
|
|
20353
|
-
}
|
|
20354
|
-
var skipIndex = -1;
|
|
20355
|
-
var i;
|
|
20356
|
-
var charset = options.charset;
|
|
20357
|
-
if (options.charsetSentinel) {
|
|
20358
|
-
for (i = 0; i < parts.length; ++i) {
|
|
20359
|
-
if (parts[i].indexOf("utf8=") === 0) {
|
|
20360
|
-
if (parts[i] === charsetSentinel) {
|
|
20361
|
-
charset = "utf-8";
|
|
20362
|
-
} else if (parts[i] === isoSentinel) {
|
|
20363
|
-
charset = "iso-8859-1";
|
|
20364
|
-
}
|
|
20365
|
-
skipIndex = i;
|
|
20366
|
-
i = parts.length;
|
|
20367
|
-
}
|
|
20368
|
-
}
|
|
20369
|
-
}
|
|
20370
|
-
for (i = 0; i < parts.length; ++i) {
|
|
20371
|
-
if (i === skipIndex) {
|
|
20372
|
-
continue;
|
|
20373
|
-
}
|
|
20374
|
-
var part = parts[i];
|
|
20375
|
-
var bracketEqualsPos = part.indexOf("]=");
|
|
20376
|
-
var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
|
|
20377
|
-
var key;
|
|
20378
|
-
var val;
|
|
20379
|
-
if (pos === -1) {
|
|
20380
|
-
key = options.decoder(part, defaults.decoder, charset, "key");
|
|
20381
|
-
val = options.strictNullHandling ? null : "";
|
|
20382
|
-
} else {
|
|
20383
|
-
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
|
|
20384
|
-
if (key !== null) {
|
|
20385
|
-
val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
|
|
20386
|
-
return options.decoder(encodedVal, defaults.decoder, charset, "value");
|
|
20387
|
-
});
|
|
20388
|
-
}
|
|
20389
|
-
}
|
|
20390
|
-
if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
|
|
20391
|
-
val = interpretNumericEntities(String(val));
|
|
20392
|
-
}
|
|
20393
|
-
if (part.indexOf("[]=") > -1) {
|
|
20394
|
-
val = isArray(val) ? [
|
|
20395
|
-
val
|
|
20396
|
-
] : val;
|
|
20397
|
-
}
|
|
20398
|
-
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
20399
|
-
if (options.throwOnLimitExceeded) {
|
|
20400
|
-
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
20401
|
-
}
|
|
20402
|
-
val = utils.combine([], val, options.arrayLimit, options.plainObjects);
|
|
20403
|
-
}
|
|
20404
|
-
if (key !== null) {
|
|
20405
|
-
var existing = has.call(obj, key);
|
|
20406
|
-
if (existing && options.duplicates === "combine") {
|
|
20407
|
-
obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects);
|
|
20408
|
-
} else if (!existing || options.duplicates === "last") {
|
|
20409
|
-
obj[key] = val;
|
|
20410
|
-
}
|
|
20411
|
-
}
|
|
20412
|
-
}
|
|
20413
|
-
return obj;
|
|
20414
|
-
}, "parseQueryStringValues");
|
|
20415
|
-
var parseObject = /* @__PURE__ */ __name(function(chain, val, options, valuesParsed) {
|
|
20416
|
-
var currentArrayLength = 0;
|
|
20417
|
-
if (chain.length > 0 && chain[chain.length - 1] === "[]") {
|
|
20418
|
-
var parentKey = chain.slice(0, -1).join("");
|
|
20419
|
-
currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
|
|
20420
|
-
}
|
|
20421
|
-
var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
|
|
20422
|
-
for (var i = chain.length - 1; i >= 0; --i) {
|
|
20423
|
-
var obj;
|
|
20424
|
-
var root = chain[i];
|
|
20425
|
-
if (root === "[]" && options.parseArrays) {
|
|
20426
|
-
if (utils.isOverflow(leaf)) {
|
|
20427
|
-
obj = leaf;
|
|
20428
|
-
} else {
|
|
20429
|
-
obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine([], leaf, options.arrayLimit, options.plainObjects);
|
|
20430
|
-
}
|
|
20431
|
-
} else {
|
|
20432
|
-
obj = options.plainObjects ? {
|
|
20433
|
-
__proto__: null
|
|
20434
|
-
} : {};
|
|
20435
|
-
var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
|
|
20436
|
-
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
|
|
20437
|
-
var index = parseInt(decodedRoot, 10);
|
|
20438
|
-
var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
|
|
20439
|
-
if (!options.parseArrays && decodedRoot === "") {
|
|
20440
|
-
obj = {
|
|
20441
|
-
0: leaf
|
|
20442
|
-
};
|
|
20443
|
-
} else if (isValidArrayIndex && index < options.arrayLimit) {
|
|
20444
|
-
obj = [];
|
|
20445
|
-
obj[index] = leaf;
|
|
20446
|
-
} else if (isValidArrayIndex && options.throwOnLimitExceeded) {
|
|
20447
|
-
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
20448
|
-
} else if (isValidArrayIndex) {
|
|
20449
|
-
obj[index] = leaf;
|
|
20450
|
-
utils.markOverflow(obj, index);
|
|
20451
|
-
} else if (decodedRoot !== "__proto__") {
|
|
20452
|
-
obj[decodedRoot] = leaf;
|
|
20453
|
-
}
|
|
20454
|
-
}
|
|
20455
|
-
leaf = obj;
|
|
20456
|
-
}
|
|
20457
|
-
return leaf;
|
|
20458
|
-
}, "parseObject");
|
|
20459
|
-
var splitKeyIntoSegments = /* @__PURE__ */ __name(function splitKeyIntoSegments2(givenKey, options) {
|
|
20460
|
-
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
|
|
20461
|
-
if (options.depth <= 0) {
|
|
20462
|
-
if (!options.plainObjects && has.call(Object.prototype, key)) {
|
|
20463
|
-
if (!options.allowPrototypes) {
|
|
20464
|
-
return;
|
|
20465
|
-
}
|
|
20466
|
-
}
|
|
20467
|
-
return [
|
|
20468
|
-
key
|
|
20469
|
-
];
|
|
20470
|
-
}
|
|
20471
|
-
var brackets = /(\[[^[\]]*])/;
|
|
20472
|
-
var child = /(\[[^[\]]*])/g;
|
|
20473
|
-
var segment = brackets.exec(key);
|
|
20474
|
-
var parent = segment ? key.slice(0, segment.index) : key;
|
|
20475
|
-
var keys = [];
|
|
20476
|
-
if (parent) {
|
|
20477
|
-
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
20478
|
-
if (!options.allowPrototypes) {
|
|
20479
|
-
return;
|
|
20480
|
-
}
|
|
20481
|
-
}
|
|
20482
|
-
keys[keys.length] = parent;
|
|
20483
|
-
}
|
|
20484
|
-
var i = 0;
|
|
20485
|
-
while ((segment = child.exec(key)) !== null && i < options.depth) {
|
|
20486
|
-
i += 1;
|
|
20487
|
-
var segmentContent = segment[1].slice(1, -1);
|
|
20488
|
-
if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
|
|
20489
|
-
if (!options.allowPrototypes) {
|
|
20490
|
-
return;
|
|
20491
|
-
}
|
|
20492
|
-
}
|
|
20493
|
-
keys[keys.length] = segment[1];
|
|
20494
|
-
}
|
|
20495
|
-
if (segment) {
|
|
20496
|
-
if (options.strictDepth === true) {
|
|
20497
|
-
throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
|
|
20498
|
-
}
|
|
20499
|
-
keys[keys.length] = "[" + key.slice(segment.index) + "]";
|
|
20500
|
-
}
|
|
20501
|
-
return keys;
|
|
20502
|
-
}, "splitKeyIntoSegments");
|
|
20503
|
-
var parseKeys = /* @__PURE__ */ __name(function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
20504
|
-
if (!givenKey) {
|
|
20505
|
-
return;
|
|
20506
|
-
}
|
|
20507
|
-
var keys = splitKeyIntoSegments(givenKey, options);
|
|
20508
|
-
if (!keys) {
|
|
20509
|
-
return;
|
|
20510
|
-
}
|
|
20511
|
-
return parseObject(keys, val, options, valuesParsed);
|
|
20512
|
-
}, "parseQueryStringKeys");
|
|
20513
|
-
var normalizeParseOptions = /* @__PURE__ */ __name(function normalizeParseOptions2(opts) {
|
|
20514
|
-
if (!opts) {
|
|
20515
|
-
return defaults;
|
|
20516
|
-
}
|
|
20517
|
-
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
20518
|
-
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
20519
|
-
}
|
|
20520
|
-
if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
|
|
20521
|
-
throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
20522
|
-
}
|
|
20523
|
-
if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
|
|
20524
|
-
throw new TypeError("Decoder has to be a function.");
|
|
20525
|
-
}
|
|
20526
|
-
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
20527
|
-
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
20528
|
-
}
|
|
20529
|
-
if (typeof opts.throwOnLimitExceeded !== "undefined" && typeof opts.throwOnLimitExceeded !== "boolean") {
|
|
20530
|
-
throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
20531
|
-
}
|
|
20532
|
-
var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
|
|
20533
|
-
var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
|
|
20534
|
-
if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
|
|
20535
|
-
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
20536
|
-
}
|
|
20537
|
-
var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
20538
|
-
return {
|
|
20539
|
-
allowDots,
|
|
20540
|
-
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
20541
|
-
allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
20542
|
-
allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
|
|
20543
|
-
arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
|
|
20544
|
-
charset,
|
|
20545
|
-
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
20546
|
-
comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
|
|
20547
|
-
decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
|
|
20548
|
-
decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
|
|
20549
|
-
delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
20550
|
-
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
20551
|
-
depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
|
|
20552
|
-
duplicates,
|
|
20553
|
-
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
20554
|
-
interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
20555
|
-
parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
|
|
20556
|
-
parseArrays: opts.parseArrays !== false,
|
|
20557
|
-
plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
|
|
20558
|
-
strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
|
|
20559
|
-
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
20560
|
-
throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
|
|
20561
|
-
};
|
|
20562
|
-
}, "normalizeParseOptions");
|
|
20563
|
-
module2.exports = function(str, opts) {
|
|
20564
|
-
var options = normalizeParseOptions(opts);
|
|
20565
|
-
if (str === "" || str === null || typeof str === "undefined") {
|
|
20566
|
-
return options.plainObjects ? {
|
|
20567
|
-
__proto__: null
|
|
20568
|
-
} : {};
|
|
20569
|
-
}
|
|
20570
|
-
var tempObj = typeof str === "string" ? parseValues(str, options) : str;
|
|
20571
|
-
var obj = options.plainObjects ? {
|
|
20572
|
-
__proto__: null
|
|
20573
|
-
} : {};
|
|
20574
|
-
var keys = Object.keys(tempObj);
|
|
20575
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
20576
|
-
var key = keys[i];
|
|
20577
|
-
var newObj = parseKeys(key, tempObj[key], options, typeof str === "string");
|
|
20578
|
-
obj = utils.merge(obj, newObj, options);
|
|
20579
|
-
}
|
|
20580
|
-
if (options.allowSparse === true) {
|
|
20581
|
-
return obj;
|
|
20582
|
-
}
|
|
20583
|
-
return utils.compact(obj);
|
|
20584
|
-
};
|
|
20585
|
-
}
|
|
20586
|
-
});
|
|
20587
|
-
|
|
20588
|
-
// ../../../node_modules/express/node_modules/qs/lib/index.js
|
|
20589
|
-
var require_lib3 = __commonJS({
|
|
20590
|
-
"../../../node_modules/express/node_modules/qs/lib/index.js"(exports2, module2) {
|
|
20591
|
-
"use strict";
|
|
20592
|
-
var stringify = require_stringify2();
|
|
20593
|
-
var parse = require_parse2();
|
|
20594
|
-
var formats = require_formats2();
|
|
20595
|
-
module2.exports = {
|
|
20596
|
-
formats,
|
|
20597
|
-
parse,
|
|
20598
|
-
stringify
|
|
20599
|
-
};
|
|
20600
|
-
}
|
|
20601
|
-
});
|
|
20602
|
-
|
|
20603
19700
|
// ../../../node_modules/express/lib/middleware/query.js
|
|
20604
19701
|
var require_query = __commonJS({
|
|
20605
19702
|
"../../../node_modules/express/lib/middleware/query.js"(exports2, module2) {
|
|
20606
19703
|
"use strict";
|
|
20607
19704
|
var merge = require_utils_merge();
|
|
20608
19705
|
var parseUrl = require_parseurl();
|
|
20609
|
-
var qs =
|
|
19706
|
+
var qs = require_lib2();
|
|
20610
19707
|
module2.exports = /* @__PURE__ */ __name(function query(options) {
|
|
20611
19708
|
var opts = merge({}, options);
|
|
20612
19709
|
var queryparse = qs.parse;
|
|
@@ -20634,11 +19731,11 @@ var require_view = __commonJS({
|
|
|
20634
19731
|
"use strict";
|
|
20635
19732
|
var debug = require_src3()("express:view");
|
|
20636
19733
|
var path2 = require("path");
|
|
20637
|
-
var
|
|
20638
|
-
var
|
|
19734
|
+
var fs2 = require("fs");
|
|
19735
|
+
var dirname = path2.dirname;
|
|
20639
19736
|
var basename = path2.basename;
|
|
20640
19737
|
var extname2 = path2.extname;
|
|
20641
|
-
var
|
|
19738
|
+
var join2 = path2.join;
|
|
20642
19739
|
var resolve2 = path2.resolve;
|
|
20643
19740
|
module2.exports = View;
|
|
20644
19741
|
function View(name, options) {
|
|
@@ -20675,7 +19772,7 @@ var require_view = __commonJS({
|
|
|
20675
19772
|
for (var i = 0; i < roots.length && !path3; i++) {
|
|
20676
19773
|
var root = roots[i];
|
|
20677
19774
|
var loc = resolve2(root, name);
|
|
20678
|
-
var dir =
|
|
19775
|
+
var dir = dirname(loc);
|
|
20679
19776
|
var file = basename(loc);
|
|
20680
19777
|
path3 = this.resolve(dir, file);
|
|
20681
19778
|
}
|
|
@@ -20687,12 +19784,12 @@ var require_view = __commonJS({
|
|
|
20687
19784
|
}, "render");
|
|
20688
19785
|
View.prototype.resolve = /* @__PURE__ */ __name(function resolve3(dir, file) {
|
|
20689
19786
|
var ext = this.ext;
|
|
20690
|
-
var path3 =
|
|
19787
|
+
var path3 = join2(dir, file);
|
|
20691
19788
|
var stat = tryStat(path3);
|
|
20692
19789
|
if (stat && stat.isFile()) {
|
|
20693
19790
|
return path3;
|
|
20694
19791
|
}
|
|
20695
|
-
path3 =
|
|
19792
|
+
path3 = join2(dir, basename(file, ext), "index" + ext);
|
|
20696
19793
|
stat = tryStat(path3);
|
|
20697
19794
|
if (stat && stat.isFile()) {
|
|
20698
19795
|
return path3;
|
|
@@ -20701,7 +19798,7 @@ var require_view = __commonJS({
|
|
|
20701
19798
|
function tryStat(path3) {
|
|
20702
19799
|
debug('stat "%s"', path3);
|
|
20703
19800
|
try {
|
|
20704
|
-
return
|
|
19801
|
+
return fs2.statSync(path3);
|
|
20705
19802
|
} catch (e) {
|
|
20706
19803
|
return void 0;
|
|
20707
19804
|
}
|
|
@@ -21350,8 +20447,8 @@ var require_node4 = __commonJS({
|
|
|
21350
20447
|
}
|
|
21351
20448
|
break;
|
|
21352
20449
|
case "FILE":
|
|
21353
|
-
var
|
|
21354
|
-
stream2 = new
|
|
20450
|
+
var fs2 = require("fs");
|
|
20451
|
+
stream2 = new fs2.SyncWriteStream(fd2, {
|
|
21355
20452
|
autoClose: false
|
|
21356
20453
|
});
|
|
21357
20454
|
stream2._type = "fs";
|
|
@@ -21537,7 +20634,7 @@ var require_mime = __commonJS({
|
|
|
21537
20634
|
"../../../node_modules/mime/mime.js"(exports2, module2) {
|
|
21538
20635
|
"use strict";
|
|
21539
20636
|
var path2 = require("path");
|
|
21540
|
-
var
|
|
20637
|
+
var fs2 = require("fs");
|
|
21541
20638
|
function Mime() {
|
|
21542
20639
|
this.types = /* @__PURE__ */ Object.create(null);
|
|
21543
20640
|
this.extensions = /* @__PURE__ */ Object.create(null);
|
|
@@ -21559,7 +20656,7 @@ var require_mime = __commonJS({
|
|
|
21559
20656
|
};
|
|
21560
20657
|
Mime.prototype.load = function(file) {
|
|
21561
20658
|
this._loading = file;
|
|
21562
|
-
var map = {}, content =
|
|
20659
|
+
var map = {}, content = fs2.readFileSync(file, "ascii"), lines = content.split(/[\r\n]+/);
|
|
21563
20660
|
lines.forEach(function(line) {
|
|
21564
20661
|
var fields = line.replace(/\s*#.*|^\s*|\s*$/g, "").split(/\s+/);
|
|
21565
20662
|
map[fields.shift()] = fields;
|
|
@@ -21804,7 +20901,7 @@ var require_send = __commonJS({
|
|
|
21804
20901
|
var escapeHtml = require_escape_html();
|
|
21805
20902
|
var etag = require_etag();
|
|
21806
20903
|
var fresh = require_fresh();
|
|
21807
|
-
var
|
|
20904
|
+
var fs2 = require("fs");
|
|
21808
20905
|
var mime = require_mime();
|
|
21809
20906
|
var ms = require_ms5();
|
|
21810
20907
|
var onFinished = require_on_finished();
|
|
@@ -21814,7 +20911,7 @@ var require_send = __commonJS({
|
|
|
21814
20911
|
var Stream = require("stream");
|
|
21815
20912
|
var util = require("util");
|
|
21816
20913
|
var extname2 = path2.extname;
|
|
21817
|
-
var
|
|
20914
|
+
var join2 = path2.join;
|
|
21818
20915
|
var normalize2 = path2.normalize;
|
|
21819
20916
|
var resolve2 = path2.resolve;
|
|
21820
20917
|
var sep = path2.sep;
|
|
@@ -22031,7 +21128,7 @@ var require_send = __commonJS({
|
|
|
22031
21128
|
return res;
|
|
22032
21129
|
}
|
|
22033
21130
|
parts = path3.split(sep);
|
|
22034
|
-
path3 = normalize2(
|
|
21131
|
+
path3 = normalize2(join2(root, path3));
|
|
22035
21132
|
} else {
|
|
22036
21133
|
if (UP_PATH_REGEXP.test(path3)) {
|
|
22037
21134
|
debug('malicious path "%s"', path3);
|
|
@@ -22137,7 +21234,7 @@ var require_send = __commonJS({
|
|
|
22137
21234
|
var i = 0;
|
|
22138
21235
|
var self = this;
|
|
22139
21236
|
debug('stat "%s"', path3);
|
|
22140
|
-
|
|
21237
|
+
fs2.stat(path3, /* @__PURE__ */ __name(function onstat(err, stat) {
|
|
22141
21238
|
if (err && err.code === "ENOENT" && !extname2(path3) && path3[path3.length - 1] !== sep) {
|
|
22142
21239
|
return next(err);
|
|
22143
21240
|
}
|
|
@@ -22152,7 +21249,7 @@ var require_send = __commonJS({
|
|
|
22152
21249
|
}
|
|
22153
21250
|
var p = path3 + "." + self._extensions[i++];
|
|
22154
21251
|
debug('stat "%s"', p);
|
|
22155
|
-
|
|
21252
|
+
fs2.stat(p, function(err2, stat) {
|
|
22156
21253
|
if (err2) return next(err2);
|
|
22157
21254
|
if (stat.isDirectory()) return next();
|
|
22158
21255
|
self.emit("file", p, stat);
|
|
@@ -22169,9 +21266,9 @@ var require_send = __commonJS({
|
|
|
22169
21266
|
if (err) return self.onStatError(err);
|
|
22170
21267
|
return self.error(404);
|
|
22171
21268
|
}
|
|
22172
|
-
var p =
|
|
21269
|
+
var p = join2(path3, self._index[i]);
|
|
22173
21270
|
debug('stat "%s"', p);
|
|
22174
|
-
|
|
21271
|
+
fs2.stat(p, function(err2, stat) {
|
|
22175
21272
|
if (err2) return next(err2);
|
|
22176
21273
|
if (stat.isDirectory()) return next();
|
|
22177
21274
|
self.emit("file", p, stat);
|
|
@@ -22184,7 +21281,7 @@ var require_send = __commonJS({
|
|
|
22184
21281
|
SendStream.prototype.stream = /* @__PURE__ */ __name(function stream(path3, options) {
|
|
22185
21282
|
var self = this;
|
|
22186
21283
|
var res = this.res;
|
|
22187
|
-
var stream2 =
|
|
21284
|
+
var stream2 = fs2.createReadStream(path3, options);
|
|
22188
21285
|
this.emit("stream", stream2);
|
|
22189
21286
|
stream2.pipe(res);
|
|
22190
21287
|
function cleanup() {
|
|
@@ -22408,9 +21505,9 @@ var require_forwarded = __commonJS({
|
|
|
22408
21505
|
}
|
|
22409
21506
|
});
|
|
22410
21507
|
|
|
22411
|
-
// ../../../node_modules/
|
|
21508
|
+
// ../../../node_modules/ipaddr.js/lib/ipaddr.js
|
|
22412
21509
|
var require_ipaddr = __commonJS({
|
|
22413
|
-
"../../../node_modules/
|
|
21510
|
+
"../../../node_modules/ipaddr.js/lib/ipaddr.js"(exports2, module2) {
|
|
22414
21511
|
"use strict";
|
|
22415
21512
|
(function() {
|
|
22416
21513
|
var expandIPv6, ipaddr, ipv4Part, ipv4Regexes, ipv6Part, ipv6Regexes, matchCIDR, root, zoneIndex;
|
|
@@ -23522,7 +22619,7 @@ var require_proxy_addr = __commonJS({
|
|
|
23522
22619
|
});
|
|
23523
22620
|
|
|
23524
22621
|
// ../../../node_modules/express/lib/utils.js
|
|
23525
|
-
var
|
|
22622
|
+
var require_utils2 = __commonJS({
|
|
23526
22623
|
"../../../node_modules/express/lib/utils.js"(exports2) {
|
|
23527
22624
|
"use strict";
|
|
23528
22625
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
@@ -23533,7 +22630,7 @@ var require_utils3 = __commonJS({
|
|
|
23533
22630
|
var mime = require_send().mime;
|
|
23534
22631
|
var etag = require_etag();
|
|
23535
22632
|
var proxyaddr = require_proxy_addr();
|
|
23536
|
-
var qs =
|
|
22633
|
+
var qs = require_lib2();
|
|
23537
22634
|
var querystring = require("querystring");
|
|
23538
22635
|
exports2.etag = createETagGenerator({
|
|
23539
22636
|
weak: false
|
|
@@ -23679,9 +22776,9 @@ var require_application = __commonJS({
|
|
|
23679
22776
|
var debug = require_src3()("express:application");
|
|
23680
22777
|
var View = require_view();
|
|
23681
22778
|
var http = require("http");
|
|
23682
|
-
var compileETag =
|
|
23683
|
-
var compileQueryParser =
|
|
23684
|
-
var compileTrust =
|
|
22779
|
+
var compileETag = require_utils2().compileETag;
|
|
22780
|
+
var compileQueryParser = require_utils2().compileQueryParser;
|
|
22781
|
+
var compileTrust = require_utils2().compileTrust;
|
|
23685
22782
|
var deprecate = require_depd()("express");
|
|
23686
22783
|
var flatten = require_array_flatten();
|
|
23687
22784
|
var merge = require_utils_merge();
|
|
@@ -33658,15 +32755,15 @@ var require_response = __commonJS({
|
|
|
33658
32755
|
var encodeUrl = require_encodeurl();
|
|
33659
32756
|
var escapeHtml = require_escape_html();
|
|
33660
32757
|
var http = require("http");
|
|
33661
|
-
var isAbsolute =
|
|
32758
|
+
var isAbsolute = require_utils2().isAbsolute;
|
|
33662
32759
|
var onFinished = require_on_finished();
|
|
33663
32760
|
var path2 = require("path");
|
|
33664
32761
|
var statuses = require_statuses();
|
|
33665
32762
|
var merge = require_utils_merge();
|
|
33666
32763
|
var sign = require_cookie_signature().sign;
|
|
33667
|
-
var normalizeType =
|
|
33668
|
-
var normalizeTypes =
|
|
33669
|
-
var setCharset =
|
|
32764
|
+
var normalizeType = require_utils2().normalizeType;
|
|
32765
|
+
var normalizeTypes = require_utils2().normalizeTypes;
|
|
32766
|
+
var setCharset = require_utils2().setCharset;
|
|
33670
32767
|
var cookie = require_cookie();
|
|
33671
32768
|
var send = require_send();
|
|
33672
32769
|
var extname2 = path2.extname;
|
|
@@ -34404,15 +33501,13 @@ var require_express2 = __commonJS({
|
|
|
34404
33501
|
// src/index.ts
|
|
34405
33502
|
var index_exports = {};
|
|
34406
33503
|
__export(index_exports, {
|
|
34407
|
-
AutoTrace: () =>
|
|
33504
|
+
AutoTrace: () => import_nestjs_common7.AutoTrace,
|
|
34408
33505
|
CanRole: () => import_nestjs_authzpaas2.CanRole,
|
|
34409
33506
|
CsrfMiddleware: () => CsrfMiddleware,
|
|
34410
33507
|
CsrfTokenMiddleware: () => CsrfTokenMiddleware,
|
|
34411
33508
|
DevToolsModule: () => import_nestjs_openapi_devtools2.DevToolsModule,
|
|
34412
33509
|
DevToolsV2Module: () => import_nestjs_openapi_devtools2.DevToolsV2Module,
|
|
34413
33510
|
FileService: () => FileService,
|
|
34414
|
-
HtmlHotUpdateModule: () => HtmlHotUpdateModule,
|
|
34415
|
-
HtmlHotUpdateService: () => HtmlHotUpdateService,
|
|
34416
33511
|
PlatformHttpClientService: () => PlatformHttpClientService,
|
|
34417
33512
|
PlatformModule: () => PlatformModule,
|
|
34418
33513
|
StaticModule: () => StaticModule,
|
|
@@ -34424,9 +33519,9 @@ __export(index_exports, {
|
|
|
34424
33519
|
module.exports = __toCommonJS(index_exports);
|
|
34425
33520
|
|
|
34426
33521
|
// src/modules/platform/module.ts
|
|
34427
|
-
var
|
|
33522
|
+
var import_common12 = require("@nestjs/common");
|
|
34428
33523
|
var import_core2 = require("@nestjs/core");
|
|
34429
|
-
var
|
|
33524
|
+
var import_nestjs_common5 = require("@lark-apaas/nestjs-common");
|
|
34430
33525
|
var import_config2 = require("@nestjs/config");
|
|
34431
33526
|
var import_nestjs_observable = require("@lark-apaas/nestjs-observable");
|
|
34432
33527
|
var import_axios2 = require("@nestjs/axios");
|
|
@@ -34434,7 +33529,7 @@ var import_nestjs_logger2 = require("@lark-apaas/nestjs-logger");
|
|
|
34434
33529
|
var import_nestjs_datapaas = require("@lark-apaas/nestjs-datapaas");
|
|
34435
33530
|
var import_nestjs_authnpaas = require("@lark-apaas/nestjs-authnpaas");
|
|
34436
33531
|
var import_nestjs_trigger = require("@lark-apaas/nestjs-trigger");
|
|
34437
|
-
var
|
|
33532
|
+
var import_nestjs_common6 = require("@lark-apaas/nestjs-common");
|
|
34438
33533
|
var import_nestjs_capability = require("@lark-apaas/nestjs-capability");
|
|
34439
33534
|
|
|
34440
33535
|
// src/middlewares/user-context/index.ts
|
|
@@ -35821,18 +34916,7 @@ StaticModule = _ts_decorate11([
|
|
|
35821
34916
|
})
|
|
35822
34917
|
], StaticModule);
|
|
35823
34918
|
|
|
35824
|
-
// src/modules/
|
|
35825
|
-
var import_common14 = require("@nestjs/common");
|
|
35826
|
-
|
|
35827
|
-
// src/modules/html-hot-update/html-hot-update.controller.ts
|
|
35828
|
-
var import_common13 = require("@nestjs/common");
|
|
35829
|
-
var import_swagger2 = require("@nestjs/swagger");
|
|
35830
|
-
|
|
35831
|
-
// src/modules/html-hot-update/html-hot-update.service.ts
|
|
35832
|
-
var import_common12 = require("@nestjs/common");
|
|
35833
|
-
var import_node_fs = require("fs");
|
|
35834
|
-
var import_node_path = require("path");
|
|
35835
|
-
var import_nestjs_common5 = require("@lark-apaas/nestjs-common");
|
|
34919
|
+
// src/modules/platform/module.ts
|
|
35836
34920
|
function _ts_decorate12(decorators, target, key, desc) {
|
|
35837
34921
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
35838
34922
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -35840,291 +34924,6 @@ function _ts_decorate12(decorators, target, key, desc) {
|
|
|
35840
34924
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35841
34925
|
}
|
|
35842
34926
|
__name(_ts_decorate12, "_ts_decorate");
|
|
35843
|
-
function _ts_metadata8(k, v) {
|
|
35844
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
35845
|
-
}
|
|
35846
|
-
__name(_ts_metadata8, "_ts_metadata");
|
|
35847
|
-
function _ts_param4(paramIndex, decorator) {
|
|
35848
|
-
return function(target, key) {
|
|
35849
|
-
decorator(target, key, paramIndex);
|
|
35850
|
-
};
|
|
35851
|
-
}
|
|
35852
|
-
__name(_ts_param4, "_ts_param");
|
|
35853
|
-
var Mutex = class Mutex2 {
|
|
35854
|
-
static {
|
|
35855
|
-
__name(this, "Mutex");
|
|
35856
|
-
}
|
|
35857
|
-
locked = false;
|
|
35858
|
-
waiting = [];
|
|
35859
|
-
async acquire() {
|
|
35860
|
-
if (!this.locked) {
|
|
35861
|
-
this.locked = true;
|
|
35862
|
-
return;
|
|
35863
|
-
}
|
|
35864
|
-
return new Promise((resolve2) => {
|
|
35865
|
-
this.waiting.push(() => {
|
|
35866
|
-
this.locked = true;
|
|
35867
|
-
resolve2();
|
|
35868
|
-
});
|
|
35869
|
-
});
|
|
35870
|
-
}
|
|
35871
|
-
release() {
|
|
35872
|
-
if (this.waiting.length > 0) {
|
|
35873
|
-
const next = this.waiting.shift();
|
|
35874
|
-
next();
|
|
35875
|
-
} else {
|
|
35876
|
-
this.locked = false;
|
|
35877
|
-
}
|
|
35878
|
-
}
|
|
35879
|
-
};
|
|
35880
|
-
var HtmlHotUpdateService = class _HtmlHotUpdateService {
|
|
35881
|
-
static {
|
|
35882
|
-
__name(this, "HtmlHotUpdateService");
|
|
35883
|
-
}
|
|
35884
|
-
httpClient;
|
|
35885
|
-
logger = new import_common12.Logger(_HtmlHotUpdateService.name);
|
|
35886
|
-
/** 文件锁:冷启动更新和 innerapi 主动更新共用 */
|
|
35887
|
-
fileLock = new Mutex();
|
|
35888
|
-
/** 本地 HTML 文件目录(dist/dist/client,与 build.sh [4/5] 对齐) */
|
|
35889
|
-
localHtmlDir = (0, import_node_path.join)(process.cwd(), "dist", "client");
|
|
35890
|
-
constructor(httpClient) {
|
|
35891
|
-
this.httpClient = httpClient;
|
|
35892
|
-
}
|
|
35893
|
-
/**
|
|
35894
|
-
* 任务一:冷启动时尝试更新 HTML 文件列表
|
|
35895
|
-
*
|
|
35896
|
-
* - 生产环境默认启用(模块仅在生产环境加载)
|
|
35897
|
-
* - 失败则降级,使用部署时打包的 HTML 正常启动
|
|
35898
|
-
* - 超时 3s,避免拉长冷启动耗时
|
|
35899
|
-
*/
|
|
35900
|
-
async onModuleInit() {
|
|
35901
|
-
const appID = this.getAppID();
|
|
35902
|
-
if (!appID) {
|
|
35903
|
-
this.logger.warn("Skip HTML hot update on startup: appID not found");
|
|
35904
|
-
return;
|
|
35905
|
-
}
|
|
35906
|
-
try {
|
|
35907
|
-
this.logger.log(`Startup HTML update: appID=${appID}`);
|
|
35908
|
-
const result = await this.updateFromRemote(appID);
|
|
35909
|
-
this.logger.log(`Startup HTML update complete: ${result.updatedFiles.length} updated, ${result.failedFiles.length} failed`);
|
|
35910
|
-
} catch (error) {
|
|
35911
|
-
this.logger.warn(`Startup HTML update failed (degraded to bundled HTML): ${error instanceof Error ? error.message : String(error)}, appID=${appID}`);
|
|
35912
|
-
}
|
|
35913
|
-
}
|
|
35914
|
-
/**
|
|
35915
|
-
* 从远端获取最新 HTML 文件并更新本地
|
|
35916
|
-
*
|
|
35917
|
-
* 调用方:
|
|
35918
|
-
* 1) 冷启动更新(onModuleInit)
|
|
35919
|
-
* 2) innerapi 主动更新(controller 调用)
|
|
35920
|
-
*/
|
|
35921
|
-
async updateFromRemote(appID, commitID) {
|
|
35922
|
-
const fileMap = await this.fetchLatestHtmlFiles(appID, commitID);
|
|
35923
|
-
return this.writeHtmlFiles(fileMap);
|
|
35924
|
-
}
|
|
35925
|
-
/**
|
|
35926
|
-
* 将文件内容写入本地 HTML 目录(带文件锁)
|
|
35927
|
-
*/
|
|
35928
|
-
async writeHtmlFiles(fileMap) {
|
|
35929
|
-
const result = {
|
|
35930
|
-
updatedFiles: [],
|
|
35931
|
-
failedFiles: []
|
|
35932
|
-
};
|
|
35933
|
-
const entries = Object.entries(fileMap);
|
|
35934
|
-
if (entries.length === 0) {
|
|
35935
|
-
return result;
|
|
35936
|
-
}
|
|
35937
|
-
await this.fileLock.acquire();
|
|
35938
|
-
try {
|
|
35939
|
-
for (const [filePath, content] of entries) {
|
|
35940
|
-
try {
|
|
35941
|
-
const localPath = (0, import_node_path.join)(this.localHtmlDir, filePath);
|
|
35942
|
-
await import_node_fs.promises.mkdir((0, import_node_path.dirname)(localPath), {
|
|
35943
|
-
recursive: true
|
|
35944
|
-
});
|
|
35945
|
-
await import_node_fs.promises.writeFile(localPath, content, "utf-8");
|
|
35946
|
-
result.updatedFiles.push(filePath);
|
|
35947
|
-
} catch (error) {
|
|
35948
|
-
const reason = error instanceof Error ? error.message : String(error);
|
|
35949
|
-
result.failedFiles.push({
|
|
35950
|
-
filePath,
|
|
35951
|
-
reason
|
|
35952
|
-
});
|
|
35953
|
-
this.logger.warn(`Failed to write HTML file ${filePath}: ${reason}`);
|
|
35954
|
-
}
|
|
35955
|
-
}
|
|
35956
|
-
} finally {
|
|
35957
|
-
this.fileLock.release();
|
|
35958
|
-
}
|
|
35959
|
-
return result;
|
|
35960
|
-
}
|
|
35961
|
-
/**
|
|
35962
|
-
* 调用后端 GetLatestArtifactHtmlFiles 接口
|
|
35963
|
-
*/
|
|
35964
|
-
async fetchLatestHtmlFiles(appID, commitID) {
|
|
35965
|
-
const url = `/v1/app/${appID}/pipeline/frontend/latest_artifact/html_files`;
|
|
35966
|
-
const body = {};
|
|
35967
|
-
if (commitID) {
|
|
35968
|
-
body.commitID = commitID;
|
|
35969
|
-
}
|
|
35970
|
-
const response = await this.httpClient.post(url, body, {
|
|
35971
|
-
timeout: 3e3
|
|
35972
|
-
});
|
|
35973
|
-
if (!response.ok) {
|
|
35974
|
-
throw new Error(`GetLatestArtifactHtmlFiles failed: ${response.status} ${response.statusText}`);
|
|
35975
|
-
}
|
|
35976
|
-
const data = await response.json();
|
|
35977
|
-
if (data.BaseResp?.StatusCode && data.BaseResp.StatusCode !== 0) {
|
|
35978
|
-
throw new Error(`GetLatestArtifactHtmlFiles error: ${data.BaseResp.StatusMessage}`);
|
|
35979
|
-
}
|
|
35980
|
-
if (!data.fileMap || Object.keys(data.fileMap).length === 0) {
|
|
35981
|
-
throw new Error("GetLatestArtifactHtmlFiles returned empty fileMap");
|
|
35982
|
-
}
|
|
35983
|
-
return data.fileMap;
|
|
35984
|
-
}
|
|
35985
|
-
/**
|
|
35986
|
-
* 从 CLIENT_BASE_PATH 提取 appID
|
|
35987
|
-
* CLIENT_BASE_PATH 格式: /app/{appId}
|
|
35988
|
-
*/
|
|
35989
|
-
getAppID() {
|
|
35990
|
-
const basePath = process.env.CLIENT_BASE_PATH || "";
|
|
35991
|
-
const match = basePath.match(/\/app\/([^/]+)/);
|
|
35992
|
-
return match?.[1] ?? "";
|
|
35993
|
-
}
|
|
35994
|
-
};
|
|
35995
|
-
HtmlHotUpdateService = _ts_decorate12([
|
|
35996
|
-
(0, import_common12.Injectable)(),
|
|
35997
|
-
_ts_param4(0, (0, import_common12.Inject)(import_nestjs_common5.PLATFORM_HTTP_CLIENT)),
|
|
35998
|
-
_ts_metadata8("design:type", Function),
|
|
35999
|
-
_ts_metadata8("design:paramtypes", [
|
|
36000
|
-
typeof PlatformHttpClient === "undefined" ? Object : PlatformHttpClient
|
|
36001
|
-
])
|
|
36002
|
-
], HtmlHotUpdateService);
|
|
36003
|
-
|
|
36004
|
-
// src/modules/html-hot-update/html-hot-update.controller.ts
|
|
36005
|
-
function _ts_decorate13(decorators, target, key, desc) {
|
|
36006
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
36007
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
36008
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
36009
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
36010
|
-
}
|
|
36011
|
-
__name(_ts_decorate13, "_ts_decorate");
|
|
36012
|
-
function _ts_metadata9(k, v) {
|
|
36013
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
36014
|
-
}
|
|
36015
|
-
__name(_ts_metadata9, "_ts_metadata");
|
|
36016
|
-
function _ts_param5(paramIndex, decorator) {
|
|
36017
|
-
return function(target, key) {
|
|
36018
|
-
decorator(target, key, paramIndex);
|
|
36019
|
-
};
|
|
36020
|
-
}
|
|
36021
|
-
__name(_ts_param5, "_ts_param");
|
|
36022
|
-
var UpdateHtmlFilesDto = class UpdateHtmlFilesDto2 {
|
|
36023
|
-
static {
|
|
36024
|
-
__name(this, "UpdateHtmlFilesDto");
|
|
36025
|
-
}
|
|
36026
|
-
commitID;
|
|
36027
|
-
appID;
|
|
36028
|
-
};
|
|
36029
|
-
var HtmlHotUpdateController = class {
|
|
36030
|
-
static {
|
|
36031
|
-
__name(this, "HtmlHotUpdateController");
|
|
36032
|
-
}
|
|
36033
|
-
htmlHotUpdateService;
|
|
36034
|
-
constructor(htmlHotUpdateService) {
|
|
36035
|
-
this.htmlHotUpdateService = htmlHotUpdateService;
|
|
36036
|
-
}
|
|
36037
|
-
/**
|
|
36038
|
-
* POST /__innerapi__/update_html_files
|
|
36039
|
-
*
|
|
36040
|
-
* 请求体: { commitID: string, appID: string }
|
|
36041
|
-
* 响应:
|
|
36042
|
-
* 成功: { code: 0, msg: "success" }
|
|
36043
|
-
* 失败: { code: -1, msg: "update html failed: <error>" }
|
|
36044
|
-
*/
|
|
36045
|
-
async updateHtmlFiles(body) {
|
|
36046
|
-
const { commitID, appID } = body;
|
|
36047
|
-
if (!commitID || !appID) {
|
|
36048
|
-
return {
|
|
36049
|
-
code: -1,
|
|
36050
|
-
msg: "commitID and appID are required"
|
|
36051
|
-
};
|
|
36052
|
-
}
|
|
36053
|
-
try {
|
|
36054
|
-
const result = await this.htmlHotUpdateService.updateFromRemote(appID, commitID);
|
|
36055
|
-
if (result.updatedFiles.length === 0 && result.failedFiles.length > 0) {
|
|
36056
|
-
return {
|
|
36057
|
-
code: -1,
|
|
36058
|
-
msg: `update html failed: all ${result.failedFiles.length} files failed to write`
|
|
36059
|
-
};
|
|
36060
|
-
}
|
|
36061
|
-
return {
|
|
36062
|
-
code: 0,
|
|
36063
|
-
msg: "success"
|
|
36064
|
-
};
|
|
36065
|
-
} catch (error) {
|
|
36066
|
-
const errorMsg = error instanceof Error ? error.message : String(error);
|
|
36067
|
-
return {
|
|
36068
|
-
code: -1,
|
|
36069
|
-
msg: `update html failed: ${errorMsg}`
|
|
36070
|
-
};
|
|
36071
|
-
}
|
|
36072
|
-
}
|
|
36073
|
-
};
|
|
36074
|
-
_ts_decorate13([
|
|
36075
|
-
(0, import_common13.Post)("update_html_files"),
|
|
36076
|
-
(0, import_common13.HttpCode)(import_common13.HttpStatus.OK),
|
|
36077
|
-
_ts_param5(0, (0, import_common13.Body)()),
|
|
36078
|
-
_ts_metadata9("design:type", Function),
|
|
36079
|
-
_ts_metadata9("design:paramtypes", [
|
|
36080
|
-
typeof UpdateHtmlFilesDto === "undefined" ? Object : UpdateHtmlFilesDto
|
|
36081
|
-
]),
|
|
36082
|
-
_ts_metadata9("design:returntype", Promise)
|
|
36083
|
-
], HtmlHotUpdateController.prototype, "updateHtmlFiles", null);
|
|
36084
|
-
HtmlHotUpdateController = _ts_decorate13([
|
|
36085
|
-
(0, import_swagger2.ApiExcludeController)(),
|
|
36086
|
-
(0, import_common13.Controller)("__innerapi__"),
|
|
36087
|
-
_ts_metadata9("design:type", Function),
|
|
36088
|
-
_ts_metadata9("design:paramtypes", [
|
|
36089
|
-
typeof HtmlHotUpdateService === "undefined" ? Object : HtmlHotUpdateService
|
|
36090
|
-
])
|
|
36091
|
-
], HtmlHotUpdateController);
|
|
36092
|
-
|
|
36093
|
-
// src/modules/html-hot-update/html-hot-update.module.ts
|
|
36094
|
-
function _ts_decorate14(decorators, target, key, desc) {
|
|
36095
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
36096
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
36097
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
36098
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
36099
|
-
}
|
|
36100
|
-
__name(_ts_decorate14, "_ts_decorate");
|
|
36101
|
-
var HtmlHotUpdateModule = class {
|
|
36102
|
-
static {
|
|
36103
|
-
__name(this, "HtmlHotUpdateModule");
|
|
36104
|
-
}
|
|
36105
|
-
};
|
|
36106
|
-
HtmlHotUpdateModule = _ts_decorate14([
|
|
36107
|
-
(0, import_common14.Module)({
|
|
36108
|
-
controllers: [
|
|
36109
|
-
HtmlHotUpdateController
|
|
36110
|
-
],
|
|
36111
|
-
providers: [
|
|
36112
|
-
HtmlHotUpdateService
|
|
36113
|
-
],
|
|
36114
|
-
exports: [
|
|
36115
|
-
HtmlHotUpdateService
|
|
36116
|
-
]
|
|
36117
|
-
})
|
|
36118
|
-
], HtmlHotUpdateModule);
|
|
36119
|
-
|
|
36120
|
-
// src/modules/platform/module.ts
|
|
36121
|
-
function _ts_decorate15(decorators, target, key, desc) {
|
|
36122
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
36123
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
36124
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
36125
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
36126
|
-
}
|
|
36127
|
-
__name(_ts_decorate15, "_ts_decorate");
|
|
36128
34927
|
var PLATFORM_MODULE_OPTIONS = /* @__PURE__ */ Symbol("PLATFORM_MODULE_OPTIONS");
|
|
36129
34928
|
var PlatformModule = class _PlatformModule {
|
|
36130
34929
|
static {
|
|
@@ -36146,7 +34945,7 @@ var PlatformModule = class _PlatformModule {
|
|
|
36146
34945
|
app_config_default
|
|
36147
34946
|
]
|
|
36148
34947
|
}),
|
|
36149
|
-
|
|
34948
|
+
import_nestjs_common5.CommonModule,
|
|
36150
34949
|
import_nestjs_observable.NestjsObservableModule,
|
|
36151
34950
|
import_nestjs_logger2.LoggerModule,
|
|
36152
34951
|
import_axios2.HttpModule.register({
|
|
@@ -36195,11 +34994,6 @@ var PlatformModule = class _PlatformModule {
|
|
|
36195
34994
|
// 开发环境由 Vite/Rspack dev server 的中间件处理 /static/* 请求
|
|
36196
34995
|
...process.env.NODE_ENV === "development" ? [] : [
|
|
36197
34996
|
StaticModule
|
|
36198
|
-
],
|
|
36199
|
-
// HTML 热更新模块(仅生产环境启用)
|
|
36200
|
-
// 提供 innerapi 供 tce 服务触发 HTML 热更新,冷启动时也会尝试拉取最新 HTML
|
|
36201
|
-
...process.env.NODE_ENV === "development" ? [] : [
|
|
36202
|
-
HtmlHotUpdateModule
|
|
36203
34997
|
]
|
|
36204
34998
|
],
|
|
36205
34999
|
providers: [
|
|
@@ -36209,7 +35003,7 @@ var PlatformModule = class _PlatformModule {
|
|
|
36209
35003
|
},
|
|
36210
35004
|
{
|
|
36211
35005
|
provide: import_core2.APP_PIPE,
|
|
36212
|
-
useValue: new
|
|
35006
|
+
useValue: new import_common12.ValidationPipe({
|
|
36213
35007
|
transform: true,
|
|
36214
35008
|
transformOptions: {
|
|
36215
35009
|
enableImplicitConversion: true
|
|
@@ -36217,19 +35011,19 @@ var PlatformModule = class _PlatformModule {
|
|
|
36217
35011
|
})
|
|
36218
35012
|
},
|
|
36219
35013
|
{
|
|
36220
|
-
provide:
|
|
35014
|
+
provide: import_nestjs_common5.OBSERVABLE_SERVICE,
|
|
36221
35015
|
useClass: import_nestjs_observable.Observable
|
|
36222
35016
|
},
|
|
36223
35017
|
PlatformHttpClientService,
|
|
36224
35018
|
{
|
|
36225
|
-
provide:
|
|
35019
|
+
provide: import_nestjs_common6.PLATFORM_HTTP_CLIENT,
|
|
36226
35020
|
useFactory: /* @__PURE__ */ __name((svc) => svc.instance, "useFactory"),
|
|
36227
35021
|
inject: [
|
|
36228
35022
|
PlatformHttpClientService
|
|
36229
35023
|
]
|
|
36230
35024
|
},
|
|
36231
35025
|
{
|
|
36232
|
-
provide:
|
|
35026
|
+
provide: import_nestjs_common5.HTTP_CLIENT_FACTORY,
|
|
36233
35027
|
useFactory: /* @__PURE__ */ __name((svc) => ({
|
|
36234
35028
|
create: /* @__PURE__ */ __name((options2) => svc.createWithGlobalInterceptors(options2), "create")
|
|
36235
35029
|
}), "useFactory"),
|
|
@@ -36247,10 +35041,10 @@ var PlatformModule = class _PlatformModule {
|
|
|
36247
35041
|
exports: [
|
|
36248
35042
|
import_config2.ConfigModule,
|
|
36249
35043
|
import_nestjs_logger2.LoggerModule,
|
|
36250
|
-
|
|
36251
|
-
|
|
36252
|
-
|
|
36253
|
-
|
|
35044
|
+
import_nestjs_common5.CommonModule,
|
|
35045
|
+
import_nestjs_common5.OBSERVABLE_SERVICE,
|
|
35046
|
+
import_nestjs_common6.PLATFORM_HTTP_CLIENT,
|
|
35047
|
+
import_nestjs_common5.HTTP_CLIENT_FACTORY,
|
|
36254
35048
|
PlatformHttpClientService,
|
|
36255
35049
|
import_nestjs_capability.CapabilityModule,
|
|
36256
35050
|
FileService
|
|
@@ -36282,9 +35076,9 @@ var PlatformModule = class _PlatformModule {
|
|
|
36282
35076
|
}
|
|
36283
35077
|
}
|
|
36284
35078
|
};
|
|
36285
|
-
PlatformModule =
|
|
36286
|
-
(0,
|
|
36287
|
-
(0,
|
|
35079
|
+
PlatformModule = _ts_decorate12([
|
|
35080
|
+
(0, import_common12.Global)(),
|
|
35081
|
+
(0, import_common12.Module)({})
|
|
36288
35082
|
], PlatformModule);
|
|
36289
35083
|
|
|
36290
35084
|
// src/setup.ts
|
|
@@ -36372,7 +35166,7 @@ __reExport(index_exports, require("@lark-apaas/nestjs-datapaas"), module.exports
|
|
|
36372
35166
|
__reExport(index_exports, require("@lark-apaas/nestjs-observable"), module.exports);
|
|
36373
35167
|
__reExport(index_exports, require("@lark-apaas/nestjs-trigger"), module.exports);
|
|
36374
35168
|
__reExport(index_exports, require("@lark-apaas/file-service"), module.exports);
|
|
36375
|
-
var
|
|
35169
|
+
var import_nestjs_common7 = require("@lark-apaas/nestjs-common");
|
|
36376
35170
|
var import_nestjs_authzpaas2 = require("@lark-apaas/nestjs-authzpaas");
|
|
36377
35171
|
// Annotate the CommonJS export names for ESM import in node:
|
|
36378
35172
|
0 && (module.exports = {
|
|
@@ -36383,8 +35177,6 @@ var import_nestjs_authzpaas2 = require("@lark-apaas/nestjs-authzpaas");
|
|
|
36383
35177
|
DevToolsModule,
|
|
36384
35178
|
DevToolsV2Module,
|
|
36385
35179
|
FileService,
|
|
36386
|
-
HtmlHotUpdateModule,
|
|
36387
|
-
HtmlHotUpdateService,
|
|
36388
35180
|
PlatformHttpClientService,
|
|
36389
35181
|
PlatformModule,
|
|
36390
35182
|
StaticModule,
|