snyk 1.720.0 → 1.724.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1077,7 +1077,7 @@ formatters.O = function (v) {
1077
1077
 
1078
1078
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1079
1079
  exports.isPoetryInstalled = exports.extractPoetryVersion = void 0;
1080
- const debugLib = __webpack_require__(19785);
1080
+ const debugLib = __webpack_require__(15158);
1081
1081
  const child_process_1 = __webpack_require__(68026);
1082
1082
  const debug = debugLib('snyk-fix:poetry');
1083
1083
  function extractPoetryVersion(stdout) {
@@ -1141,6 +1141,9 @@ function isPoetrySupportedVersion(version) {
1141
1141
  // Not all versions listed below as not all are tested but most likely
1142
1142
  // they are supported
1143
1143
  const SUPPORTED_POETRY_VERSIONS = [
1144
+ '1.1.9',
1145
+ '1.1.8',
1146
+ '1.1.7',
1144
1147
  '1.1.6',
1145
1148
  '1.1.5',
1146
1149
  '1.1.4',
@@ -1169,7 +1172,7 @@ exports.isPoetrySupportedVersion = isPoetrySupportedVersion;
1169
1172
 
1170
1173
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1171
1174
  exports.poetryAdd = void 0;
1172
- const debugLib = __webpack_require__(19785);
1175
+ const debugLib = __webpack_require__(15158);
1173
1176
  const bottleneck_1 = __webpack_require__(35861);
1174
1177
  const child_process_1 = __webpack_require__(68026);
1175
1178
  const debug = debugLib('snyk-fix:poetry');
@@ -1219,837 +1222,6 @@ async function runPoetryAdd(projectPath, dependencyUpdates, config) {
1219
1222
  exports.poetryAdd = limiter.wrap(runPoetryAdd);
1220
1223
  //# sourceMappingURL=poetry-add.js.map
1221
1224
 
1222
- /***/ }),
1223
-
1224
- /***/ 18752:
1225
- /***/ ((module, exports, __webpack_require__) => {
1226
-
1227
- /* eslint-env browser */
1228
-
1229
- /**
1230
- * This is the web browser implementation of `debug()`.
1231
- */
1232
-
1233
- exports.formatArgs = formatArgs;
1234
- exports.save = save;
1235
- exports.load = load;
1236
- exports.useColors = useColors;
1237
- exports.storage = localstorage();
1238
- exports.destroy = (() => {
1239
- let warned = false;
1240
-
1241
- return () => {
1242
- if (!warned) {
1243
- warned = true;
1244
- console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
1245
- }
1246
- };
1247
- })();
1248
-
1249
- /**
1250
- * Colors.
1251
- */
1252
-
1253
- exports.colors = [
1254
- '#0000CC',
1255
- '#0000FF',
1256
- '#0033CC',
1257
- '#0033FF',
1258
- '#0066CC',
1259
- '#0066FF',
1260
- '#0099CC',
1261
- '#0099FF',
1262
- '#00CC00',
1263
- '#00CC33',
1264
- '#00CC66',
1265
- '#00CC99',
1266
- '#00CCCC',
1267
- '#00CCFF',
1268
- '#3300CC',
1269
- '#3300FF',
1270
- '#3333CC',
1271
- '#3333FF',
1272
- '#3366CC',
1273
- '#3366FF',
1274
- '#3399CC',
1275
- '#3399FF',
1276
- '#33CC00',
1277
- '#33CC33',
1278
- '#33CC66',
1279
- '#33CC99',
1280
- '#33CCCC',
1281
- '#33CCFF',
1282
- '#6600CC',
1283
- '#6600FF',
1284
- '#6633CC',
1285
- '#6633FF',
1286
- '#66CC00',
1287
- '#66CC33',
1288
- '#9900CC',
1289
- '#9900FF',
1290
- '#9933CC',
1291
- '#9933FF',
1292
- '#99CC00',
1293
- '#99CC33',
1294
- '#CC0000',
1295
- '#CC0033',
1296
- '#CC0066',
1297
- '#CC0099',
1298
- '#CC00CC',
1299
- '#CC00FF',
1300
- '#CC3300',
1301
- '#CC3333',
1302
- '#CC3366',
1303
- '#CC3399',
1304
- '#CC33CC',
1305
- '#CC33FF',
1306
- '#CC6600',
1307
- '#CC6633',
1308
- '#CC9900',
1309
- '#CC9933',
1310
- '#CCCC00',
1311
- '#CCCC33',
1312
- '#FF0000',
1313
- '#FF0033',
1314
- '#FF0066',
1315
- '#FF0099',
1316
- '#FF00CC',
1317
- '#FF00FF',
1318
- '#FF3300',
1319
- '#FF3333',
1320
- '#FF3366',
1321
- '#FF3399',
1322
- '#FF33CC',
1323
- '#FF33FF',
1324
- '#FF6600',
1325
- '#FF6633',
1326
- '#FF9900',
1327
- '#FF9933',
1328
- '#FFCC00',
1329
- '#FFCC33'
1330
- ];
1331
-
1332
- /**
1333
- * Currently only WebKit-based Web Inspectors, Firefox >= v31,
1334
- * and the Firebug extension (any Firefox version) are known
1335
- * to support "%c" CSS customizations.
1336
- *
1337
- * TODO: add a `localStorage` variable to explicitly enable/disable colors
1338
- */
1339
-
1340
- // eslint-disable-next-line complexity
1341
- function useColors() {
1342
- // NB: In an Electron preload script, document will be defined but not fully
1343
- // initialized. Since we know we're in Chrome, we'll just detect this case
1344
- // explicitly
1345
- if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
1346
- return true;
1347
- }
1348
-
1349
- // Internet Explorer and Edge do not support colors.
1350
- if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
1351
- return false;
1352
- }
1353
-
1354
- // Is webkit? http://stackoverflow.com/a/16459606/376773
1355
- // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
1356
- return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
1357
- // Is firebug? http://stackoverflow.com/a/398120/376773
1358
- (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
1359
- // Is firefox >= v31?
1360
- // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
1361
- (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
1362
- // Double check webkit in userAgent just in case we are in a worker
1363
- (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
1364
- }
1365
-
1366
- /**
1367
- * Colorize log arguments if enabled.
1368
- *
1369
- * @api public
1370
- */
1371
-
1372
- function formatArgs(args) {
1373
- args[0] = (this.useColors ? '%c' : '') +
1374
- this.namespace +
1375
- (this.useColors ? ' %c' : ' ') +
1376
- args[0] +
1377
- (this.useColors ? '%c ' : ' ') +
1378
- '+' + module.exports.humanize(this.diff);
1379
-
1380
- if (!this.useColors) {
1381
- return;
1382
- }
1383
-
1384
- const c = 'color: ' + this.color;
1385
- args.splice(1, 0, c, 'color: inherit');
1386
-
1387
- // The final "%c" is somewhat tricky, because there could be other
1388
- // arguments passed either before or after the %c, so we need to
1389
- // figure out the correct index to insert the CSS into
1390
- let index = 0;
1391
- let lastC = 0;
1392
- args[0].replace(/%[a-zA-Z%]/g, match => {
1393
- if (match === '%%') {
1394
- return;
1395
- }
1396
- index++;
1397
- if (match === '%c') {
1398
- // We only are interested in the *last* %c
1399
- // (the user may have provided their own)
1400
- lastC = index;
1401
- }
1402
- });
1403
-
1404
- args.splice(lastC, 0, c);
1405
- }
1406
-
1407
- /**
1408
- * Invokes `console.debug()` when available.
1409
- * No-op when `console.debug` is not a "function".
1410
- * If `console.debug` is not available, falls back
1411
- * to `console.log`.
1412
- *
1413
- * @api public
1414
- */
1415
- exports.log = console.debug || console.log || (() => {});
1416
-
1417
- /**
1418
- * Save `namespaces`.
1419
- *
1420
- * @param {String} namespaces
1421
- * @api private
1422
- */
1423
- function save(namespaces) {
1424
- try {
1425
- if (namespaces) {
1426
- exports.storage.setItem('debug', namespaces);
1427
- } else {
1428
- exports.storage.removeItem('debug');
1429
- }
1430
- } catch (error) {
1431
- // Swallow
1432
- // XXX (@Qix-) should we be logging these?
1433
- }
1434
- }
1435
-
1436
- /**
1437
- * Load `namespaces`.
1438
- *
1439
- * @return {String} returns the previously persisted debug modes
1440
- * @api private
1441
- */
1442
- function load() {
1443
- let r;
1444
- try {
1445
- r = exports.storage.getItem('debug');
1446
- } catch (error) {
1447
- // Swallow
1448
- // XXX (@Qix-) should we be logging these?
1449
- }
1450
-
1451
- // If debug isn't set in LS, and we're in Electron, try to load $DEBUG
1452
- if (!r && typeof process !== 'undefined' && 'env' in process) {
1453
- r = process.env.DEBUG;
1454
- }
1455
-
1456
- return r;
1457
- }
1458
-
1459
- /**
1460
- * Localstorage attempts to return the localstorage.
1461
- *
1462
- * This is necessary because safari throws
1463
- * when a user disables cookies/localstorage
1464
- * and you attempt to access it.
1465
- *
1466
- * @return {LocalStorage}
1467
- * @api private
1468
- */
1469
-
1470
- function localstorage() {
1471
- try {
1472
- // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
1473
- // The Browser also has localStorage in the global context.
1474
- return localStorage;
1475
- } catch (error) {
1476
- // Swallow
1477
- // XXX (@Qix-) should we be logging these?
1478
- }
1479
- }
1480
-
1481
- module.exports = __webpack_require__(71948)(exports);
1482
-
1483
- const {formatters} = module.exports;
1484
-
1485
- /**
1486
- * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
1487
- */
1488
-
1489
- formatters.j = function (v) {
1490
- try {
1491
- return JSON.stringify(v);
1492
- } catch (error) {
1493
- return '[UnexpectedJSONParseError]: ' + error.message;
1494
- }
1495
- };
1496
-
1497
-
1498
- /***/ }),
1499
-
1500
- /***/ 71948:
1501
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1502
-
1503
-
1504
- /**
1505
- * This is the common logic for both the Node.js and web browser
1506
- * implementations of `debug()`.
1507
- */
1508
-
1509
- function setup(env) {
1510
- createDebug.debug = createDebug;
1511
- createDebug.default = createDebug;
1512
- createDebug.coerce = coerce;
1513
- createDebug.disable = disable;
1514
- createDebug.enable = enable;
1515
- createDebug.enabled = enabled;
1516
- createDebug.humanize = __webpack_require__(57824);
1517
- createDebug.destroy = destroy;
1518
-
1519
- Object.keys(env).forEach(key => {
1520
- createDebug[key] = env[key];
1521
- });
1522
-
1523
- /**
1524
- * The currently active debug mode names, and names to skip.
1525
- */
1526
-
1527
- createDebug.names = [];
1528
- createDebug.skips = [];
1529
-
1530
- /**
1531
- * Map of special "%n" handling functions, for the debug "format" argument.
1532
- *
1533
- * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
1534
- */
1535
- createDebug.formatters = {};
1536
-
1537
- /**
1538
- * Selects a color for a debug namespace
1539
- * @param {String} namespace The namespace string for the for the debug instance to be colored
1540
- * @return {Number|String} An ANSI color code for the given namespace
1541
- * @api private
1542
- */
1543
- function selectColor(namespace) {
1544
- let hash = 0;
1545
-
1546
- for (let i = 0; i < namespace.length; i++) {
1547
- hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
1548
- hash |= 0; // Convert to 32bit integer
1549
- }
1550
-
1551
- return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
1552
- }
1553
- createDebug.selectColor = selectColor;
1554
-
1555
- /**
1556
- * Create a debugger with the given `namespace`.
1557
- *
1558
- * @param {String} namespace
1559
- * @return {Function}
1560
- * @api public
1561
- */
1562
- function createDebug(namespace) {
1563
- let prevTime;
1564
- let enableOverride = null;
1565
-
1566
- function debug(...args) {
1567
- // Disabled?
1568
- if (!debug.enabled) {
1569
- return;
1570
- }
1571
-
1572
- const self = debug;
1573
-
1574
- // Set `diff` timestamp
1575
- const curr = Number(new Date());
1576
- const ms = curr - (prevTime || curr);
1577
- self.diff = ms;
1578
- self.prev = prevTime;
1579
- self.curr = curr;
1580
- prevTime = curr;
1581
-
1582
- args[0] = createDebug.coerce(args[0]);
1583
-
1584
- if (typeof args[0] !== 'string') {
1585
- // Anything else let's inspect with %O
1586
- args.unshift('%O');
1587
- }
1588
-
1589
- // Apply any `formatters` transformations
1590
- let index = 0;
1591
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
1592
- // If we encounter an escaped % then don't increase the array index
1593
- if (match === '%%') {
1594
- return '%';
1595
- }
1596
- index++;
1597
- const formatter = createDebug.formatters[format];
1598
- if (typeof formatter === 'function') {
1599
- const val = args[index];
1600
- match = formatter.call(self, val);
1601
-
1602
- // Now we need to remove `args[index]` since it's inlined in the `format`
1603
- args.splice(index, 1);
1604
- index--;
1605
- }
1606
- return match;
1607
- });
1608
-
1609
- // Apply env-specific formatting (colors, etc.)
1610
- createDebug.formatArgs.call(self, args);
1611
-
1612
- const logFn = self.log || createDebug.log;
1613
- logFn.apply(self, args);
1614
- }
1615
-
1616
- debug.namespace = namespace;
1617
- debug.useColors = createDebug.useColors();
1618
- debug.color = createDebug.selectColor(namespace);
1619
- debug.extend = extend;
1620
- debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.
1621
-
1622
- Object.defineProperty(debug, 'enabled', {
1623
- enumerable: true,
1624
- configurable: false,
1625
- get: () => enableOverride === null ? createDebug.enabled(namespace) : enableOverride,
1626
- set: v => {
1627
- enableOverride = v;
1628
- }
1629
- });
1630
-
1631
- // Env-specific initialization logic for debug instances
1632
- if (typeof createDebug.init === 'function') {
1633
- createDebug.init(debug);
1634
- }
1635
-
1636
- return debug;
1637
- }
1638
-
1639
- function extend(namespace, delimiter) {
1640
- const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
1641
- newDebug.log = this.log;
1642
- return newDebug;
1643
- }
1644
-
1645
- /**
1646
- * Enables a debug mode by namespaces. This can include modes
1647
- * separated by a colon and wildcards.
1648
- *
1649
- * @param {String} namespaces
1650
- * @api public
1651
- */
1652
- function enable(namespaces) {
1653
- createDebug.save(namespaces);
1654
-
1655
- createDebug.names = [];
1656
- createDebug.skips = [];
1657
-
1658
- let i;
1659
- const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
1660
- const len = split.length;
1661
-
1662
- for (i = 0; i < len; i++) {
1663
- if (!split[i]) {
1664
- // ignore empty strings
1665
- continue;
1666
- }
1667
-
1668
- namespaces = split[i].replace(/\*/g, '.*?');
1669
-
1670
- if (namespaces[0] === '-') {
1671
- createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
1672
- } else {
1673
- createDebug.names.push(new RegExp('^' + namespaces + '$'));
1674
- }
1675
- }
1676
- }
1677
-
1678
- /**
1679
- * Disable debug output.
1680
- *
1681
- * @return {String} namespaces
1682
- * @api public
1683
- */
1684
- function disable() {
1685
- const namespaces = [
1686
- ...createDebug.names.map(toNamespace),
1687
- ...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)
1688
- ].join(',');
1689
- createDebug.enable('');
1690
- return namespaces;
1691
- }
1692
-
1693
- /**
1694
- * Returns true if the given mode name is enabled, false otherwise.
1695
- *
1696
- * @param {String} name
1697
- * @return {Boolean}
1698
- * @api public
1699
- */
1700
- function enabled(name) {
1701
- if (name[name.length - 1] === '*') {
1702
- return true;
1703
- }
1704
-
1705
- let i;
1706
- let len;
1707
-
1708
- for (i = 0, len = createDebug.skips.length; i < len; i++) {
1709
- if (createDebug.skips[i].test(name)) {
1710
- return false;
1711
- }
1712
- }
1713
-
1714
- for (i = 0, len = createDebug.names.length; i < len; i++) {
1715
- if (createDebug.names[i].test(name)) {
1716
- return true;
1717
- }
1718
- }
1719
-
1720
- return false;
1721
- }
1722
-
1723
- /**
1724
- * Convert regexp to namespace
1725
- *
1726
- * @param {RegExp} regxep
1727
- * @return {String} namespace
1728
- * @api private
1729
- */
1730
- function toNamespace(regexp) {
1731
- return regexp.toString()
1732
- .substring(2, regexp.toString().length - 2)
1733
- .replace(/\.\*\?$/, '*');
1734
- }
1735
-
1736
- /**
1737
- * Coerce `val`.
1738
- *
1739
- * @param {Mixed} val
1740
- * @return {Mixed}
1741
- * @api private
1742
- */
1743
- function coerce(val) {
1744
- if (val instanceof Error) {
1745
- return val.stack || val.message;
1746
- }
1747
- return val;
1748
- }
1749
-
1750
- /**
1751
- * XXX DO NOT USE. This is a temporary stub function.
1752
- * XXX It WILL be removed in the next major release.
1753
- */
1754
- function destroy() {
1755
- console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
1756
- }
1757
-
1758
- createDebug.enable(createDebug.load());
1759
-
1760
- return createDebug;
1761
- }
1762
-
1763
- module.exports = setup;
1764
-
1765
-
1766
- /***/ }),
1767
-
1768
- /***/ 19785:
1769
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1770
-
1771
- /**
1772
- * Detect Electron renderer / nwjs process, which is node, but we should
1773
- * treat as a browser.
1774
- */
1775
-
1776
- if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
1777
- module.exports = __webpack_require__(18752);
1778
- } else {
1779
- module.exports = __webpack_require__(2488);
1780
- }
1781
-
1782
-
1783
- /***/ }),
1784
-
1785
- /***/ 2488:
1786
- /***/ ((module, exports, __webpack_require__) => {
1787
-
1788
- /**
1789
- * Module dependencies.
1790
- */
1791
-
1792
- const tty = __webpack_require__(33867);
1793
- const util = __webpack_require__(31669);
1794
-
1795
- /**
1796
- * This is the Node.js implementation of `debug()`.
1797
- */
1798
-
1799
- exports.init = init;
1800
- exports.log = log;
1801
- exports.formatArgs = formatArgs;
1802
- exports.save = save;
1803
- exports.load = load;
1804
- exports.useColors = useColors;
1805
- exports.destroy = util.deprecate(
1806
- () => {},
1807
- 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'
1808
- );
1809
-
1810
- /**
1811
- * Colors.
1812
- */
1813
-
1814
- exports.colors = [6, 2, 3, 4, 5, 1];
1815
-
1816
- try {
1817
- // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
1818
- // eslint-disable-next-line import/no-extraneous-dependencies
1819
- const supportsColor = __webpack_require__(92130);
1820
-
1821
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
1822
- exports.colors = [
1823
- 20,
1824
- 21,
1825
- 26,
1826
- 27,
1827
- 32,
1828
- 33,
1829
- 38,
1830
- 39,
1831
- 40,
1832
- 41,
1833
- 42,
1834
- 43,
1835
- 44,
1836
- 45,
1837
- 56,
1838
- 57,
1839
- 62,
1840
- 63,
1841
- 68,
1842
- 69,
1843
- 74,
1844
- 75,
1845
- 76,
1846
- 77,
1847
- 78,
1848
- 79,
1849
- 80,
1850
- 81,
1851
- 92,
1852
- 93,
1853
- 98,
1854
- 99,
1855
- 112,
1856
- 113,
1857
- 128,
1858
- 129,
1859
- 134,
1860
- 135,
1861
- 148,
1862
- 149,
1863
- 160,
1864
- 161,
1865
- 162,
1866
- 163,
1867
- 164,
1868
- 165,
1869
- 166,
1870
- 167,
1871
- 168,
1872
- 169,
1873
- 170,
1874
- 171,
1875
- 172,
1876
- 173,
1877
- 178,
1878
- 179,
1879
- 184,
1880
- 185,
1881
- 196,
1882
- 197,
1883
- 198,
1884
- 199,
1885
- 200,
1886
- 201,
1887
- 202,
1888
- 203,
1889
- 204,
1890
- 205,
1891
- 206,
1892
- 207,
1893
- 208,
1894
- 209,
1895
- 214,
1896
- 215,
1897
- 220,
1898
- 221
1899
- ];
1900
- }
1901
- } catch (error) {
1902
- // Swallow - we only care if `supports-color` is available; it doesn't have to be.
1903
- }
1904
-
1905
- /**
1906
- * Build up the default `inspectOpts` object from the environment variables.
1907
- *
1908
- * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
1909
- */
1910
-
1911
- exports.inspectOpts = Object.keys(process.env).filter(key => {
1912
- return /^debug_/i.test(key);
1913
- }).reduce((obj, key) => {
1914
- // Camel-case
1915
- const prop = key
1916
- .substring(6)
1917
- .toLowerCase()
1918
- .replace(/_([a-z])/g, (_, k) => {
1919
- return k.toUpperCase();
1920
- });
1921
-
1922
- // Coerce string value into JS value
1923
- let val = process.env[key];
1924
- if (/^(yes|on|true|enabled)$/i.test(val)) {
1925
- val = true;
1926
- } else if (/^(no|off|false|disabled)$/i.test(val)) {
1927
- val = false;
1928
- } else if (val === 'null') {
1929
- val = null;
1930
- } else {
1931
- val = Number(val);
1932
- }
1933
-
1934
- obj[prop] = val;
1935
- return obj;
1936
- }, {});
1937
-
1938
- /**
1939
- * Is stdout a TTY? Colored output is enabled when `true`.
1940
- */
1941
-
1942
- function useColors() {
1943
- return 'colors' in exports.inspectOpts ?
1944
- Boolean(exports.inspectOpts.colors) :
1945
- tty.isatty(process.stderr.fd);
1946
- }
1947
-
1948
- /**
1949
- * Adds ANSI color escape codes if enabled.
1950
- *
1951
- * @api public
1952
- */
1953
-
1954
- function formatArgs(args) {
1955
- const {namespace: name, useColors} = this;
1956
-
1957
- if (useColors) {
1958
- const c = this.color;
1959
- const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c);
1960
- const prefix = ` ${colorCode};1m${name} \u001B[0m`;
1961
-
1962
- args[0] = prefix + args[0].split('\n').join('\n' + prefix);
1963
- args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m');
1964
- } else {
1965
- args[0] = getDate() + name + ' ' + args[0];
1966
- }
1967
- }
1968
-
1969
- function getDate() {
1970
- if (exports.inspectOpts.hideDate) {
1971
- return '';
1972
- }
1973
- return new Date().toISOString() + ' ';
1974
- }
1975
-
1976
- /**
1977
- * Invokes `util.format()` with the specified arguments and writes to stderr.
1978
- */
1979
-
1980
- function log(...args) {
1981
- return process.stderr.write(util.format(...args) + '\n');
1982
- }
1983
-
1984
- /**
1985
- * Save `namespaces`.
1986
- *
1987
- * @param {String} namespaces
1988
- * @api private
1989
- */
1990
- function save(namespaces) {
1991
- if (namespaces) {
1992
- process.env.DEBUG = namespaces;
1993
- } else {
1994
- // If you set a process.env field to null or undefined, it gets cast to the
1995
- // string 'null' or 'undefined'. Just delete instead.
1996
- delete process.env.DEBUG;
1997
- }
1998
- }
1999
-
2000
- /**
2001
- * Load `namespaces`.
2002
- *
2003
- * @return {String} returns the previously persisted debug modes
2004
- * @api private
2005
- */
2006
-
2007
- function load() {
2008
- return process.env.DEBUG;
2009
- }
2010
-
2011
- /**
2012
- * Init logic for `debug` instances.
2013
- *
2014
- * Create a new `inspectOpts` object in case `useColors` is set
2015
- * differently for a particular `debug` instance.
2016
- */
2017
-
2018
- function init(debug) {
2019
- debug.inspectOpts = {};
2020
-
2021
- const keys = Object.keys(exports.inspectOpts);
2022
- for (let i = 0; i < keys.length; i++) {
2023
- debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
2024
- }
2025
- }
2026
-
2027
- module.exports = __webpack_require__(71948)(exports);
2028
-
2029
- const {formatters} = module.exports;
2030
-
2031
- /**
2032
- * Map %o to `util.inspect()`, all on a single line.
2033
- */
2034
-
2035
- formatters.o = function (v) {
2036
- this.inspectOpts.colors = this.useColors;
2037
- return util.inspect(v, this.inspectOpts)
2038
- .split('\n')
2039
- .map(str => str.trim())
2040
- .join(' ');
2041
- };
2042
-
2043
- /**
2044
- * Map %O to `util.inspect()`, allowing multiple lines if needed.
2045
- */
2046
-
2047
- formatters.O = function (v) {
2048
- this.inspectOpts.colors = this.useColors;
2049
- return util.inspect(v, this.inspectOpts);
2050
- };
2051
-
2052
-
2053
1225
  /***/ }),
2054
1226
 
2055
1227
  /***/ 14277: