@@ -6080,7 +6080,7 @@ exports.colors = [6, 2, 3, 4, 5, 1];
60806080try {
60816081 // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
60826082 // eslint-disable-next-line import/no-extraneous-dependencies
6083- const supportsColor = __nccwpck_require__(4000 );
6083+ const supportsColor = __nccwpck_require__(6708 );
60846084
60856085 if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
60866086 exports.colors = [
@@ -6314,6 +6314,21 @@ formatters.O = function (v) {
63146314};
63156315
63166316
6317+ /***/ }),
6318+
6319+ /***/ 7435:
6320+ /***/ ((module) => {
6321+
6322+
6323+
6324+ module.exports = (flag, argv = process.argv) => {
6325+ const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
6326+ const position = argv.indexOf(prefix + flag);
6327+ const terminatorPosition = argv.indexOf('--');
6328+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
6329+ };
6330+
6331+
63176332/***/ }),
63186333
63196334/***/ 4625:
@@ -14138,6 +14153,148 @@ const validRange = (range, options) => {
1413814153module.exports = validRange
1413914154
1414014155
14156+ /***/ }),
14157+
14158+ /***/ 6708:
14159+ /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
14160+
14161+
14162+ const os = __nccwpck_require__(857);
14163+ const tty = __nccwpck_require__(2018);
14164+ const hasFlag = __nccwpck_require__(7435);
14165+
14166+ const {env} = process;
14167+
14168+ let forceColor;
14169+ if (hasFlag('no-color') ||
14170+ hasFlag('no-colors') ||
14171+ hasFlag('color=false') ||
14172+ hasFlag('color=never')) {
14173+ forceColor = 0;
14174+ } else if (hasFlag('color') ||
14175+ hasFlag('colors') ||
14176+ hasFlag('color=true') ||
14177+ hasFlag('color=always')) {
14178+ forceColor = 1;
14179+ }
14180+
14181+ if ('FORCE_COLOR' in env) {
14182+ if (env.FORCE_COLOR === 'true') {
14183+ forceColor = 1;
14184+ } else if (env.FORCE_COLOR === 'false') {
14185+ forceColor = 0;
14186+ } else {
14187+ forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
14188+ }
14189+ }
14190+
14191+ function translateLevel(level) {
14192+ if (level === 0) {
14193+ return false;
14194+ }
14195+
14196+ return {
14197+ level,
14198+ hasBasic: true,
14199+ has256: level >= 2,
14200+ has16m: level >= 3
14201+ };
14202+ }
14203+
14204+ function supportsColor(haveStream, streamIsTTY) {
14205+ if (forceColor === 0) {
14206+ return 0;
14207+ }
14208+
14209+ if (hasFlag('color=16m') ||
14210+ hasFlag('color=full') ||
14211+ hasFlag('color=truecolor')) {
14212+ return 3;
14213+ }
14214+
14215+ if (hasFlag('color=256')) {
14216+ return 2;
14217+ }
14218+
14219+ if (haveStream && !streamIsTTY && forceColor === undefined) {
14220+ return 0;
14221+ }
14222+
14223+ const min = forceColor || 0;
14224+
14225+ if (env.TERM === 'dumb') {
14226+ return min;
14227+ }
14228+
14229+ if (process.platform === 'win32') {
14230+ // Windows 10 build 10586 is the first Windows release that supports 256 colors.
14231+ // Windows 10 build 14931 is the first release that supports 16m/TrueColor.
14232+ const osRelease = os.release().split('.');
14233+ if (
14234+ Number(osRelease[0]) >= 10 &&
14235+ Number(osRelease[2]) >= 10586
14236+ ) {
14237+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
14238+ }
14239+
14240+ return 1;
14241+ }
14242+
14243+ if ('CI' in env) {
14244+ if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
14245+ return 1;
14246+ }
14247+
14248+ return min;
14249+ }
14250+
14251+ if ('TEAMCITY_VERSION' in env) {
14252+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
14253+ }
14254+
14255+ if (env.COLORTERM === 'truecolor') {
14256+ return 3;
14257+ }
14258+
14259+ if ('TERM_PROGRAM' in env) {
14260+ const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
14261+
14262+ switch (env.TERM_PROGRAM) {
14263+ case 'iTerm.app':
14264+ return version >= 3 ? 3 : 2;
14265+ case 'Apple_Terminal':
14266+ return 2;
14267+ // No default
14268+ }
14269+ }
14270+
14271+ if (/-256(color)?$/i.test(env.TERM)) {
14272+ return 2;
14273+ }
14274+
14275+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
14276+ return 1;
14277+ }
14278+
14279+ if ('COLORTERM' in env) {
14280+ return 1;
14281+ }
14282+
14283+ return min;
14284+ }
14285+
14286+ function getSupportLevel(stream) {
14287+ const level = supportsColor(stream, stream && stream.isTTY);
14288+ return translateLevel(level);
14289+ }
14290+
14291+ module.exports = {
14292+ supportsColor: getSupportLevel,
14293+ stdout: translateLevel(supportsColor(true, tty.isatty(1))),
14294+ stderr: translateLevel(supportsColor(true, tty.isatty(2)))
14295+ };
14296+
14297+
1414114298/***/ }),
1414214299
1414314300/***/ 329:
@@ -41818,14 +41975,6 @@ module.exports = {
4181841975}
4181941976
4182041977
41821- /***/ }),
41822-
41823- /***/ 4000:
41824- /***/ ((module) => {
41825-
41826- module.exports = eval("require")("supports-color");
41827-
41828-
4182941978/***/ }),
4183041979
4183141980/***/ 2613:
@@ -42010,6 +42159,13 @@ module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:zlib");
4201042159
4201142160/***/ }),
4201242161
42162+ /***/ 857:
42163+ /***/ ((module) => {
42164+
42165+ module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("os");
42166+
42167+ /***/ }),
42168+
4201342169/***/ 6928:
4201442170/***/ ((module) => {
4201542171
@@ -42403,8 +42559,8 @@ __nccwpck_require__.d(mappers_namespaceObject, {
4240342559 UserDelegationKey: () => (UserDelegationKey)
4240442560});
4240542561
42406- ; // CONCATENATED MODULE: external "os"
42407- const external_os_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("os" );
42562+ // EXTERNAL MODULE: external "os"
42563+ var external_os_ = __nccwpck_require__(857 );
4240842564;// CONCATENATED MODULE: ./node_modules/.pnpm/@actions+core@3.0.0/node_modules/@actions/core/lib/utils.js
4240942565// We use any as a valid input type
4241042566/* eslint-disable @typescript-eslint/no-explicit-any */
@@ -42479,7 +42635,7 @@ function utils_toCommandProperties(annotationProperties) {
4247942635 */
4248042636function command_issueCommand(command, properties, message) {
4248142637 const cmd = new Command(command, properties, message);
42482- process.stdout.write(cmd.toString() + external_os_namespaceObject .EOL);
42638+ process.stdout.write(cmd.toString() + external_os_ .EOL);
4248342639}
4248442640function command_issue(name, message = '') {
4248542641 command_issueCommand(name, {}, message);
@@ -42553,7 +42709,7 @@ function file_command_issueFileCommand(command, message) {
4255342709 if (!external_fs_namespaceObject.existsSync(filePath)) {
4255442710 throw new Error(`Missing file at path: ${filePath}`);
4255542711 }
42556- external_fs_namespaceObject.appendFileSync(filePath, `${utils_toCommandValue(message)}${external_os_namespaceObject .EOL}`, {
42712+ external_fs_namespaceObject.appendFileSync(filePath, `${utils_toCommandValue(message)}${external_os_ .EOL}`, {
4255742713 encoding: 'utf8'
4255842714 });
4255942715}
@@ -42569,7 +42725,7 @@ function file_command_prepareKeyValueMessage(key, value) {
4256942725 if (convertedValue.includes(delimiter)) {
4257042726 throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`);
4257142727 }
42572- return `${key}<<${delimiter}${external_os_namespaceObject .EOL}${convertedValue}${external_os_namespaceObject .EOL}${delimiter}`;
42728+ return `${key}<<${delimiter}${external_os_ .EOL}${convertedValue}${external_os_ .EOL}${delimiter}`;
4257342729}
4257442730//# sourceMappingURL=file-command.js.map
4257542731// EXTERNAL MODULE: external "path"
@@ -43653,7 +43809,7 @@ class Summary {
4365343809 * @returns {Summary} summary instance
4365443810 */
4365543811 addEOL() {
43656- return this.addRaw(external_os_namespaceObject .EOL);
43812+ return this.addRaw(external_os_ .EOL);
4365743813 }
4365843814 /**
4365943815 * Adds an HTML codeblock to the summary buffer
@@ -44377,13 +44533,13 @@ class ToolRunner extends external_events_.EventEmitter {
4437744533 _processLineBuffer(data, strBuffer, onLine) {
4437844534 try {
4437944535 let s = strBuffer + data.toString();
44380- let n = s.indexOf(external_os_namespaceObject .EOL);
44536+ let n = s.indexOf(external_os_ .EOL);
4438144537 while (n > -1) {
4438244538 const line = s.substring(0, n);
4438344539 onLine(line);
4438444540 // the rest of the string ...
44385- s = s.substring(n + external_os_namespaceObject .EOL.length);
44386- n = s.indexOf(external_os_namespaceObject .EOL);
44541+ s = s.substring(n + external_os_ .EOL.length);
44542+ n = s.indexOf(external_os_ .EOL);
4438744543 }
4438844544 return s;
4438944545 }
@@ -44674,7 +44830,7 @@ class ToolRunner extends external_events_.EventEmitter {
4467444830 }
4467544831 const optionsNonNull = this._cloneExecOptions(this.options);
4467644832 if (!optionsNonNull.silent && optionsNonNull.outStream) {
44677- optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + external_os_namespaceObject .EOL);
44833+ optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + external_os_ .EOL);
4467844834 }
4467944835 const state = new ExecState(optionsNonNull, this.toolPath);
4468044836 state.on('debug', (message) => {
@@ -45013,8 +45169,8 @@ const getLinuxInfo = () => platform_awaiter(void 0, void 0, void 0, function* ()
4501345169 version
4501445170 };
4501545171});
45016- const platform = external_os_namespaceObject .platform();
45017- const arch = external_os_namespaceObject .arch();
45172+ const platform = external_os_ .platform();
45173+ const arch = external_os_ .arch();
4501845174const isWindows = platform === 'win32';
4501945175const isMacOS = platform === 'darwin';
4502045176const isLinux = platform === 'linux';
@@ -45263,7 +45419,7 @@ function notice(message, properties = {}) {
4526345419 * @param message info message
4526445420 */
4526545421function info(message) {
45266- process.stdout.write(message + external_os_namespaceObject .EOL);
45422+ process.stdout.write(message + external_os_ .EOL);
4526745423}
4526845424/**
4526945425 * Begin an output group.
@@ -55026,7 +55182,7 @@ class Pattern {
5502655182 }
5502755183 // Replace leading `~` segment
5502855184 else if (pattern === '~' || pattern.startsWith(`~${external_path_.sep}`)) {
55029- homedir = homedir || external_os_namespaceObject .homedir();
55185+ homedir = homedir || external_os_ .homedir();
5503055186 external_assert_(homedir, 'Unable to determine HOME directory');
5503155187 external_assert_(hasAbsoluteRoot(homedir), `Expected HOME directory to be a rooted path. Actual '${homedir}'`);
5503255188 pattern = Pattern.globEscape(homedir) + pattern.substr(1);
@@ -99150,11 +99306,11 @@ function getPropertyWithDefault(data, name, defaultValue) {
9915099306/**
9915199307* The Action runner's platform.
9915299308*/
99153- const dist_platform = external_os_namespaceObject .platform();
99309+ const dist_platform = external_os_ .platform();
9915499310/**
9915599311* The Action runner's architecture.
9915699312*/
99157- const dist_arch = external_os_namespaceObject .arch();
99313+ const dist_arch = external_os_ .arch();
9915899314/**
9915999315* Whether the Action runner is a Windows system.
9916099316*/
0 commit comments