Skip to content

Commit adc29ad

Browse files
authored
Merge pull request #136 from zaproxy/dependabot/npm_and_yarn/babel/helpers-7.27.6
Bump @babel/helpers from 7.25.6 to 7.27.6
2 parents a80c741 + 83af773 commit adc29ad

File tree

3 files changed

+55
-279
lines changed

3 files changed

+55
-279
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

66
## [Unreleased]
77
### Changed
8-
- Update dependency.
8+
- Update dependencies.
99

1010
## [0.14.0] - 2024-11-20
1111
### Changed

dist/index.js

Lines changed: 9 additions & 156 deletions
Original file line numberDiff line numberDiff line change
@@ -56695,7 +56695,7 @@ exports.colors = [6, 2, 3, 4, 5, 1];
5669556695
try {
5669656696
// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
5669756697
// eslint-disable-next-line import/no-extraneous-dependencies
56698-
const supportsColor = __nccwpck_require__(59318);
56698+
const supportsColor = __nccwpck_require__(30132);
5669956699

5670056700
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
5670156701
exports.colors = [
@@ -61538,22 +61538,6 @@ function patch (fs) {
6153861538
}
6153961539

6154061540

61541-
/***/ }),
61542-
61543-
/***/ 31621:
61544-
/***/ ((module) => {
61545-
61546-
"use strict";
61547-
61548-
module.exports = (flag, argv) => {
61549-
argv = argv || process.argv;
61550-
const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
61551-
const pos = argv.indexOf(prefix + flag);
61552-
const terminatorPos = argv.indexOf('--');
61553-
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
61554-
};
61555-
61556-
6155761541
/***/ }),
6155861542

6155961543
/***/ 23764:
@@ -97079,145 +97063,6 @@ function trimZeros(numStr){
9707997063
module.exports = toNumber
9708097064

9708197065

97082-
/***/ }),
97083-
97084-
/***/ 59318:
97085-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
97086-
97087-
"use strict";
97088-
97089-
const os = __nccwpck_require__(22037);
97090-
const hasFlag = __nccwpck_require__(31621);
97091-
97092-
const env = process.env;
97093-
97094-
let forceColor;
97095-
if (hasFlag('no-color') ||
97096-
hasFlag('no-colors') ||
97097-
hasFlag('color=false')) {
97098-
forceColor = false;
97099-
} else if (hasFlag('color') ||
97100-
hasFlag('colors') ||
97101-
hasFlag('color=true') ||
97102-
hasFlag('color=always')) {
97103-
forceColor = true;
97104-
}
97105-
if ('FORCE_COLOR' in env) {
97106-
forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
97107-
}
97108-
97109-
function translateLevel(level) {
97110-
if (level === 0) {
97111-
return false;
97112-
}
97113-
97114-
return {
97115-
level,
97116-
hasBasic: true,
97117-
has256: level >= 2,
97118-
has16m: level >= 3
97119-
};
97120-
}
97121-
97122-
function supportsColor(stream) {
97123-
if (forceColor === false) {
97124-
return 0;
97125-
}
97126-
97127-
if (hasFlag('color=16m') ||
97128-
hasFlag('color=full') ||
97129-
hasFlag('color=truecolor')) {
97130-
return 3;
97131-
}
97132-
97133-
if (hasFlag('color=256')) {
97134-
return 2;
97135-
}
97136-
97137-
if (stream && !stream.isTTY && forceColor !== true) {
97138-
return 0;
97139-
}
97140-
97141-
const min = forceColor ? 1 : 0;
97142-
97143-
if (process.platform === 'win32') {
97144-
// Node.js 7.5.0 is the first version of Node.js to include a patch to
97145-
// libuv that enables 256 color output on Windows. Anything earlier and it
97146-
// won't work. However, here we target Node.js 8 at minimum as it is an LTS
97147-
// release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows
97148-
// release that supports 256 colors. Windows 10 build 14931 is the first release
97149-
// that supports 16m/TrueColor.
97150-
const osRelease = os.release().split('.');
97151-
if (
97152-
Number(process.versions.node.split('.')[0]) >= 8 &&
97153-
Number(osRelease[0]) >= 10 &&
97154-
Number(osRelease[2]) >= 10586
97155-
) {
97156-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
97157-
}
97158-
97159-
return 1;
97160-
}
97161-
97162-
if ('CI' in env) {
97163-
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
97164-
return 1;
97165-
}
97166-
97167-
return min;
97168-
}
97169-
97170-
if ('TEAMCITY_VERSION' in env) {
97171-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
97172-
}
97173-
97174-
if (env.COLORTERM === 'truecolor') {
97175-
return 3;
97176-
}
97177-
97178-
if ('TERM_PROGRAM' in env) {
97179-
const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
97180-
97181-
switch (env.TERM_PROGRAM) {
97182-
case 'iTerm.app':
97183-
return version >= 3 ? 3 : 2;
97184-
case 'Apple_Terminal':
97185-
return 2;
97186-
// No default
97187-
}
97188-
}
97189-
97190-
if (/-256(color)?$/i.test(env.TERM)) {
97191-
return 2;
97192-
}
97193-
97194-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
97195-
return 1;
97196-
}
97197-
97198-
if ('COLORTERM' in env) {
97199-
return 1;
97200-
}
97201-
97202-
if (env.TERM === 'dumb') {
97203-
return min;
97204-
}
97205-
97206-
return min;
97207-
}
97208-
97209-
function getSupportLevel(stream) {
97210-
const level = supportsColor(stream);
97211-
return translateLevel(level);
97212-
}
97213-
97214-
module.exports = {
97215-
supportsColor: getSupportLevel,
97216-
stdout: getSupportLevel(process.stdout),
97217-
stderr: getSupportLevel(process.stderr)
97218-
};
97219-
97220-
9722197066
/***/ }),
9722297067

9722397068
/***/ 68926:
@@ -126982,6 +126827,14 @@ ZipStream.prototype.finalize = function() {
126982126827
module.exports = eval("require")("encoding");
126983126828

126984126829

126830+
/***/ }),
126831+
126832+
/***/ 30132:
126833+
/***/ ((module) => {
126834+
126835+
module.exports = eval("require")("supports-color");
126836+
126837+
126985126838
/***/ }),
126986126839

126987126840
/***/ 39491:

0 commit comments

Comments
 (0)