@socketsecurity/cli-with-sentry 1.1.4 → 1.1.5
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/CHANGELOG.md +20 -14
- package/dist/cli.js +517 -351
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +34 -13
- package/dist/constants.js.map +1 -1
- package/dist/flags.js +15 -9
- package/dist/flags.js.map +1 -1
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/analytics/cmd-analytics.d.mts.map +1 -1
- package/dist/types/commands/analytics/handle-analytics.d.mts +6 -5
- package/dist/types/commands/analytics/handle-analytics.d.mts.map +1 -1
- package/dist/types/commands/analytics/output-analytics.d.mts +6 -5
- package/dist/types/commands/analytics/output-analytics.d.mts.map +1 -1
- package/dist/types/commands/audit-log/cmd-audit-log.d.mts.map +1 -1
- package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/coana-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/handle-fix.d.mts +1 -1
- package/dist/types/commands/fix/handle-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/pull-request.d.mts +2 -2
- package/dist/types/commands/fix/pull-request.d.mts.map +1 -1
- package/dist/types/commands/fix/types.d.mts +1 -4
- package/dist/types/commands/fix/types.d.mts.map +1 -1
- package/dist/types/commands/login/cmd-login.d.mts.map +1 -1
- package/dist/types/commands/organization/fetch-organization-list.d.mts +1 -1
- package/dist/types/commands/organization/fetch-organization-list.d.mts.map +1 -1
- package/dist/types/commands/patch/cmd-patch.d.mts.map +1 -1
- package/dist/types/commands/patch/handle-patch.d.mts +3 -9
- package/dist/types/commands/patch/handle-patch.d.mts.map +1 -1
- package/dist/types/commands/patch/output-patch-result.d.mts.map +1 -1
- package/dist/types/commands/repository/cmd-repository-create.d.mts.map +1 -1
- package/dist/types/commands/repository/cmd-repository-del.d.mts.map +1 -1
- package/dist/types/commands/repository/cmd-repository-update.d.mts.map +1 -1
- package/dist/types/commands/repository/cmd-repository-view.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-create.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-github.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-list.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-reach.d.mts.map +1 -1
- package/dist/types/commands/scan/generate-report.d.mts.map +1 -1
- package/dist/types/commands/scan/output-scan-report.d.mts.map +1 -1
- package/dist/types/commands/scan/perform-reachability-analysis.d.mts.map +1 -1
- package/dist/types/constants.d.mts +21 -7
- package/dist/types/constants.d.mts.map +1 -1
- package/dist/types/flags.d.mts.map +1 -1
- package/dist/types/utils/api.d.mts +8 -7
- package/dist/types/utils/api.d.mts.map +1 -1
- package/dist/types/utils/config.d.mts.map +1 -1
- package/dist/types/utils/git.d.mts +1 -0
- package/dist/types/utils/git.d.mts.map +1 -1
- package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
- package/dist/types/utils/purl.d.mts +34 -19
- package/dist/types/utils/purl.d.mts.map +1 -1
- package/dist/types/utils/socket-package-alert.d.mts.map +1 -1
- package/dist/types/utils/spec.d.mts +1 -1
- package/dist/types/utils/spec.d.mts.map +1 -1
- package/dist/utils.js +94 -66
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +378 -378
- package/external/@socketsecurity/registry/lib/constants/skip-tests-by-ecosystem.js +0 -1
- package/package.json +9 -8
package/dist/vendor.js
CHANGED
|
@@ -18,6 +18,7 @@ var require$$1$8 = require('node:http');
|
|
|
18
18
|
var require$$0$e = os$3;
|
|
19
19
|
var fs$6 = require('node:fs/promises');
|
|
20
20
|
var signalExit = require('../external/@socketsecurity/registry/external/signal-exit');
|
|
21
|
+
var require$$1$9 = require('node:tty');
|
|
21
22
|
var require$$0$f = process$2;
|
|
22
23
|
var require$$0$g = require('node:buffer');
|
|
23
24
|
var require$$2$3 = require('node:https');
|
|
@@ -33,8 +34,7 @@ var require$$10 = require('../external/@socketsecurity/registry/lib/json');
|
|
|
33
34
|
var require$$11 = require('../external/@socketsecurity/registry/lib/objects');
|
|
34
35
|
var require$$12 = require('../external/@socketsecurity/registry/lib/promises');
|
|
35
36
|
var require$$13 = require('../external/@socketsecurity/registry/lib/url');
|
|
36
|
-
var require$$0$i = require
|
|
37
|
-
var require$$1$9 = require$$0$i;
|
|
37
|
+
var require$$0$i = require$$1$9;
|
|
38
38
|
var node_buffer = require$$0$g;
|
|
39
39
|
var childProcess = require('node:child_process');
|
|
40
40
|
var require$$0$j = fs$6;
|
|
@@ -11535,6 +11535,375 @@ const updater$1 = async options => {
|
|
|
11535
11535
|
return true;
|
|
11536
11536
|
};
|
|
11537
11537
|
|
|
11538
|
+
var terminalLink = {exports: {}};
|
|
11539
|
+
|
|
11540
|
+
var ansiEscapes = {exports: {}};
|
|
11541
|
+
|
|
11542
|
+
var hasRequiredAnsiEscapes;
|
|
11543
|
+
function requireAnsiEscapes() {
|
|
11544
|
+
if (hasRequiredAnsiEscapes) return ansiEscapes.exports;
|
|
11545
|
+
hasRequiredAnsiEscapes = 1;
|
|
11546
|
+
(function (module) {
|
|
11547
|
+
|
|
11548
|
+
const ansiEscapes = module.exports;
|
|
11549
|
+
// TODO: remove this in the next major version
|
|
11550
|
+
module.exports.default = ansiEscapes;
|
|
11551
|
+
const ESC = '\u001B[';
|
|
11552
|
+
const OSC = '\u001B]';
|
|
11553
|
+
const BEL = '\u0007';
|
|
11554
|
+
const SEP = ';';
|
|
11555
|
+
const isTerminalApp = process.env.TERM_PROGRAM === 'Apple_Terminal';
|
|
11556
|
+
ansiEscapes.cursorTo = (x, y) => {
|
|
11557
|
+
if (typeof x !== 'number') {
|
|
11558
|
+
throw new TypeError('The `x` argument is required');
|
|
11559
|
+
}
|
|
11560
|
+
if (typeof y !== 'number') {
|
|
11561
|
+
return ESC + (x + 1) + 'G';
|
|
11562
|
+
}
|
|
11563
|
+
return ESC + (y + 1) + ';' + (x + 1) + 'H';
|
|
11564
|
+
};
|
|
11565
|
+
ansiEscapes.cursorMove = (x, y) => {
|
|
11566
|
+
if (typeof x !== 'number') {
|
|
11567
|
+
throw new TypeError('The `x` argument is required');
|
|
11568
|
+
}
|
|
11569
|
+
let ret = '';
|
|
11570
|
+
if (x < 0) {
|
|
11571
|
+
ret += ESC + -x + 'D';
|
|
11572
|
+
} else if (x > 0) {
|
|
11573
|
+
ret += ESC + x + 'C';
|
|
11574
|
+
}
|
|
11575
|
+
if (y < 0) {
|
|
11576
|
+
ret += ESC + -y + 'A';
|
|
11577
|
+
} else if (y > 0) {
|
|
11578
|
+
ret += ESC + y + 'B';
|
|
11579
|
+
}
|
|
11580
|
+
return ret;
|
|
11581
|
+
};
|
|
11582
|
+
ansiEscapes.cursorUp = (count = 1) => ESC + count + 'A';
|
|
11583
|
+
ansiEscapes.cursorDown = (count = 1) => ESC + count + 'B';
|
|
11584
|
+
ansiEscapes.cursorForward = (count = 1) => ESC + count + 'C';
|
|
11585
|
+
ansiEscapes.cursorBackward = (count = 1) => ESC + count + 'D';
|
|
11586
|
+
ansiEscapes.cursorLeft = ESC + 'G';
|
|
11587
|
+
ansiEscapes.cursorSavePosition = isTerminalApp ? '\u001B7' : ESC + 's';
|
|
11588
|
+
ansiEscapes.cursorRestorePosition = isTerminalApp ? '\u001B8' : ESC + 'u';
|
|
11589
|
+
ansiEscapes.cursorGetPosition = ESC + '6n';
|
|
11590
|
+
ansiEscapes.cursorNextLine = ESC + 'E';
|
|
11591
|
+
ansiEscapes.cursorPrevLine = ESC + 'F';
|
|
11592
|
+
ansiEscapes.cursorHide = ESC + '?25l';
|
|
11593
|
+
ansiEscapes.cursorShow = ESC + '?25h';
|
|
11594
|
+
ansiEscapes.eraseLines = count => {
|
|
11595
|
+
let clear = '';
|
|
11596
|
+
for (let i = 0; i < count; i++) {
|
|
11597
|
+
clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : '');
|
|
11598
|
+
}
|
|
11599
|
+
if (count) {
|
|
11600
|
+
clear += ansiEscapes.cursorLeft;
|
|
11601
|
+
}
|
|
11602
|
+
return clear;
|
|
11603
|
+
};
|
|
11604
|
+
ansiEscapes.eraseEndLine = ESC + 'K';
|
|
11605
|
+
ansiEscapes.eraseStartLine = ESC + '1K';
|
|
11606
|
+
ansiEscapes.eraseLine = ESC + '2K';
|
|
11607
|
+
ansiEscapes.eraseDown = ESC + 'J';
|
|
11608
|
+
ansiEscapes.eraseUp = ESC + '1J';
|
|
11609
|
+
ansiEscapes.eraseScreen = ESC + '2J';
|
|
11610
|
+
ansiEscapes.scrollUp = ESC + 'S';
|
|
11611
|
+
ansiEscapes.scrollDown = ESC + 'T';
|
|
11612
|
+
ansiEscapes.clearScreen = '\u001Bc';
|
|
11613
|
+
ansiEscapes.clearTerminal = process.platform === 'win32' ? `${ansiEscapes.eraseScreen}${ESC}0f` :
|
|
11614
|
+
// 1. Erases the screen (Only done in case `2` is not supported)
|
|
11615
|
+
// 2. Erases the whole screen including scrollback buffer
|
|
11616
|
+
// 3. Moves cursor to the top-left position
|
|
11617
|
+
// More info: https://www.real-world-systems.com/docs/ANSIcode.html
|
|
11618
|
+
`${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`;
|
|
11619
|
+
ansiEscapes.beep = BEL;
|
|
11620
|
+
ansiEscapes.link = (text, url) => {
|
|
11621
|
+
return [OSC, '8', SEP, SEP, url, BEL, text, OSC, '8', SEP, SEP, BEL].join('');
|
|
11622
|
+
};
|
|
11623
|
+
ansiEscapes.image = (buffer, options = {}) => {
|
|
11624
|
+
let ret = `${OSC}1337;File=inline=1`;
|
|
11625
|
+
if (options.width) {
|
|
11626
|
+
ret += `;width=${options.width}`;
|
|
11627
|
+
}
|
|
11628
|
+
if (options.height) {
|
|
11629
|
+
ret += `;height=${options.height}`;
|
|
11630
|
+
}
|
|
11631
|
+
if (options.preserveAspectRatio === false) {
|
|
11632
|
+
ret += ';preserveAspectRatio=0';
|
|
11633
|
+
}
|
|
11634
|
+
return ret + ':' + buffer.toString('base64') + BEL;
|
|
11635
|
+
};
|
|
11636
|
+
ansiEscapes.iTerm = {
|
|
11637
|
+
setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
|
|
11638
|
+
annotation: (message, options = {}) => {
|
|
11639
|
+
let ret = `${OSC}1337;`;
|
|
11640
|
+
const hasX = typeof options.x !== 'undefined';
|
|
11641
|
+
const hasY = typeof options.y !== 'undefined';
|
|
11642
|
+
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== 'undefined')) {
|
|
11643
|
+
throw new Error('`x`, `y` and `length` must be defined when `x` or `y` is defined');
|
|
11644
|
+
}
|
|
11645
|
+
message = message.replace(/\|/g, '');
|
|
11646
|
+
ret += options.isHidden ? 'AddHiddenAnnotation=' : 'AddAnnotation=';
|
|
11647
|
+
if (options.length > 0) {
|
|
11648
|
+
ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join('|');
|
|
11649
|
+
} else {
|
|
11650
|
+
ret += message;
|
|
11651
|
+
}
|
|
11652
|
+
return ret + BEL;
|
|
11653
|
+
}
|
|
11654
|
+
};
|
|
11655
|
+
})(ansiEscapes);
|
|
11656
|
+
return ansiEscapes.exports;
|
|
11657
|
+
}
|
|
11658
|
+
|
|
11659
|
+
var hasFlag$1;
|
|
11660
|
+
var hasRequiredHasFlag$1;
|
|
11661
|
+
function requireHasFlag$1() {
|
|
11662
|
+
if (hasRequiredHasFlag$1) return hasFlag$1;
|
|
11663
|
+
hasRequiredHasFlag$1 = 1;
|
|
11664
|
+
hasFlag$1 = (flag, argv = process.argv) => {
|
|
11665
|
+
const prefix = flag.startsWith('-') ? '' : flag.length === 1 ? '-' : '--';
|
|
11666
|
+
const position = argv.indexOf(prefix + flag);
|
|
11667
|
+
const terminatorPosition = argv.indexOf('--');
|
|
11668
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
11669
|
+
};
|
|
11670
|
+
return hasFlag$1;
|
|
11671
|
+
}
|
|
11672
|
+
|
|
11673
|
+
var supportsColor_1$1;
|
|
11674
|
+
var hasRequiredSupportsColor$2;
|
|
11675
|
+
function requireSupportsColor$2() {
|
|
11676
|
+
if (hasRequiredSupportsColor$2) return supportsColor_1$1;
|
|
11677
|
+
hasRequiredSupportsColor$2 = 1;
|
|
11678
|
+
const os = require$$0$e;
|
|
11679
|
+
const tty = require$$1$9;
|
|
11680
|
+
const hasFlag = requireHasFlag$1();
|
|
11681
|
+
const {
|
|
11682
|
+
env
|
|
11683
|
+
} = process;
|
|
11684
|
+
let forceColor;
|
|
11685
|
+
if (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false') || hasFlag('color=never')) {
|
|
11686
|
+
forceColor = 0;
|
|
11687
|
+
} else if (hasFlag('color') || hasFlag('colors') || hasFlag('color=true') || hasFlag('color=always')) {
|
|
11688
|
+
forceColor = 1;
|
|
11689
|
+
}
|
|
11690
|
+
if ('FORCE_COLOR' in env) {
|
|
11691
|
+
if (env.FORCE_COLOR === 'true') {
|
|
11692
|
+
forceColor = 1;
|
|
11693
|
+
} else if (env.FORCE_COLOR === 'false') {
|
|
11694
|
+
forceColor = 0;
|
|
11695
|
+
} else {
|
|
11696
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
11697
|
+
}
|
|
11698
|
+
}
|
|
11699
|
+
function translateLevel(level) {
|
|
11700
|
+
if (level === 0) {
|
|
11701
|
+
return false;
|
|
11702
|
+
}
|
|
11703
|
+
return {
|
|
11704
|
+
level,
|
|
11705
|
+
hasBasic: true,
|
|
11706
|
+
has256: level >= 2,
|
|
11707
|
+
has16m: level >= 3
|
|
11708
|
+
};
|
|
11709
|
+
}
|
|
11710
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
11711
|
+
if (forceColor === 0) {
|
|
11712
|
+
return 0;
|
|
11713
|
+
}
|
|
11714
|
+
if (hasFlag('color=16m') || hasFlag('color=full') || hasFlag('color=truecolor')) {
|
|
11715
|
+
return 3;
|
|
11716
|
+
}
|
|
11717
|
+
if (hasFlag('color=256')) {
|
|
11718
|
+
return 2;
|
|
11719
|
+
}
|
|
11720
|
+
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
11721
|
+
return 0;
|
|
11722
|
+
}
|
|
11723
|
+
const min = forceColor || 0;
|
|
11724
|
+
if (env.TERM === 'dumb') {
|
|
11725
|
+
return min;
|
|
11726
|
+
}
|
|
11727
|
+
if (process.platform === 'win32') {
|
|
11728
|
+
// Windows 10 build 10586 is the first Windows release that supports 256 colors.
|
|
11729
|
+
// Windows 10 build 14931 is the first release that supports 16m/TrueColor.
|
|
11730
|
+
const osRelease = os.release().split('.');
|
|
11731
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
11732
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
11733
|
+
}
|
|
11734
|
+
return 1;
|
|
11735
|
+
}
|
|
11736
|
+
if ('CI' in env) {
|
|
11737
|
+
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
|
|
11738
|
+
return 1;
|
|
11739
|
+
}
|
|
11740
|
+
return min;
|
|
11741
|
+
}
|
|
11742
|
+
if ('TEAMCITY_VERSION' in env) {
|
|
11743
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
11744
|
+
}
|
|
11745
|
+
if (env.COLORTERM === 'truecolor') {
|
|
11746
|
+
return 3;
|
|
11747
|
+
}
|
|
11748
|
+
if ('TERM_PROGRAM' in env) {
|
|
11749
|
+
const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
|
11750
|
+
switch (env.TERM_PROGRAM) {
|
|
11751
|
+
case 'iTerm.app':
|
|
11752
|
+
return version >= 3 ? 3 : 2;
|
|
11753
|
+
case 'Apple_Terminal':
|
|
11754
|
+
return 2;
|
|
11755
|
+
// No default
|
|
11756
|
+
}
|
|
11757
|
+
}
|
|
11758
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
11759
|
+
return 2;
|
|
11760
|
+
}
|
|
11761
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
11762
|
+
return 1;
|
|
11763
|
+
}
|
|
11764
|
+
if ('COLORTERM' in env) {
|
|
11765
|
+
return 1;
|
|
11766
|
+
}
|
|
11767
|
+
return min;
|
|
11768
|
+
}
|
|
11769
|
+
function getSupportLevel(stream) {
|
|
11770
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
11771
|
+
return translateLevel(level);
|
|
11772
|
+
}
|
|
11773
|
+
supportsColor_1$1 = {
|
|
11774
|
+
supportsColor: getSupportLevel,
|
|
11775
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
11776
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
11777
|
+
};
|
|
11778
|
+
return supportsColor_1$1;
|
|
11779
|
+
}
|
|
11780
|
+
|
|
11781
|
+
var supportsHyperlinks;
|
|
11782
|
+
var hasRequiredSupportsHyperlinks;
|
|
11783
|
+
function requireSupportsHyperlinks() {
|
|
11784
|
+
if (hasRequiredSupportsHyperlinks) return supportsHyperlinks;
|
|
11785
|
+
hasRequiredSupportsHyperlinks = 1;
|
|
11786
|
+
const supportsColor = requireSupportsColor$2();
|
|
11787
|
+
const hasFlag = requireHasFlag$1();
|
|
11788
|
+
function parseVersion(versionString) {
|
|
11789
|
+
if (/^\d{3,4}$/.test(versionString)) {
|
|
11790
|
+
// Env var doesn't always use dots. example: 4601 => 46.1.0
|
|
11791
|
+
const m = /(\d{1,2})(\d{2})/.exec(versionString);
|
|
11792
|
+
return {
|
|
11793
|
+
major: 0,
|
|
11794
|
+
minor: parseInt(m[1], 10),
|
|
11795
|
+
patch: parseInt(m[2], 10)
|
|
11796
|
+
};
|
|
11797
|
+
}
|
|
11798
|
+
const versions = (versionString || '').split('.').map(n => parseInt(n, 10));
|
|
11799
|
+
return {
|
|
11800
|
+
major: versions[0],
|
|
11801
|
+
minor: versions[1],
|
|
11802
|
+
patch: versions[2]
|
|
11803
|
+
};
|
|
11804
|
+
}
|
|
11805
|
+
function supportsHyperlink(stream) {
|
|
11806
|
+
const {
|
|
11807
|
+
env
|
|
11808
|
+
} = process;
|
|
11809
|
+
if ('FORCE_HYPERLINK' in env) {
|
|
11810
|
+
return !(env.FORCE_HYPERLINK.length > 0 && parseInt(env.FORCE_HYPERLINK, 10) === 0);
|
|
11811
|
+
}
|
|
11812
|
+
if (hasFlag('no-hyperlink') || hasFlag('no-hyperlinks') || hasFlag('hyperlink=false') || hasFlag('hyperlink=never')) {
|
|
11813
|
+
return false;
|
|
11814
|
+
}
|
|
11815
|
+
if (hasFlag('hyperlink=true') || hasFlag('hyperlink=always')) {
|
|
11816
|
+
return true;
|
|
11817
|
+
}
|
|
11818
|
+
|
|
11819
|
+
// Netlify does not run a TTY, it does not need `supportsColor` check
|
|
11820
|
+
if ('NETLIFY' in env) {
|
|
11821
|
+
return true;
|
|
11822
|
+
}
|
|
11823
|
+
|
|
11824
|
+
// If they specify no colors, they probably don't want hyperlinks.
|
|
11825
|
+
if (!supportsColor.supportsColor(stream)) {
|
|
11826
|
+
return false;
|
|
11827
|
+
}
|
|
11828
|
+
if (stream && !stream.isTTY) {
|
|
11829
|
+
return false;
|
|
11830
|
+
}
|
|
11831
|
+
if (process.platform === 'win32') {
|
|
11832
|
+
return false;
|
|
11833
|
+
}
|
|
11834
|
+
if ('CI' in env) {
|
|
11835
|
+
return false;
|
|
11836
|
+
}
|
|
11837
|
+
if ('TEAMCITY_VERSION' in env) {
|
|
11838
|
+
return false;
|
|
11839
|
+
}
|
|
11840
|
+
if ('TERM_PROGRAM' in env) {
|
|
11841
|
+
const version = parseVersion(env.TERM_PROGRAM_VERSION);
|
|
11842
|
+
switch (env.TERM_PROGRAM) {
|
|
11843
|
+
case 'iTerm.app':
|
|
11844
|
+
if (version.major === 3) {
|
|
11845
|
+
return version.minor >= 1;
|
|
11846
|
+
}
|
|
11847
|
+
return version.major > 3;
|
|
11848
|
+
case 'WezTerm':
|
|
11849
|
+
return version.major >= 20200620;
|
|
11850
|
+
case 'vscode':
|
|
11851
|
+
return version.major > 1 || version.major === 1 && version.minor >= 72;
|
|
11852
|
+
// No default
|
|
11853
|
+
}
|
|
11854
|
+
}
|
|
11855
|
+
if ('VTE_VERSION' in env) {
|
|
11856
|
+
// 0.50.0 was supposed to support hyperlinks, but throws a segfault
|
|
11857
|
+
if (env.VTE_VERSION === '0.50.0') {
|
|
11858
|
+
return false;
|
|
11859
|
+
}
|
|
11860
|
+
const version = parseVersion(env.VTE_VERSION);
|
|
11861
|
+
return version.major > 0 || version.minor >= 50;
|
|
11862
|
+
}
|
|
11863
|
+
return false;
|
|
11864
|
+
}
|
|
11865
|
+
supportsHyperlinks = {
|
|
11866
|
+
supportsHyperlink,
|
|
11867
|
+
stdout: supportsHyperlink(process.stdout),
|
|
11868
|
+
stderr: supportsHyperlink(process.stderr)
|
|
11869
|
+
};
|
|
11870
|
+
return supportsHyperlinks;
|
|
11871
|
+
}
|
|
11872
|
+
|
|
11873
|
+
var hasRequiredTerminalLink;
|
|
11874
|
+
function requireTerminalLink() {
|
|
11875
|
+
if (hasRequiredTerminalLink) return terminalLink.exports;
|
|
11876
|
+
hasRequiredTerminalLink = 1;
|
|
11877
|
+
(function (module) {
|
|
11878
|
+
|
|
11879
|
+
const ansiEscapes = requireAnsiEscapes();
|
|
11880
|
+
const supportsHyperlinks = requireSupportsHyperlinks();
|
|
11881
|
+
const terminalLink = (text, url, {
|
|
11882
|
+
target = 'stdout',
|
|
11883
|
+
...options
|
|
11884
|
+
} = {}) => {
|
|
11885
|
+
if (!supportsHyperlinks[target]) {
|
|
11886
|
+
// If the fallback has been explicitly disabled, don't modify the text itself.
|
|
11887
|
+
if (options.fallback === false) {
|
|
11888
|
+
return text;
|
|
11889
|
+
}
|
|
11890
|
+
return typeof options.fallback === 'function' ? options.fallback(text, url) : `${text} (\u200B${url}\u200B)`;
|
|
11891
|
+
}
|
|
11892
|
+
return ansiEscapes.link(text, url);
|
|
11893
|
+
};
|
|
11894
|
+
module.exports = (text, url, options = {}) => terminalLink(text, url, options);
|
|
11895
|
+
module.exports.stderr = (text, url, options = {}) => terminalLink(text, url, {
|
|
11896
|
+
target: 'stderr',
|
|
11897
|
+
...options
|
|
11898
|
+
});
|
|
11899
|
+
module.exports.isSupported = supportsHyperlinks.stdout;
|
|
11900
|
+
module.exports.stderr.isSupported = supportsHyperlinks.stderr;
|
|
11901
|
+
})(terminalLink);
|
|
11902
|
+
return terminalLink.exports;
|
|
11903
|
+
}
|
|
11904
|
+
|
|
11905
|
+
var terminalLinkExports = requireTerminalLink();
|
|
11906
|
+
|
|
11538
11907
|
var ajv = {exports: {}};
|
|
11539
11908
|
|
|
11540
11909
|
var core$2 = {};
|
|
@@ -27444,7 +27813,7 @@ var isInteractiveExports = /*@__PURE__*/ requireIsInteractive();
|
|
|
27444
27813
|
var dist$e = {};
|
|
27445
27814
|
|
|
27446
27815
|
var name$2 = "@socketsecurity/sdk";
|
|
27447
|
-
var version$6 = "1.4.
|
|
27816
|
+
var version$6 = "1.4.88";
|
|
27448
27817
|
var license = "MIT";
|
|
27449
27818
|
var description = "SDK for the Socket API client";
|
|
27450
27819
|
var author = {
|
|
@@ -27529,10 +27898,10 @@ var scripts = {
|
|
|
27529
27898
|
"update:deps": "npx --yes npm-check-updates"
|
|
27530
27899
|
};
|
|
27531
27900
|
var dependencies = {
|
|
27532
|
-
"@socketsecurity/registry": "1.1.
|
|
27901
|
+
"@socketsecurity/registry": "1.1.5"
|
|
27533
27902
|
};
|
|
27534
27903
|
var devDependencies = {
|
|
27535
|
-
"@biomejs/biome": "2.2.
|
|
27904
|
+
"@biomejs/biome": "2.2.4",
|
|
27536
27905
|
"@dotenvx/dotenvx": "1.49.0",
|
|
27537
27906
|
"@eslint/compat": "1.3.2",
|
|
27538
27907
|
"@eslint/js": "9.35.0",
|
|
@@ -27544,11 +27913,11 @@ var devDependencies = {
|
|
|
27544
27913
|
eslint: "9.35.0",
|
|
27545
27914
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
27546
27915
|
"eslint-plugin-import-x": "4.16.1",
|
|
27547
|
-
"eslint-plugin-jsdoc": "55.
|
|
27916
|
+
"eslint-plugin-jsdoc": "55.2.0",
|
|
27548
27917
|
"eslint-plugin-n": "17.21.3",
|
|
27549
27918
|
"eslint-plugin-sort-destructure-keys": "2.0.0",
|
|
27550
27919
|
"eslint-plugin-unicorn": "56.0.1",
|
|
27551
|
-
globals: "16.
|
|
27920
|
+
globals: "16.4.0",
|
|
27552
27921
|
"http2-wrapper": "2.2.1",
|
|
27553
27922
|
husky: "9.1.7",
|
|
27554
27923
|
knip: "5.63.1",
|
|
@@ -27563,7 +27932,7 @@ var devDependencies = {
|
|
|
27563
27932
|
vitest: "3.2.4"
|
|
27564
27933
|
};
|
|
27565
27934
|
var overrides = {
|
|
27566
|
-
vite: "7.1.
|
|
27935
|
+
vite: "7.1.5"
|
|
27567
27936
|
};
|
|
27568
27937
|
var engines = {
|
|
27569
27938
|
node: ">=18"
|
|
@@ -28719,375 +29088,6 @@ function requireYoctocolorsCjs() {
|
|
|
28719
29088
|
|
|
28720
29089
|
var yoctocolorsCjsExports = /*@__PURE__*/ requireYoctocolorsCjs();
|
|
28721
29090
|
|
|
28722
|
-
var terminalLink = {exports: {}};
|
|
28723
|
-
|
|
28724
|
-
var ansiEscapes = {exports: {}};
|
|
28725
|
-
|
|
28726
|
-
var hasRequiredAnsiEscapes;
|
|
28727
|
-
function requireAnsiEscapes() {
|
|
28728
|
-
if (hasRequiredAnsiEscapes) return ansiEscapes.exports;
|
|
28729
|
-
hasRequiredAnsiEscapes = 1;
|
|
28730
|
-
(function (module) {
|
|
28731
|
-
|
|
28732
|
-
const ansiEscapes = module.exports;
|
|
28733
|
-
// TODO: remove this in the next major version
|
|
28734
|
-
module.exports.default = ansiEscapes;
|
|
28735
|
-
const ESC = '\u001B[';
|
|
28736
|
-
const OSC = '\u001B]';
|
|
28737
|
-
const BEL = '\u0007';
|
|
28738
|
-
const SEP = ';';
|
|
28739
|
-
const isTerminalApp = process.env.TERM_PROGRAM === 'Apple_Terminal';
|
|
28740
|
-
ansiEscapes.cursorTo = (x, y) => {
|
|
28741
|
-
if (typeof x !== 'number') {
|
|
28742
|
-
throw new TypeError('The `x` argument is required');
|
|
28743
|
-
}
|
|
28744
|
-
if (typeof y !== 'number') {
|
|
28745
|
-
return ESC + (x + 1) + 'G';
|
|
28746
|
-
}
|
|
28747
|
-
return ESC + (y + 1) + ';' + (x + 1) + 'H';
|
|
28748
|
-
};
|
|
28749
|
-
ansiEscapes.cursorMove = (x, y) => {
|
|
28750
|
-
if (typeof x !== 'number') {
|
|
28751
|
-
throw new TypeError('The `x` argument is required');
|
|
28752
|
-
}
|
|
28753
|
-
let ret = '';
|
|
28754
|
-
if (x < 0) {
|
|
28755
|
-
ret += ESC + -x + 'D';
|
|
28756
|
-
} else if (x > 0) {
|
|
28757
|
-
ret += ESC + x + 'C';
|
|
28758
|
-
}
|
|
28759
|
-
if (y < 0) {
|
|
28760
|
-
ret += ESC + -y + 'A';
|
|
28761
|
-
} else if (y > 0) {
|
|
28762
|
-
ret += ESC + y + 'B';
|
|
28763
|
-
}
|
|
28764
|
-
return ret;
|
|
28765
|
-
};
|
|
28766
|
-
ansiEscapes.cursorUp = (count = 1) => ESC + count + 'A';
|
|
28767
|
-
ansiEscapes.cursorDown = (count = 1) => ESC + count + 'B';
|
|
28768
|
-
ansiEscapes.cursorForward = (count = 1) => ESC + count + 'C';
|
|
28769
|
-
ansiEscapes.cursorBackward = (count = 1) => ESC + count + 'D';
|
|
28770
|
-
ansiEscapes.cursorLeft = ESC + 'G';
|
|
28771
|
-
ansiEscapes.cursorSavePosition = isTerminalApp ? '\u001B7' : ESC + 's';
|
|
28772
|
-
ansiEscapes.cursorRestorePosition = isTerminalApp ? '\u001B8' : ESC + 'u';
|
|
28773
|
-
ansiEscapes.cursorGetPosition = ESC + '6n';
|
|
28774
|
-
ansiEscapes.cursorNextLine = ESC + 'E';
|
|
28775
|
-
ansiEscapes.cursorPrevLine = ESC + 'F';
|
|
28776
|
-
ansiEscapes.cursorHide = ESC + '?25l';
|
|
28777
|
-
ansiEscapes.cursorShow = ESC + '?25h';
|
|
28778
|
-
ansiEscapes.eraseLines = count => {
|
|
28779
|
-
let clear = '';
|
|
28780
|
-
for (let i = 0; i < count; i++) {
|
|
28781
|
-
clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : '');
|
|
28782
|
-
}
|
|
28783
|
-
if (count) {
|
|
28784
|
-
clear += ansiEscapes.cursorLeft;
|
|
28785
|
-
}
|
|
28786
|
-
return clear;
|
|
28787
|
-
};
|
|
28788
|
-
ansiEscapes.eraseEndLine = ESC + 'K';
|
|
28789
|
-
ansiEscapes.eraseStartLine = ESC + '1K';
|
|
28790
|
-
ansiEscapes.eraseLine = ESC + '2K';
|
|
28791
|
-
ansiEscapes.eraseDown = ESC + 'J';
|
|
28792
|
-
ansiEscapes.eraseUp = ESC + '1J';
|
|
28793
|
-
ansiEscapes.eraseScreen = ESC + '2J';
|
|
28794
|
-
ansiEscapes.scrollUp = ESC + 'S';
|
|
28795
|
-
ansiEscapes.scrollDown = ESC + 'T';
|
|
28796
|
-
ansiEscapes.clearScreen = '\u001Bc';
|
|
28797
|
-
ansiEscapes.clearTerminal = process.platform === 'win32' ? `${ansiEscapes.eraseScreen}${ESC}0f` :
|
|
28798
|
-
// 1. Erases the screen (Only done in case `2` is not supported)
|
|
28799
|
-
// 2. Erases the whole screen including scrollback buffer
|
|
28800
|
-
// 3. Moves cursor to the top-left position
|
|
28801
|
-
// More info: https://www.real-world-systems.com/docs/ANSIcode.html
|
|
28802
|
-
`${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`;
|
|
28803
|
-
ansiEscapes.beep = BEL;
|
|
28804
|
-
ansiEscapes.link = (text, url) => {
|
|
28805
|
-
return [OSC, '8', SEP, SEP, url, BEL, text, OSC, '8', SEP, SEP, BEL].join('');
|
|
28806
|
-
};
|
|
28807
|
-
ansiEscapes.image = (buffer, options = {}) => {
|
|
28808
|
-
let ret = `${OSC}1337;File=inline=1`;
|
|
28809
|
-
if (options.width) {
|
|
28810
|
-
ret += `;width=${options.width}`;
|
|
28811
|
-
}
|
|
28812
|
-
if (options.height) {
|
|
28813
|
-
ret += `;height=${options.height}`;
|
|
28814
|
-
}
|
|
28815
|
-
if (options.preserveAspectRatio === false) {
|
|
28816
|
-
ret += ';preserveAspectRatio=0';
|
|
28817
|
-
}
|
|
28818
|
-
return ret + ':' + buffer.toString('base64') + BEL;
|
|
28819
|
-
};
|
|
28820
|
-
ansiEscapes.iTerm = {
|
|
28821
|
-
setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
|
|
28822
|
-
annotation: (message, options = {}) => {
|
|
28823
|
-
let ret = `${OSC}1337;`;
|
|
28824
|
-
const hasX = typeof options.x !== 'undefined';
|
|
28825
|
-
const hasY = typeof options.y !== 'undefined';
|
|
28826
|
-
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== 'undefined')) {
|
|
28827
|
-
throw new Error('`x`, `y` and `length` must be defined when `x` or `y` is defined');
|
|
28828
|
-
}
|
|
28829
|
-
message = message.replace(/\|/g, '');
|
|
28830
|
-
ret += options.isHidden ? 'AddHiddenAnnotation=' : 'AddAnnotation=';
|
|
28831
|
-
if (options.length > 0) {
|
|
28832
|
-
ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join('|');
|
|
28833
|
-
} else {
|
|
28834
|
-
ret += message;
|
|
28835
|
-
}
|
|
28836
|
-
return ret + BEL;
|
|
28837
|
-
}
|
|
28838
|
-
};
|
|
28839
|
-
})(ansiEscapes);
|
|
28840
|
-
return ansiEscapes.exports;
|
|
28841
|
-
}
|
|
28842
|
-
|
|
28843
|
-
var hasFlag$1;
|
|
28844
|
-
var hasRequiredHasFlag$1;
|
|
28845
|
-
function requireHasFlag$1() {
|
|
28846
|
-
if (hasRequiredHasFlag$1) return hasFlag$1;
|
|
28847
|
-
hasRequiredHasFlag$1 = 1;
|
|
28848
|
-
hasFlag$1 = (flag, argv = process.argv) => {
|
|
28849
|
-
const prefix = flag.startsWith('-') ? '' : flag.length === 1 ? '-' : '--';
|
|
28850
|
-
const position = argv.indexOf(prefix + flag);
|
|
28851
|
-
const terminatorPosition = argv.indexOf('--');
|
|
28852
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
28853
|
-
};
|
|
28854
|
-
return hasFlag$1;
|
|
28855
|
-
}
|
|
28856
|
-
|
|
28857
|
-
var supportsColor_1$1;
|
|
28858
|
-
var hasRequiredSupportsColor$2;
|
|
28859
|
-
function requireSupportsColor$2() {
|
|
28860
|
-
if (hasRequiredSupportsColor$2) return supportsColor_1$1;
|
|
28861
|
-
hasRequiredSupportsColor$2 = 1;
|
|
28862
|
-
const os = require$$0$e;
|
|
28863
|
-
const tty = require$$1$9;
|
|
28864
|
-
const hasFlag = requireHasFlag$1();
|
|
28865
|
-
const {
|
|
28866
|
-
env
|
|
28867
|
-
} = process;
|
|
28868
|
-
let forceColor;
|
|
28869
|
-
if (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false') || hasFlag('color=never')) {
|
|
28870
|
-
forceColor = 0;
|
|
28871
|
-
} else if (hasFlag('color') || hasFlag('colors') || hasFlag('color=true') || hasFlag('color=always')) {
|
|
28872
|
-
forceColor = 1;
|
|
28873
|
-
}
|
|
28874
|
-
if ('FORCE_COLOR' in env) {
|
|
28875
|
-
if (env.FORCE_COLOR === 'true') {
|
|
28876
|
-
forceColor = 1;
|
|
28877
|
-
} else if (env.FORCE_COLOR === 'false') {
|
|
28878
|
-
forceColor = 0;
|
|
28879
|
-
} else {
|
|
28880
|
-
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
28881
|
-
}
|
|
28882
|
-
}
|
|
28883
|
-
function translateLevel(level) {
|
|
28884
|
-
if (level === 0) {
|
|
28885
|
-
return false;
|
|
28886
|
-
}
|
|
28887
|
-
return {
|
|
28888
|
-
level,
|
|
28889
|
-
hasBasic: true,
|
|
28890
|
-
has256: level >= 2,
|
|
28891
|
-
has16m: level >= 3
|
|
28892
|
-
};
|
|
28893
|
-
}
|
|
28894
|
-
function supportsColor(haveStream, streamIsTTY) {
|
|
28895
|
-
if (forceColor === 0) {
|
|
28896
|
-
return 0;
|
|
28897
|
-
}
|
|
28898
|
-
if (hasFlag('color=16m') || hasFlag('color=full') || hasFlag('color=truecolor')) {
|
|
28899
|
-
return 3;
|
|
28900
|
-
}
|
|
28901
|
-
if (hasFlag('color=256')) {
|
|
28902
|
-
return 2;
|
|
28903
|
-
}
|
|
28904
|
-
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
28905
|
-
return 0;
|
|
28906
|
-
}
|
|
28907
|
-
const min = forceColor || 0;
|
|
28908
|
-
if (env.TERM === 'dumb') {
|
|
28909
|
-
return min;
|
|
28910
|
-
}
|
|
28911
|
-
if (process.platform === 'win32') {
|
|
28912
|
-
// Windows 10 build 10586 is the first Windows release that supports 256 colors.
|
|
28913
|
-
// Windows 10 build 14931 is the first release that supports 16m/TrueColor.
|
|
28914
|
-
const osRelease = os.release().split('.');
|
|
28915
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
28916
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
28917
|
-
}
|
|
28918
|
-
return 1;
|
|
28919
|
-
}
|
|
28920
|
-
if ('CI' in env) {
|
|
28921
|
-
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
|
|
28922
|
-
return 1;
|
|
28923
|
-
}
|
|
28924
|
-
return min;
|
|
28925
|
-
}
|
|
28926
|
-
if ('TEAMCITY_VERSION' in env) {
|
|
28927
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
28928
|
-
}
|
|
28929
|
-
if (env.COLORTERM === 'truecolor') {
|
|
28930
|
-
return 3;
|
|
28931
|
-
}
|
|
28932
|
-
if ('TERM_PROGRAM' in env) {
|
|
28933
|
-
const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
|
28934
|
-
switch (env.TERM_PROGRAM) {
|
|
28935
|
-
case 'iTerm.app':
|
|
28936
|
-
return version >= 3 ? 3 : 2;
|
|
28937
|
-
case 'Apple_Terminal':
|
|
28938
|
-
return 2;
|
|
28939
|
-
// No default
|
|
28940
|
-
}
|
|
28941
|
-
}
|
|
28942
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
|
28943
|
-
return 2;
|
|
28944
|
-
}
|
|
28945
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
28946
|
-
return 1;
|
|
28947
|
-
}
|
|
28948
|
-
if ('COLORTERM' in env) {
|
|
28949
|
-
return 1;
|
|
28950
|
-
}
|
|
28951
|
-
return min;
|
|
28952
|
-
}
|
|
28953
|
-
function getSupportLevel(stream) {
|
|
28954
|
-
const level = supportsColor(stream, stream && stream.isTTY);
|
|
28955
|
-
return translateLevel(level);
|
|
28956
|
-
}
|
|
28957
|
-
supportsColor_1$1 = {
|
|
28958
|
-
supportsColor: getSupportLevel,
|
|
28959
|
-
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
28960
|
-
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
28961
|
-
};
|
|
28962
|
-
return supportsColor_1$1;
|
|
28963
|
-
}
|
|
28964
|
-
|
|
28965
|
-
var supportsHyperlinks;
|
|
28966
|
-
var hasRequiredSupportsHyperlinks;
|
|
28967
|
-
function requireSupportsHyperlinks() {
|
|
28968
|
-
if (hasRequiredSupportsHyperlinks) return supportsHyperlinks;
|
|
28969
|
-
hasRequiredSupportsHyperlinks = 1;
|
|
28970
|
-
const supportsColor = requireSupportsColor$2();
|
|
28971
|
-
const hasFlag = requireHasFlag$1();
|
|
28972
|
-
function parseVersion(versionString) {
|
|
28973
|
-
if (/^\d{3,4}$/.test(versionString)) {
|
|
28974
|
-
// Env var doesn't always use dots. example: 4601 => 46.1.0
|
|
28975
|
-
const m = /(\d{1,2})(\d{2})/.exec(versionString);
|
|
28976
|
-
return {
|
|
28977
|
-
major: 0,
|
|
28978
|
-
minor: parseInt(m[1], 10),
|
|
28979
|
-
patch: parseInt(m[2], 10)
|
|
28980
|
-
};
|
|
28981
|
-
}
|
|
28982
|
-
const versions = (versionString || '').split('.').map(n => parseInt(n, 10));
|
|
28983
|
-
return {
|
|
28984
|
-
major: versions[0],
|
|
28985
|
-
minor: versions[1],
|
|
28986
|
-
patch: versions[2]
|
|
28987
|
-
};
|
|
28988
|
-
}
|
|
28989
|
-
function supportsHyperlink(stream) {
|
|
28990
|
-
const {
|
|
28991
|
-
env
|
|
28992
|
-
} = process;
|
|
28993
|
-
if ('FORCE_HYPERLINK' in env) {
|
|
28994
|
-
return !(env.FORCE_HYPERLINK.length > 0 && parseInt(env.FORCE_HYPERLINK, 10) === 0);
|
|
28995
|
-
}
|
|
28996
|
-
if (hasFlag('no-hyperlink') || hasFlag('no-hyperlinks') || hasFlag('hyperlink=false') || hasFlag('hyperlink=never')) {
|
|
28997
|
-
return false;
|
|
28998
|
-
}
|
|
28999
|
-
if (hasFlag('hyperlink=true') || hasFlag('hyperlink=always')) {
|
|
29000
|
-
return true;
|
|
29001
|
-
}
|
|
29002
|
-
|
|
29003
|
-
// Netlify does not run a TTY, it does not need `supportsColor` check
|
|
29004
|
-
if ('NETLIFY' in env) {
|
|
29005
|
-
return true;
|
|
29006
|
-
}
|
|
29007
|
-
|
|
29008
|
-
// If they specify no colors, they probably don't want hyperlinks.
|
|
29009
|
-
if (!supportsColor.supportsColor(stream)) {
|
|
29010
|
-
return false;
|
|
29011
|
-
}
|
|
29012
|
-
if (stream && !stream.isTTY) {
|
|
29013
|
-
return false;
|
|
29014
|
-
}
|
|
29015
|
-
if (process.platform === 'win32') {
|
|
29016
|
-
return false;
|
|
29017
|
-
}
|
|
29018
|
-
if ('CI' in env) {
|
|
29019
|
-
return false;
|
|
29020
|
-
}
|
|
29021
|
-
if ('TEAMCITY_VERSION' in env) {
|
|
29022
|
-
return false;
|
|
29023
|
-
}
|
|
29024
|
-
if ('TERM_PROGRAM' in env) {
|
|
29025
|
-
const version = parseVersion(env.TERM_PROGRAM_VERSION);
|
|
29026
|
-
switch (env.TERM_PROGRAM) {
|
|
29027
|
-
case 'iTerm.app':
|
|
29028
|
-
if (version.major === 3) {
|
|
29029
|
-
return version.minor >= 1;
|
|
29030
|
-
}
|
|
29031
|
-
return version.major > 3;
|
|
29032
|
-
case 'WezTerm':
|
|
29033
|
-
return version.major >= 20200620;
|
|
29034
|
-
case 'vscode':
|
|
29035
|
-
return version.major > 1 || version.major === 1 && version.minor >= 72;
|
|
29036
|
-
// No default
|
|
29037
|
-
}
|
|
29038
|
-
}
|
|
29039
|
-
if ('VTE_VERSION' in env) {
|
|
29040
|
-
// 0.50.0 was supposed to support hyperlinks, but throws a segfault
|
|
29041
|
-
if (env.VTE_VERSION === '0.50.0') {
|
|
29042
|
-
return false;
|
|
29043
|
-
}
|
|
29044
|
-
const version = parseVersion(env.VTE_VERSION);
|
|
29045
|
-
return version.major > 0 || version.minor >= 50;
|
|
29046
|
-
}
|
|
29047
|
-
return false;
|
|
29048
|
-
}
|
|
29049
|
-
supportsHyperlinks = {
|
|
29050
|
-
supportsHyperlink,
|
|
29051
|
-
stdout: supportsHyperlink(process.stdout),
|
|
29052
|
-
stderr: supportsHyperlink(process.stderr)
|
|
29053
|
-
};
|
|
29054
|
-
return supportsHyperlinks;
|
|
29055
|
-
}
|
|
29056
|
-
|
|
29057
|
-
var hasRequiredTerminalLink;
|
|
29058
|
-
function requireTerminalLink() {
|
|
29059
|
-
if (hasRequiredTerminalLink) return terminalLink.exports;
|
|
29060
|
-
hasRequiredTerminalLink = 1;
|
|
29061
|
-
(function (module) {
|
|
29062
|
-
|
|
29063
|
-
const ansiEscapes = requireAnsiEscapes();
|
|
29064
|
-
const supportsHyperlinks = requireSupportsHyperlinks();
|
|
29065
|
-
const terminalLink = (text, url, {
|
|
29066
|
-
target = 'stdout',
|
|
29067
|
-
...options
|
|
29068
|
-
} = {}) => {
|
|
29069
|
-
if (!supportsHyperlinks[target]) {
|
|
29070
|
-
// If the fallback has been explicitly disabled, don't modify the text itself.
|
|
29071
|
-
if (options.fallback === false) {
|
|
29072
|
-
return text;
|
|
29073
|
-
}
|
|
29074
|
-
return typeof options.fallback === 'function' ? options.fallback(text, url) : `${text} (\u200B${url}\u200B)`;
|
|
29075
|
-
}
|
|
29076
|
-
return ansiEscapes.link(text, url);
|
|
29077
|
-
};
|
|
29078
|
-
module.exports = (text, url, options = {}) => terminalLink(text, url, options);
|
|
29079
|
-
module.exports.stderr = (text, url, options = {}) => terminalLink(text, url, {
|
|
29080
|
-
target: 'stderr',
|
|
29081
|
-
...options
|
|
29082
|
-
});
|
|
29083
|
-
module.exports.isSupported = supportsHyperlinks.stdout;
|
|
29084
|
-
module.exports.stderr.isSupported = supportsHyperlinks.stderr;
|
|
29085
|
-
})(terminalLink);
|
|
29086
|
-
return terminalLink.exports;
|
|
29087
|
-
}
|
|
29088
|
-
|
|
29089
|
-
var terminalLinkExports = requireTerminalLink();
|
|
29090
|
-
|
|
29091
29091
|
var error$b;
|
|
29092
29092
|
var hasRequiredError$b;
|
|
29093
29093
|
function requireError$b() {
|
|
@@ -167035,5 +167035,5 @@ exports.terminalLinkExports = terminalLinkExports;
|
|
|
167035
167035
|
exports.updater = updater$1;
|
|
167036
167036
|
exports.yargsParser = yargsParser;
|
|
167037
167037
|
exports.yoctocolorsCjsExports = yoctocolorsCjsExports;
|
|
167038
|
-
//# debugId=
|
|
167038
|
+
//# debugId=44384fe3-ae9c-4b91-bed5-98dbcfe0322e
|
|
167039
167039
|
//# sourceMappingURL=vendor.js.map
|