@builderbot/bot 1.3.12 → 1.3.14-alpha.148
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +192 -158
- package/package.json +17 -17
package/dist/index.cjs
CHANGED
|
@@ -1421,17 +1421,17 @@ var hasRequiredBrowser$1;
|
|
|
1421
1421
|
function requireBrowser$1 () {
|
|
1422
1422
|
if (hasRequiredBrowser$1) return browser$1.exports;
|
|
1423
1423
|
hasRequiredBrowser$1 = 1;
|
|
1424
|
-
(function (module, exports) {
|
|
1424
|
+
(function (module, exports$1) {
|
|
1425
1425
|
/**
|
|
1426
1426
|
* This is the web browser implementation of `debug()`.
|
|
1427
1427
|
*/
|
|
1428
1428
|
|
|
1429
|
-
exports.formatArgs = formatArgs;
|
|
1430
|
-
exports.save = save;
|
|
1431
|
-
exports.load = load;
|
|
1432
|
-
exports.useColors = useColors;
|
|
1433
|
-
exports.storage = localstorage();
|
|
1434
|
-
exports.destroy = (() => {
|
|
1429
|
+
exports$1.formatArgs = formatArgs;
|
|
1430
|
+
exports$1.save = save;
|
|
1431
|
+
exports$1.load = load;
|
|
1432
|
+
exports$1.useColors = useColors;
|
|
1433
|
+
exports$1.storage = localstorage();
|
|
1434
|
+
exports$1.destroy = (() => {
|
|
1435
1435
|
let warned = false;
|
|
1436
1436
|
|
|
1437
1437
|
return () => {
|
|
@@ -1446,7 +1446,7 @@ function requireBrowser$1 () {
|
|
|
1446
1446
|
* Colors.
|
|
1447
1447
|
*/
|
|
1448
1448
|
|
|
1449
|
-
exports.colors = [
|
|
1449
|
+
exports$1.colors = [
|
|
1450
1450
|
'#0000CC',
|
|
1451
1451
|
'#0000FF',
|
|
1452
1452
|
'#0033CC',
|
|
@@ -1611,7 +1611,7 @@ function requireBrowser$1 () {
|
|
|
1611
1611
|
*
|
|
1612
1612
|
* @api public
|
|
1613
1613
|
*/
|
|
1614
|
-
exports.log = console.debug || console.log || (() => {});
|
|
1614
|
+
exports$1.log = console.debug || console.log || (() => {});
|
|
1615
1615
|
|
|
1616
1616
|
/**
|
|
1617
1617
|
* Save `namespaces`.
|
|
@@ -1622,9 +1622,9 @@ function requireBrowser$1 () {
|
|
|
1622
1622
|
function save(namespaces) {
|
|
1623
1623
|
try {
|
|
1624
1624
|
if (namespaces) {
|
|
1625
|
-
exports.storage.setItem('debug', namespaces);
|
|
1625
|
+
exports$1.storage.setItem('debug', namespaces);
|
|
1626
1626
|
} else {
|
|
1627
|
-
exports.storage.removeItem('debug');
|
|
1627
|
+
exports$1.storage.removeItem('debug');
|
|
1628
1628
|
}
|
|
1629
1629
|
} catch (error) {
|
|
1630
1630
|
// Swallow
|
|
@@ -1641,7 +1641,7 @@ function requireBrowser$1 () {
|
|
|
1641
1641
|
function load() {
|
|
1642
1642
|
let r;
|
|
1643
1643
|
try {
|
|
1644
|
-
r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;
|
|
1644
|
+
r = exports$1.storage.getItem('debug') || exports$1.storage.getItem('DEBUG') ;
|
|
1645
1645
|
} catch (error) {
|
|
1646
1646
|
// Swallow
|
|
1647
1647
|
// XXX (@Qix-) should we be logging these?
|
|
@@ -1677,7 +1677,7 @@ function requireBrowser$1 () {
|
|
|
1677
1677
|
}
|
|
1678
1678
|
}
|
|
1679
1679
|
|
|
1680
|
-
module.exports = requireCommon()(exports);
|
|
1680
|
+
module.exports = requireCommon()(exports$1);
|
|
1681
1681
|
|
|
1682
1682
|
const {formatters} = module.exports;
|
|
1683
1683
|
|
|
@@ -1866,7 +1866,7 @@ var hasRequiredNode$1;
|
|
|
1866
1866
|
function requireNode$1 () {
|
|
1867
1867
|
if (hasRequiredNode$1) return node$1.exports;
|
|
1868
1868
|
hasRequiredNode$1 = 1;
|
|
1869
|
-
(function (module, exports) {
|
|
1869
|
+
(function (module, exports$1) {
|
|
1870
1870
|
const tty = require$$0$4;
|
|
1871
1871
|
const util = require$$1$1;
|
|
1872
1872
|
|
|
@@ -1874,13 +1874,13 @@ function requireNode$1 () {
|
|
|
1874
1874
|
* This is the Node.js implementation of `debug()`.
|
|
1875
1875
|
*/
|
|
1876
1876
|
|
|
1877
|
-
exports.init = init;
|
|
1878
|
-
exports.log = log;
|
|
1879
|
-
exports.formatArgs = formatArgs;
|
|
1880
|
-
exports.save = save;
|
|
1881
|
-
exports.load = load;
|
|
1882
|
-
exports.useColors = useColors;
|
|
1883
|
-
exports.destroy = util.deprecate(
|
|
1877
|
+
exports$1.init = init;
|
|
1878
|
+
exports$1.log = log;
|
|
1879
|
+
exports$1.formatArgs = formatArgs;
|
|
1880
|
+
exports$1.save = save;
|
|
1881
|
+
exports$1.load = load;
|
|
1882
|
+
exports$1.useColors = useColors;
|
|
1883
|
+
exports$1.destroy = util.deprecate(
|
|
1884
1884
|
() => {},
|
|
1885
1885
|
'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'
|
|
1886
1886
|
);
|
|
@@ -1889,7 +1889,7 @@ function requireNode$1 () {
|
|
|
1889
1889
|
* Colors.
|
|
1890
1890
|
*/
|
|
1891
1891
|
|
|
1892
|
-
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
1892
|
+
exports$1.colors = [6, 2, 3, 4, 5, 1];
|
|
1893
1893
|
|
|
1894
1894
|
try {
|
|
1895
1895
|
// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
|
|
@@ -1897,7 +1897,7 @@ function requireNode$1 () {
|
|
|
1897
1897
|
const supportsColor = requireSupportsColor();
|
|
1898
1898
|
|
|
1899
1899
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
1900
|
-
exports.colors = [
|
|
1900
|
+
exports$1.colors = [
|
|
1901
1901
|
20,
|
|
1902
1902
|
21,
|
|
1903
1903
|
26,
|
|
@@ -1986,7 +1986,7 @@ function requireNode$1 () {
|
|
|
1986
1986
|
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
|
1987
1987
|
*/
|
|
1988
1988
|
|
|
1989
|
-
exports.inspectOpts = Object.keys(process.env).filter(key => {
|
|
1989
|
+
exports$1.inspectOpts = Object.keys(process.env).filter(key => {
|
|
1990
1990
|
return /^debug_/i.test(key);
|
|
1991
1991
|
}).reduce((obj, key) => {
|
|
1992
1992
|
// Camel-case
|
|
@@ -2018,8 +2018,8 @@ function requireNode$1 () {
|
|
|
2018
2018
|
*/
|
|
2019
2019
|
|
|
2020
2020
|
function useColors() {
|
|
2021
|
-
return 'colors' in exports.inspectOpts ?
|
|
2022
|
-
Boolean(exports.inspectOpts.colors) :
|
|
2021
|
+
return 'colors' in exports$1.inspectOpts ?
|
|
2022
|
+
Boolean(exports$1.inspectOpts.colors) :
|
|
2023
2023
|
tty.isatty(process.stderr.fd);
|
|
2024
2024
|
}
|
|
2025
2025
|
|
|
@@ -2045,7 +2045,7 @@ function requireNode$1 () {
|
|
|
2045
2045
|
}
|
|
2046
2046
|
|
|
2047
2047
|
function getDate() {
|
|
2048
|
-
if (exports.inspectOpts.hideDate) {
|
|
2048
|
+
if (exports$1.inspectOpts.hideDate) {
|
|
2049
2049
|
return '';
|
|
2050
2050
|
}
|
|
2051
2051
|
return new Date().toISOString() + ' ';
|
|
@@ -2056,7 +2056,7 @@ function requireNode$1 () {
|
|
|
2056
2056
|
*/
|
|
2057
2057
|
|
|
2058
2058
|
function log(...args) {
|
|
2059
|
-
return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\n');
|
|
2059
|
+
return process.stderr.write(util.formatWithOptions(exports$1.inspectOpts, ...args) + '\n');
|
|
2060
2060
|
}
|
|
2061
2061
|
|
|
2062
2062
|
/**
|
|
@@ -2096,13 +2096,13 @@ function requireNode$1 () {
|
|
|
2096
2096
|
function init(debug) {
|
|
2097
2097
|
debug.inspectOpts = {};
|
|
2098
2098
|
|
|
2099
|
-
const keys = Object.keys(exports.inspectOpts);
|
|
2099
|
+
const keys = Object.keys(exports$1.inspectOpts);
|
|
2100
2100
|
for (let i = 0; i < keys.length; i++) {
|
|
2101
|
-
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
2101
|
+
debug.inspectOpts[keys[i]] = exports$1.inspectOpts[keys[i]];
|
|
2102
2102
|
}
|
|
2103
2103
|
}
|
|
2104
2104
|
|
|
2105
|
-
module.exports = requireCommon()(exports);
|
|
2105
|
+
module.exports = requireCommon()(exports$1);
|
|
2106
2106
|
|
|
2107
2107
|
const {formatters} = module.exports;
|
|
2108
2108
|
|
|
@@ -2663,7 +2663,7 @@ RedirectableRequest.prototype._processResponse = function (response) {
|
|
|
2663
2663
|
// Wraps the key/value object of protocols with redirect functionality
|
|
2664
2664
|
function wrap(protocols) {
|
|
2665
2665
|
// Default settings
|
|
2666
|
-
var exports = {
|
|
2666
|
+
var exports$1 = {
|
|
2667
2667
|
maxRedirects: 21,
|
|
2668
2668
|
maxBodyLength: 10 * 1024 * 1024,
|
|
2669
2669
|
};
|
|
@@ -2673,7 +2673,7 @@ function wrap(protocols) {
|
|
|
2673
2673
|
Object.keys(protocols).forEach(function (scheme) {
|
|
2674
2674
|
var protocol = scheme + ":";
|
|
2675
2675
|
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
|
2676
|
-
var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol);
|
|
2676
|
+
var wrappedProtocol = exports$1[scheme] = Object.create(nativeProtocol);
|
|
2677
2677
|
|
|
2678
2678
|
// Executes a request, following redirects
|
|
2679
2679
|
function request(input, options, callback) {
|
|
@@ -2696,8 +2696,8 @@ function wrap(protocols) {
|
|
|
2696
2696
|
|
|
2697
2697
|
// Set defaults
|
|
2698
2698
|
options = Object.assign({
|
|
2699
|
-
maxRedirects: exports.maxRedirects,
|
|
2700
|
-
maxBodyLength: exports.maxBodyLength,
|
|
2699
|
+
maxRedirects: exports$1.maxRedirects,
|
|
2700
|
+
maxBodyLength: exports$1.maxBodyLength,
|
|
2701
2701
|
}, input, options);
|
|
2702
2702
|
options.nativeProtocols = nativeProtocols;
|
|
2703
2703
|
if (!isString(options.host) && !isString(options.hostname)) {
|
|
@@ -2722,7 +2722,7 @@ function wrap(protocols) {
|
|
|
2722
2722
|
get: { value: get, configurable: true, enumerable: true, writable: true },
|
|
2723
2723
|
});
|
|
2724
2724
|
});
|
|
2725
|
-
return exports;
|
|
2725
|
+
return exports$1;
|
|
2726
2726
|
}
|
|
2727
2727
|
|
|
2728
2728
|
function noop() { /* empty */ }
|
|
@@ -13591,7 +13591,7 @@ var hasRequiredMimeTypes;
|
|
|
13591
13591
|
function requireMimeTypes () {
|
|
13592
13592
|
if (hasRequiredMimeTypes) return mimeTypes$1;
|
|
13593
13593
|
hasRequiredMimeTypes = 1;
|
|
13594
|
-
(function (exports) {
|
|
13594
|
+
(function (exports$1) {
|
|
13595
13595
|
|
|
13596
13596
|
/**
|
|
13597
13597
|
* Module dependencies.
|
|
@@ -13614,16 +13614,16 @@ function requireMimeTypes () {
|
|
|
13614
13614
|
* @public
|
|
13615
13615
|
*/
|
|
13616
13616
|
|
|
13617
|
-
exports.charset = charset;
|
|
13618
|
-
exports.charsets = { lookup: charset };
|
|
13619
|
-
exports.contentType = contentType;
|
|
13620
|
-
exports.extension = extension;
|
|
13621
|
-
exports.extensions = Object.create(null);
|
|
13622
|
-
exports.lookup = lookup;
|
|
13623
|
-
exports.types = Object.create(null);
|
|
13617
|
+
exports$1.charset = charset;
|
|
13618
|
+
exports$1.charsets = { lookup: charset };
|
|
13619
|
+
exports$1.contentType = contentType;
|
|
13620
|
+
exports$1.extension = extension;
|
|
13621
|
+
exports$1.extensions = Object.create(null);
|
|
13622
|
+
exports$1.lookup = lookup;
|
|
13623
|
+
exports$1.types = Object.create(null);
|
|
13624
13624
|
|
|
13625
13625
|
// Populate the extensions/types maps
|
|
13626
|
-
populateMaps(exports.extensions, exports.types);
|
|
13626
|
+
populateMaps(exports$1.extensions, exports$1.types);
|
|
13627
13627
|
|
|
13628
13628
|
/**
|
|
13629
13629
|
* Get the default charset for a MIME type.
|
|
@@ -13667,7 +13667,7 @@ function requireMimeTypes () {
|
|
|
13667
13667
|
}
|
|
13668
13668
|
|
|
13669
13669
|
var mime = str.indexOf('/') === -1
|
|
13670
|
-
? exports.lookup(str)
|
|
13670
|
+
? exports$1.lookup(str)
|
|
13671
13671
|
: str;
|
|
13672
13672
|
|
|
13673
13673
|
if (!mime) {
|
|
@@ -13676,7 +13676,7 @@ function requireMimeTypes () {
|
|
|
13676
13676
|
|
|
13677
13677
|
// TODO: use content-type or other module
|
|
13678
13678
|
if (mime.indexOf('charset') === -1) {
|
|
13679
|
-
var charset = exports.charset(mime);
|
|
13679
|
+
var charset = exports$1.charset(mime);
|
|
13680
13680
|
if (charset) mime += '; charset=' + charset.toLowerCase();
|
|
13681
13681
|
}
|
|
13682
13682
|
|
|
@@ -13699,7 +13699,7 @@ function requireMimeTypes () {
|
|
|
13699
13699
|
var match = EXTRACT_TYPE_REGEXP.exec(type);
|
|
13700
13700
|
|
|
13701
13701
|
// get extensions
|
|
13702
|
-
var exts = match && exports.extensions[match[1].toLowerCase()];
|
|
13702
|
+
var exts = match && exports$1.extensions[match[1].toLowerCase()];
|
|
13703
13703
|
|
|
13704
13704
|
if (!exts || !exts.length) {
|
|
13705
13705
|
return false
|
|
@@ -13729,7 +13729,7 @@ function requireMimeTypes () {
|
|
|
13729
13729
|
return false
|
|
13730
13730
|
}
|
|
13731
13731
|
|
|
13732
|
-
return exports.types[extension] || false
|
|
13732
|
+
return exports$1.types[extension] || false
|
|
13733
13733
|
}
|
|
13734
13734
|
|
|
13735
13735
|
/**
|
|
@@ -16412,7 +16412,7 @@ function requireHttpErrors () {
|
|
|
16412
16412
|
* @private
|
|
16413
16413
|
*/
|
|
16414
16414
|
|
|
16415
|
-
function populateConstructorExports (exports, codes, HttpError) {
|
|
16415
|
+
function populateConstructorExports (exports$1, codes, HttpError) {
|
|
16416
16416
|
codes.forEach(function forEachCode (code) {
|
|
16417
16417
|
var CodeError;
|
|
16418
16418
|
var name = toIdentifier(statuses.message[code]);
|
|
@@ -16428,21 +16428,22 @@ function requireHttpErrors () {
|
|
|
16428
16428
|
|
|
16429
16429
|
if (CodeError) {
|
|
16430
16430
|
// export the constructor
|
|
16431
|
-
exports[code] = CodeError;
|
|
16432
|
-
exports[name] = CodeError;
|
|
16431
|
+
exports$1[code] = CodeError;
|
|
16432
|
+
exports$1[name] = CodeError;
|
|
16433
16433
|
}
|
|
16434
16434
|
});
|
|
16435
16435
|
}
|
|
16436
16436
|
|
|
16437
16437
|
/**
|
|
16438
16438
|
* Get a class name from a name identifier.
|
|
16439
|
+
*
|
|
16440
|
+
* @param {string} name
|
|
16441
|
+
* @returns {string}
|
|
16439
16442
|
* @private
|
|
16440
16443
|
*/
|
|
16441
16444
|
|
|
16442
16445
|
function toClassName (name) {
|
|
16443
|
-
return name.
|
|
16444
|
-
? name + 'Error'
|
|
16445
|
-
: name
|
|
16446
|
+
return name.slice(-5) === 'Error' ? name : name + 'Error'
|
|
16446
16447
|
}
|
|
16447
16448
|
} (httpErrors));
|
|
16448
16449
|
return httpErrors.exports;
|
|
@@ -16620,7 +16621,7 @@ var hasRequiredDebug;
|
|
|
16620
16621
|
function requireDebug () {
|
|
16621
16622
|
if (hasRequiredDebug) return debug.exports;
|
|
16622
16623
|
hasRequiredDebug = 1;
|
|
16623
|
-
(function (module, exports) {
|
|
16624
|
+
(function (module, exports$1) {
|
|
16624
16625
|
/**
|
|
16625
16626
|
* This is the common logic for both the Node.js and web browser
|
|
16626
16627
|
* implementations of `debug()`.
|
|
@@ -16628,19 +16629,19 @@ function requireDebug () {
|
|
|
16628
16629
|
* Expose `debug()` as the module.
|
|
16629
16630
|
*/
|
|
16630
16631
|
|
|
16631
|
-
exports = module.exports = createDebug.debug = createDebug['default'] = createDebug;
|
|
16632
|
-
exports.coerce = coerce;
|
|
16633
|
-
exports.disable = disable;
|
|
16634
|
-
exports.enable = enable;
|
|
16635
|
-
exports.enabled = enabled;
|
|
16636
|
-
exports.humanize = requireMs();
|
|
16632
|
+
exports$1 = module.exports = createDebug.debug = createDebug['default'] = createDebug;
|
|
16633
|
+
exports$1.coerce = coerce;
|
|
16634
|
+
exports$1.disable = disable;
|
|
16635
|
+
exports$1.enable = enable;
|
|
16636
|
+
exports$1.enabled = enabled;
|
|
16637
|
+
exports$1.humanize = requireMs();
|
|
16637
16638
|
|
|
16638
16639
|
/**
|
|
16639
16640
|
* The currently active debug mode names, and names to skip.
|
|
16640
16641
|
*/
|
|
16641
16642
|
|
|
16642
|
-
exports.names = [];
|
|
16643
|
-
exports.skips = [];
|
|
16643
|
+
exports$1.names = [];
|
|
16644
|
+
exports$1.skips = [];
|
|
16644
16645
|
|
|
16645
16646
|
/**
|
|
16646
16647
|
* Map of special "%n" handling functions, for the debug "format" argument.
|
|
@@ -16648,7 +16649,7 @@ function requireDebug () {
|
|
|
16648
16649
|
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
|
|
16649
16650
|
*/
|
|
16650
16651
|
|
|
16651
|
-
exports.formatters = {};
|
|
16652
|
+
exports$1.formatters = {};
|
|
16652
16653
|
|
|
16653
16654
|
/**
|
|
16654
16655
|
* Previous log timestamp.
|
|
@@ -16671,7 +16672,7 @@ function requireDebug () {
|
|
|
16671
16672
|
hash |= 0; // Convert to 32bit integer
|
|
16672
16673
|
}
|
|
16673
16674
|
|
|
16674
|
-
return exports.colors[Math.abs(hash) % exports.colors.length];
|
|
16675
|
+
return exports$1.colors[Math.abs(hash) % exports$1.colors.length];
|
|
16675
16676
|
}
|
|
16676
16677
|
|
|
16677
16678
|
/**
|
|
@@ -16704,7 +16705,7 @@ function requireDebug () {
|
|
|
16704
16705
|
args[i] = arguments[i];
|
|
16705
16706
|
}
|
|
16706
16707
|
|
|
16707
|
-
args[0] = exports.coerce(args[0]);
|
|
16708
|
+
args[0] = exports$1.coerce(args[0]);
|
|
16708
16709
|
|
|
16709
16710
|
if ('string' !== typeof args[0]) {
|
|
16710
16711
|
// anything else let's inspect with %O
|
|
@@ -16717,7 +16718,7 @@ function requireDebug () {
|
|
|
16717
16718
|
// if we encounter an escaped % then don't increase the array index
|
|
16718
16719
|
if (match === '%%') return match;
|
|
16719
16720
|
index++;
|
|
16720
|
-
var formatter = exports.formatters[format];
|
|
16721
|
+
var formatter = exports$1.formatters[format];
|
|
16721
16722
|
if ('function' === typeof formatter) {
|
|
16722
16723
|
var val = args[index];
|
|
16723
16724
|
match = formatter.call(self, val);
|
|
@@ -16730,20 +16731,20 @@ function requireDebug () {
|
|
|
16730
16731
|
});
|
|
16731
16732
|
|
|
16732
16733
|
// apply env-specific formatting (colors, etc.)
|
|
16733
|
-
exports.formatArgs.call(self, args);
|
|
16734
|
+
exports$1.formatArgs.call(self, args);
|
|
16734
16735
|
|
|
16735
|
-
var logFn = debug.log || exports.log || console.log.bind(console);
|
|
16736
|
+
var logFn = debug.log || exports$1.log || console.log.bind(console);
|
|
16736
16737
|
logFn.apply(self, args);
|
|
16737
16738
|
}
|
|
16738
16739
|
|
|
16739
16740
|
debug.namespace = namespace;
|
|
16740
|
-
debug.enabled = exports.enabled(namespace);
|
|
16741
|
-
debug.useColors = exports.useColors();
|
|
16741
|
+
debug.enabled = exports$1.enabled(namespace);
|
|
16742
|
+
debug.useColors = exports$1.useColors();
|
|
16742
16743
|
debug.color = selectColor(namespace);
|
|
16743
16744
|
|
|
16744
16745
|
// env-specific initialization logic for debug instances
|
|
16745
|
-
if ('function' === typeof exports.init) {
|
|
16746
|
-
exports.init(debug);
|
|
16746
|
+
if ('function' === typeof exports$1.init) {
|
|
16747
|
+
exports$1.init(debug);
|
|
16747
16748
|
}
|
|
16748
16749
|
|
|
16749
16750
|
return debug;
|
|
@@ -16758,10 +16759,10 @@ function requireDebug () {
|
|
|
16758
16759
|
*/
|
|
16759
16760
|
|
|
16760
16761
|
function enable(namespaces) {
|
|
16761
|
-
exports.save(namespaces);
|
|
16762
|
+
exports$1.save(namespaces);
|
|
16762
16763
|
|
|
16763
|
-
exports.names = [];
|
|
16764
|
-
exports.skips = [];
|
|
16764
|
+
exports$1.names = [];
|
|
16765
|
+
exports$1.skips = [];
|
|
16765
16766
|
|
|
16766
16767
|
var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
|
|
16767
16768
|
var len = split.length;
|
|
@@ -16770,9 +16771,9 @@ function requireDebug () {
|
|
|
16770
16771
|
if (!split[i]) continue; // ignore empty strings
|
|
16771
16772
|
namespaces = split[i].replace(/\*/g, '.*?');
|
|
16772
16773
|
if (namespaces[0] === '-') {
|
|
16773
|
-
exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
|
|
16774
|
+
exports$1.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
|
|
16774
16775
|
} else {
|
|
16775
|
-
exports.names.push(new RegExp('^' + namespaces + '$'));
|
|
16776
|
+
exports$1.names.push(new RegExp('^' + namespaces + '$'));
|
|
16776
16777
|
}
|
|
16777
16778
|
}
|
|
16778
16779
|
}
|
|
@@ -16784,7 +16785,7 @@ function requireDebug () {
|
|
|
16784
16785
|
*/
|
|
16785
16786
|
|
|
16786
16787
|
function disable() {
|
|
16787
|
-
exports.enable('');
|
|
16788
|
+
exports$1.enable('');
|
|
16788
16789
|
}
|
|
16789
16790
|
|
|
16790
16791
|
/**
|
|
@@ -16797,13 +16798,13 @@ function requireDebug () {
|
|
|
16797
16798
|
|
|
16798
16799
|
function enabled(name) {
|
|
16799
16800
|
var i, len;
|
|
16800
|
-
for (i = 0, len = exports.skips.length; i < len; i++) {
|
|
16801
|
-
if (exports.skips[i].test(name)) {
|
|
16801
|
+
for (i = 0, len = exports$1.skips.length; i < len; i++) {
|
|
16802
|
+
if (exports$1.skips[i].test(name)) {
|
|
16802
16803
|
return false;
|
|
16803
16804
|
}
|
|
16804
16805
|
}
|
|
16805
|
-
for (i = 0, len = exports.names.length; i < len; i++) {
|
|
16806
|
-
if (exports.names[i].test(name)) {
|
|
16806
|
+
for (i = 0, len = exports$1.names.length; i < len; i++) {
|
|
16807
|
+
if (exports$1.names[i].test(name)) {
|
|
16807
16808
|
return true;
|
|
16808
16809
|
}
|
|
16809
16810
|
}
|
|
@@ -16837,14 +16838,14 @@ var hasRequiredBrowser;
|
|
|
16837
16838
|
function requireBrowser () {
|
|
16838
16839
|
if (hasRequiredBrowser) return browser.exports;
|
|
16839
16840
|
hasRequiredBrowser = 1;
|
|
16840
|
-
(function (module, exports) {
|
|
16841
|
-
exports = module.exports = requireDebug();
|
|
16842
|
-
exports.log = log;
|
|
16843
|
-
exports.formatArgs = formatArgs;
|
|
16844
|
-
exports.save = save;
|
|
16845
|
-
exports.load = load;
|
|
16846
|
-
exports.useColors = useColors;
|
|
16847
|
-
exports.storage = 'undefined' != typeof chrome
|
|
16841
|
+
(function (module, exports$1) {
|
|
16842
|
+
exports$1 = module.exports = requireDebug();
|
|
16843
|
+
exports$1.log = log;
|
|
16844
|
+
exports$1.formatArgs = formatArgs;
|
|
16845
|
+
exports$1.save = save;
|
|
16846
|
+
exports$1.load = load;
|
|
16847
|
+
exports$1.useColors = useColors;
|
|
16848
|
+
exports$1.storage = 'undefined' != typeof chrome
|
|
16848
16849
|
&& 'undefined' != typeof chrome.storage
|
|
16849
16850
|
? chrome.storage.local
|
|
16850
16851
|
: localstorage();
|
|
@@ -16853,7 +16854,7 @@ function requireBrowser () {
|
|
|
16853
16854
|
* Colors.
|
|
16854
16855
|
*/
|
|
16855
16856
|
|
|
16856
|
-
exports.colors = [
|
|
16857
|
+
exports$1.colors = [
|
|
16857
16858
|
'lightseagreen',
|
|
16858
16859
|
'forestgreen',
|
|
16859
16860
|
'goldenrod',
|
|
@@ -16894,7 +16895,7 @@ function requireBrowser () {
|
|
|
16894
16895
|
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
|
16895
16896
|
*/
|
|
16896
16897
|
|
|
16897
|
-
exports.formatters.j = function(v) {
|
|
16898
|
+
exports$1.formatters.j = function(v) {
|
|
16898
16899
|
try {
|
|
16899
16900
|
return JSON.stringify(v);
|
|
16900
16901
|
} catch (err) {
|
|
@@ -16917,7 +16918,7 @@ function requireBrowser () {
|
|
|
16917
16918
|
+ (useColors ? ' %c' : ' ')
|
|
16918
16919
|
+ args[0]
|
|
16919
16920
|
+ (useColors ? '%c ' : ' ')
|
|
16920
|
-
+ '+' + exports.humanize(this.diff);
|
|
16921
|
+
+ '+' + exports$1.humanize(this.diff);
|
|
16921
16922
|
|
|
16922
16923
|
if (!useColors) return;
|
|
16923
16924
|
|
|
@@ -16967,9 +16968,9 @@ function requireBrowser () {
|
|
|
16967
16968
|
function save(namespaces) {
|
|
16968
16969
|
try {
|
|
16969
16970
|
if (null == namespaces) {
|
|
16970
|
-
exports.storage.removeItem('debug');
|
|
16971
|
+
exports$1.storage.removeItem('debug');
|
|
16971
16972
|
} else {
|
|
16972
|
-
exports.storage.debug = namespaces;
|
|
16973
|
+
exports$1.storage.debug = namespaces;
|
|
16973
16974
|
}
|
|
16974
16975
|
} catch(e) {}
|
|
16975
16976
|
}
|
|
@@ -16984,7 +16985,7 @@ function requireBrowser () {
|
|
|
16984
16985
|
function load() {
|
|
16985
16986
|
var r;
|
|
16986
16987
|
try {
|
|
16987
|
-
r = exports.storage.debug;
|
|
16988
|
+
r = exports$1.storage.debug;
|
|
16988
16989
|
} catch(e) {}
|
|
16989
16990
|
|
|
16990
16991
|
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
|
|
@@ -16999,7 +17000,7 @@ function requireBrowser () {
|
|
|
16999
17000
|
* Enable namespaces listed in `localStorage.debug` initially.
|
|
17000
17001
|
*/
|
|
17001
17002
|
|
|
17002
|
-
exports.enable(load());
|
|
17003
|
+
exports$1.enable(load());
|
|
17003
17004
|
|
|
17004
17005
|
/**
|
|
17005
17006
|
* Localstorage attempts to return the localstorage.
|
|
@@ -17032,7 +17033,7 @@ var hasRequiredNode;
|
|
|
17032
17033
|
function requireNode () {
|
|
17033
17034
|
if (hasRequiredNode) return node.exports;
|
|
17034
17035
|
hasRequiredNode = 1;
|
|
17035
|
-
(function (module, exports) {
|
|
17036
|
+
(function (module, exports$1) {
|
|
17036
17037
|
var tty = require$$0$4;
|
|
17037
17038
|
var util = require$$1$1;
|
|
17038
17039
|
|
|
@@ -17042,19 +17043,19 @@ function requireNode () {
|
|
|
17042
17043
|
* Expose `debug()` as the module.
|
|
17043
17044
|
*/
|
|
17044
17045
|
|
|
17045
|
-
exports = module.exports = requireDebug();
|
|
17046
|
-
exports.init = init;
|
|
17047
|
-
exports.log = log;
|
|
17048
|
-
exports.formatArgs = formatArgs;
|
|
17049
|
-
exports.save = save;
|
|
17050
|
-
exports.load = load;
|
|
17051
|
-
exports.useColors = useColors;
|
|
17046
|
+
exports$1 = module.exports = requireDebug();
|
|
17047
|
+
exports$1.init = init;
|
|
17048
|
+
exports$1.log = log;
|
|
17049
|
+
exports$1.formatArgs = formatArgs;
|
|
17050
|
+
exports$1.save = save;
|
|
17051
|
+
exports$1.load = load;
|
|
17052
|
+
exports$1.useColors = useColors;
|
|
17052
17053
|
|
|
17053
17054
|
/**
|
|
17054
17055
|
* Colors.
|
|
17055
17056
|
*/
|
|
17056
17057
|
|
|
17057
|
-
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
17058
|
+
exports$1.colors = [6, 2, 3, 4, 5, 1];
|
|
17058
17059
|
|
|
17059
17060
|
/**
|
|
17060
17061
|
* Build up the default `inspectOpts` object from the environment variables.
|
|
@@ -17062,7 +17063,7 @@ function requireNode () {
|
|
|
17062
17063
|
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
|
17063
17064
|
*/
|
|
17064
17065
|
|
|
17065
|
-
exports.inspectOpts = Object.keys(process.env).filter(function (key) {
|
|
17066
|
+
exports$1.inspectOpts = Object.keys(process.env).filter(function (key) {
|
|
17066
17067
|
return /^debug_/i.test(key);
|
|
17067
17068
|
}).reduce(function (obj, key) {
|
|
17068
17069
|
// camel-case
|
|
@@ -17104,8 +17105,8 @@ function requireNode () {
|
|
|
17104
17105
|
*/
|
|
17105
17106
|
|
|
17106
17107
|
function useColors() {
|
|
17107
|
-
return 'colors' in exports.inspectOpts
|
|
17108
|
-
? Boolean(exports.inspectOpts.colors)
|
|
17108
|
+
return 'colors' in exports$1.inspectOpts
|
|
17109
|
+
? Boolean(exports$1.inspectOpts.colors)
|
|
17109
17110
|
: tty.isatty(fd);
|
|
17110
17111
|
}
|
|
17111
17112
|
|
|
@@ -17113,7 +17114,7 @@ function requireNode () {
|
|
|
17113
17114
|
* Map %o to `util.inspect()`, all on a single line.
|
|
17114
17115
|
*/
|
|
17115
17116
|
|
|
17116
|
-
exports.formatters.o = function(v) {
|
|
17117
|
+
exports$1.formatters.o = function(v) {
|
|
17117
17118
|
this.inspectOpts.colors = this.useColors;
|
|
17118
17119
|
return util.inspect(v, this.inspectOpts)
|
|
17119
17120
|
.split('\n').map(function(str) {
|
|
@@ -17125,7 +17126,7 @@ function requireNode () {
|
|
|
17125
17126
|
* Map %o to `util.inspect()`, allowing multiple lines if needed.
|
|
17126
17127
|
*/
|
|
17127
17128
|
|
|
17128
|
-
exports.formatters.O = function(v) {
|
|
17129
|
+
exports$1.formatters.O = function(v) {
|
|
17129
17130
|
this.inspectOpts.colors = this.useColors;
|
|
17130
17131
|
return util.inspect(v, this.inspectOpts);
|
|
17131
17132
|
};
|
|
@@ -17145,7 +17146,7 @@ function requireNode () {
|
|
|
17145
17146
|
var prefix = ' \u001b[3' + c + ';1m' + name + ' ' + '\u001b[0m';
|
|
17146
17147
|
|
|
17147
17148
|
args[0] = prefix + args[0].split('\n').join('\n' + prefix);
|
|
17148
|
-
args.push('\u001b[3' + c + 'm+' + exports.humanize(this.diff) + '\u001b[0m');
|
|
17149
|
+
args.push('\u001b[3' + c + 'm+' + exports$1.humanize(this.diff) + '\u001b[0m');
|
|
17149
17150
|
} else {
|
|
17150
17151
|
args[0] = new Date().toUTCString()
|
|
17151
17152
|
+ ' ' + name + ' ' + args[0];
|
|
@@ -17266,9 +17267,9 @@ function requireNode () {
|
|
|
17266
17267
|
function init (debug) {
|
|
17267
17268
|
debug.inspectOpts = {};
|
|
17268
17269
|
|
|
17269
|
-
var keys = Object.keys(exports.inspectOpts);
|
|
17270
|
+
var keys = Object.keys(exports$1.inspectOpts);
|
|
17270
17271
|
for (var i = 0; i < keys.length; i++) {
|
|
17271
|
-
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
17272
|
+
debug.inspectOpts[keys[i]] = exports$1.inspectOpts[keys[i]];
|
|
17272
17273
|
}
|
|
17273
17274
|
}
|
|
17274
17275
|
|
|
@@ -17276,7 +17277,7 @@ function requireNode () {
|
|
|
17276
17277
|
* Enable namespaces listed in `process.env.DEBUG` initially.
|
|
17277
17278
|
*/
|
|
17278
17279
|
|
|
17279
|
-
exports.enable(load());
|
|
17280
|
+
exports$1.enable(load());
|
|
17280
17281
|
} (node, node.exports));
|
|
17281
17282
|
return node.exports;
|
|
17282
17283
|
}
|
|
@@ -28086,7 +28087,7 @@ var hasRequiredEncodings;
|
|
|
28086
28087
|
function requireEncodings () {
|
|
28087
28088
|
if (hasRequiredEncodings) return encodings;
|
|
28088
28089
|
hasRequiredEncodings = 1;
|
|
28089
|
-
(function (exports) {
|
|
28090
|
+
(function (exports$1) {
|
|
28090
28091
|
|
|
28091
28092
|
// Update this array if you add/rename/remove files in this directory.
|
|
28092
28093
|
// We support Browserify by skipping automatic module discovery and requiring modules directly.
|
|
@@ -28106,7 +28107,7 @@ function requireEncodings () {
|
|
|
28106
28107
|
var module = modules[i];
|
|
28107
28108
|
for (var enc in module)
|
|
28108
28109
|
if (Object.prototype.hasOwnProperty.call(module, enc))
|
|
28109
|
-
exports[enc] = module[enc];
|
|
28110
|
+
exports$1[enc] = module[enc];
|
|
28110
28111
|
}
|
|
28111
28112
|
} (encodings));
|
|
28112
28113
|
return encodings;
|
|
@@ -32669,7 +32670,7 @@ function requireUtils () {
|
|
|
32669
32670
|
};
|
|
32670
32671
|
|
|
32671
32672
|
var arrayToObject = function arrayToObject(source, options) {
|
|
32672
|
-
var obj = options && options.plainObjects ?
|
|
32673
|
+
var obj = options && options.plainObjects ? { __proto__: null } : {};
|
|
32673
32674
|
for (var i = 0; i < source.length; ++i) {
|
|
32674
32675
|
if (typeof source[i] !== 'undefined') {
|
|
32675
32676
|
obj[i] = source[i];
|
|
@@ -32685,11 +32686,14 @@ function requireUtils () {
|
|
|
32685
32686
|
return target;
|
|
32686
32687
|
}
|
|
32687
32688
|
|
|
32688
|
-
if (typeof source !== 'object') {
|
|
32689
|
+
if (typeof source !== 'object' && typeof source !== 'function') {
|
|
32689
32690
|
if (isArray(target)) {
|
|
32690
32691
|
target.push(source);
|
|
32691
32692
|
} else if (target && typeof target === 'object') {
|
|
32692
|
-
if (
|
|
32693
|
+
if (
|
|
32694
|
+
(options && (options.plainObjects || options.allowPrototypes))
|
|
32695
|
+
|| !has.call(Object.prototype, source)
|
|
32696
|
+
) {
|
|
32693
32697
|
target[source] = true;
|
|
32694
32698
|
}
|
|
32695
32699
|
} else {
|
|
@@ -32743,7 +32747,7 @@ function requireUtils () {
|
|
|
32743
32747
|
}, target);
|
|
32744
32748
|
};
|
|
32745
32749
|
|
|
32746
|
-
var decode = function (str,
|
|
32750
|
+
var decode = function (str, defaultDecoder, charset) {
|
|
32747
32751
|
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
32748
32752
|
if (charset === 'iso-8859-1') {
|
|
32749
32753
|
// unescape never throws, no try...catch needed:
|
|
@@ -32942,11 +32946,13 @@ function requireStringify () {
|
|
|
32942
32946
|
arrayFormat: 'indices',
|
|
32943
32947
|
charset: 'utf-8',
|
|
32944
32948
|
charsetSentinel: false,
|
|
32949
|
+
commaRoundTrip: false,
|
|
32945
32950
|
delimiter: '&',
|
|
32946
32951
|
encode: true,
|
|
32947
32952
|
encodeDotInKeys: false,
|
|
32948
32953
|
encoder: utils.encode,
|
|
32949
32954
|
encodeValuesOnly: false,
|
|
32955
|
+
filter: void undefined,
|
|
32950
32956
|
format: defaultFormat,
|
|
32951
32957
|
formatter: formats.formatters[defaultFormat],
|
|
32952
32958
|
// deprecated
|
|
@@ -33058,7 +33064,7 @@ function requireStringify () {
|
|
|
33058
33064
|
objKeys = sort ? keys.sort(sort) : keys;
|
|
33059
33065
|
}
|
|
33060
33066
|
|
|
33061
|
-
var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, '%2E') : prefix;
|
|
33067
|
+
var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, '%2E') : String(prefix);
|
|
33062
33068
|
|
|
33063
33069
|
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
|
|
33064
33070
|
|
|
@@ -33068,13 +33074,15 @@ function requireStringify () {
|
|
|
33068
33074
|
|
|
33069
33075
|
for (var j = 0; j < objKeys.length; ++j) {
|
|
33070
33076
|
var key = objKeys[j];
|
|
33071
|
-
var value = typeof key === 'object' && typeof key.value !== 'undefined'
|
|
33077
|
+
var value = typeof key === 'object' && key && typeof key.value !== 'undefined'
|
|
33078
|
+
? key.value
|
|
33079
|
+
: obj[key];
|
|
33072
33080
|
|
|
33073
33081
|
if (skipNulls && value === null) {
|
|
33074
33082
|
continue;
|
|
33075
33083
|
}
|
|
33076
33084
|
|
|
33077
|
-
var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key;
|
|
33085
|
+
var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, '%2E') : String(key);
|
|
33078
33086
|
var keyPrefix = isArray(obj)
|
|
33079
33087
|
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix
|
|
33080
33088
|
: adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
|
|
@@ -33165,7 +33173,7 @@ function requireStringify () {
|
|
|
33165
33173
|
arrayFormat: arrayFormat,
|
|
33166
33174
|
charset: charset,
|
|
33167
33175
|
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
33168
|
-
commaRoundTrip: opts.commaRoundTrip,
|
|
33176
|
+
commaRoundTrip: !!opts.commaRoundTrip,
|
|
33169
33177
|
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
|
33170
33178
|
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
|
33171
33179
|
encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
@@ -33216,12 +33224,13 @@ function requireStringify () {
|
|
|
33216
33224
|
var sideChannel = getSideChannel();
|
|
33217
33225
|
for (var i = 0; i < objKeys.length; ++i) {
|
|
33218
33226
|
var key = objKeys[i];
|
|
33227
|
+
var value = obj[key];
|
|
33219
33228
|
|
|
33220
|
-
if (options.skipNulls &&
|
|
33229
|
+
if (options.skipNulls && value === null) {
|
|
33221
33230
|
continue;
|
|
33222
33231
|
}
|
|
33223
33232
|
pushToArray(keys, stringify(
|
|
33224
|
-
|
|
33233
|
+
value,
|
|
33225
33234
|
key,
|
|
33226
33235
|
generateArrayPrefix,
|
|
33227
33236
|
commaRoundTrip,
|
|
@@ -33292,7 +33301,8 @@ function requireParse () {
|
|
|
33292
33301
|
parseArrays: true,
|
|
33293
33302
|
plainObjects: false,
|
|
33294
33303
|
strictDepth: false,
|
|
33295
|
-
strictNullHandling: false
|
|
33304
|
+
strictNullHandling: false,
|
|
33305
|
+
throwOnLimitExceeded: false
|
|
33296
33306
|
};
|
|
33297
33307
|
|
|
33298
33308
|
var interpretNumericEntities = function (str) {
|
|
@@ -33301,11 +33311,15 @@ function requireParse () {
|
|
|
33301
33311
|
});
|
|
33302
33312
|
};
|
|
33303
33313
|
|
|
33304
|
-
var parseArrayValue = function (val, options) {
|
|
33314
|
+
var parseArrayValue = function (val, options, currentArrayLength) {
|
|
33305
33315
|
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
|
33306
33316
|
return val.split(',');
|
|
33307
33317
|
}
|
|
33308
33318
|
|
|
33319
|
+
if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
|
|
33320
|
+
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
33321
|
+
}
|
|
33322
|
+
|
|
33309
33323
|
return val;
|
|
33310
33324
|
};
|
|
33311
33325
|
|
|
@@ -33324,8 +33338,17 @@ function requireParse () {
|
|
|
33324
33338
|
|
|
33325
33339
|
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
33326
33340
|
cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
|
|
33341
|
+
|
|
33327
33342
|
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
33328
|
-
var parts = cleanStr.split(
|
|
33343
|
+
var parts = cleanStr.split(
|
|
33344
|
+
options.delimiter,
|
|
33345
|
+
options.throwOnLimitExceeded ? limit + 1 : limit
|
|
33346
|
+
);
|
|
33347
|
+
|
|
33348
|
+
if (options.throwOnLimitExceeded && parts.length > limit) {
|
|
33349
|
+
throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (limit === 1 ? '' : 's') + ' allowed.');
|
|
33350
|
+
}
|
|
33351
|
+
|
|
33329
33352
|
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
33330
33353
|
var i;
|
|
33331
33354
|
|
|
@@ -33353,14 +33376,20 @@ function requireParse () {
|
|
|
33353
33376
|
var bracketEqualsPos = part.indexOf(']=');
|
|
33354
33377
|
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
33355
33378
|
|
|
33356
|
-
var key
|
|
33379
|
+
var key;
|
|
33380
|
+
var val;
|
|
33357
33381
|
if (pos === -1) {
|
|
33358
33382
|
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
33359
33383
|
val = options.strictNullHandling ? null : '';
|
|
33360
33384
|
} else {
|
|
33361
33385
|
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
33386
|
+
|
|
33362
33387
|
val = utils.maybeMap(
|
|
33363
|
-
parseArrayValue(
|
|
33388
|
+
parseArrayValue(
|
|
33389
|
+
part.slice(pos + 1),
|
|
33390
|
+
options,
|
|
33391
|
+
isArray(obj[key]) ? obj[key].length : 0
|
|
33392
|
+
),
|
|
33364
33393
|
function (encodedVal) {
|
|
33365
33394
|
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
33366
33395
|
}
|
|
@@ -33368,7 +33397,7 @@ function requireParse () {
|
|
|
33368
33397
|
}
|
|
33369
33398
|
|
|
33370
33399
|
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
33371
|
-
val = interpretNumericEntities(val);
|
|
33400
|
+
val = interpretNumericEntities(String(val));
|
|
33372
33401
|
}
|
|
33373
33402
|
|
|
33374
33403
|
if (part.indexOf('[]=') > -1) {
|
|
@@ -33387,7 +33416,13 @@ function requireParse () {
|
|
|
33387
33416
|
};
|
|
33388
33417
|
|
|
33389
33418
|
var parseObject = function (chain, val, options, valuesParsed) {
|
|
33390
|
-
var
|
|
33419
|
+
var currentArrayLength = 0;
|
|
33420
|
+
if (chain.length > 0 && chain[chain.length - 1] === '[]') {
|
|
33421
|
+
var parentKey = chain.slice(0, -1).join('');
|
|
33422
|
+
currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
|
|
33423
|
+
}
|
|
33424
|
+
|
|
33425
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
|
|
33391
33426
|
|
|
33392
33427
|
for (var i = chain.length - 1; i >= 0; --i) {
|
|
33393
33428
|
var obj;
|
|
@@ -33396,9 +33431,9 @@ function requireParse () {
|
|
|
33396
33431
|
if (root === '[]' && options.parseArrays) {
|
|
33397
33432
|
obj = options.allowEmptyArrays && (leaf === '' || (options.strictNullHandling && leaf === null))
|
|
33398
33433
|
? []
|
|
33399
|
-
: []
|
|
33434
|
+
: utils.combine([], leaf);
|
|
33400
33435
|
} else {
|
|
33401
|
-
obj = options.plainObjects ?
|
|
33436
|
+
obj = options.plainObjects ? { __proto__: null } : {};
|
|
33402
33437
|
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
33403
33438
|
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
|
|
33404
33439
|
var index = parseInt(decodedRoot, 10);
|
|
@@ -33501,6 +33536,11 @@ function requireParse () {
|
|
|
33501
33536
|
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
33502
33537
|
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
33503
33538
|
}
|
|
33539
|
+
|
|
33540
|
+
if (typeof opts.throwOnLimitExceeded !== 'undefined' && typeof opts.throwOnLimitExceeded !== 'boolean') {
|
|
33541
|
+
throw new TypeError('`throwOnLimitExceeded` option must be a boolean');
|
|
33542
|
+
}
|
|
33543
|
+
|
|
33504
33544
|
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
33505
33545
|
|
|
33506
33546
|
var duplicates = typeof opts.duplicates === 'undefined' ? defaults.duplicates : opts.duplicates;
|
|
@@ -33532,7 +33572,8 @@ function requireParse () {
|
|
|
33532
33572
|
parseArrays: opts.parseArrays !== false,
|
|
33533
33573
|
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
33534
33574
|
strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults.strictDepth,
|
|
33535
|
-
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
33575
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
33576
|
+
throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === 'boolean' ? opts.throwOnLimitExceeded : false
|
|
33536
33577
|
};
|
|
33537
33578
|
};
|
|
33538
33579
|
|
|
@@ -33540,11 +33581,11 @@ function requireParse () {
|
|
|
33540
33581
|
var options = normalizeParseOptions(opts);
|
|
33541
33582
|
|
|
33542
33583
|
if (str === '' || str === null || typeof str === 'undefined') {
|
|
33543
|
-
return options.plainObjects ?
|
|
33584
|
+
return options.plainObjects ? { __proto__: null } : {};
|
|
33544
33585
|
}
|
|
33545
33586
|
|
|
33546
33587
|
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
33547
|
-
var obj = options.plainObjects ?
|
|
33588
|
+
var obj = options.plainObjects ? { __proto__: null } : {};
|
|
33548
33589
|
|
|
33549
33590
|
// Iterate over the keys and setup the new object
|
|
33550
33591
|
|
|
@@ -33645,9 +33686,6 @@ function requireUrlencoded () {
|
|
|
33645
33686
|
: opts.limit;
|
|
33646
33687
|
var type = opts.type || 'application/x-www-form-urlencoded';
|
|
33647
33688
|
var verify = opts.verify || false;
|
|
33648
|
-
var depth = typeof opts.depth !== 'number'
|
|
33649
|
-
? Number(opts.depth || 32)
|
|
33650
|
-
: opts.depth;
|
|
33651
33689
|
|
|
33652
33690
|
if (verify !== false && typeof verify !== 'function') {
|
|
33653
33691
|
throw new TypeError('option verify must be function')
|
|
@@ -33711,8 +33749,7 @@ function requireUrlencoded () {
|
|
|
33711
33749
|
encoding: charset,
|
|
33712
33750
|
inflate: inflate,
|
|
33713
33751
|
limit: limit,
|
|
33714
|
-
verify: verify
|
|
33715
|
-
depth: depth
|
|
33752
|
+
verify: verify
|
|
33716
33753
|
});
|
|
33717
33754
|
}
|
|
33718
33755
|
}
|
|
@@ -33727,10 +33764,7 @@ function requireUrlencoded () {
|
|
|
33727
33764
|
var parameterLimit = options.parameterLimit !== undefined
|
|
33728
33765
|
? options.parameterLimit
|
|
33729
33766
|
: 1000;
|
|
33730
|
-
|
|
33731
|
-
var depth = typeof options.depth !== 'number'
|
|
33732
|
-
? Number(options.depth || 32)
|
|
33733
|
-
: options.depth;
|
|
33767
|
+
var depth = options.depth !== undefined ? options.depth : 32;
|
|
33734
33768
|
var parse = parser('qs');
|
|
33735
33769
|
|
|
33736
33770
|
if (isNaN(parameterLimit) || parameterLimit < 1) {
|
|
@@ -33904,7 +33938,7 @@ function requireUrlencoded () {
|
|
|
33904
33938
|
* MIT Licensed
|
|
33905
33939
|
*/
|
|
33906
33940
|
|
|
33907
|
-
(function (module, exports) {
|
|
33941
|
+
(function (module, exports$1) {
|
|
33908
33942
|
|
|
33909
33943
|
/**
|
|
33910
33944
|
* Module dependencies.
|
|
@@ -33934,7 +33968,7 @@ function requireUrlencoded () {
|
|
|
33934
33968
|
* @type {Parsers}
|
|
33935
33969
|
*/
|
|
33936
33970
|
|
|
33937
|
-
exports = module.exports = deprecate.function(bodyParser,
|
|
33971
|
+
exports$1 = module.exports = deprecate.function(bodyParser,
|
|
33938
33972
|
'bodyParser: use individual json/urlencoded middlewares');
|
|
33939
33973
|
|
|
33940
33974
|
/**
|
|
@@ -33942,7 +33976,7 @@ function requireUrlencoded () {
|
|
|
33942
33976
|
* @public
|
|
33943
33977
|
*/
|
|
33944
33978
|
|
|
33945
|
-
Object.defineProperty(exports, 'json', {
|
|
33979
|
+
Object.defineProperty(exports$1, 'json', {
|
|
33946
33980
|
configurable: true,
|
|
33947
33981
|
enumerable: true,
|
|
33948
33982
|
get: createParserGetter('json')
|
|
@@ -33953,7 +33987,7 @@ function requireUrlencoded () {
|
|
|
33953
33987
|
* @public
|
|
33954
33988
|
*/
|
|
33955
33989
|
|
|
33956
|
-
Object.defineProperty(exports, 'raw', {
|
|
33990
|
+
Object.defineProperty(exports$1, 'raw', {
|
|
33957
33991
|
configurable: true,
|
|
33958
33992
|
enumerable: true,
|
|
33959
33993
|
get: createParserGetter('raw')
|
|
@@ -33964,7 +33998,7 @@ function requireUrlencoded () {
|
|
|
33964
33998
|
* @public
|
|
33965
33999
|
*/
|
|
33966
34000
|
|
|
33967
|
-
Object.defineProperty(exports, 'text', {
|
|
34001
|
+
Object.defineProperty(exports$1, 'text', {
|
|
33968
34002
|
configurable: true,
|
|
33969
34003
|
enumerable: true,
|
|
33970
34004
|
get: createParserGetter('text')
|
|
@@ -33975,7 +34009,7 @@ function requireUrlencoded () {
|
|
|
33975
34009
|
* @public
|
|
33976
34010
|
*/
|
|
33977
34011
|
|
|
33978
|
-
Object.defineProperty(exports, 'urlencoded', {
|
|
34012
|
+
Object.defineProperty(exports$1, 'urlencoded', {
|
|
33979
34013
|
configurable: true,
|
|
33980
34014
|
enumerable: true,
|
|
33981
34015
|
get: createParserGetter('urlencoded')
|
|
@@ -34001,8 +34035,8 @@ function requireUrlencoded () {
|
|
|
34001
34035
|
}
|
|
34002
34036
|
});
|
|
34003
34037
|
|
|
34004
|
-
var _urlencoded = exports.urlencoded(opts);
|
|
34005
|
-
var _json = exports.json(opts);
|
|
34038
|
+
var _urlencoded = exports$1.urlencoded(opts);
|
|
34039
|
+
var _json = exports$1.json(opts);
|
|
34006
34040
|
|
|
34007
34041
|
return function bodyParser (req, res, next) {
|
|
34008
34042
|
_json(req, res, function (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builderbot/bot",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.14-alpha.148",
|
|
4
4
|
"description": "core typescript",
|
|
5
5
|
"author": "Leifer Mendez <leifer33@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/codigoencasa/bot-whatsapp#readme",
|
|
@@ -28,39 +28,39 @@
|
|
|
28
28
|
"url": "https://github.com/codigoencasa/bot-whatsapp/issues"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@microsoft/api-extractor": "^7.
|
|
32
|
-
"@rollup/plugin-commonjs": "^25.0.
|
|
31
|
+
"@microsoft/api-extractor": "^7.55.1",
|
|
32
|
+
"@rollup/plugin-commonjs": "^25.0.8",
|
|
33
33
|
"@rollup/plugin-json": "^6.1.0",
|
|
34
|
-
"@rollup/plugin-node-resolve": "^15.
|
|
34
|
+
"@rollup/plugin-node-resolve": "^15.3.1",
|
|
35
35
|
"@rollup/plugin-terser": "^0.4.4",
|
|
36
|
-
"@types/body-parser": "^1.19.
|
|
37
|
-
"@types/cors": "^2.8.
|
|
38
|
-
"@types/fluent-ffmpeg": "^2.1.
|
|
36
|
+
"@types/body-parser": "^1.19.6",
|
|
37
|
+
"@types/cors": "^2.8.19",
|
|
38
|
+
"@types/fluent-ffmpeg": "^2.1.28",
|
|
39
39
|
"@types/follow-redirects": "^1.14.4",
|
|
40
40
|
"@types/mime-types": "^2.1.4",
|
|
41
|
-
"@types/node": "^20.
|
|
42
|
-
"@types/polka": "^0.5.
|
|
41
|
+
"@types/node": "^20.19.25",
|
|
42
|
+
"@types/polka": "^0.5.8",
|
|
43
43
|
"@types/proxyquire": "^1.3.31",
|
|
44
|
-
"@types/sinon": "^17.0.
|
|
44
|
+
"@types/sinon": "^17.0.4",
|
|
45
45
|
"proxyquire": "^2.1.3",
|
|
46
|
-
"rimraf": "^5.0.
|
|
46
|
+
"rimraf": "^5.0.10",
|
|
47
47
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
48
48
|
"sinon": "^17.0.1",
|
|
49
|
-
"tslib": "^2.
|
|
49
|
+
"tslib": "^2.8.1",
|
|
50
50
|
"tsm": "^2.3.0"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@ffmpeg-installer/ffmpeg": "^1.1.0",
|
|
54
|
-
"body-parser": "^1.20.
|
|
54
|
+
"body-parser": "^1.20.4",
|
|
55
55
|
"cors": "^2.8.5",
|
|
56
|
-
"fluent-ffmpeg": "^2.1.
|
|
57
|
-
"follow-redirects": "^1.15.
|
|
56
|
+
"fluent-ffmpeg": "^2.1.3",
|
|
57
|
+
"follow-redirects": "^1.15.11",
|
|
58
58
|
"mime-types": "^2.1.35",
|
|
59
|
-
"picocolors": "^1.
|
|
59
|
+
"picocolors": "^1.1.1",
|
|
60
60
|
"polka": "^0.5.2"
|
|
61
61
|
},
|
|
62
62
|
"optionalDependencies": {
|
|
63
63
|
"sharp": "0.33.3"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "b19327254ea841420d7487c96cf5dadd054ea65c"
|
|
66
66
|
}
|