@moovio/sdk 0.0.0-dev.16 → 0.0.0-dev.17
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/FUNCTIONS.md +2 -2
- package/bin/mcp-server.js +1113 -488
- package/bin/mcp-server.js.map +27 -24
- package/funcs/filesUpload.d.ts.map +1 -1
- package/funcs/filesUpload.js +3 -1
- package/funcs/filesUpload.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/fileuploadmetadata.d.ts +28 -0
- package/models/components/fileuploadmetadata.d.ts.map +1 -0
- package/models/components/fileuploadmetadata.js +70 -0
- package/models/components/fileuploadmetadata.js.map +1 -0
- package/models/components/fileuploadrequestmultipart.d.ts +5 -8
- package/models/components/fileuploadrequestmultipart.d.ts.map +1 -1
- package/models/components/fileuploadrequestmultipart.js +3 -2
- package/models/components/fileuploadrequestmultipart.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/webhookdata.d.ts +2 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +2 -2
- package/models/components/webhookdata.js.map +1 -1
- package/models/components/webhookdatabankaccountcreated.d.ts +3 -0
- package/models/components/webhookdatabankaccountcreated.d.ts.map +1 -1
- package/models/components/webhookdatabankaccountcreated.js +3 -0
- package/models/components/webhookdatabankaccountcreated.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/filesUpload.ts +13 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/fileuploadmetadata.ts +74 -0
- package/src/models/components/fileuploadrequestmultipart.ts +12 -10
- package/src/models/components/index.ts +1 -0
- package/src/models/components/webhookdata.ts +4 -4
- package/src/models/components/webhookdatabankaccountcreated.ts +9 -0
- package/src/types/primitives.ts +1 -3
- package/types/primitives.d.ts +1 -1
- package/types/primitives.d.ts.map +1 -1
- package/types/primitives.js +1 -2
- package/types/primitives.js.map +1 -1
package/bin/mcp-server.js
CHANGED
|
@@ -9767,7 +9767,7 @@ var require_setprototypeof = __commonJS((exports, module) => {
|
|
|
9767
9767
|
}
|
|
9768
9768
|
});
|
|
9769
9769
|
|
|
9770
|
-
// node_modules/
|
|
9770
|
+
// node_modules/statuses/codes.json
|
|
9771
9771
|
var require_codes = __commonJS((exports, module) => {
|
|
9772
9772
|
module.exports = {
|
|
9773
9773
|
"100": "Continue",
|
|
@@ -9836,7 +9836,7 @@ var require_codes = __commonJS((exports, module) => {
|
|
|
9836
9836
|
};
|
|
9837
9837
|
});
|
|
9838
9838
|
|
|
9839
|
-
// node_modules/
|
|
9839
|
+
// node_modules/statuses/index.js
|
|
9840
9840
|
var require_statuses = __commonJS((exports, module) => {
|
|
9841
9841
|
/*!
|
|
9842
9842
|
* statuses
|
|
@@ -9967,7 +9967,7 @@ var require_toidentifier = __commonJS((exports, module) => {
|
|
|
9967
9967
|
}
|
|
9968
9968
|
});
|
|
9969
9969
|
|
|
9970
|
-
// node_modules/
|
|
9970
|
+
// node_modules/http-errors/index.js
|
|
9971
9971
|
var require_http_errors = __commonJS((exports, module) => {
|
|
9972
9972
|
/*!
|
|
9973
9973
|
* http-errors
|
|
@@ -10202,7 +10202,7 @@ var require_safer = __commonJS((exports, module) => {
|
|
|
10202
10202
|
module.exports = safer;
|
|
10203
10203
|
});
|
|
10204
10204
|
|
|
10205
|
-
// node_modules/
|
|
10205
|
+
// node_modules/iconv-lite/lib/bom-handling.js
|
|
10206
10206
|
var require_bom_handling = __commonJS((exports) => {
|
|
10207
10207
|
var BOMChar = "\uFEFF";
|
|
10208
10208
|
exports.PrependBOM = PrependBOMWrapper;
|
|
@@ -10245,7 +10245,7 @@ var require_bom_handling = __commonJS((exports) => {
|
|
|
10245
10245
|
};
|
|
10246
10246
|
});
|
|
10247
10247
|
|
|
10248
|
-
// node_modules/
|
|
10248
|
+
// node_modules/iconv-lite/lib/helpers/merge-exports.js
|
|
10249
10249
|
var require_merge_exports = __commonJS((exports, module) => {
|
|
10250
10250
|
var hasOwn = typeof Object.hasOwn === "undefined" ? Function.call.bind(Object.prototype.hasOwnProperty) : Object.hasOwn;
|
|
10251
10251
|
function mergeModules(target, module2) {
|
|
@@ -10258,7 +10258,7 @@ var require_merge_exports = __commonJS((exports, module) => {
|
|
|
10258
10258
|
module.exports = mergeModules;
|
|
10259
10259
|
});
|
|
10260
10260
|
|
|
10261
|
-
// node_modules/
|
|
10261
|
+
// node_modules/iconv-lite/encodings/internal.js
|
|
10262
10262
|
var require_internal = __commonJS((exports, module) => {
|
|
10263
10263
|
var Buffer2 = require_safer().Buffer;
|
|
10264
10264
|
module.exports = {
|
|
@@ -10431,7 +10431,7 @@ var require_internal = __commonJS((exports, module) => {
|
|
|
10431
10431
|
};
|
|
10432
10432
|
});
|
|
10433
10433
|
|
|
10434
|
-
// node_modules/
|
|
10434
|
+
// node_modules/iconv-lite/encodings/utf32.js
|
|
10435
10435
|
var require_utf32 = __commonJS((exports) => {
|
|
10436
10436
|
var Buffer2 = require_safer().Buffer;
|
|
10437
10437
|
exports._utf32 = Utf32Codec;
|
|
@@ -10665,7 +10665,7 @@ var require_utf32 = __commonJS((exports) => {
|
|
|
10665
10665
|
}
|
|
10666
10666
|
});
|
|
10667
10667
|
|
|
10668
|
-
// node_modules/
|
|
10668
|
+
// node_modules/iconv-lite/encodings/utf16.js
|
|
10669
10669
|
var require_utf16 = __commonJS((exports) => {
|
|
10670
10670
|
var Buffer2 = require_safer().Buffer;
|
|
10671
10671
|
exports.utf16be = Utf16BECodec;
|
|
@@ -10808,7 +10808,7 @@ var require_utf16 = __commonJS((exports) => {
|
|
|
10808
10808
|
}
|
|
10809
10809
|
});
|
|
10810
10810
|
|
|
10811
|
-
// node_modules/
|
|
10811
|
+
// node_modules/iconv-lite/encodings/utf7.js
|
|
10812
10812
|
var require_utf7 = __commonJS((exports) => {
|
|
10813
10813
|
var Buffer2 = require_safer().Buffer;
|
|
10814
10814
|
exports.utf7 = Utf7Codec;
|
|
@@ -11022,7 +11022,7 @@ var require_utf7 = __commonJS((exports) => {
|
|
|
11022
11022
|
};
|
|
11023
11023
|
});
|
|
11024
11024
|
|
|
11025
|
-
// node_modules/
|
|
11025
|
+
// node_modules/iconv-lite/encodings/sbcs-codec.js
|
|
11026
11026
|
var require_sbcs_codec = __commonJS((exports) => {
|
|
11027
11027
|
var Buffer2 = require_safer().Buffer;
|
|
11028
11028
|
exports._sbcs = SBCSCodec;
|
|
@@ -11079,7 +11079,7 @@ var require_sbcs_codec = __commonJS((exports) => {
|
|
|
11079
11079
|
SBCSDecoder.prototype.end = function() {};
|
|
11080
11080
|
});
|
|
11081
11081
|
|
|
11082
|
-
// node_modules/
|
|
11082
|
+
// node_modules/iconv-lite/encodings/sbcs-data.js
|
|
11083
11083
|
var require_sbcs_data = __commonJS((exports, module) => {
|
|
11084
11084
|
module.exports = {
|
|
11085
11085
|
10029: "maccenteuro",
|
|
@@ -11227,7 +11227,7 @@ var require_sbcs_data = __commonJS((exports, module) => {
|
|
|
11227
11227
|
};
|
|
11228
11228
|
});
|
|
11229
11229
|
|
|
11230
|
-
// node_modules/
|
|
11230
|
+
// node_modules/iconv-lite/encodings/sbcs-data-generated.js
|
|
11231
11231
|
var require_sbcs_data_generated = __commonJS((exports, module) => {
|
|
11232
11232
|
module.exports = {
|
|
11233
11233
|
"437": "cp437",
|
|
@@ -11684,7 +11684,7 @@ var require_sbcs_data_generated = __commonJS((exports, module) => {
|
|
|
11684
11684
|
};
|
|
11685
11685
|
});
|
|
11686
11686
|
|
|
11687
|
-
// node_modules/
|
|
11687
|
+
// node_modules/iconv-lite/encodings/dbcs-codec.js
|
|
11688
11688
|
var require_dbcs_codec = __commonJS((exports) => {
|
|
11689
11689
|
var Buffer2 = require_safer().Buffer;
|
|
11690
11690
|
exports._dbcs = DBCSCodec;
|
|
@@ -12142,7 +12142,7 @@ var require_dbcs_codec = __commonJS((exports) => {
|
|
|
12142
12142
|
}
|
|
12143
12143
|
});
|
|
12144
12144
|
|
|
12145
|
-
// node_modules/
|
|
12145
|
+
// node_modules/iconv-lite/encodings/tables/shiftjis.json
|
|
12146
12146
|
var require_shiftjis = __commonJS((exports, module) => {
|
|
12147
12147
|
module.exports = [
|
|
12148
12148
|
["0", "\x00", 128],
|
|
@@ -12271,7 +12271,7 @@ var require_shiftjis = __commonJS((exports, module) => {
|
|
|
12271
12271
|
];
|
|
12272
12272
|
});
|
|
12273
12273
|
|
|
12274
|
-
// node_modules/
|
|
12274
|
+
// node_modules/iconv-lite/encodings/tables/eucjp.json
|
|
12275
12275
|
var require_eucjp = __commonJS((exports, module) => {
|
|
12276
12276
|
module.exports = [
|
|
12277
12277
|
["0", "\x00", 127],
|
|
@@ -12457,7 +12457,7 @@ var require_eucjp = __commonJS((exports, module) => {
|
|
|
12457
12457
|
];
|
|
12458
12458
|
});
|
|
12459
12459
|
|
|
12460
|
-
// node_modules/
|
|
12460
|
+
// node_modules/iconv-lite/encodings/tables/cp936.json
|
|
12461
12461
|
var require_cp936 = __commonJS((exports, module) => {
|
|
12462
12462
|
module.exports = [
|
|
12463
12463
|
["0", "\x00", 127, "€"],
|
|
@@ -12725,7 +12725,7 @@ var require_cp936 = __commonJS((exports, module) => {
|
|
|
12725
12725
|
];
|
|
12726
12726
|
});
|
|
12727
12727
|
|
|
12728
|
-
// node_modules/
|
|
12728
|
+
// node_modules/iconv-lite/encodings/tables/gbk-added.json
|
|
12729
12729
|
var require_gbk_added = __commonJS((exports, module) => {
|
|
12730
12730
|
module.exports = [
|
|
12731
12731
|
["a140", "", 62],
|
|
@@ -12785,12 +12785,12 @@ var require_gbk_added = __commonJS((exports, module) => {
|
|
|
12785
12785
|
];
|
|
12786
12786
|
});
|
|
12787
12787
|
|
|
12788
|
-
// node_modules/
|
|
12788
|
+
// node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
|
|
12789
12789
|
var require_gb18030_ranges = __commonJS((exports, module) => {
|
|
12790
12790
|
module.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, 189000] };
|
|
12791
12791
|
});
|
|
12792
12792
|
|
|
12793
|
-
// node_modules/
|
|
12793
|
+
// node_modules/iconv-lite/encodings/tables/cp949.json
|
|
12794
12794
|
var require_cp949 = __commonJS((exports, module) => {
|
|
12795
12795
|
module.exports = [
|
|
12796
12796
|
["0", "\x00", 127],
|
|
@@ -13067,7 +13067,7 @@ var require_cp949 = __commonJS((exports, module) => {
|
|
|
13067
13067
|
];
|
|
13068
13068
|
});
|
|
13069
13069
|
|
|
13070
|
-
// node_modules/
|
|
13070
|
+
// node_modules/iconv-lite/encodings/tables/cp950.json
|
|
13071
13071
|
var require_cp950 = __commonJS((exports, module) => {
|
|
13072
13072
|
module.exports = [
|
|
13073
13073
|
["0", "\x00", 127],
|
|
@@ -13248,7 +13248,7 @@ var require_cp950 = __commonJS((exports, module) => {
|
|
|
13248
13248
|
];
|
|
13249
13249
|
});
|
|
13250
13250
|
|
|
13251
|
-
// node_modules/
|
|
13251
|
+
// node_modules/iconv-lite/encodings/tables/big5-added.json
|
|
13252
13252
|
var require_big5_added = __commonJS((exports, module) => {
|
|
13253
13253
|
module.exports = [
|
|
13254
13254
|
["8740", "䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"],
|
|
@@ -13374,7 +13374,7 @@ var require_big5_added = __commonJS((exports, module) => {
|
|
|
13374
13374
|
];
|
|
13375
13375
|
});
|
|
13376
13376
|
|
|
13377
|
-
// node_modules/
|
|
13377
|
+
// node_modules/iconv-lite/encodings/dbcs-data.js
|
|
13378
13378
|
var require_dbcs_data = __commonJS((exports, module) => {
|
|
13379
13379
|
module.exports = {
|
|
13380
13380
|
shiftjis: {
|
|
@@ -13545,7 +13545,7 @@ var require_dbcs_data = __commonJS((exports, module) => {
|
|
|
13545
13545
|
};
|
|
13546
13546
|
});
|
|
13547
13547
|
|
|
13548
|
-
// node_modules/
|
|
13548
|
+
// node_modules/iconv-lite/encodings/index.js
|
|
13549
13549
|
var require_encodings = __commonJS((exports, module) => {
|
|
13550
13550
|
var mergeModules = require_merge_exports();
|
|
13551
13551
|
var modules = [
|
|
@@ -13567,7 +13567,7 @@ var require_encodings = __commonJS((exports, module) => {
|
|
|
13567
13567
|
var i;
|
|
13568
13568
|
});
|
|
13569
13569
|
|
|
13570
|
-
// node_modules/
|
|
13570
|
+
// node_modules/iconv-lite/lib/streams.js
|
|
13571
13571
|
var require_streams = __commonJS((exports, module) => {
|
|
13572
13572
|
var Buffer2 = require_safer().Buffer;
|
|
13573
13573
|
module.exports = function(streamModule) {
|
|
@@ -13665,7 +13665,7 @@ var require_streams = __commonJS((exports, module) => {
|
|
|
13665
13665
|
};
|
|
13666
13666
|
});
|
|
13667
13667
|
|
|
13668
|
-
// node_modules/
|
|
13668
|
+
// node_modules/iconv-lite/lib/index.js
|
|
13669
13669
|
var require_lib = __commonJS((exports, module) => {
|
|
13670
13670
|
var Buffer2 = require_safer().Buffer;
|
|
13671
13671
|
var bomHandling = require_bom_handling();
|
|
@@ -14356,316 +14356,6 @@ var init_stdio2 = __esm(() => {
|
|
|
14356
14356
|
init_stdio();
|
|
14357
14357
|
});
|
|
14358
14358
|
|
|
14359
|
-
// node_modules/statuses/codes.json
|
|
14360
|
-
var require_codes2 = __commonJS((exports, module) => {
|
|
14361
|
-
module.exports = {
|
|
14362
|
-
"100": "Continue",
|
|
14363
|
-
"101": "Switching Protocols",
|
|
14364
|
-
"102": "Processing",
|
|
14365
|
-
"103": "Early Hints",
|
|
14366
|
-
"200": "OK",
|
|
14367
|
-
"201": "Created",
|
|
14368
|
-
"202": "Accepted",
|
|
14369
|
-
"203": "Non-Authoritative Information",
|
|
14370
|
-
"204": "No Content",
|
|
14371
|
-
"205": "Reset Content",
|
|
14372
|
-
"206": "Partial Content",
|
|
14373
|
-
"207": "Multi-Status",
|
|
14374
|
-
"208": "Already Reported",
|
|
14375
|
-
"226": "IM Used",
|
|
14376
|
-
"300": "Multiple Choices",
|
|
14377
|
-
"301": "Moved Permanently",
|
|
14378
|
-
"302": "Found",
|
|
14379
|
-
"303": "See Other",
|
|
14380
|
-
"304": "Not Modified",
|
|
14381
|
-
"305": "Use Proxy",
|
|
14382
|
-
"307": "Temporary Redirect",
|
|
14383
|
-
"308": "Permanent Redirect",
|
|
14384
|
-
"400": "Bad Request",
|
|
14385
|
-
"401": "Unauthorized",
|
|
14386
|
-
"402": "Payment Required",
|
|
14387
|
-
"403": "Forbidden",
|
|
14388
|
-
"404": "Not Found",
|
|
14389
|
-
"405": "Method Not Allowed",
|
|
14390
|
-
"406": "Not Acceptable",
|
|
14391
|
-
"407": "Proxy Authentication Required",
|
|
14392
|
-
"408": "Request Timeout",
|
|
14393
|
-
"409": "Conflict",
|
|
14394
|
-
"410": "Gone",
|
|
14395
|
-
"411": "Length Required",
|
|
14396
|
-
"412": "Precondition Failed",
|
|
14397
|
-
"413": "Payload Too Large",
|
|
14398
|
-
"414": "URI Too Long",
|
|
14399
|
-
"415": "Unsupported Media Type",
|
|
14400
|
-
"416": "Range Not Satisfiable",
|
|
14401
|
-
"417": "Expectation Failed",
|
|
14402
|
-
"418": "I'm a Teapot",
|
|
14403
|
-
"421": "Misdirected Request",
|
|
14404
|
-
"422": "Unprocessable Entity",
|
|
14405
|
-
"423": "Locked",
|
|
14406
|
-
"424": "Failed Dependency",
|
|
14407
|
-
"425": "Too Early",
|
|
14408
|
-
"426": "Upgrade Required",
|
|
14409
|
-
"428": "Precondition Required",
|
|
14410
|
-
"429": "Too Many Requests",
|
|
14411
|
-
"431": "Request Header Fields Too Large",
|
|
14412
|
-
"451": "Unavailable For Legal Reasons",
|
|
14413
|
-
"500": "Internal Server Error",
|
|
14414
|
-
"501": "Not Implemented",
|
|
14415
|
-
"502": "Bad Gateway",
|
|
14416
|
-
"503": "Service Unavailable",
|
|
14417
|
-
"504": "Gateway Timeout",
|
|
14418
|
-
"505": "HTTP Version Not Supported",
|
|
14419
|
-
"506": "Variant Also Negotiates",
|
|
14420
|
-
"507": "Insufficient Storage",
|
|
14421
|
-
"508": "Loop Detected",
|
|
14422
|
-
"509": "Bandwidth Limit Exceeded",
|
|
14423
|
-
"510": "Not Extended",
|
|
14424
|
-
"511": "Network Authentication Required"
|
|
14425
|
-
};
|
|
14426
|
-
});
|
|
14427
|
-
|
|
14428
|
-
// node_modules/statuses/index.js
|
|
14429
|
-
var require_statuses2 = __commonJS((exports, module) => {
|
|
14430
|
-
/*!
|
|
14431
|
-
* statuses
|
|
14432
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
14433
|
-
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
14434
|
-
* MIT Licensed
|
|
14435
|
-
*/
|
|
14436
|
-
var codes = require_codes2();
|
|
14437
|
-
module.exports = status;
|
|
14438
|
-
status.message = codes;
|
|
14439
|
-
status.code = createMessageToStatusCodeMap(codes);
|
|
14440
|
-
status.codes = createStatusCodeList(codes);
|
|
14441
|
-
status.redirect = {
|
|
14442
|
-
300: true,
|
|
14443
|
-
301: true,
|
|
14444
|
-
302: true,
|
|
14445
|
-
303: true,
|
|
14446
|
-
305: true,
|
|
14447
|
-
307: true,
|
|
14448
|
-
308: true
|
|
14449
|
-
};
|
|
14450
|
-
status.empty = {
|
|
14451
|
-
204: true,
|
|
14452
|
-
205: true,
|
|
14453
|
-
304: true
|
|
14454
|
-
};
|
|
14455
|
-
status.retry = {
|
|
14456
|
-
502: true,
|
|
14457
|
-
503: true,
|
|
14458
|
-
504: true
|
|
14459
|
-
};
|
|
14460
|
-
function createMessageToStatusCodeMap(codes2) {
|
|
14461
|
-
var map = {};
|
|
14462
|
-
Object.keys(codes2).forEach(function forEachCode(code) {
|
|
14463
|
-
var message = codes2[code];
|
|
14464
|
-
var status2 = Number(code);
|
|
14465
|
-
map[message.toLowerCase()] = status2;
|
|
14466
|
-
});
|
|
14467
|
-
return map;
|
|
14468
|
-
}
|
|
14469
|
-
function createStatusCodeList(codes2) {
|
|
14470
|
-
return Object.keys(codes2).map(function mapCode(code) {
|
|
14471
|
-
return Number(code);
|
|
14472
|
-
});
|
|
14473
|
-
}
|
|
14474
|
-
function getStatusCode(message) {
|
|
14475
|
-
var msg = message.toLowerCase();
|
|
14476
|
-
if (!Object.prototype.hasOwnProperty.call(status.code, msg)) {
|
|
14477
|
-
throw new Error('invalid status message: "' + message + '"');
|
|
14478
|
-
}
|
|
14479
|
-
return status.code[msg];
|
|
14480
|
-
}
|
|
14481
|
-
function getStatusMessage(code) {
|
|
14482
|
-
if (!Object.prototype.hasOwnProperty.call(status.message, code)) {
|
|
14483
|
-
throw new Error("invalid status code: " + code);
|
|
14484
|
-
}
|
|
14485
|
-
return status.message[code];
|
|
14486
|
-
}
|
|
14487
|
-
function status(code) {
|
|
14488
|
-
if (typeof code === "number") {
|
|
14489
|
-
return getStatusMessage(code);
|
|
14490
|
-
}
|
|
14491
|
-
if (typeof code !== "string") {
|
|
14492
|
-
throw new TypeError("code must be a number or string");
|
|
14493
|
-
}
|
|
14494
|
-
var n = parseInt(code, 10);
|
|
14495
|
-
if (!isNaN(n)) {
|
|
14496
|
-
return getStatusMessage(n);
|
|
14497
|
-
}
|
|
14498
|
-
return getStatusCode(code);
|
|
14499
|
-
}
|
|
14500
|
-
});
|
|
14501
|
-
|
|
14502
|
-
// node_modules/http-errors/index.js
|
|
14503
|
-
var require_http_errors2 = __commonJS((exports, module) => {
|
|
14504
|
-
/*!
|
|
14505
|
-
* http-errors
|
|
14506
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
14507
|
-
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
14508
|
-
* MIT Licensed
|
|
14509
|
-
*/
|
|
14510
|
-
var deprecate = require_depd()("http-errors");
|
|
14511
|
-
var setPrototypeOf = require_setprototypeof();
|
|
14512
|
-
var statuses = require_statuses2();
|
|
14513
|
-
var inherits = require_inherits();
|
|
14514
|
-
var toIdentifier = require_toidentifier();
|
|
14515
|
-
module.exports = createError;
|
|
14516
|
-
module.exports.HttpError = createHttpErrorConstructor();
|
|
14517
|
-
module.exports.isHttpError = createIsHttpErrorFunction(module.exports.HttpError);
|
|
14518
|
-
populateConstructorExports(module.exports, statuses.codes, module.exports.HttpError);
|
|
14519
|
-
function codeClass(status) {
|
|
14520
|
-
return Number(String(status).charAt(0) + "00");
|
|
14521
|
-
}
|
|
14522
|
-
function createError() {
|
|
14523
|
-
var err;
|
|
14524
|
-
var msg;
|
|
14525
|
-
var status = 500;
|
|
14526
|
-
var props = {};
|
|
14527
|
-
for (var i = 0;i < arguments.length; i++) {
|
|
14528
|
-
var arg = arguments[i];
|
|
14529
|
-
var type = typeof arg;
|
|
14530
|
-
if (type === "object" && arg instanceof Error) {
|
|
14531
|
-
err = arg;
|
|
14532
|
-
status = err.status || err.statusCode || status;
|
|
14533
|
-
} else if (type === "number" && i === 0) {
|
|
14534
|
-
status = arg;
|
|
14535
|
-
} else if (type === "string") {
|
|
14536
|
-
msg = arg;
|
|
14537
|
-
} else if (type === "object") {
|
|
14538
|
-
props = arg;
|
|
14539
|
-
} else {
|
|
14540
|
-
throw new TypeError("argument #" + (i + 1) + " unsupported type " + type);
|
|
14541
|
-
}
|
|
14542
|
-
}
|
|
14543
|
-
if (typeof status === "number" && (status < 400 || status >= 600)) {
|
|
14544
|
-
deprecate("non-error status code; use only 4xx or 5xx status codes");
|
|
14545
|
-
}
|
|
14546
|
-
if (typeof status !== "number" || !statuses.message[status] && (status < 400 || status >= 600)) {
|
|
14547
|
-
status = 500;
|
|
14548
|
-
}
|
|
14549
|
-
var HttpError = createError[status] || createError[codeClass(status)];
|
|
14550
|
-
if (!err) {
|
|
14551
|
-
err = HttpError ? new HttpError(msg) : new Error(msg || statuses.message[status]);
|
|
14552
|
-
Error.captureStackTrace(err, createError);
|
|
14553
|
-
}
|
|
14554
|
-
if (!HttpError || !(err instanceof HttpError) || err.status !== status) {
|
|
14555
|
-
err.expose = status < 500;
|
|
14556
|
-
err.status = err.statusCode = status;
|
|
14557
|
-
}
|
|
14558
|
-
for (var key in props) {
|
|
14559
|
-
if (key !== "status" && key !== "statusCode") {
|
|
14560
|
-
err[key] = props[key];
|
|
14561
|
-
}
|
|
14562
|
-
}
|
|
14563
|
-
return err;
|
|
14564
|
-
}
|
|
14565
|
-
function createHttpErrorConstructor() {
|
|
14566
|
-
function HttpError() {
|
|
14567
|
-
throw new TypeError("cannot construct abstract class");
|
|
14568
|
-
}
|
|
14569
|
-
inherits(HttpError, Error);
|
|
14570
|
-
return HttpError;
|
|
14571
|
-
}
|
|
14572
|
-
function createClientErrorConstructor(HttpError, name, code) {
|
|
14573
|
-
var className = toClassName(name);
|
|
14574
|
-
function ClientError(message) {
|
|
14575
|
-
var msg = message != null ? message : statuses.message[code];
|
|
14576
|
-
var err = new Error(msg);
|
|
14577
|
-
Error.captureStackTrace(err, ClientError);
|
|
14578
|
-
setPrototypeOf(err, ClientError.prototype);
|
|
14579
|
-
Object.defineProperty(err, "message", {
|
|
14580
|
-
enumerable: true,
|
|
14581
|
-
configurable: true,
|
|
14582
|
-
value: msg,
|
|
14583
|
-
writable: true
|
|
14584
|
-
});
|
|
14585
|
-
Object.defineProperty(err, "name", {
|
|
14586
|
-
enumerable: false,
|
|
14587
|
-
configurable: true,
|
|
14588
|
-
value: className,
|
|
14589
|
-
writable: true
|
|
14590
|
-
});
|
|
14591
|
-
return err;
|
|
14592
|
-
}
|
|
14593
|
-
inherits(ClientError, HttpError);
|
|
14594
|
-
nameFunc(ClientError, className);
|
|
14595
|
-
ClientError.prototype.status = code;
|
|
14596
|
-
ClientError.prototype.statusCode = code;
|
|
14597
|
-
ClientError.prototype.expose = true;
|
|
14598
|
-
return ClientError;
|
|
14599
|
-
}
|
|
14600
|
-
function createIsHttpErrorFunction(HttpError) {
|
|
14601
|
-
return function isHttpError(val) {
|
|
14602
|
-
if (!val || typeof val !== "object") {
|
|
14603
|
-
return false;
|
|
14604
|
-
}
|
|
14605
|
-
if (val instanceof HttpError) {
|
|
14606
|
-
return true;
|
|
14607
|
-
}
|
|
14608
|
-
return val instanceof Error && typeof val.expose === "boolean" && typeof val.statusCode === "number" && val.status === val.statusCode;
|
|
14609
|
-
};
|
|
14610
|
-
}
|
|
14611
|
-
function createServerErrorConstructor(HttpError, name, code) {
|
|
14612
|
-
var className = toClassName(name);
|
|
14613
|
-
function ServerError(message) {
|
|
14614
|
-
var msg = message != null ? message : statuses.message[code];
|
|
14615
|
-
var err = new Error(msg);
|
|
14616
|
-
Error.captureStackTrace(err, ServerError);
|
|
14617
|
-
setPrototypeOf(err, ServerError.prototype);
|
|
14618
|
-
Object.defineProperty(err, "message", {
|
|
14619
|
-
enumerable: true,
|
|
14620
|
-
configurable: true,
|
|
14621
|
-
value: msg,
|
|
14622
|
-
writable: true
|
|
14623
|
-
});
|
|
14624
|
-
Object.defineProperty(err, "name", {
|
|
14625
|
-
enumerable: false,
|
|
14626
|
-
configurable: true,
|
|
14627
|
-
value: className,
|
|
14628
|
-
writable: true
|
|
14629
|
-
});
|
|
14630
|
-
return err;
|
|
14631
|
-
}
|
|
14632
|
-
inherits(ServerError, HttpError);
|
|
14633
|
-
nameFunc(ServerError, className);
|
|
14634
|
-
ServerError.prototype.status = code;
|
|
14635
|
-
ServerError.prototype.statusCode = code;
|
|
14636
|
-
ServerError.prototype.expose = false;
|
|
14637
|
-
return ServerError;
|
|
14638
|
-
}
|
|
14639
|
-
function nameFunc(func, name) {
|
|
14640
|
-
var desc = Object.getOwnPropertyDescriptor(func, "name");
|
|
14641
|
-
if (desc && desc.configurable) {
|
|
14642
|
-
desc.value = name;
|
|
14643
|
-
Object.defineProperty(func, "name", desc);
|
|
14644
|
-
}
|
|
14645
|
-
}
|
|
14646
|
-
function populateConstructorExports(exports2, codes, HttpError) {
|
|
14647
|
-
codes.forEach(function forEachCode(code) {
|
|
14648
|
-
var CodeError;
|
|
14649
|
-
var name = toIdentifier(statuses.message[code]);
|
|
14650
|
-
switch (codeClass(code)) {
|
|
14651
|
-
case 400:
|
|
14652
|
-
CodeError = createClientErrorConstructor(HttpError, name, code);
|
|
14653
|
-
break;
|
|
14654
|
-
case 500:
|
|
14655
|
-
CodeError = createServerErrorConstructor(HttpError, name, code);
|
|
14656
|
-
break;
|
|
14657
|
-
}
|
|
14658
|
-
if (CodeError) {
|
|
14659
|
-
exports2[code] = CodeError;
|
|
14660
|
-
exports2[name] = CodeError;
|
|
14661
|
-
}
|
|
14662
|
-
});
|
|
14663
|
-
}
|
|
14664
|
-
function toClassName(name) {
|
|
14665
|
-
return name.substr(-5) !== "Error" ? name + "Error" : name;
|
|
14666
|
-
}
|
|
14667
|
-
});
|
|
14668
|
-
|
|
14669
14359
|
// node_modules/body-parser/node_modules/ms/index.js
|
|
14670
14360
|
var require_ms = __commonJS((exports, module) => {
|
|
14671
14361
|
var s = 1000;
|
|
@@ -15171,7 +14861,7 @@ var require_destroy = __commonJS((exports, module) => {
|
|
|
15171
14861
|
}
|
|
15172
14862
|
});
|
|
15173
14863
|
|
|
15174
|
-
// node_modules/iconv-lite/lib/bom-handling.js
|
|
14864
|
+
// node_modules/body-parser/node_modules/iconv-lite/lib/bom-handling.js
|
|
15175
14865
|
var require_bom_handling2 = __commonJS((exports) => {
|
|
15176
14866
|
var BOMChar = "\uFEFF";
|
|
15177
14867
|
exports.PrependBOM = PrependBOMWrapper;
|
|
@@ -15212,7 +14902,7 @@ var require_bom_handling2 = __commonJS((exports) => {
|
|
|
15212
14902
|
};
|
|
15213
14903
|
});
|
|
15214
14904
|
|
|
15215
|
-
// node_modules/iconv-lite/encodings/internal.js
|
|
14905
|
+
// node_modules/body-parser/node_modules/iconv-lite/encodings/internal.js
|
|
15216
14906
|
var require_internal2 = __commonJS((exports, module) => {
|
|
15217
14907
|
var Buffer2 = require_safer().Buffer;
|
|
15218
14908
|
module.exports = {
|
|
@@ -15347,7 +15037,7 @@ var require_internal2 = __commonJS((exports, module) => {
|
|
|
15347
15037
|
};
|
|
15348
15038
|
});
|
|
15349
15039
|
|
|
15350
|
-
// node_modules/iconv-lite/encodings/utf16.js
|
|
15040
|
+
// node_modules/body-parser/node_modules/iconv-lite/encodings/utf16.js
|
|
15351
15041
|
var require_utf162 = __commonJS((exports) => {
|
|
15352
15042
|
var Buffer2 = require_safer().Buffer;
|
|
15353
15043
|
exports.utf16be = Utf16BECodec;
|
|
@@ -15458,7 +15148,7 @@ var require_utf162 = __commonJS((exports) => {
|
|
|
15458
15148
|
}
|
|
15459
15149
|
});
|
|
15460
15150
|
|
|
15461
|
-
// node_modules/iconv-lite/encodings/utf7.js
|
|
15151
|
+
// node_modules/body-parser/node_modules/iconv-lite/encodings/utf7.js
|
|
15462
15152
|
var require_utf72 = __commonJS((exports) => {
|
|
15463
15153
|
var Buffer2 = require_safer().Buffer;
|
|
15464
15154
|
exports.utf7 = Utf7Codec;
|
|
@@ -15655,7 +15345,7 @@ var require_utf72 = __commonJS((exports) => {
|
|
|
15655
15345
|
};
|
|
15656
15346
|
});
|
|
15657
15347
|
|
|
15658
|
-
// node_modules/iconv-lite/encodings/sbcs-codec.js
|
|
15348
|
+
// node_modules/body-parser/node_modules/iconv-lite/encodings/sbcs-codec.js
|
|
15659
15349
|
var require_sbcs_codec2 = __commonJS((exports) => {
|
|
15660
15350
|
var Buffer2 = require_safer().Buffer;
|
|
15661
15351
|
exports._sbcs = SBCSCodec;
|
|
@@ -15706,7 +15396,7 @@ var require_sbcs_codec2 = __commonJS((exports) => {
|
|
|
15706
15396
|
SBCSDecoder.prototype.end = function() {};
|
|
15707
15397
|
});
|
|
15708
15398
|
|
|
15709
|
-
// node_modules/iconv-lite/encodings/sbcs-data.js
|
|
15399
|
+
// node_modules/body-parser/node_modules/iconv-lite/encodings/sbcs-data.js
|
|
15710
15400
|
var require_sbcs_data2 = __commonJS((exports, module) => {
|
|
15711
15401
|
module.exports = {
|
|
15712
15402
|
"10029": "maccenteuro",
|
|
@@ -15850,7 +15540,7 @@ var require_sbcs_data2 = __commonJS((exports, module) => {
|
|
|
15850
15540
|
};
|
|
15851
15541
|
});
|
|
15852
15542
|
|
|
15853
|
-
// node_modules/iconv-lite/encodings/sbcs-data-generated.js
|
|
15543
|
+
// node_modules/body-parser/node_modules/iconv-lite/encodings/sbcs-data-generated.js
|
|
15854
15544
|
var require_sbcs_data_generated2 = __commonJS((exports, module) => {
|
|
15855
15545
|
module.exports = {
|
|
15856
15546
|
"437": "cp437",
|
|
@@ -16307,7 +15997,7 @@ var require_sbcs_data_generated2 = __commonJS((exports, module) => {
|
|
|
16307
15997
|
};
|
|
16308
15998
|
});
|
|
16309
15999
|
|
|
16310
|
-
// node_modules/iconv-lite/encodings/dbcs-codec.js
|
|
16000
|
+
// node_modules/body-parser/node_modules/iconv-lite/encodings/dbcs-codec.js
|
|
16311
16001
|
var require_dbcs_codec2 = __commonJS((exports) => {
|
|
16312
16002
|
var Buffer2 = require_safer().Buffer;
|
|
16313
16003
|
exports._dbcs = DBCSCodec;
|
|
@@ -16686,7 +16376,7 @@ var require_dbcs_codec2 = __commonJS((exports) => {
|
|
|
16686
16376
|
}
|
|
16687
16377
|
});
|
|
16688
16378
|
|
|
16689
|
-
// node_modules/iconv-lite/encodings/tables/shiftjis.json
|
|
16379
|
+
// node_modules/body-parser/node_modules/iconv-lite/encodings/tables/shiftjis.json
|
|
16690
16380
|
var require_shiftjis2 = __commonJS((exports, module) => {
|
|
16691
16381
|
module.exports = [
|
|
16692
16382
|
["0", "\x00", 128],
|
|
@@ -16815,7 +16505,7 @@ var require_shiftjis2 = __commonJS((exports, module) => {
|
|
|
16815
16505
|
];
|
|
16816
16506
|
});
|
|
16817
16507
|
|
|
16818
|
-
// node_modules/iconv-lite/encodings/tables/eucjp.json
|
|
16508
|
+
// node_modules/body-parser/node_modules/iconv-lite/encodings/tables/eucjp.json
|
|
16819
16509
|
var require_eucjp2 = __commonJS((exports, module) => {
|
|
16820
16510
|
module.exports = [
|
|
16821
16511
|
["0", "\x00", 127],
|
|
@@ -17001,7 +16691,7 @@ var require_eucjp2 = __commonJS((exports, module) => {
|
|
|
17001
16691
|
];
|
|
17002
16692
|
});
|
|
17003
16693
|
|
|
17004
|
-
// node_modules/iconv-lite/encodings/tables/cp936.json
|
|
16694
|
+
// node_modules/body-parser/node_modules/iconv-lite/encodings/tables/cp936.json
|
|
17005
16695
|
var require_cp9362 = __commonJS((exports, module) => {
|
|
17006
16696
|
module.exports = [
|
|
17007
16697
|
["0", "\x00", 127, "€"],
|
|
@@ -17269,7 +16959,7 @@ var require_cp9362 = __commonJS((exports, module) => {
|
|
|
17269
16959
|
];
|
|
17270
16960
|
});
|
|
17271
16961
|
|
|
17272
|
-
// node_modules/iconv-lite/encodings/tables/gbk-added.json
|
|
16962
|
+
// node_modules/body-parser/node_modules/iconv-lite/encodings/tables/gbk-added.json
|
|
17273
16963
|
var require_gbk_added2 = __commonJS((exports, module) => {
|
|
17274
16964
|
module.exports = [
|
|
17275
16965
|
["a140", "", 62],
|
|
@@ -17328,12 +17018,12 @@ var require_gbk_added2 = __commonJS((exports, module) => {
|
|
|
17328
17018
|
];
|
|
17329
17019
|
});
|
|
17330
17020
|
|
|
17331
|
-
// node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
|
|
17021
|
+
// node_modules/body-parser/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
|
|
17332
17022
|
var require_gb18030_ranges2 = __commonJS((exports, module) => {
|
|
17333
17023
|
module.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, 189000] };
|
|
17334
17024
|
});
|
|
17335
17025
|
|
|
17336
|
-
// node_modules/iconv-lite/encodings/tables/cp949.json
|
|
17026
|
+
// node_modules/body-parser/node_modules/iconv-lite/encodings/tables/cp949.json
|
|
17337
17027
|
var require_cp9492 = __commonJS((exports, module) => {
|
|
17338
17028
|
module.exports = [
|
|
17339
17029
|
["0", "\x00", 127],
|
|
@@ -17610,7 +17300,7 @@ var require_cp9492 = __commonJS((exports, module) => {
|
|
|
17610
17300
|
];
|
|
17611
17301
|
});
|
|
17612
17302
|
|
|
17613
|
-
// node_modules/iconv-lite/encodings/tables/cp950.json
|
|
17303
|
+
// node_modules/body-parser/node_modules/iconv-lite/encodings/tables/cp950.json
|
|
17614
17304
|
var require_cp9502 = __commonJS((exports, module) => {
|
|
17615
17305
|
module.exports = [
|
|
17616
17306
|
["0", "\x00", 127],
|
|
@@ -17791,7 +17481,7 @@ var require_cp9502 = __commonJS((exports, module) => {
|
|
|
17791
17481
|
];
|
|
17792
17482
|
});
|
|
17793
17483
|
|
|
17794
|
-
// node_modules/iconv-lite/encodings/tables/big5-added.json
|
|
17484
|
+
// node_modules/body-parser/node_modules/iconv-lite/encodings/tables/big5-added.json
|
|
17795
17485
|
var require_big5_added2 = __commonJS((exports, module) => {
|
|
17796
17486
|
module.exports = [
|
|
17797
17487
|
["8740", "䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"],
|
|
@@ -17917,7 +17607,7 @@ var require_big5_added2 = __commonJS((exports, module) => {
|
|
|
17917
17607
|
];
|
|
17918
17608
|
});
|
|
17919
17609
|
|
|
17920
|
-
// node_modules/iconv-lite/encodings/dbcs-data.js
|
|
17610
|
+
// node_modules/body-parser/node_modules/iconv-lite/encodings/dbcs-data.js
|
|
17921
17611
|
var require_dbcs_data2 = __commonJS((exports, module) => {
|
|
17922
17612
|
module.exports = {
|
|
17923
17613
|
shiftjis: {
|
|
@@ -18020,7 +17710,7 @@ var require_dbcs_data2 = __commonJS((exports, module) => {
|
|
|
18020
17710
|
};
|
|
18021
17711
|
});
|
|
18022
17712
|
|
|
18023
|
-
// node_modules/iconv-lite/encodings/index.js
|
|
17713
|
+
// node_modules/body-parser/node_modules/iconv-lite/encodings/index.js
|
|
18024
17714
|
var require_encodings2 = __commonJS((exports, module) => {
|
|
18025
17715
|
var modules = [
|
|
18026
17716
|
require_internal2(),
|
|
@@ -18043,7 +17733,7 @@ var require_encodings2 = __commonJS((exports, module) => {
|
|
|
18043
17733
|
var i;
|
|
18044
17734
|
});
|
|
18045
17735
|
|
|
18046
|
-
// node_modules/iconv-lite/lib/streams.js
|
|
17736
|
+
// node_modules/body-parser/node_modules/iconv-lite/lib/streams.js
|
|
18047
17737
|
var require_streams2 = __commonJS((exports, module) => {
|
|
18048
17738
|
var Buffer2 = __require("buffer").Buffer;
|
|
18049
17739
|
var Transform = __require("stream").Transform;
|
|
@@ -18145,7 +17835,7 @@ var require_streams2 = __commonJS((exports, module) => {
|
|
|
18145
17835
|
};
|
|
18146
17836
|
});
|
|
18147
17837
|
|
|
18148
|
-
// node_modules/iconv-lite/lib/extend-node.js
|
|
17838
|
+
// node_modules/body-parser/node_modules/iconv-lite/lib/extend-node.js
|
|
18149
17839
|
var require_extend_node = __commonJS((exports, module) => {
|
|
18150
17840
|
var Buffer2 = __require("buffer").Buffer;
|
|
18151
17841
|
module.exports = function(iconv) {
|
|
@@ -18311,7 +18001,7 @@ var require_extend_node = __commonJS((exports, module) => {
|
|
|
18311
18001
|
};
|
|
18312
18002
|
});
|
|
18313
18003
|
|
|
18314
|
-
// node_modules/iconv-lite/lib/index.js
|
|
18004
|
+
// node_modules/body-parser/node_modules/iconv-lite/lib/index.js
|
|
18315
18005
|
var require_lib2 = __commonJS((exports, module) => {
|
|
18316
18006
|
var Buffer2 = require_safer().Buffer;
|
|
18317
18007
|
var bomHandling = require_bom_handling2();
|
|
@@ -18419,7 +18109,7 @@ var require_raw_body2 = __commonJS((exports, module) => {
|
|
|
18419
18109
|
*/
|
|
18420
18110
|
var asyncHooks = tryRequireAsyncHooks();
|
|
18421
18111
|
var bytes = require_bytes();
|
|
18422
|
-
var createError =
|
|
18112
|
+
var createError = require_http_errors();
|
|
18423
18113
|
var iconv = require_lib2();
|
|
18424
18114
|
var unpipe = require_unpipe();
|
|
18425
18115
|
module.exports = getRawBody2;
|
|
@@ -18785,7 +18475,7 @@ var require_read = __commonJS((exports, module) => {
|
|
|
18785
18475
|
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
18786
18476
|
* MIT Licensed
|
|
18787
18477
|
*/
|
|
18788
|
-
var createError =
|
|
18478
|
+
var createError = require_http_errors();
|
|
18789
18479
|
var destroy = require_destroy();
|
|
18790
18480
|
var getBody = require_raw_body2();
|
|
18791
18481
|
var iconv = require_lib2();
|
|
@@ -27780,7 +27470,7 @@ var require_json = __commonJS((exports, module) => {
|
|
|
27780
27470
|
*/
|
|
27781
27471
|
var bytes = require_bytes();
|
|
27782
27472
|
var contentType2 = require_content_type();
|
|
27783
|
-
var createError =
|
|
27473
|
+
var createError = require_http_errors();
|
|
27784
27474
|
var debug = require_src()("body-parser:json");
|
|
27785
27475
|
var read = require_read();
|
|
27786
27476
|
var typeis = require_type_is();
|
|
@@ -27860,10 +27550,7 @@ var require_json = __commonJS((exports, module) => {
|
|
|
27860
27550
|
var index = str.indexOf(char);
|
|
27861
27551
|
var partial2 = "";
|
|
27862
27552
|
if (index !== -1) {
|
|
27863
|
-
partial2 = str.substring(0, index) + JSON_SYNTAX_CHAR;
|
|
27864
|
-
for (var i = index + 1;i < str.length; i++) {
|
|
27865
|
-
partial2 += JSON_SYNTAX_CHAR;
|
|
27866
|
-
}
|
|
27553
|
+
partial2 = str.substring(0, index) + new Array(str.length - index + 1).join(JSON_SYNTAX_CHAR);
|
|
27867
27554
|
}
|
|
27868
27555
|
try {
|
|
27869
27556
|
JSON.parse(partial2);
|
|
@@ -28625,9 +28312,8 @@ var require_side_channel_list = __commonJS((exports, module) => {
|
|
|
28625
28312
|
}
|
|
28626
28313
|
},
|
|
28627
28314
|
delete: function(key) {
|
|
28628
|
-
var root = $o && $o.next;
|
|
28629
28315
|
var deletedNode = listDelete($o, key);
|
|
28630
|
-
if (deletedNode &&
|
|
28316
|
+
if (deletedNode && $o && !$o.next) {
|
|
28631
28317
|
$o = undefined;
|
|
28632
28318
|
}
|
|
28633
28319
|
return !!deletedNode;
|
|
@@ -29496,7 +29182,7 @@ var require_side_channel = __commonJS((exports, module) => {
|
|
|
29496
29182
|
};
|
|
29497
29183
|
});
|
|
29498
29184
|
|
|
29499
|
-
// node_modules/qs/lib/formats.js
|
|
29185
|
+
// node_modules/body-parser/node_modules/qs/lib/formats.js
|
|
29500
29186
|
var require_formats = __commonJS((exports, module) => {
|
|
29501
29187
|
var replace = String.prototype.replace;
|
|
29502
29188
|
var percentTwenties = /%20/g;
|
|
@@ -29519,15 +29205,30 @@ var require_formats = __commonJS((exports, module) => {
|
|
|
29519
29205
|
};
|
|
29520
29206
|
});
|
|
29521
29207
|
|
|
29522
|
-
// node_modules/qs/lib/utils.js
|
|
29208
|
+
// node_modules/body-parser/node_modules/qs/lib/utils.js
|
|
29523
29209
|
var require_utils = __commonJS((exports, module) => {
|
|
29524
29210
|
var formats = require_formats();
|
|
29211
|
+
var getSideChannel = require_side_channel();
|
|
29525
29212
|
var has = Object.prototype.hasOwnProperty;
|
|
29526
29213
|
var isArray = Array.isArray;
|
|
29214
|
+
var overflowChannel = getSideChannel();
|
|
29215
|
+
var markOverflow = function markOverflow(obj, maxIndex) {
|
|
29216
|
+
overflowChannel.set(obj, maxIndex);
|
|
29217
|
+
return obj;
|
|
29218
|
+
};
|
|
29219
|
+
var isOverflow = function isOverflow(obj) {
|
|
29220
|
+
return overflowChannel.has(obj);
|
|
29221
|
+
};
|
|
29222
|
+
var getMaxIndex = function getMaxIndex(obj) {
|
|
29223
|
+
return overflowChannel.get(obj);
|
|
29224
|
+
};
|
|
29225
|
+
var setMaxIndex = function setMaxIndex(obj, maxIndex) {
|
|
29226
|
+
overflowChannel.set(obj, maxIndex);
|
|
29227
|
+
};
|
|
29527
29228
|
var hexTable = function() {
|
|
29528
29229
|
var array2 = [];
|
|
29529
29230
|
for (var i = 0;i < 256; ++i) {
|
|
29530
|
-
array2.
|
|
29231
|
+
array2[array2.length] = "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase();
|
|
29531
29232
|
}
|
|
29532
29233
|
return array2;
|
|
29533
29234
|
}();
|
|
@@ -29539,7 +29240,7 @@ var require_utils = __commonJS((exports, module) => {
|
|
|
29539
29240
|
var compacted = [];
|
|
29540
29241
|
for (var j2 = 0;j2 < obj.length; ++j2) {
|
|
29541
29242
|
if (typeof obj[j2] !== "undefined") {
|
|
29542
|
-
compacted.
|
|
29243
|
+
compacted[compacted.length] = obj[j2];
|
|
29543
29244
|
}
|
|
29544
29245
|
}
|
|
29545
29246
|
item.obj[item.prop] = compacted;
|
|
@@ -29547,7 +29248,7 @@ var require_utils = __commonJS((exports, module) => {
|
|
|
29547
29248
|
}
|
|
29548
29249
|
};
|
|
29549
29250
|
var arrayToObject = function arrayToObject(source, options) {
|
|
29550
|
-
var obj = options && options.plainObjects ?
|
|
29251
|
+
var obj = options && options.plainObjects ? { __proto__: null } : {};
|
|
29551
29252
|
for (var i = 0;i < source.length; ++i) {
|
|
29552
29253
|
if (typeof source[i] !== "undefined") {
|
|
29553
29254
|
obj[i] = source[i];
|
|
@@ -29559,11 +29260,21 @@ var require_utils = __commonJS((exports, module) => {
|
|
|
29559
29260
|
if (!source) {
|
|
29560
29261
|
return target;
|
|
29561
29262
|
}
|
|
29562
|
-
if (typeof source !== "object") {
|
|
29263
|
+
if (typeof source !== "object" && typeof source !== "function") {
|
|
29563
29264
|
if (isArray(target)) {
|
|
29564
|
-
target.
|
|
29265
|
+
var nextIndex = target.length;
|
|
29266
|
+
if (options && typeof options.arrayLimit === "number" && nextIndex > options.arrayLimit) {
|
|
29267
|
+
return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
|
|
29268
|
+
}
|
|
29269
|
+
target[nextIndex] = source;
|
|
29565
29270
|
} else if (target && typeof target === "object") {
|
|
29566
|
-
if (
|
|
29271
|
+
if (isOverflow(target)) {
|
|
29272
|
+
var newIndex = getMaxIndex(target) + 1;
|
|
29273
|
+
target[newIndex] = source;
|
|
29274
|
+
setMaxIndex(target, newIndex);
|
|
29275
|
+
} else if (options && options.strictMerge) {
|
|
29276
|
+
return [target, source];
|
|
29277
|
+
} else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
|
|
29567
29278
|
target[source] = true;
|
|
29568
29279
|
}
|
|
29569
29280
|
} else {
|
|
@@ -29572,7 +29283,20 @@ var require_utils = __commonJS((exports, module) => {
|
|
|
29572
29283
|
return target;
|
|
29573
29284
|
}
|
|
29574
29285
|
if (!target || typeof target !== "object") {
|
|
29575
|
-
|
|
29286
|
+
if (isOverflow(source)) {
|
|
29287
|
+
var sourceKeys = Object.keys(source);
|
|
29288
|
+
var result = options && options.plainObjects ? { __proto__: null, 0: target } : { 0: target };
|
|
29289
|
+
for (var m = 0;m < sourceKeys.length; m++) {
|
|
29290
|
+
var oldKey = parseInt(sourceKeys[m], 10);
|
|
29291
|
+
result[oldKey + 1] = source[sourceKeys[m]];
|
|
29292
|
+
}
|
|
29293
|
+
return markOverflow(result, getMaxIndex(source) + 1);
|
|
29294
|
+
}
|
|
29295
|
+
var combined = [target].concat(source);
|
|
29296
|
+
if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
|
|
29297
|
+
return markOverflow(arrayToObject(combined, options), combined.length - 1);
|
|
29298
|
+
}
|
|
29299
|
+
return combined;
|
|
29576
29300
|
}
|
|
29577
29301
|
var mergeTarget = target;
|
|
29578
29302
|
if (isArray(target) && !isArray(source)) {
|
|
@@ -29585,7 +29309,7 @@ var require_utils = __commonJS((exports, module) => {
|
|
|
29585
29309
|
if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
|
|
29586
29310
|
target[i] = merge(targetItem, item, options);
|
|
29587
29311
|
} else {
|
|
29588
|
-
target.
|
|
29312
|
+
target[target.length] = item;
|
|
29589
29313
|
}
|
|
29590
29314
|
} else {
|
|
29591
29315
|
target[i] = item;
|
|
@@ -29600,6 +29324,15 @@ var require_utils = __commonJS((exports, module) => {
|
|
|
29600
29324
|
} else {
|
|
29601
29325
|
acc[key] = value;
|
|
29602
29326
|
}
|
|
29327
|
+
if (isOverflow(source) && !isOverflow(acc)) {
|
|
29328
|
+
markOverflow(acc, getMaxIndex(source));
|
|
29329
|
+
}
|
|
29330
|
+
if (isOverflow(acc)) {
|
|
29331
|
+
var keyNum = parseInt(key, 10);
|
|
29332
|
+
if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
|
|
29333
|
+
setMaxIndex(acc, keyNum);
|
|
29334
|
+
}
|
|
29335
|
+
}
|
|
29603
29336
|
return acc;
|
|
29604
29337
|
}, mergeTarget);
|
|
29605
29338
|
};
|
|
@@ -29609,7 +29342,7 @@ var require_utils = __commonJS((exports, module) => {
|
|
|
29609
29342
|
return acc;
|
|
29610
29343
|
}, target);
|
|
29611
29344
|
};
|
|
29612
|
-
var decode = function(str,
|
|
29345
|
+
var decode = function(str, defaultDecoder, charset) {
|
|
29613
29346
|
var strWithoutPlus = str.replace(/\+/g, " ");
|
|
29614
29347
|
if (charset === "iso-8859-1") {
|
|
29615
29348
|
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -29677,8 +29410,8 @@ var require_utils = __commonJS((exports, module) => {
|
|
|
29677
29410
|
var key = keys[j2];
|
|
29678
29411
|
var val = obj[key];
|
|
29679
29412
|
if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
|
|
29680
|
-
queue.
|
|
29681
|
-
refs.
|
|
29413
|
+
queue[queue.length] = { obj, prop: key };
|
|
29414
|
+
refs[refs.length] = val;
|
|
29682
29415
|
}
|
|
29683
29416
|
}
|
|
29684
29417
|
}
|
|
@@ -29694,14 +29427,24 @@ var require_utils = __commonJS((exports, module) => {
|
|
|
29694
29427
|
}
|
|
29695
29428
|
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
29696
29429
|
};
|
|
29697
|
-
var combine = function combine(a, b2) {
|
|
29698
|
-
|
|
29430
|
+
var combine = function combine(a, b2, arrayLimit, plainObjects) {
|
|
29431
|
+
if (isOverflow(a)) {
|
|
29432
|
+
var newIndex = getMaxIndex(a) + 1;
|
|
29433
|
+
a[newIndex] = b2;
|
|
29434
|
+
setMaxIndex(a, newIndex);
|
|
29435
|
+
return a;
|
|
29436
|
+
}
|
|
29437
|
+
var result = [].concat(a, b2);
|
|
29438
|
+
if (result.length > arrayLimit) {
|
|
29439
|
+
return markOverflow(arrayToObject(result, { plainObjects }), result.length - 1);
|
|
29440
|
+
}
|
|
29441
|
+
return result;
|
|
29699
29442
|
};
|
|
29700
29443
|
var maybeMap = function maybeMap(val, fn) {
|
|
29701
29444
|
if (isArray(val)) {
|
|
29702
29445
|
var mapped = [];
|
|
29703
29446
|
for (var i = 0;i < val.length; i += 1) {
|
|
29704
|
-
mapped.
|
|
29447
|
+
mapped[mapped.length] = fn(val[i]);
|
|
29705
29448
|
}
|
|
29706
29449
|
return mapped;
|
|
29707
29450
|
}
|
|
@@ -29715,13 +29458,15 @@ var require_utils = __commonJS((exports, module) => {
|
|
|
29715
29458
|
decode,
|
|
29716
29459
|
encode,
|
|
29717
29460
|
isBuffer,
|
|
29461
|
+
isOverflow,
|
|
29718
29462
|
isRegExp,
|
|
29463
|
+
markOverflow,
|
|
29719
29464
|
maybeMap,
|
|
29720
29465
|
merge: merge2
|
|
29721
29466
|
};
|
|
29722
29467
|
});
|
|
29723
29468
|
|
|
29724
|
-
// node_modules/qs/lib/stringify.js
|
|
29469
|
+
// node_modules/body-parser/node_modules/qs/lib/stringify.js
|
|
29725
29470
|
var require_stringify = __commonJS((exports, module) => {
|
|
29726
29471
|
var getSideChannel = require_side_channel();
|
|
29727
29472
|
var utils = require_utils();
|
|
@@ -29753,11 +29498,13 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
29753
29498
|
arrayFormat: "indices",
|
|
29754
29499
|
charset: "utf-8",
|
|
29755
29500
|
charsetSentinel: false,
|
|
29501
|
+
commaRoundTrip: false,
|
|
29756
29502
|
delimiter: "&",
|
|
29757
29503
|
encode: true,
|
|
29758
29504
|
encodeDotInKeys: false,
|
|
29759
29505
|
encoder: utils.encode,
|
|
29760
29506
|
encodeValuesOnly: false,
|
|
29507
|
+
filter: undefined,
|
|
29761
29508
|
format: defaultFormat,
|
|
29762
29509
|
formatter: formats.formatters[defaultFormat],
|
|
29763
29510
|
indices: false,
|
|
@@ -29831,18 +29578,18 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
29831
29578
|
var keys = Object.keys(obj);
|
|
29832
29579
|
objKeys = sort ? keys.sort(sort) : keys;
|
|
29833
29580
|
}
|
|
29834
|
-
var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, "%2E") : prefix;
|
|
29581
|
+
var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix);
|
|
29835
29582
|
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
|
|
29836
29583
|
if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
|
|
29837
29584
|
return adjustedPrefix + "[]";
|
|
29838
29585
|
}
|
|
29839
29586
|
for (var j2 = 0;j2 < objKeys.length; ++j2) {
|
|
29840
29587
|
var key = objKeys[j2];
|
|
29841
|
-
var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
|
|
29588
|
+
var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key];
|
|
29842
29589
|
if (skipNulls && value === null) {
|
|
29843
29590
|
continue;
|
|
29844
29591
|
}
|
|
29845
|
-
var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, "%2E") : key;
|
|
29592
|
+
var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
|
|
29846
29593
|
var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
|
|
29847
29594
|
sideChannel.set(object2, step);
|
|
29848
29595
|
var valueSideChannel = getSideChannel();
|
|
@@ -29899,7 +29646,7 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
29899
29646
|
arrayFormat,
|
|
29900
29647
|
charset,
|
|
29901
29648
|
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
29902
|
-
commaRoundTrip: opts.commaRoundTrip,
|
|
29649
|
+
commaRoundTrip: !!opts.commaRoundTrip,
|
|
29903
29650
|
delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
|
|
29904
29651
|
encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
|
|
29905
29652
|
encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
@@ -29941,10 +29688,11 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
29941
29688
|
var sideChannel = getSideChannel();
|
|
29942
29689
|
for (var i = 0;i < objKeys.length; ++i) {
|
|
29943
29690
|
var key = objKeys[i];
|
|
29944
|
-
|
|
29691
|
+
var value = obj[key];
|
|
29692
|
+
if (options.skipNulls && value === null) {
|
|
29945
29693
|
continue;
|
|
29946
29694
|
}
|
|
29947
|
-
pushToArray(keys, stringify(
|
|
29695
|
+
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));
|
|
29948
29696
|
}
|
|
29949
29697
|
var joined = keys.join(options.delimiter);
|
|
29950
29698
|
var prefix = options.addQueryPrefix === true ? "?" : "";
|
|
@@ -29959,7 +29707,7 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
29959
29707
|
};
|
|
29960
29708
|
});
|
|
29961
29709
|
|
|
29962
|
-
// node_modules/qs/lib/parse.js
|
|
29710
|
+
// node_modules/body-parser/node_modules/qs/lib/parse.js
|
|
29963
29711
|
var require_parse = __commonJS((exports, module) => {
|
|
29964
29712
|
var utils = require_utils();
|
|
29965
29713
|
var has = Object.prototype.hasOwnProperty;
|
|
@@ -29984,17 +29732,22 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
29984
29732
|
parseArrays: true,
|
|
29985
29733
|
plainObjects: false,
|
|
29986
29734
|
strictDepth: false,
|
|
29987
|
-
|
|
29735
|
+
strictMerge: true,
|
|
29736
|
+
strictNullHandling: false,
|
|
29737
|
+
throwOnLimitExceeded: false
|
|
29988
29738
|
};
|
|
29989
29739
|
var interpretNumericEntities = function(str) {
|
|
29990
29740
|
return str.replace(/&#(\d+);/g, function($0, numberStr) {
|
|
29991
29741
|
return String.fromCharCode(parseInt(numberStr, 10));
|
|
29992
29742
|
});
|
|
29993
29743
|
};
|
|
29994
|
-
var parseArrayValue = function(val, options) {
|
|
29744
|
+
var parseArrayValue = function(val, options, currentArrayLength) {
|
|
29995
29745
|
if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
|
|
29996
29746
|
return val.split(",");
|
|
29997
29747
|
}
|
|
29748
|
+
if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
|
|
29749
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
29750
|
+
}
|
|
29998
29751
|
return val;
|
|
29999
29752
|
};
|
|
30000
29753
|
var isoSentinel = "utf8=%26%2310003%3B";
|
|
@@ -30004,7 +29757,10 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
30004
29757
|
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
|
|
30005
29758
|
cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
30006
29759
|
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
30007
|
-
var parts = cleanStr.split(options.delimiter, limit);
|
|
29760
|
+
var parts = cleanStr.split(options.delimiter, options.throwOnLimitExceeded && typeof limit !== "undefined" ? limit + 1 : limit);
|
|
29761
|
+
if (options.throwOnLimitExceeded && typeof limit !== "undefined" && parts.length > limit) {
|
|
29762
|
+
throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
|
|
29763
|
+
}
|
|
30008
29764
|
var skipIndex = -1;
|
|
30009
29765
|
var i;
|
|
30010
29766
|
var charset = options.charset;
|
|
@@ -30028,48 +29784,74 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
30028
29784
|
var part = parts[i];
|
|
30029
29785
|
var bracketEqualsPos = part.indexOf("]=");
|
|
30030
29786
|
var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
|
|
30031
|
-
var key
|
|
29787
|
+
var key;
|
|
29788
|
+
var val;
|
|
30032
29789
|
if (pos === -1) {
|
|
30033
29790
|
key = options.decoder(part, defaults.decoder, charset, "key");
|
|
30034
29791
|
val = options.strictNullHandling ? null : "";
|
|
30035
29792
|
} else {
|
|
30036
29793
|
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
|
|
30037
|
-
|
|
30038
|
-
|
|
30039
|
-
|
|
29794
|
+
if (key !== null) {
|
|
29795
|
+
val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
|
|
29796
|
+
return options.decoder(encodedVal, defaults.decoder, charset, "value");
|
|
29797
|
+
});
|
|
29798
|
+
}
|
|
30040
29799
|
}
|
|
30041
29800
|
if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
|
|
30042
|
-
val = interpretNumericEntities(val);
|
|
29801
|
+
val = interpretNumericEntities(String(val));
|
|
30043
29802
|
}
|
|
30044
29803
|
if (part.indexOf("[]=") > -1) {
|
|
30045
29804
|
val = isArray(val) ? [val] : val;
|
|
30046
29805
|
}
|
|
30047
|
-
|
|
30048
|
-
|
|
30049
|
-
|
|
30050
|
-
|
|
30051
|
-
|
|
29806
|
+
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
29807
|
+
if (options.throwOnLimitExceeded) {
|
|
29808
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
29809
|
+
}
|
|
29810
|
+
val = utils.combine([], val, options.arrayLimit, options.plainObjects);
|
|
29811
|
+
}
|
|
29812
|
+
if (key !== null) {
|
|
29813
|
+
var existing = has.call(obj, key);
|
|
29814
|
+
if (existing && (options.duplicates === "combine" || part.indexOf("[]=") > -1)) {
|
|
29815
|
+
obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects);
|
|
29816
|
+
} else if (!existing || options.duplicates === "last") {
|
|
29817
|
+
obj[key] = val;
|
|
29818
|
+
}
|
|
30052
29819
|
}
|
|
30053
29820
|
}
|
|
30054
29821
|
return obj;
|
|
30055
29822
|
};
|
|
30056
29823
|
var parseObject = function(chain, val, options, valuesParsed) {
|
|
30057
|
-
var
|
|
29824
|
+
var currentArrayLength = 0;
|
|
29825
|
+
if (chain.length > 0 && chain[chain.length - 1] === "[]") {
|
|
29826
|
+
var parentKey = chain.slice(0, -1).join("");
|
|
29827
|
+
currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
|
|
29828
|
+
}
|
|
29829
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
|
|
30058
29830
|
for (var i = chain.length - 1;i >= 0; --i) {
|
|
30059
29831
|
var obj;
|
|
30060
29832
|
var root = chain[i];
|
|
30061
29833
|
if (root === "[]" && options.parseArrays) {
|
|
30062
|
-
|
|
29834
|
+
if (utils.isOverflow(leaf)) {
|
|
29835
|
+
obj = leaf;
|
|
29836
|
+
} else {
|
|
29837
|
+
obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine([], leaf, options.arrayLimit, options.plainObjects);
|
|
29838
|
+
}
|
|
30063
29839
|
} else {
|
|
30064
|
-
obj = options.plainObjects ?
|
|
29840
|
+
obj = options.plainObjects ? { __proto__: null } : {};
|
|
30065
29841
|
var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
|
|
30066
29842
|
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
|
|
30067
29843
|
var index = parseInt(decodedRoot, 10);
|
|
29844
|
+
var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
|
|
30068
29845
|
if (!options.parseArrays && decodedRoot === "") {
|
|
30069
29846
|
obj = { 0: leaf };
|
|
30070
|
-
} else if (
|
|
29847
|
+
} else if (isValidArrayIndex && index < options.arrayLimit) {
|
|
30071
29848
|
obj = [];
|
|
30072
29849
|
obj[index] = leaf;
|
|
29850
|
+
} else if (isValidArrayIndex && options.throwOnLimitExceeded) {
|
|
29851
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
29852
|
+
} else if (isValidArrayIndex) {
|
|
29853
|
+
obj[index] = leaf;
|
|
29854
|
+
utils.markOverflow(obj, index);
|
|
30073
29855
|
} else if (decodedRoot !== "__proto__") {
|
|
30074
29856
|
obj[decodedRoot] = leaf;
|
|
30075
29857
|
}
|
|
@@ -30078,14 +29860,19 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
30078
29860
|
}
|
|
30079
29861
|
return leaf;
|
|
30080
29862
|
};
|
|
30081
|
-
var
|
|
30082
|
-
if (!givenKey) {
|
|
30083
|
-
return;
|
|
30084
|
-
}
|
|
29863
|
+
var splitKeyIntoSegments = function splitKeyIntoSegments(givenKey, options) {
|
|
30085
29864
|
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
|
|
29865
|
+
if (options.depth <= 0) {
|
|
29866
|
+
if (!options.plainObjects && has.call(Object.prototype, key)) {
|
|
29867
|
+
if (!options.allowPrototypes) {
|
|
29868
|
+
return;
|
|
29869
|
+
}
|
|
29870
|
+
}
|
|
29871
|
+
return [key];
|
|
29872
|
+
}
|
|
30086
29873
|
var brackets = /(\[[^[\]]*])/;
|
|
30087
29874
|
var child = /(\[[^[\]]*])/g;
|
|
30088
|
-
var segment =
|
|
29875
|
+
var segment = brackets.exec(key);
|
|
30089
29876
|
var parent = segment ? key.slice(0, segment.index) : key;
|
|
30090
29877
|
var keys = [];
|
|
30091
29878
|
if (parent) {
|
|
@@ -30094,23 +29881,34 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
30094
29881
|
return;
|
|
30095
29882
|
}
|
|
30096
29883
|
}
|
|
30097
|
-
keys.
|
|
29884
|
+
keys[keys.length] = parent;
|
|
30098
29885
|
}
|
|
30099
29886
|
var i = 0;
|
|
30100
|
-
while (
|
|
29887
|
+
while ((segment = child.exec(key)) !== null && i < options.depth) {
|
|
30101
29888
|
i += 1;
|
|
30102
|
-
|
|
29889
|
+
var segmentContent = segment[1].slice(1, -1);
|
|
29890
|
+
if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
|
|
30103
29891
|
if (!options.allowPrototypes) {
|
|
30104
29892
|
return;
|
|
30105
29893
|
}
|
|
30106
29894
|
}
|
|
30107
|
-
keys.
|
|
29895
|
+
keys[keys.length] = segment[1];
|
|
30108
29896
|
}
|
|
30109
29897
|
if (segment) {
|
|
30110
29898
|
if (options.strictDepth === true) {
|
|
30111
29899
|
throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
|
|
30112
29900
|
}
|
|
30113
|
-
keys.
|
|
29901
|
+
keys[keys.length] = "[" + key.slice(segment.index) + "]";
|
|
29902
|
+
}
|
|
29903
|
+
return keys;
|
|
29904
|
+
};
|
|
29905
|
+
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
29906
|
+
if (!givenKey) {
|
|
29907
|
+
return;
|
|
29908
|
+
}
|
|
29909
|
+
var keys = splitKeyIntoSegments(givenKey, options);
|
|
29910
|
+
if (!keys) {
|
|
29911
|
+
return;
|
|
30114
29912
|
}
|
|
30115
29913
|
return parseObject(keys, val, options, valuesParsed);
|
|
30116
29914
|
};
|
|
@@ -30130,6 +29928,9 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
30130
29928
|
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
30131
29929
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
30132
29930
|
}
|
|
29931
|
+
if (typeof opts.throwOnLimitExceeded !== "undefined" && typeof opts.throwOnLimitExceeded !== "boolean") {
|
|
29932
|
+
throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
29933
|
+
}
|
|
30133
29934
|
var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
|
|
30134
29935
|
var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
|
|
30135
29936
|
if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
|
|
@@ -30156,16 +29957,18 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
30156
29957
|
parseArrays: opts.parseArrays !== false,
|
|
30157
29958
|
plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
|
|
30158
29959
|
strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
|
|
30159
|
-
|
|
29960
|
+
strictMerge: typeof opts.strictMerge === "boolean" ? !!opts.strictMerge : defaults.strictMerge,
|
|
29961
|
+
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
29962
|
+
throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
|
|
30160
29963
|
};
|
|
30161
29964
|
};
|
|
30162
29965
|
module.exports = function(str, opts) {
|
|
30163
29966
|
var options = normalizeParseOptions(opts);
|
|
30164
29967
|
if (str === "" || str === null || typeof str === "undefined") {
|
|
30165
|
-
return options.plainObjects ?
|
|
29968
|
+
return options.plainObjects ? { __proto__: null } : {};
|
|
30166
29969
|
}
|
|
30167
29970
|
var tempObj = typeof str === "string" ? parseValues(str, options) : str;
|
|
30168
|
-
var obj = options.plainObjects ?
|
|
29971
|
+
var obj = options.plainObjects ? { __proto__: null } : {};
|
|
30169
29972
|
var keys = Object.keys(tempObj);
|
|
30170
29973
|
for (var i = 0;i < keys.length; ++i) {
|
|
30171
29974
|
var key = keys[i];
|
|
@@ -30179,7 +29982,7 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
30179
29982
|
};
|
|
30180
29983
|
});
|
|
30181
29984
|
|
|
30182
|
-
// node_modules/qs/lib/index.js
|
|
29985
|
+
// node_modules/body-parser/node_modules/qs/lib/index.js
|
|
30183
29986
|
var require_lib3 = __commonJS((exports, module) => {
|
|
30184
29987
|
var stringify = require_stringify();
|
|
30185
29988
|
var parse5 = require_parse();
|
|
@@ -30201,7 +30004,7 @@ var require_urlencoded = __commonJS((exports, module) => {
|
|
|
30201
30004
|
*/
|
|
30202
30005
|
var bytes = require_bytes();
|
|
30203
30006
|
var contentType2 = require_content_type();
|
|
30204
|
-
var createError =
|
|
30007
|
+
var createError = require_http_errors();
|
|
30205
30008
|
var debug = require_src()("body-parser:urlencoded");
|
|
30206
30009
|
var deprecate = require_depd()("body-parser");
|
|
30207
30010
|
var read = require_read();
|
|
@@ -30218,7 +30021,6 @@ var require_urlencoded = __commonJS((exports, module) => {
|
|
|
30218
30021
|
var limit = typeof opts.limit !== "number" ? bytes.parse(opts.limit || "100kb") : opts.limit;
|
|
30219
30022
|
var type = opts.type || "application/x-www-form-urlencoded";
|
|
30220
30023
|
var verify = opts.verify || false;
|
|
30221
|
-
var depth = typeof opts.depth !== "number" ? Number(opts.depth || 32) : opts.depth;
|
|
30222
30024
|
if (verify !== false && typeof verify !== "function") {
|
|
30223
30025
|
throw new TypeError("option verify must be function");
|
|
30224
30026
|
}
|
|
@@ -30259,14 +30061,13 @@ var require_urlencoded = __commonJS((exports, module) => {
|
|
|
30259
30061
|
encoding: charset,
|
|
30260
30062
|
inflate,
|
|
30261
30063
|
limit,
|
|
30262
|
-
verify
|
|
30263
|
-
depth
|
|
30064
|
+
verify
|
|
30264
30065
|
});
|
|
30265
30066
|
};
|
|
30266
30067
|
}
|
|
30267
30068
|
function extendedparser(options) {
|
|
30268
30069
|
var parameterLimit = options.parameterLimit !== undefined ? options.parameterLimit : 1000;
|
|
30269
|
-
var depth =
|
|
30070
|
+
var depth = options.depth !== undefined ? options.depth : 32;
|
|
30270
30071
|
var parse5 = parser("qs");
|
|
30271
30072
|
if (isNaN(parameterLimit) || parameterLimit < 1) {
|
|
30272
30073
|
throw new TypeError("option parameterLimit must be a positive number");
|
|
@@ -30315,14 +30116,14 @@ var require_urlencoded = __commonJS((exports, module) => {
|
|
|
30315
30116
|
}
|
|
30316
30117
|
function parameterCount(body, limit) {
|
|
30317
30118
|
var count = 0;
|
|
30318
|
-
var index =
|
|
30319
|
-
|
|
30119
|
+
var index = -1;
|
|
30120
|
+
do {
|
|
30320
30121
|
count++;
|
|
30321
|
-
|
|
30322
|
-
if (count === limit) {
|
|
30122
|
+
if (count > limit) {
|
|
30323
30123
|
return;
|
|
30324
30124
|
}
|
|
30325
|
-
|
|
30125
|
+
index = body.indexOf("&", index + 1);
|
|
30126
|
+
} while (index !== -1);
|
|
30326
30127
|
return count;
|
|
30327
30128
|
}
|
|
30328
30129
|
function parser(name) {
|
|
@@ -31053,7 +30854,7 @@ var require_finalhandler = __commonJS((exports, module) => {
|
|
|
31053
30854
|
var escapeHtml = require_escape_html();
|
|
31054
30855
|
var onFinished = require_on_finished();
|
|
31055
30856
|
var parseUrl = require_parseurl();
|
|
31056
|
-
var statuses =
|
|
30857
|
+
var statuses = require_statuses();
|
|
31057
30858
|
var unpipe = require_unpipe();
|
|
31058
30859
|
var DOUBLE_SPACE_REGEXP = /\x20{2}/g;
|
|
31059
30860
|
var NEWLINE_REGEXP = /\n/g;
|
|
@@ -31710,6 +31511,7 @@ var require_path_to_regexp = __commonJS((exports, module) => {
|
|
|
31710
31511
|
}
|
|
31711
31512
|
pos = offset + match.length;
|
|
31712
31513
|
if (match === "*") {
|
|
31514
|
+
backtrack = "";
|
|
31713
31515
|
extraOffset += 3;
|
|
31714
31516
|
return "(.*)";
|
|
31715
31517
|
}
|
|
@@ -31730,6 +31532,7 @@ var require_path_to_regexp = __commonJS((exports, module) => {
|
|
|
31730
31532
|
offset: offset + extraOffset
|
|
31731
31533
|
});
|
|
31732
31534
|
var result = "(?:" + format + slash + capture + (star ? "((?:[/" + format + "].+?)?)" : "") + ")" + optional2;
|
|
31535
|
+
backtrack = "";
|
|
31733
31536
|
extraOffset += result.length - match.length;
|
|
31734
31537
|
return result;
|
|
31735
31538
|
});
|
|
@@ -32444,6 +32247,814 @@ var require_init = __commonJS((exports) => {
|
|
|
32444
32247
|
};
|
|
32445
32248
|
});
|
|
32446
32249
|
|
|
32250
|
+
// node_modules/qs/lib/formats.js
|
|
32251
|
+
var require_formats2 = __commonJS((exports, module) => {
|
|
32252
|
+
var replace = String.prototype.replace;
|
|
32253
|
+
var percentTwenties = /%20/g;
|
|
32254
|
+
var Format = {
|
|
32255
|
+
RFC1738: "RFC1738",
|
|
32256
|
+
RFC3986: "RFC3986"
|
|
32257
|
+
};
|
|
32258
|
+
module.exports = {
|
|
32259
|
+
default: Format.RFC3986,
|
|
32260
|
+
formatters: {
|
|
32261
|
+
RFC1738: function(value) {
|
|
32262
|
+
return replace.call(value, percentTwenties, "+");
|
|
32263
|
+
},
|
|
32264
|
+
RFC3986: function(value) {
|
|
32265
|
+
return String(value);
|
|
32266
|
+
}
|
|
32267
|
+
},
|
|
32268
|
+
RFC1738: Format.RFC1738,
|
|
32269
|
+
RFC3986: Format.RFC3986
|
|
32270
|
+
};
|
|
32271
|
+
});
|
|
32272
|
+
|
|
32273
|
+
// node_modules/qs/lib/utils.js
|
|
32274
|
+
var require_utils2 = __commonJS((exports, module) => {
|
|
32275
|
+
var formats = require_formats2();
|
|
32276
|
+
var getSideChannel = require_side_channel();
|
|
32277
|
+
var has = Object.prototype.hasOwnProperty;
|
|
32278
|
+
var isArray = Array.isArray;
|
|
32279
|
+
var overflowChannel = getSideChannel();
|
|
32280
|
+
var markOverflow = function markOverflow(obj, maxIndex) {
|
|
32281
|
+
overflowChannel.set(obj, maxIndex);
|
|
32282
|
+
return obj;
|
|
32283
|
+
};
|
|
32284
|
+
var isOverflow = function isOverflow(obj) {
|
|
32285
|
+
return overflowChannel.has(obj);
|
|
32286
|
+
};
|
|
32287
|
+
var getMaxIndex = function getMaxIndex(obj) {
|
|
32288
|
+
return overflowChannel.get(obj);
|
|
32289
|
+
};
|
|
32290
|
+
var setMaxIndex = function setMaxIndex(obj, maxIndex) {
|
|
32291
|
+
overflowChannel.set(obj, maxIndex);
|
|
32292
|
+
};
|
|
32293
|
+
var hexTable = function() {
|
|
32294
|
+
var array2 = [];
|
|
32295
|
+
for (var i = 0;i < 256; ++i) {
|
|
32296
|
+
array2[array2.length] = "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase();
|
|
32297
|
+
}
|
|
32298
|
+
return array2;
|
|
32299
|
+
}();
|
|
32300
|
+
var compactQueue = function compactQueue(queue) {
|
|
32301
|
+
while (queue.length > 1) {
|
|
32302
|
+
var item = queue.pop();
|
|
32303
|
+
var obj = item.obj[item.prop];
|
|
32304
|
+
if (isArray(obj)) {
|
|
32305
|
+
var compacted = [];
|
|
32306
|
+
for (var j2 = 0;j2 < obj.length; ++j2) {
|
|
32307
|
+
if (typeof obj[j2] !== "undefined") {
|
|
32308
|
+
compacted[compacted.length] = obj[j2];
|
|
32309
|
+
}
|
|
32310
|
+
}
|
|
32311
|
+
item.obj[item.prop] = compacted;
|
|
32312
|
+
}
|
|
32313
|
+
}
|
|
32314
|
+
};
|
|
32315
|
+
var arrayToObject = function arrayToObject(source, options) {
|
|
32316
|
+
var obj = options && options.plainObjects ? { __proto__: null } : {};
|
|
32317
|
+
for (var i = 0;i < source.length; ++i) {
|
|
32318
|
+
if (typeof source[i] !== "undefined") {
|
|
32319
|
+
obj[i] = source[i];
|
|
32320
|
+
}
|
|
32321
|
+
}
|
|
32322
|
+
return obj;
|
|
32323
|
+
};
|
|
32324
|
+
var merge2 = function merge(target, source, options) {
|
|
32325
|
+
if (!source) {
|
|
32326
|
+
return target;
|
|
32327
|
+
}
|
|
32328
|
+
if (typeof source !== "object" && typeof source !== "function") {
|
|
32329
|
+
if (isArray(target)) {
|
|
32330
|
+
var nextIndex = target.length;
|
|
32331
|
+
if (options && typeof options.arrayLimit === "number" && nextIndex > options.arrayLimit) {
|
|
32332
|
+
return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
|
|
32333
|
+
}
|
|
32334
|
+
target[nextIndex] = source;
|
|
32335
|
+
} else if (target && typeof target === "object") {
|
|
32336
|
+
if (isOverflow(target)) {
|
|
32337
|
+
var newIndex = getMaxIndex(target) + 1;
|
|
32338
|
+
target[newIndex] = source;
|
|
32339
|
+
setMaxIndex(target, newIndex);
|
|
32340
|
+
} else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
|
|
32341
|
+
target[source] = true;
|
|
32342
|
+
}
|
|
32343
|
+
} else {
|
|
32344
|
+
return [target, source];
|
|
32345
|
+
}
|
|
32346
|
+
return target;
|
|
32347
|
+
}
|
|
32348
|
+
if (!target || typeof target !== "object") {
|
|
32349
|
+
if (isOverflow(source)) {
|
|
32350
|
+
var sourceKeys = Object.keys(source);
|
|
32351
|
+
var result = options && options.plainObjects ? { __proto__: null, 0: target } : { 0: target };
|
|
32352
|
+
for (var m = 0;m < sourceKeys.length; m++) {
|
|
32353
|
+
var oldKey = parseInt(sourceKeys[m], 10);
|
|
32354
|
+
result[oldKey + 1] = source[sourceKeys[m]];
|
|
32355
|
+
}
|
|
32356
|
+
return markOverflow(result, getMaxIndex(source) + 1);
|
|
32357
|
+
}
|
|
32358
|
+
var combined = [target].concat(source);
|
|
32359
|
+
if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
|
|
32360
|
+
return markOverflow(arrayToObject(combined, options), combined.length - 1);
|
|
32361
|
+
}
|
|
32362
|
+
return combined;
|
|
32363
|
+
}
|
|
32364
|
+
var mergeTarget = target;
|
|
32365
|
+
if (isArray(target) && !isArray(source)) {
|
|
32366
|
+
mergeTarget = arrayToObject(target, options);
|
|
32367
|
+
}
|
|
32368
|
+
if (isArray(target) && isArray(source)) {
|
|
32369
|
+
source.forEach(function(item, i) {
|
|
32370
|
+
if (has.call(target, i)) {
|
|
32371
|
+
var targetItem = target[i];
|
|
32372
|
+
if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
|
|
32373
|
+
target[i] = merge(targetItem, item, options);
|
|
32374
|
+
} else {
|
|
32375
|
+
target[target.length] = item;
|
|
32376
|
+
}
|
|
32377
|
+
} else {
|
|
32378
|
+
target[i] = item;
|
|
32379
|
+
}
|
|
32380
|
+
});
|
|
32381
|
+
return target;
|
|
32382
|
+
}
|
|
32383
|
+
return Object.keys(source).reduce(function(acc, key) {
|
|
32384
|
+
var value = source[key];
|
|
32385
|
+
if (has.call(acc, key)) {
|
|
32386
|
+
acc[key] = merge(acc[key], value, options);
|
|
32387
|
+
} else {
|
|
32388
|
+
acc[key] = value;
|
|
32389
|
+
}
|
|
32390
|
+
if (isOverflow(source) && !isOverflow(acc)) {
|
|
32391
|
+
markOverflow(acc, getMaxIndex(source));
|
|
32392
|
+
}
|
|
32393
|
+
if (isOverflow(acc)) {
|
|
32394
|
+
var keyNum = parseInt(key, 10);
|
|
32395
|
+
if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
|
|
32396
|
+
setMaxIndex(acc, keyNum);
|
|
32397
|
+
}
|
|
32398
|
+
}
|
|
32399
|
+
return acc;
|
|
32400
|
+
}, mergeTarget);
|
|
32401
|
+
};
|
|
32402
|
+
var assign = function assignSingleSource(target, source) {
|
|
32403
|
+
return Object.keys(source).reduce(function(acc, key) {
|
|
32404
|
+
acc[key] = source[key];
|
|
32405
|
+
return acc;
|
|
32406
|
+
}, target);
|
|
32407
|
+
};
|
|
32408
|
+
var decode = function(str, defaultDecoder, charset) {
|
|
32409
|
+
var strWithoutPlus = str.replace(/\+/g, " ");
|
|
32410
|
+
if (charset === "iso-8859-1") {
|
|
32411
|
+
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
32412
|
+
}
|
|
32413
|
+
try {
|
|
32414
|
+
return decodeURIComponent(strWithoutPlus);
|
|
32415
|
+
} catch (e) {
|
|
32416
|
+
return strWithoutPlus;
|
|
32417
|
+
}
|
|
32418
|
+
};
|
|
32419
|
+
var limit = 1024;
|
|
32420
|
+
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
32421
|
+
if (str.length === 0) {
|
|
32422
|
+
return str;
|
|
32423
|
+
}
|
|
32424
|
+
var string3 = str;
|
|
32425
|
+
if (typeof str === "symbol") {
|
|
32426
|
+
string3 = Symbol.prototype.toString.call(str);
|
|
32427
|
+
} else if (typeof str !== "string") {
|
|
32428
|
+
string3 = String(str);
|
|
32429
|
+
}
|
|
32430
|
+
if (charset === "iso-8859-1") {
|
|
32431
|
+
return escape(string3).replace(/%u[0-9a-f]{4}/gi, function($0) {
|
|
32432
|
+
return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
|
|
32433
|
+
});
|
|
32434
|
+
}
|
|
32435
|
+
var out = "";
|
|
32436
|
+
for (var j2 = 0;j2 < string3.length; j2 += limit) {
|
|
32437
|
+
var segment = string3.length >= limit ? string3.slice(j2, j2 + limit) : string3;
|
|
32438
|
+
var arr = [];
|
|
32439
|
+
for (var i = 0;i < segment.length; ++i) {
|
|
32440
|
+
var c = segment.charCodeAt(i);
|
|
32441
|
+
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)) {
|
|
32442
|
+
arr[arr.length] = segment.charAt(i);
|
|
32443
|
+
continue;
|
|
32444
|
+
}
|
|
32445
|
+
if (c < 128) {
|
|
32446
|
+
arr[arr.length] = hexTable[c];
|
|
32447
|
+
continue;
|
|
32448
|
+
}
|
|
32449
|
+
if (c < 2048) {
|
|
32450
|
+
arr[arr.length] = hexTable[192 | c >> 6] + hexTable[128 | c & 63];
|
|
32451
|
+
continue;
|
|
32452
|
+
}
|
|
32453
|
+
if (c < 55296 || c >= 57344) {
|
|
32454
|
+
arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
32455
|
+
continue;
|
|
32456
|
+
}
|
|
32457
|
+
i += 1;
|
|
32458
|
+
c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
|
|
32459
|
+
arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
32460
|
+
}
|
|
32461
|
+
out += arr.join("");
|
|
32462
|
+
}
|
|
32463
|
+
return out;
|
|
32464
|
+
};
|
|
32465
|
+
var compact = function compact(value) {
|
|
32466
|
+
var queue = [{ obj: { o: value }, prop: "o" }];
|
|
32467
|
+
var refs = [];
|
|
32468
|
+
for (var i = 0;i < queue.length; ++i) {
|
|
32469
|
+
var item = queue[i];
|
|
32470
|
+
var obj = item.obj[item.prop];
|
|
32471
|
+
var keys = Object.keys(obj);
|
|
32472
|
+
for (var j2 = 0;j2 < keys.length; ++j2) {
|
|
32473
|
+
var key = keys[j2];
|
|
32474
|
+
var val = obj[key];
|
|
32475
|
+
if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
|
|
32476
|
+
queue[queue.length] = { obj, prop: key };
|
|
32477
|
+
refs[refs.length] = val;
|
|
32478
|
+
}
|
|
32479
|
+
}
|
|
32480
|
+
}
|
|
32481
|
+
compactQueue(queue);
|
|
32482
|
+
return value;
|
|
32483
|
+
};
|
|
32484
|
+
var isRegExp = function isRegExp(obj) {
|
|
32485
|
+
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
32486
|
+
};
|
|
32487
|
+
var isBuffer = function isBuffer(obj) {
|
|
32488
|
+
if (!obj || typeof obj !== "object") {
|
|
32489
|
+
return false;
|
|
32490
|
+
}
|
|
32491
|
+
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
32492
|
+
};
|
|
32493
|
+
var combine = function combine(a, b2, arrayLimit, plainObjects) {
|
|
32494
|
+
if (isOverflow(a)) {
|
|
32495
|
+
var newIndex = getMaxIndex(a) + 1;
|
|
32496
|
+
a[newIndex] = b2;
|
|
32497
|
+
setMaxIndex(a, newIndex);
|
|
32498
|
+
return a;
|
|
32499
|
+
}
|
|
32500
|
+
var result = [].concat(a, b2);
|
|
32501
|
+
if (result.length > arrayLimit) {
|
|
32502
|
+
return markOverflow(arrayToObject(result, { plainObjects }), result.length - 1);
|
|
32503
|
+
}
|
|
32504
|
+
return result;
|
|
32505
|
+
};
|
|
32506
|
+
var maybeMap = function maybeMap(val, fn) {
|
|
32507
|
+
if (isArray(val)) {
|
|
32508
|
+
var mapped = [];
|
|
32509
|
+
for (var i = 0;i < val.length; i += 1) {
|
|
32510
|
+
mapped[mapped.length] = fn(val[i]);
|
|
32511
|
+
}
|
|
32512
|
+
return mapped;
|
|
32513
|
+
}
|
|
32514
|
+
return fn(val);
|
|
32515
|
+
};
|
|
32516
|
+
module.exports = {
|
|
32517
|
+
arrayToObject,
|
|
32518
|
+
assign,
|
|
32519
|
+
combine,
|
|
32520
|
+
compact,
|
|
32521
|
+
decode,
|
|
32522
|
+
encode,
|
|
32523
|
+
isBuffer,
|
|
32524
|
+
isOverflow,
|
|
32525
|
+
isRegExp,
|
|
32526
|
+
markOverflow,
|
|
32527
|
+
maybeMap,
|
|
32528
|
+
merge: merge2
|
|
32529
|
+
};
|
|
32530
|
+
});
|
|
32531
|
+
|
|
32532
|
+
// node_modules/qs/lib/stringify.js
|
|
32533
|
+
var require_stringify2 = __commonJS((exports, module) => {
|
|
32534
|
+
var getSideChannel = require_side_channel();
|
|
32535
|
+
var utils = require_utils2();
|
|
32536
|
+
var formats = require_formats2();
|
|
32537
|
+
var has = Object.prototype.hasOwnProperty;
|
|
32538
|
+
var arrayPrefixGenerators = {
|
|
32539
|
+
brackets: function brackets(prefix) {
|
|
32540
|
+
return prefix + "[]";
|
|
32541
|
+
},
|
|
32542
|
+
comma: "comma",
|
|
32543
|
+
indices: function indices(prefix, key) {
|
|
32544
|
+
return prefix + "[" + key + "]";
|
|
32545
|
+
},
|
|
32546
|
+
repeat: function repeat(prefix) {
|
|
32547
|
+
return prefix;
|
|
32548
|
+
}
|
|
32549
|
+
};
|
|
32550
|
+
var isArray = Array.isArray;
|
|
32551
|
+
var push = Array.prototype.push;
|
|
32552
|
+
var pushToArray = function(arr, valueOrArray) {
|
|
32553
|
+
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
32554
|
+
};
|
|
32555
|
+
var toISO = Date.prototype.toISOString;
|
|
32556
|
+
var defaultFormat = formats["default"];
|
|
32557
|
+
var defaults = {
|
|
32558
|
+
addQueryPrefix: false,
|
|
32559
|
+
allowDots: false,
|
|
32560
|
+
allowEmptyArrays: false,
|
|
32561
|
+
arrayFormat: "indices",
|
|
32562
|
+
charset: "utf-8",
|
|
32563
|
+
charsetSentinel: false,
|
|
32564
|
+
commaRoundTrip: false,
|
|
32565
|
+
delimiter: "&",
|
|
32566
|
+
encode: true,
|
|
32567
|
+
encodeDotInKeys: false,
|
|
32568
|
+
encoder: utils.encode,
|
|
32569
|
+
encodeValuesOnly: false,
|
|
32570
|
+
filter: undefined,
|
|
32571
|
+
format: defaultFormat,
|
|
32572
|
+
formatter: formats.formatters[defaultFormat],
|
|
32573
|
+
indices: false,
|
|
32574
|
+
serializeDate: function serializeDate(date3) {
|
|
32575
|
+
return toISO.call(date3);
|
|
32576
|
+
},
|
|
32577
|
+
skipNulls: false,
|
|
32578
|
+
strictNullHandling: false
|
|
32579
|
+
};
|
|
32580
|
+
var isNonNullishPrimitive = function isNonNullishPrimitive(v2) {
|
|
32581
|
+
return typeof v2 === "string" || typeof v2 === "number" || typeof v2 === "boolean" || typeof v2 === "symbol" || typeof v2 === "bigint";
|
|
32582
|
+
};
|
|
32583
|
+
var sentinel = {};
|
|
32584
|
+
var stringify = function stringify(object2, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
|
|
32585
|
+
var obj = object2;
|
|
32586
|
+
var tmpSc = sideChannel;
|
|
32587
|
+
var step = 0;
|
|
32588
|
+
var findFlag = false;
|
|
32589
|
+
while ((tmpSc = tmpSc.get(sentinel)) !== undefined && !findFlag) {
|
|
32590
|
+
var pos = tmpSc.get(object2);
|
|
32591
|
+
step += 1;
|
|
32592
|
+
if (typeof pos !== "undefined") {
|
|
32593
|
+
if (pos === step) {
|
|
32594
|
+
throw new RangeError("Cyclic object value");
|
|
32595
|
+
} else {
|
|
32596
|
+
findFlag = true;
|
|
32597
|
+
}
|
|
32598
|
+
}
|
|
32599
|
+
if (typeof tmpSc.get(sentinel) === "undefined") {
|
|
32600
|
+
step = 0;
|
|
32601
|
+
}
|
|
32602
|
+
}
|
|
32603
|
+
if (typeof filter === "function") {
|
|
32604
|
+
obj = filter(prefix, obj);
|
|
32605
|
+
} else if (obj instanceof Date) {
|
|
32606
|
+
obj = serializeDate(obj);
|
|
32607
|
+
} else if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
32608
|
+
obj = utils.maybeMap(obj, function(value2) {
|
|
32609
|
+
if (value2 instanceof Date) {
|
|
32610
|
+
return serializeDate(value2);
|
|
32611
|
+
}
|
|
32612
|
+
return value2;
|
|
32613
|
+
});
|
|
32614
|
+
}
|
|
32615
|
+
if (obj === null) {
|
|
32616
|
+
if (strictNullHandling) {
|
|
32617
|
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix;
|
|
32618
|
+
}
|
|
32619
|
+
obj = "";
|
|
32620
|
+
}
|
|
32621
|
+
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
32622
|
+
if (encoder) {
|
|
32623
|
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key", format);
|
|
32624
|
+
return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value", format))];
|
|
32625
|
+
}
|
|
32626
|
+
return [formatter(prefix) + "=" + formatter(String(obj))];
|
|
32627
|
+
}
|
|
32628
|
+
var values = [];
|
|
32629
|
+
if (typeof obj === "undefined") {
|
|
32630
|
+
return values;
|
|
32631
|
+
}
|
|
32632
|
+
var objKeys;
|
|
32633
|
+
if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
32634
|
+
if (encodeValuesOnly && encoder) {
|
|
32635
|
+
obj = utils.maybeMap(obj, encoder);
|
|
32636
|
+
}
|
|
32637
|
+
objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : undefined }];
|
|
32638
|
+
} else if (isArray(filter)) {
|
|
32639
|
+
objKeys = filter;
|
|
32640
|
+
} else {
|
|
32641
|
+
var keys = Object.keys(obj);
|
|
32642
|
+
objKeys = sort ? keys.sort(sort) : keys;
|
|
32643
|
+
}
|
|
32644
|
+
var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix);
|
|
32645
|
+
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
|
|
32646
|
+
if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
|
|
32647
|
+
return adjustedPrefix + "[]";
|
|
32648
|
+
}
|
|
32649
|
+
for (var j2 = 0;j2 < objKeys.length; ++j2) {
|
|
32650
|
+
var key = objKeys[j2];
|
|
32651
|
+
var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key];
|
|
32652
|
+
if (skipNulls && value === null) {
|
|
32653
|
+
continue;
|
|
32654
|
+
}
|
|
32655
|
+
var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
|
|
32656
|
+
var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
|
|
32657
|
+
sideChannel.set(object2, step);
|
|
32658
|
+
var valueSideChannel = getSideChannel();
|
|
32659
|
+
valueSideChannel.set(sentinel, sideChannel);
|
|
32660
|
+
pushToArray(values, stringify(value, keyPrefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel));
|
|
32661
|
+
}
|
|
32662
|
+
return values;
|
|
32663
|
+
};
|
|
32664
|
+
var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
32665
|
+
if (!opts) {
|
|
32666
|
+
return defaults;
|
|
32667
|
+
}
|
|
32668
|
+
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
32669
|
+
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
32670
|
+
}
|
|
32671
|
+
if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
|
|
32672
|
+
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
32673
|
+
}
|
|
32674
|
+
if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
|
|
32675
|
+
throw new TypeError("Encoder has to be a function.");
|
|
32676
|
+
}
|
|
32677
|
+
var charset = opts.charset || defaults.charset;
|
|
32678
|
+
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
32679
|
+
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
32680
|
+
}
|
|
32681
|
+
var format = formats["default"];
|
|
32682
|
+
if (typeof opts.format !== "undefined") {
|
|
32683
|
+
if (!has.call(formats.formatters, opts.format)) {
|
|
32684
|
+
throw new TypeError("Unknown format option provided.");
|
|
32685
|
+
}
|
|
32686
|
+
format = opts.format;
|
|
32687
|
+
}
|
|
32688
|
+
var formatter = formats.formatters[format];
|
|
32689
|
+
var filter = defaults.filter;
|
|
32690
|
+
if (typeof opts.filter === "function" || isArray(opts.filter)) {
|
|
32691
|
+
filter = opts.filter;
|
|
32692
|
+
}
|
|
32693
|
+
var arrayFormat;
|
|
32694
|
+
if (opts.arrayFormat in arrayPrefixGenerators) {
|
|
32695
|
+
arrayFormat = opts.arrayFormat;
|
|
32696
|
+
} else if ("indices" in opts) {
|
|
32697
|
+
arrayFormat = opts.indices ? "indices" : "repeat";
|
|
32698
|
+
} else {
|
|
32699
|
+
arrayFormat = defaults.arrayFormat;
|
|
32700
|
+
}
|
|
32701
|
+
if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
|
|
32702
|
+
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
32703
|
+
}
|
|
32704
|
+
var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
32705
|
+
return {
|
|
32706
|
+
addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
32707
|
+
allowDots,
|
|
32708
|
+
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
32709
|
+
arrayFormat,
|
|
32710
|
+
charset,
|
|
32711
|
+
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
32712
|
+
commaRoundTrip: !!opts.commaRoundTrip,
|
|
32713
|
+
delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
|
|
32714
|
+
encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
|
|
32715
|
+
encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
32716
|
+
encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
|
|
32717
|
+
encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
32718
|
+
filter,
|
|
32719
|
+
format,
|
|
32720
|
+
formatter,
|
|
32721
|
+
serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults.serializeDate,
|
|
32722
|
+
skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults.skipNulls,
|
|
32723
|
+
sort: typeof opts.sort === "function" ? opts.sort : null,
|
|
32724
|
+
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
|
|
32725
|
+
};
|
|
32726
|
+
};
|
|
32727
|
+
module.exports = function(object2, opts) {
|
|
32728
|
+
var obj = object2;
|
|
32729
|
+
var options = normalizeStringifyOptions(opts);
|
|
32730
|
+
var objKeys;
|
|
32731
|
+
var filter;
|
|
32732
|
+
if (typeof options.filter === "function") {
|
|
32733
|
+
filter = options.filter;
|
|
32734
|
+
obj = filter("", obj);
|
|
32735
|
+
} else if (isArray(options.filter)) {
|
|
32736
|
+
filter = options.filter;
|
|
32737
|
+
objKeys = filter;
|
|
32738
|
+
}
|
|
32739
|
+
var keys = [];
|
|
32740
|
+
if (typeof obj !== "object" || obj === null) {
|
|
32741
|
+
return "";
|
|
32742
|
+
}
|
|
32743
|
+
var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
|
|
32744
|
+
var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip;
|
|
32745
|
+
if (!objKeys) {
|
|
32746
|
+
objKeys = Object.keys(obj);
|
|
32747
|
+
}
|
|
32748
|
+
if (options.sort) {
|
|
32749
|
+
objKeys.sort(options.sort);
|
|
32750
|
+
}
|
|
32751
|
+
var sideChannel = getSideChannel();
|
|
32752
|
+
for (var i = 0;i < objKeys.length; ++i) {
|
|
32753
|
+
var key = objKeys[i];
|
|
32754
|
+
var value = obj[key];
|
|
32755
|
+
if (options.skipNulls && value === null) {
|
|
32756
|
+
continue;
|
|
32757
|
+
}
|
|
32758
|
+
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));
|
|
32759
|
+
}
|
|
32760
|
+
var joined = keys.join(options.delimiter);
|
|
32761
|
+
var prefix = options.addQueryPrefix === true ? "?" : "";
|
|
32762
|
+
if (options.charsetSentinel) {
|
|
32763
|
+
if (options.charset === "iso-8859-1") {
|
|
32764
|
+
prefix += "utf8=%26%2310003%3B&";
|
|
32765
|
+
} else {
|
|
32766
|
+
prefix += "utf8=%E2%9C%93&";
|
|
32767
|
+
}
|
|
32768
|
+
}
|
|
32769
|
+
return joined.length > 0 ? prefix + joined : "";
|
|
32770
|
+
};
|
|
32771
|
+
});
|
|
32772
|
+
|
|
32773
|
+
// node_modules/qs/lib/parse.js
|
|
32774
|
+
var require_parse2 = __commonJS((exports, module) => {
|
|
32775
|
+
var utils = require_utils2();
|
|
32776
|
+
var has = Object.prototype.hasOwnProperty;
|
|
32777
|
+
var isArray = Array.isArray;
|
|
32778
|
+
var defaults = {
|
|
32779
|
+
allowDots: false,
|
|
32780
|
+
allowEmptyArrays: false,
|
|
32781
|
+
allowPrototypes: false,
|
|
32782
|
+
allowSparse: false,
|
|
32783
|
+
arrayLimit: 20,
|
|
32784
|
+
charset: "utf-8",
|
|
32785
|
+
charsetSentinel: false,
|
|
32786
|
+
comma: false,
|
|
32787
|
+
decodeDotInKeys: false,
|
|
32788
|
+
decoder: utils.decode,
|
|
32789
|
+
delimiter: "&",
|
|
32790
|
+
depth: 5,
|
|
32791
|
+
duplicates: "combine",
|
|
32792
|
+
ignoreQueryPrefix: false,
|
|
32793
|
+
interpretNumericEntities: false,
|
|
32794
|
+
parameterLimit: 1000,
|
|
32795
|
+
parseArrays: true,
|
|
32796
|
+
plainObjects: false,
|
|
32797
|
+
strictDepth: false,
|
|
32798
|
+
strictNullHandling: false,
|
|
32799
|
+
throwOnLimitExceeded: false
|
|
32800
|
+
};
|
|
32801
|
+
var interpretNumericEntities = function(str) {
|
|
32802
|
+
return str.replace(/&#(\d+);/g, function($0, numberStr) {
|
|
32803
|
+
return String.fromCharCode(parseInt(numberStr, 10));
|
|
32804
|
+
});
|
|
32805
|
+
};
|
|
32806
|
+
var parseArrayValue = function(val, options, currentArrayLength) {
|
|
32807
|
+
if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
|
|
32808
|
+
return val.split(",");
|
|
32809
|
+
}
|
|
32810
|
+
if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
|
|
32811
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
32812
|
+
}
|
|
32813
|
+
return val;
|
|
32814
|
+
};
|
|
32815
|
+
var isoSentinel = "utf8=%26%2310003%3B";
|
|
32816
|
+
var charsetSentinel = "utf8=%E2%9C%93";
|
|
32817
|
+
var parseValues = function parseQueryStringValues(str, options) {
|
|
32818
|
+
var obj = { __proto__: null };
|
|
32819
|
+
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
|
|
32820
|
+
cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
32821
|
+
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
32822
|
+
var parts = cleanStr.split(options.delimiter, options.throwOnLimitExceeded ? limit + 1 : limit);
|
|
32823
|
+
if (options.throwOnLimitExceeded && parts.length > limit) {
|
|
32824
|
+
throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
|
|
32825
|
+
}
|
|
32826
|
+
var skipIndex = -1;
|
|
32827
|
+
var i;
|
|
32828
|
+
var charset = options.charset;
|
|
32829
|
+
if (options.charsetSentinel) {
|
|
32830
|
+
for (i = 0;i < parts.length; ++i) {
|
|
32831
|
+
if (parts[i].indexOf("utf8=") === 0) {
|
|
32832
|
+
if (parts[i] === charsetSentinel) {
|
|
32833
|
+
charset = "utf-8";
|
|
32834
|
+
} else if (parts[i] === isoSentinel) {
|
|
32835
|
+
charset = "iso-8859-1";
|
|
32836
|
+
}
|
|
32837
|
+
skipIndex = i;
|
|
32838
|
+
i = parts.length;
|
|
32839
|
+
}
|
|
32840
|
+
}
|
|
32841
|
+
}
|
|
32842
|
+
for (i = 0;i < parts.length; ++i) {
|
|
32843
|
+
if (i === skipIndex) {
|
|
32844
|
+
continue;
|
|
32845
|
+
}
|
|
32846
|
+
var part = parts[i];
|
|
32847
|
+
var bracketEqualsPos = part.indexOf("]=");
|
|
32848
|
+
var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
|
|
32849
|
+
var key;
|
|
32850
|
+
var val;
|
|
32851
|
+
if (pos === -1) {
|
|
32852
|
+
key = options.decoder(part, defaults.decoder, charset, "key");
|
|
32853
|
+
val = options.strictNullHandling ? null : "";
|
|
32854
|
+
} else {
|
|
32855
|
+
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
|
|
32856
|
+
if (key !== null) {
|
|
32857
|
+
val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
|
|
32858
|
+
return options.decoder(encodedVal, defaults.decoder, charset, "value");
|
|
32859
|
+
});
|
|
32860
|
+
}
|
|
32861
|
+
}
|
|
32862
|
+
if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
|
|
32863
|
+
val = interpretNumericEntities(String(val));
|
|
32864
|
+
}
|
|
32865
|
+
if (part.indexOf("[]=") > -1) {
|
|
32866
|
+
val = isArray(val) ? [val] : val;
|
|
32867
|
+
}
|
|
32868
|
+
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
32869
|
+
if (options.throwOnLimitExceeded) {
|
|
32870
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
32871
|
+
}
|
|
32872
|
+
val = utils.combine([], val, options.arrayLimit, options.plainObjects);
|
|
32873
|
+
}
|
|
32874
|
+
if (key !== null) {
|
|
32875
|
+
var existing = has.call(obj, key);
|
|
32876
|
+
if (existing && options.duplicates === "combine") {
|
|
32877
|
+
obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects);
|
|
32878
|
+
} else if (!existing || options.duplicates === "last") {
|
|
32879
|
+
obj[key] = val;
|
|
32880
|
+
}
|
|
32881
|
+
}
|
|
32882
|
+
}
|
|
32883
|
+
return obj;
|
|
32884
|
+
};
|
|
32885
|
+
var parseObject = function(chain, val, options, valuesParsed) {
|
|
32886
|
+
var currentArrayLength = 0;
|
|
32887
|
+
if (chain.length > 0 && chain[chain.length - 1] === "[]") {
|
|
32888
|
+
var parentKey = chain.slice(0, -1).join("");
|
|
32889
|
+
currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
|
|
32890
|
+
}
|
|
32891
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
|
|
32892
|
+
for (var i = chain.length - 1;i >= 0; --i) {
|
|
32893
|
+
var obj;
|
|
32894
|
+
var root = chain[i];
|
|
32895
|
+
if (root === "[]" && options.parseArrays) {
|
|
32896
|
+
if (utils.isOverflow(leaf)) {
|
|
32897
|
+
obj = leaf;
|
|
32898
|
+
} else {
|
|
32899
|
+
obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine([], leaf, options.arrayLimit, options.plainObjects);
|
|
32900
|
+
}
|
|
32901
|
+
} else {
|
|
32902
|
+
obj = options.plainObjects ? { __proto__: null } : {};
|
|
32903
|
+
var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
|
|
32904
|
+
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
|
|
32905
|
+
var index = parseInt(decodedRoot, 10);
|
|
32906
|
+
var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
|
|
32907
|
+
if (!options.parseArrays && decodedRoot === "") {
|
|
32908
|
+
obj = { 0: leaf };
|
|
32909
|
+
} else if (isValidArrayIndex && index < options.arrayLimit) {
|
|
32910
|
+
obj = [];
|
|
32911
|
+
obj[index] = leaf;
|
|
32912
|
+
} else if (isValidArrayIndex && options.throwOnLimitExceeded) {
|
|
32913
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
32914
|
+
} else if (isValidArrayIndex) {
|
|
32915
|
+
obj[index] = leaf;
|
|
32916
|
+
utils.markOverflow(obj, index);
|
|
32917
|
+
} else if (decodedRoot !== "__proto__") {
|
|
32918
|
+
obj[decodedRoot] = leaf;
|
|
32919
|
+
}
|
|
32920
|
+
}
|
|
32921
|
+
leaf = obj;
|
|
32922
|
+
}
|
|
32923
|
+
return leaf;
|
|
32924
|
+
};
|
|
32925
|
+
var splitKeyIntoSegments = function splitKeyIntoSegments(givenKey, options) {
|
|
32926
|
+
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
|
|
32927
|
+
if (options.depth <= 0) {
|
|
32928
|
+
if (!options.plainObjects && has.call(Object.prototype, key)) {
|
|
32929
|
+
if (!options.allowPrototypes) {
|
|
32930
|
+
return;
|
|
32931
|
+
}
|
|
32932
|
+
}
|
|
32933
|
+
return [key];
|
|
32934
|
+
}
|
|
32935
|
+
var brackets = /(\[[^[\]]*])/;
|
|
32936
|
+
var child = /(\[[^[\]]*])/g;
|
|
32937
|
+
var segment = brackets.exec(key);
|
|
32938
|
+
var parent = segment ? key.slice(0, segment.index) : key;
|
|
32939
|
+
var keys = [];
|
|
32940
|
+
if (parent) {
|
|
32941
|
+
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
32942
|
+
if (!options.allowPrototypes) {
|
|
32943
|
+
return;
|
|
32944
|
+
}
|
|
32945
|
+
}
|
|
32946
|
+
keys[keys.length] = parent;
|
|
32947
|
+
}
|
|
32948
|
+
var i = 0;
|
|
32949
|
+
while ((segment = child.exec(key)) !== null && i < options.depth) {
|
|
32950
|
+
i += 1;
|
|
32951
|
+
var segmentContent = segment[1].slice(1, -1);
|
|
32952
|
+
if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
|
|
32953
|
+
if (!options.allowPrototypes) {
|
|
32954
|
+
return;
|
|
32955
|
+
}
|
|
32956
|
+
}
|
|
32957
|
+
keys[keys.length] = segment[1];
|
|
32958
|
+
}
|
|
32959
|
+
if (segment) {
|
|
32960
|
+
if (options.strictDepth === true) {
|
|
32961
|
+
throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
|
|
32962
|
+
}
|
|
32963
|
+
keys[keys.length] = "[" + key.slice(segment.index) + "]";
|
|
32964
|
+
}
|
|
32965
|
+
return keys;
|
|
32966
|
+
};
|
|
32967
|
+
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
32968
|
+
if (!givenKey) {
|
|
32969
|
+
return;
|
|
32970
|
+
}
|
|
32971
|
+
var keys = splitKeyIntoSegments(givenKey, options);
|
|
32972
|
+
if (!keys) {
|
|
32973
|
+
return;
|
|
32974
|
+
}
|
|
32975
|
+
return parseObject(keys, val, options, valuesParsed);
|
|
32976
|
+
};
|
|
32977
|
+
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
32978
|
+
if (!opts) {
|
|
32979
|
+
return defaults;
|
|
32980
|
+
}
|
|
32981
|
+
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
32982
|
+
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
32983
|
+
}
|
|
32984
|
+
if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
|
|
32985
|
+
throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
32986
|
+
}
|
|
32987
|
+
if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
|
|
32988
|
+
throw new TypeError("Decoder has to be a function.");
|
|
32989
|
+
}
|
|
32990
|
+
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
32991
|
+
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
32992
|
+
}
|
|
32993
|
+
if (typeof opts.throwOnLimitExceeded !== "undefined" && typeof opts.throwOnLimitExceeded !== "boolean") {
|
|
32994
|
+
throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
32995
|
+
}
|
|
32996
|
+
var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
|
|
32997
|
+
var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
|
|
32998
|
+
if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
|
|
32999
|
+
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
33000
|
+
}
|
|
33001
|
+
var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
33002
|
+
return {
|
|
33003
|
+
allowDots,
|
|
33004
|
+
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
33005
|
+
allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
33006
|
+
allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
|
|
33007
|
+
arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
|
|
33008
|
+
charset,
|
|
33009
|
+
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
33010
|
+
comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
|
|
33011
|
+
decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
|
|
33012
|
+
decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
|
|
33013
|
+
delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
33014
|
+
depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
|
|
33015
|
+
duplicates,
|
|
33016
|
+
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
33017
|
+
interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
33018
|
+
parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
|
|
33019
|
+
parseArrays: opts.parseArrays !== false,
|
|
33020
|
+
plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
|
|
33021
|
+
strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
|
|
33022
|
+
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
33023
|
+
throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
|
|
33024
|
+
};
|
|
33025
|
+
};
|
|
33026
|
+
module.exports = function(str, opts) {
|
|
33027
|
+
var options = normalizeParseOptions(opts);
|
|
33028
|
+
if (str === "" || str === null || typeof str === "undefined") {
|
|
33029
|
+
return options.plainObjects ? { __proto__: null } : {};
|
|
33030
|
+
}
|
|
33031
|
+
var tempObj = typeof str === "string" ? parseValues(str, options) : str;
|
|
33032
|
+
var obj = options.plainObjects ? { __proto__: null } : {};
|
|
33033
|
+
var keys = Object.keys(tempObj);
|
|
33034
|
+
for (var i = 0;i < keys.length; ++i) {
|
|
33035
|
+
var key = keys[i];
|
|
33036
|
+
var newObj = parseKeys(key, tempObj[key], options, typeof str === "string");
|
|
33037
|
+
obj = utils.merge(obj, newObj, options);
|
|
33038
|
+
}
|
|
33039
|
+
if (options.allowSparse === true) {
|
|
33040
|
+
return obj;
|
|
33041
|
+
}
|
|
33042
|
+
return utils.compact(obj);
|
|
33043
|
+
};
|
|
33044
|
+
});
|
|
33045
|
+
|
|
33046
|
+
// node_modules/qs/lib/index.js
|
|
33047
|
+
var require_lib4 = __commonJS((exports, module) => {
|
|
33048
|
+
var stringify = require_stringify2();
|
|
33049
|
+
var parse5 = require_parse2();
|
|
33050
|
+
var formats = require_formats2();
|
|
33051
|
+
module.exports = {
|
|
33052
|
+
formats,
|
|
33053
|
+
parse: parse5,
|
|
33054
|
+
stringify
|
|
33055
|
+
};
|
|
33056
|
+
});
|
|
33057
|
+
|
|
32447
33058
|
// node_modules/express/lib/middleware/query.js
|
|
32448
33059
|
var require_query = __commonJS((exports, module) => {
|
|
32449
33060
|
/*!
|
|
@@ -32455,7 +33066,7 @@ var require_query = __commonJS((exports, module) => {
|
|
|
32455
33066
|
*/
|
|
32456
33067
|
var merge2 = require_utils_merge();
|
|
32457
33068
|
var parseUrl = require_parseurl();
|
|
32458
|
-
var qs =
|
|
33069
|
+
var qs = require_lib4();
|
|
32459
33070
|
module.exports = function query(options) {
|
|
32460
33071
|
var opts = merge2({}, options);
|
|
32461
33072
|
var queryparse = qs.parse;
|
|
@@ -33198,22 +33809,6 @@ var require_src4 = __commonJS((exports, module) => {
|
|
|
33198
33809
|
}
|
|
33199
33810
|
});
|
|
33200
33811
|
|
|
33201
|
-
// node_modules/send/node_modules/encodeurl/index.js
|
|
33202
|
-
var require_encodeurl2 = __commonJS((exports, module) => {
|
|
33203
|
-
/*!
|
|
33204
|
-
* encodeurl
|
|
33205
|
-
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
33206
|
-
* MIT Licensed
|
|
33207
|
-
*/
|
|
33208
|
-
module.exports = encodeUrl;
|
|
33209
|
-
var ENCODE_CHARS_REGEXP = /(?:[^\x21\x25\x26-\x3B\x3D\x3F-\x5B\x5D\x5F\x61-\x7A\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g;
|
|
33210
|
-
var UNMATCHED_SURROGATE_PAIR_REGEXP = /(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g;
|
|
33211
|
-
var UNMATCHED_SURROGATE_PAIR_REPLACE = "$1�$2";
|
|
33212
|
-
function encodeUrl(url) {
|
|
33213
|
-
return String(url).replace(UNMATCHED_SURROGATE_PAIR_REGEXP, UNMATCHED_SURROGATE_PAIR_REPLACE).replace(ENCODE_CHARS_REGEXP, encodeURI);
|
|
33214
|
-
}
|
|
33215
|
-
});
|
|
33216
|
-
|
|
33217
33812
|
// node_modules/etag/index.js
|
|
33218
33813
|
var require_etag = __commonJS((exports, module) => {
|
|
33219
33814
|
/*!
|
|
@@ -33593,11 +34188,11 @@ var require_send = __commonJS((exports, module) => {
|
|
|
33593
34188
|
* Copyright(c) 2014-2022 Douglas Christopher Wilson
|
|
33594
34189
|
* MIT Licensed
|
|
33595
34190
|
*/
|
|
33596
|
-
var createError =
|
|
34191
|
+
var createError = require_http_errors();
|
|
33597
34192
|
var debug = require_src4()("send");
|
|
33598
34193
|
var deprecate = require_depd()("send");
|
|
33599
34194
|
var destroy = require_destroy();
|
|
33600
|
-
var encodeUrl =
|
|
34195
|
+
var encodeUrl = require_encodeurl();
|
|
33601
34196
|
var escapeHtml = require_escape_html();
|
|
33602
34197
|
var etag = require_etag();
|
|
33603
34198
|
var fresh = require_fresh();
|
|
@@ -33607,7 +34202,7 @@ var require_send = __commonJS((exports, module) => {
|
|
|
33607
34202
|
var onFinished = require_on_finished();
|
|
33608
34203
|
var parseRange = require_range_parser();
|
|
33609
34204
|
var path = __require("path");
|
|
33610
|
-
var statuses =
|
|
34205
|
+
var statuses = require_statuses();
|
|
33611
34206
|
var Stream = __require("stream");
|
|
33612
34207
|
var util3 = __require("util");
|
|
33613
34208
|
var extname = path.extname;
|
|
@@ -34980,7 +35575,7 @@ var require_proxy_addr = __commonJS((exports, module) => {
|
|
|
34980
35575
|
});
|
|
34981
35576
|
|
|
34982
35577
|
// node_modules/express/lib/utils.js
|
|
34983
|
-
var
|
|
35578
|
+
var require_utils3 = __commonJS((exports) => {
|
|
34984
35579
|
/*!
|
|
34985
35580
|
* express
|
|
34986
35581
|
* Copyright(c) 2009-2013 TJ Holowaychuk
|
|
@@ -34995,7 +35590,7 @@ var require_utils2 = __commonJS((exports) => {
|
|
|
34995
35590
|
var mime = require_send().mime;
|
|
34996
35591
|
var etag = require_etag();
|
|
34997
35592
|
var proxyaddr = require_proxy_addr();
|
|
34998
|
-
var qs =
|
|
35593
|
+
var qs = require_lib4();
|
|
34999
35594
|
var querystring = __require("querystring");
|
|
35000
35595
|
exports.etag = createETagGenerator({ weak: false });
|
|
35001
35596
|
exports.wetag = createETagGenerator({ weak: true });
|
|
@@ -35134,9 +35729,9 @@ var require_application = __commonJS((exports, module) => {
|
|
|
35134
35729
|
var debug = require_src3()("express:application");
|
|
35135
35730
|
var View = require_view();
|
|
35136
35731
|
var http = __require("http");
|
|
35137
|
-
var compileETag =
|
|
35138
|
-
var compileQueryParser =
|
|
35139
|
-
var compileTrust =
|
|
35732
|
+
var compileETag = require_utils3().compileETag;
|
|
35733
|
+
var compileQueryParser = require_utils3().compileQueryParser;
|
|
35734
|
+
var compileTrust = require_utils3().compileTrust;
|
|
35140
35735
|
var deprecate = require_depd()("express");
|
|
35141
35736
|
var flatten = require_array_flatten();
|
|
35142
35737
|
var merge2 = require_utils_merge();
|
|
@@ -36149,17 +36744,17 @@ var require_request = __commonJS((exports, module) => {
|
|
|
36149
36744
|
var require_cookie_signature = __commonJS((exports) => {
|
|
36150
36745
|
var crypto2 = __require("crypto");
|
|
36151
36746
|
exports.sign = function(val, secret) {
|
|
36152
|
-
if (typeof val
|
|
36747
|
+
if (typeof val !== "string")
|
|
36153
36748
|
throw new TypeError("Cookie value must be provided as a string.");
|
|
36154
|
-
if (
|
|
36155
|
-
throw new TypeError("Secret
|
|
36749
|
+
if (secret == null)
|
|
36750
|
+
throw new TypeError("Secret key must be provided.");
|
|
36156
36751
|
return val + "." + crypto2.createHmac("sha256", secret).update(val).digest("base64").replace(/\=+$/, "");
|
|
36157
36752
|
};
|
|
36158
36753
|
exports.unsign = function(val, secret) {
|
|
36159
|
-
if (typeof val
|
|
36754
|
+
if (typeof val !== "string")
|
|
36160
36755
|
throw new TypeError("Signed cookie string must be provided.");
|
|
36161
|
-
if (
|
|
36162
|
-
throw new TypeError("Secret
|
|
36756
|
+
if (secret == null)
|
|
36757
|
+
throw new TypeError("Secret key must be provided.");
|
|
36163
36758
|
var str = val.slice(0, val.lastIndexOf(".")), mac = exports.sign(str, secret);
|
|
36164
36759
|
return sha1(mac) == sha1(val) ? str : false;
|
|
36165
36760
|
};
|
|
@@ -36426,20 +37021,20 @@ var require_response = __commonJS((exports, module) => {
|
|
|
36426
37021
|
*/
|
|
36427
37022
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
36428
37023
|
var contentDisposition = require_content_disposition();
|
|
36429
|
-
var createError =
|
|
37024
|
+
var createError = require_http_errors();
|
|
36430
37025
|
var deprecate = require_depd()("express");
|
|
36431
37026
|
var encodeUrl = require_encodeurl();
|
|
36432
37027
|
var escapeHtml = require_escape_html();
|
|
36433
37028
|
var http = __require("http");
|
|
36434
|
-
var isAbsolute =
|
|
37029
|
+
var isAbsolute = require_utils3().isAbsolute;
|
|
36435
37030
|
var onFinished = require_on_finished();
|
|
36436
37031
|
var path = __require("path");
|
|
36437
|
-
var statuses =
|
|
37032
|
+
var statuses = require_statuses();
|
|
36438
37033
|
var merge2 = require_utils_merge();
|
|
36439
37034
|
var sign = require_cookie_signature().sign;
|
|
36440
|
-
var normalizeType =
|
|
36441
|
-
var normalizeTypes =
|
|
36442
|
-
var setCharset =
|
|
37035
|
+
var normalizeType = require_utils3().normalizeType;
|
|
37036
|
+
var normalizeTypes = require_utils3().normalizeTypes;
|
|
37037
|
+
var setCharset = require_utils3().setCharset;
|
|
36443
37038
|
var cookie = require_cookie();
|
|
36444
37039
|
var send = require_send();
|
|
36445
37040
|
var extname = path.extname;
|
|
@@ -42735,7 +43330,7 @@ var require_data = __commonJS((exports, module) => {
|
|
|
42735
43330
|
});
|
|
42736
43331
|
|
|
42737
43332
|
// node_modules/fast-uri/lib/utils.js
|
|
42738
|
-
var
|
|
43333
|
+
var require_utils4 = __commonJS((exports, module) => {
|
|
42739
43334
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
42740
43335
|
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
42741
43336
|
function stringArrayToHexStripped(input) {
|
|
@@ -42991,7 +43586,7 @@ var require_utils3 = __commonJS((exports, module) => {
|
|
|
42991
43586
|
|
|
42992
43587
|
// node_modules/fast-uri/lib/schemes.js
|
|
42993
43588
|
var require_schemes = __commonJS((exports, module) => {
|
|
42994
|
-
var { isUUID } =
|
|
43589
|
+
var { isUUID } = require_utils4();
|
|
42995
43590
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
42996
43591
|
var supportedSchemeNames = [
|
|
42997
43592
|
"http",
|
|
@@ -43165,7 +43760,7 @@ var require_schemes = __commonJS((exports, module) => {
|
|
|
43165
43760
|
|
|
43166
43761
|
// node_modules/fast-uri/index.js
|
|
43167
43762
|
var require_fast_uri = __commonJS((exports, module) => {
|
|
43168
|
-
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } =
|
|
43763
|
+
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils4();
|
|
43169
43764
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
43170
43765
|
function normalize(uri, options) {
|
|
43171
43766
|
if (typeof uri === "string") {
|
|
@@ -45911,7 +46506,7 @@ var require_ajv = __commonJS((exports, module) => {
|
|
|
45911
46506
|
});
|
|
45912
46507
|
|
|
45913
46508
|
// node_modules/ajv-formats/dist/formats.js
|
|
45914
|
-
var
|
|
46509
|
+
var require_formats3 = __commonJS((exports) => {
|
|
45915
46510
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45916
46511
|
exports.formatNames = exports.fastFormats = exports.fullFormats = undefined;
|
|
45917
46512
|
function fmtDef(validate, compare) {
|
|
@@ -51615,7 +52210,7 @@ var require_limit = __commonJS((exports) => {
|
|
|
51615
52210
|
// node_modules/ajv-formats/dist/index.js
|
|
51616
52211
|
var require_dist = __commonJS((exports, module) => {
|
|
51617
52212
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51618
|
-
var formats_1 =
|
|
52213
|
+
var formats_1 = require_formats3();
|
|
51619
52214
|
var limit_1 = require_limit();
|
|
51620
52215
|
var codegen_1 = require_codegen2();
|
|
51621
52216
|
var fullName = new codegen_1.Name("fullFormats");
|
|
@@ -52961,9 +53556,9 @@ var init_config = __esm(() => {
|
|
|
52961
53556
|
SDK_METADATA = {
|
|
52962
53557
|
language: "typescript",
|
|
52963
53558
|
openapiDocVersion: "dev",
|
|
52964
|
-
sdkVersion: "0.0.0-dev.
|
|
52965
|
-
genVersion: "2.881.
|
|
52966
|
-
userAgent: "speakeasy-sdk/typescript 0.0.0-dev.
|
|
53559
|
+
sdkVersion: "0.0.0-dev.17",
|
|
53560
|
+
genVersion: "2.881.17",
|
|
53561
|
+
userAgent: "speakeasy-sdk/typescript 0.0.0-dev.17 2.881.17 dev @moovio/sdk"
|
|
52967
53562
|
};
|
|
52968
53563
|
});
|
|
52969
53564
|
|
|
@@ -54695,10 +55290,9 @@ function literal3(value) {
|
|
|
54695
55290
|
}
|
|
54696
55291
|
function optional3(t) {
|
|
54697
55292
|
return unionType([
|
|
54698
|
-
undefinedType(),
|
|
54699
55293
|
nullType().transform(() => unrecognized(undefined)),
|
|
54700
55294
|
t
|
|
54701
|
-
]);
|
|
55295
|
+
]).optional();
|
|
54702
55296
|
}
|
|
54703
55297
|
function nullable3(t) {
|
|
54704
55298
|
return unionType([
|
|
@@ -64578,6 +65172,30 @@ var init_filedetails = __esm(() => {
|
|
|
64578
65172
|
});
|
|
64579
65173
|
});
|
|
64580
65174
|
|
|
65175
|
+
// src/models/components/fileuploadmetadata.ts
|
|
65176
|
+
var FileUploadMetadata$inboundSchema, FileUploadMetadata$outboundSchema;
|
|
65177
|
+
var init_fileuploadmetadata = __esm(() => {
|
|
65178
|
+
init_v3();
|
|
65179
|
+
init_primitives();
|
|
65180
|
+
init_primitives2();
|
|
65181
|
+
FileUploadMetadata$inboundSchema = objectType({
|
|
65182
|
+
representative_id: optional3(string4()),
|
|
65183
|
+
comment: optional3(string4())
|
|
65184
|
+
}).transform((v2) => {
|
|
65185
|
+
return remap(v2, {
|
|
65186
|
+
representative_id: "representativeId"
|
|
65187
|
+
});
|
|
65188
|
+
});
|
|
65189
|
+
FileUploadMetadata$outboundSchema = objectType({
|
|
65190
|
+
representativeId: stringType().optional(),
|
|
65191
|
+
comment: stringType().optional()
|
|
65192
|
+
}).transform((v2) => {
|
|
65193
|
+
return remap(v2, {
|
|
65194
|
+
representativeId: "representative_id"
|
|
65195
|
+
});
|
|
65196
|
+
});
|
|
65197
|
+
});
|
|
65198
|
+
|
|
64581
65199
|
// src/models/components/fileuploadrequestmultipart.ts
|
|
64582
65200
|
var FileUploadRequestMultiPartFile$inboundSchema, FileUploadRequestMultiPartFile$outboundSchema, FileUploadRequestMultiPart$inboundSchema, FileUploadRequestMultiPart$outboundSchema;
|
|
64583
65201
|
var init_fileuploadrequestmultipart = __esm(() => {
|
|
@@ -64585,6 +65203,7 @@ var init_fileuploadrequestmultipart = __esm(() => {
|
|
|
64585
65203
|
init_blobs();
|
|
64586
65204
|
init_primitives2();
|
|
64587
65205
|
init_filepurpose();
|
|
65206
|
+
init_fileuploadmetadata();
|
|
64588
65207
|
FileUploadRequestMultiPartFile$inboundSchema = objectType({
|
|
64589
65208
|
fileName: string4(),
|
|
64590
65209
|
content: unionType([
|
|
@@ -64606,12 +65225,12 @@ var init_fileuploadrequestmultipart = __esm(() => {
|
|
|
64606
65225
|
FileUploadRequestMultiPart$inboundSchema = objectType({
|
|
64607
65226
|
file: lazyType(() => FileUploadRequestMultiPartFile$inboundSchema),
|
|
64608
65227
|
filePurpose: FilePurpose$inboundSchema,
|
|
64609
|
-
metadata: optional3(
|
|
65228
|
+
metadata: optional3(FileUploadMetadata$inboundSchema)
|
|
64610
65229
|
});
|
|
64611
65230
|
FileUploadRequestMultiPart$outboundSchema = objectType({
|
|
64612
65231
|
file: lazyType(() => FileUploadRequestMultiPartFile$outboundSchema).or(blobLikeSchema),
|
|
64613
65232
|
filePurpose: FilePurpose$outboundSchema,
|
|
64614
|
-
metadata:
|
|
65233
|
+
metadata: FileUploadMetadata$outboundSchema.optional()
|
|
64615
65234
|
});
|
|
64616
65235
|
});
|
|
64617
65236
|
|
|
@@ -69920,13 +70539,16 @@ var WebhookDataBankAccountCreated$inboundSchema, WebhookDataBankAccountCreated$o
|
|
|
69920
70539
|
var init_webhookdatabankaccountcreated = __esm(() => {
|
|
69921
70540
|
init_v3();
|
|
69922
70541
|
init_primitives2();
|
|
70542
|
+
init_bankaccountstatus();
|
|
69923
70543
|
WebhookDataBankAccountCreated$inboundSchema = objectType({
|
|
69924
70544
|
bankAccountID: string4(),
|
|
69925
|
-
accountID: string4()
|
|
70545
|
+
accountID: string4(),
|
|
70546
|
+
status: BankAccountStatus$inboundSchema
|
|
69926
70547
|
});
|
|
69927
70548
|
WebhookDataBankAccountCreated$outboundSchema = objectType({
|
|
69928
70549
|
bankAccountID: stringType(),
|
|
69929
|
-
accountID: stringType()
|
|
70550
|
+
accountID: stringType(),
|
|
70551
|
+
status: BankAccountStatus$outboundSchema
|
|
69930
70552
|
});
|
|
69931
70553
|
});
|
|
69932
70554
|
|
|
@@ -70603,6 +71225,7 @@ var init_webhookdata = __esm(() => {
|
|
|
70603
71225
|
WebhookDataBankAccountUpdated$inboundSchema,
|
|
70604
71226
|
WebhookDataRefundUpdated$inboundSchema,
|
|
70605
71227
|
WebhookDataWalletTransactionUpdated$inboundSchema,
|
|
71228
|
+
WebhookDataBankAccountCreated$inboundSchema,
|
|
70606
71229
|
WebhookDataCancellationCreated$inboundSchema,
|
|
70607
71230
|
WebhookDataCancellationUpdated$inboundSchema,
|
|
70608
71231
|
WebhookDataCardAutoUpdated$inboundSchema,
|
|
@@ -70616,7 +71239,6 @@ var init_webhookdata = __esm(() => {
|
|
|
70616
71239
|
WebhookDataTransferCreated$inboundSchema,
|
|
70617
71240
|
WebhookDataWalletUpdated$inboundSchema,
|
|
70618
71241
|
WebhookDataBalanceUpdated$inboundSchema,
|
|
70619
|
-
WebhookDataBankAccountCreated$inboundSchema,
|
|
70620
71242
|
WebhookDataBankAccountDeleted$inboundSchema,
|
|
70621
71243
|
WebhookDataCapabilityRequested$inboundSchema,
|
|
70622
71244
|
WebhookDataInvoiceCreated$inboundSchema,
|
|
@@ -70642,6 +71264,7 @@ var init_webhookdata = __esm(() => {
|
|
|
70642
71264
|
WebhookDataBankAccountUpdated$outboundSchema,
|
|
70643
71265
|
WebhookDataRefundUpdated$outboundSchema,
|
|
70644
71266
|
WebhookDataWalletTransactionUpdated$outboundSchema,
|
|
71267
|
+
WebhookDataBankAccountCreated$outboundSchema,
|
|
70645
71268
|
WebhookDataCancellationCreated$outboundSchema,
|
|
70646
71269
|
WebhookDataCancellationUpdated$outboundSchema,
|
|
70647
71270
|
WebhookDataCardAutoUpdated$outboundSchema,
|
|
@@ -70655,7 +71278,6 @@ var init_webhookdata = __esm(() => {
|
|
|
70655
71278
|
WebhookDataTransferCreated$outboundSchema,
|
|
70656
71279
|
WebhookDataWalletUpdated$outboundSchema,
|
|
70657
71280
|
WebhookDataBalanceUpdated$outboundSchema,
|
|
70658
|
-
WebhookDataBankAccountCreated$outboundSchema,
|
|
70659
71281
|
WebhookDataBankAccountDeleted$outboundSchema,
|
|
70660
71282
|
WebhookDataCapabilityRequested$outboundSchema,
|
|
70661
71283
|
WebhookDataInvoiceCreated$outboundSchema,
|
|
@@ -70962,6 +71584,7 @@ var init_components = __esm(() => {
|
|
|
70962
71584
|
init_filedetails();
|
|
70963
71585
|
init_filepurpose();
|
|
70964
71586
|
init_filestatus();
|
|
71587
|
+
init_fileuploadmetadata();
|
|
70965
71588
|
init_fileuploadrequestmultipart();
|
|
70966
71589
|
init_financialinstitutions();
|
|
70967
71590
|
init_fulfillment();
|
|
@@ -91037,7 +91660,9 @@ async function $do79(client, request, options) {
|
|
|
91037
91660
|
}
|
|
91038
91661
|
appendForm(body, "filePurpose", payload.FileUploadRequestMultiPart.filePurpose);
|
|
91039
91662
|
if (payload.FileUploadRequestMultiPart.metadata !== undefined) {
|
|
91040
|
-
appendForm(body, "metadata", payload.FileUploadRequestMultiPart.metadata
|
|
91663
|
+
appendForm(body, "metadata", encodeJSON("metadata", payload.FileUploadRequestMultiPart.metadata, {
|
|
91664
|
+
explode: true
|
|
91665
|
+
}));
|
|
91041
91666
|
}
|
|
91042
91667
|
const pathParams = {
|
|
91043
91668
|
accountID: encodeSimple("accountID", payload.accountID, {
|
|
@@ -103546,7 +104171,7 @@ var init_webhooksUpdate2 = __esm(() => {
|
|
|
103546
104171
|
function createMCPServer(deps) {
|
|
103547
104172
|
const server = new McpServer({
|
|
103548
104173
|
name: "Moov",
|
|
103549
|
-
version: "0.0.0-dev.
|
|
104174
|
+
version: "0.0.0-dev.17"
|
|
103550
104175
|
});
|
|
103551
104176
|
const client = new MoovCore({
|
|
103552
104177
|
security: deps.security,
|
|
@@ -105133,7 +105758,7 @@ var routes = rn({
|
|
|
105133
105758
|
var app = Ve(routes, {
|
|
105134
105759
|
name: "mcp",
|
|
105135
105760
|
versionInfo: {
|
|
105136
|
-
currentVersion: "0.0.0-dev.
|
|
105761
|
+
currentVersion: "0.0.0-dev.17"
|
|
105137
105762
|
}
|
|
105138
105763
|
});
|
|
105139
105764
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -105141,5 +105766,5 @@ export {
|
|
|
105141
105766
|
app
|
|
105142
105767
|
};
|
|
105143
105768
|
|
|
105144
|
-
//# debugId=
|
|
105769
|
+
//# debugId=0243A21559EEC52D64756E2164756E21
|
|
105145
105770
|
//# sourceMappingURL=mcp-server.js.map
|