diff --git a/dist/index.js b/dist/index.js index 011a14b..29f5217 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,7 +1,7 @@ import require$$0 from 'os'; import require$$0$1 from 'crypto'; import require$$1 from 'fs'; -import require$$1$4 from 'path'; +import require$$1$5 from 'path'; import require$$2$1 from 'http'; import require$$3$1 from 'https'; import require$$0$4 from 'net'; @@ -13,16 +13,18 @@ import require$$0$5 from 'stream'; import require$$7 from 'buffer'; import require$$8 from 'querystring'; import require$$14 from 'stream/web'; -import { createRequire } from 'node:module'; -import require$$0$6 from 'worker_threads'; +import require$$0$7 from 'node:stream'; +import require$$1$2 from 'node:util'; +import require$$0$6 from 'node:events'; +import require$$0$8 from 'worker_threads'; import require$$2$2 from 'perf_hooks'; import require$$5 from 'util/types'; import require$$4$2 from 'async_hooks'; -import require$$1$2 from 'console'; -import require$$1$3 from 'url'; +import require$$1$3 from 'console'; +import require$$1$4 from 'url'; import require$$3$2 from 'zlib'; import require$$6 from 'string_decoder'; -import require$$0$7 from 'diagnostics_channel'; +import require$$0$9 from 'diagnostics_channel'; import require$$2$3 from 'child_process'; import require$$6$1 from 'timers'; @@ -1738,15 +1740,6 @@ function requireTimers () { var main = {exports: {}}; -const require$3 = createRequire(import.meta.url); -function __require$2() { return require$3("node:stream"); } - -const require$2 = createRequire(import.meta.url); -function __require$1() { return require$2("node:util"); } - -const require$1 = createRequire(import.meta.url); -function __require() { return require$1("node:events"); } - var sbmh; var hasRequiredSbmh; @@ -1780,8 +1773,8 @@ function requireSbmh () { * Based heavily on the Streaming Boyer-Moore-Horspool C++ implementation * by Hongli Lai at: https://github.com/FooBarWidget/boyer-moore-horspool */ - const EventEmitter = __require().EventEmitter; - const inherits = __require$1().inherits; + const EventEmitter = require$$0$6.EventEmitter; + const inherits = require$$1$2.inherits; function SBMH (needle) { if (typeof needle === 'string') { @@ -1990,8 +1983,8 @@ function requirePartStream () { if (hasRequiredPartStream) return PartStream_1; hasRequiredPartStream = 1; - const inherits = __require$1().inherits; - const ReadableStream = __require$2().Readable; + const inherits = require$$1$2.inherits; + const ReadableStream = require$$0$7.Readable; function PartStream (opts) { ReadableStream.call(this, opts); @@ -2035,8 +2028,8 @@ function requireHeaderParser () { if (hasRequiredHeaderParser) return HeaderParser_1; hasRequiredHeaderParser = 1; - const EventEmitter = __require().EventEmitter; - const inherits = __require$1().inherits; + const EventEmitter = require$$0$6.EventEmitter; + const inherits = require$$1$2.inherits; const getLimit = requireGetLimit(); const StreamSearch = requireSbmh(); @@ -2143,8 +2136,8 @@ function requireDicer () { if (hasRequiredDicer) return Dicer_1; hasRequiredDicer = 1; - const WritableStream = __require$2().Writable; - const inherits = __require$1().inherits; + const WritableStream = require$$0$7.Writable; + const inherits = require$$1$2.inherits; const StreamSearch = requireSbmh(); @@ -2714,8 +2707,8 @@ function requireMultipart () { // * support limits.fieldNameSize // -- this will require modifications to utils.parseParams - const { Readable } = __require$2(); - const { inherits } = __require$1(); + const { Readable } = require$$0$7; + const { inherits } = require$$1$2; const Dicer = requireDicer(); @@ -3280,8 +3273,8 @@ function requireMain () { if (hasRequiredMain) return main.exports; hasRequiredMain = 1; - const WritableStream = __require$2().Writable; - const { inherits } = __require$1(); + const WritableStream = require$$0$7.Writable; + const { inherits } = require$$1$2; const Dicer = requireDicer(); const MultipartParser = requireMultipart(); @@ -3373,7 +3366,7 @@ function requireConstants$3 () { if (hasRequiredConstants$3) return constants$3; hasRequiredConstants$3 = 1; - const { MessageChannel, receiveMessageOnPort } = require$$0$6; + const { MessageChannel, receiveMessageOnPort } = require$$0$8; const corsSafeListedMethods = ['GET', 'HEAD', 'POST']; const corsSafeListedMethodsSet = new Set(corsSafeListedMethods); @@ -8240,9 +8233,9 @@ var hasRequiredConstants$2; function requireConstants$2 () { if (hasRequiredConstants$2) return constants$2; hasRequiredConstants$2 = 1; - (function (exports) { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SPECIAL_HEADERS = exports.HEADER_STATE = exports.MINOR = exports.MAJOR = exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS = exports.TOKEN = exports.STRICT_TOKEN = exports.HEX = exports.URL_CHAR = exports.STRICT_URL_CHAR = exports.USERINFO_CHARS = exports.MARK = exports.ALPHANUM = exports.NUM = exports.HEX_MAP = exports.NUM_MAP = exports.ALPHA = exports.FINISH = exports.H_METHOD_MAP = exports.METHOD_MAP = exports.METHODS_RTSP = exports.METHODS_ICE = exports.METHODS_HTTP = exports.METHODS = exports.LENIENT_FLAGS = exports.FLAGS = exports.TYPE = exports.ERROR = void 0; + (function (exports$1) { + Object.defineProperty(exports$1, "__esModule", { value: true }); + exports$1.SPECIAL_HEADERS = exports$1.HEADER_STATE = exports$1.MINOR = exports$1.MAJOR = exports$1.CONNECTION_TOKEN_CHARS = exports$1.HEADER_CHARS = exports$1.TOKEN = exports$1.STRICT_TOKEN = exports$1.HEX = exports$1.URL_CHAR = exports$1.STRICT_URL_CHAR = exports$1.USERINFO_CHARS = exports$1.MARK = exports$1.ALPHANUM = exports$1.NUM = exports$1.HEX_MAP = exports$1.NUM_MAP = exports$1.ALPHA = exports$1.FINISH = exports$1.H_METHOD_MAP = exports$1.METHOD_MAP = exports$1.METHODS_RTSP = exports$1.METHODS_ICE = exports$1.METHODS_HTTP = exports$1.METHODS = exports$1.LENIENT_FLAGS = exports$1.FLAGS = exports$1.TYPE = exports$1.ERROR = void 0; const utils_1 = requireUtils$2(); (function (ERROR) { ERROR[ERROR["OK"] = 0] = "OK"; @@ -8270,12 +8263,12 @@ function requireConstants$2 () { ERROR[ERROR["PAUSED_UPGRADE"] = 22] = "PAUSED_UPGRADE"; ERROR[ERROR["PAUSED_H2_UPGRADE"] = 23] = "PAUSED_H2_UPGRADE"; ERROR[ERROR["USER"] = 24] = "USER"; - })(exports.ERROR || (exports.ERROR = {})); + })(exports$1.ERROR || (exports$1.ERROR = {})); (function (TYPE) { TYPE[TYPE["BOTH"] = 0] = "BOTH"; TYPE[TYPE["REQUEST"] = 1] = "REQUEST"; TYPE[TYPE["RESPONSE"] = 2] = "RESPONSE"; - })(exports.TYPE || (exports.TYPE = {})); + })(exports$1.TYPE || (exports$1.TYPE = {})); (function (FLAGS) { FLAGS[FLAGS["CONNECTION_KEEP_ALIVE"] = 1] = "CONNECTION_KEEP_ALIVE"; FLAGS[FLAGS["CONNECTION_CLOSE"] = 2] = "CONNECTION_CLOSE"; @@ -8287,12 +8280,12 @@ function requireConstants$2 () { FLAGS[FLAGS["TRAILING"] = 128] = "TRAILING"; // 1 << 8 is unused FLAGS[FLAGS["TRANSFER_ENCODING"] = 512] = "TRANSFER_ENCODING"; - })(exports.FLAGS || (exports.FLAGS = {})); + })(exports$1.FLAGS || (exports$1.FLAGS = {})); (function (LENIENT_FLAGS) { LENIENT_FLAGS[LENIENT_FLAGS["HEADERS"] = 1] = "HEADERS"; LENIENT_FLAGS[LENIENT_FLAGS["CHUNKED_LENGTH"] = 2] = "CHUNKED_LENGTH"; LENIENT_FLAGS[LENIENT_FLAGS["KEEP_ALIVE"] = 4] = "KEEP_ALIVE"; - })(exports.LENIENT_FLAGS || (exports.LENIENT_FLAGS = {})); + })(exports$1.LENIENT_FLAGS || (exports$1.LENIENT_FLAGS = {})); var METHODS; (function (METHODS) { METHODS[METHODS["DELETE"] = 0] = "DELETE"; @@ -8352,8 +8345,8 @@ function requireConstants$2 () { METHODS[METHODS["RECORD"] = 44] = "RECORD"; /* RAOP */ METHODS[METHODS["FLUSH"] = 45] = "FLUSH"; - })(METHODS = exports.METHODS || (exports.METHODS = {})); - exports.METHODS_HTTP = [ + })(METHODS = exports$1.METHODS || (exports$1.METHODS = {})); + exports$1.METHODS_HTTP = [ METHODS.DELETE, METHODS.GET, METHODS.HEAD, @@ -8391,10 +8384,10 @@ function requireConstants$2 () { // TODO(indutny): should we allow it with HTTP? METHODS.SOURCE, ]; - exports.METHODS_ICE = [ + exports$1.METHODS_ICE = [ METHODS.SOURCE, ]; - exports.METHODS_RTSP = [ + exports$1.METHODS_RTSP = [ METHODS.OPTIONS, METHODS.DESCRIBE, METHODS.ANNOUNCE, @@ -8411,59 +8404,59 @@ function requireConstants$2 () { METHODS.GET, METHODS.POST, ]; - exports.METHOD_MAP = utils_1.enumToMap(METHODS); - exports.H_METHOD_MAP = {}; - Object.keys(exports.METHOD_MAP).forEach((key) => { + exports$1.METHOD_MAP = utils_1.enumToMap(METHODS); + exports$1.H_METHOD_MAP = {}; + Object.keys(exports$1.METHOD_MAP).forEach((key) => { if (/^H/.test(key)) { - exports.H_METHOD_MAP[key] = exports.METHOD_MAP[key]; + exports$1.H_METHOD_MAP[key] = exports$1.METHOD_MAP[key]; } }); (function (FINISH) { FINISH[FINISH["SAFE"] = 0] = "SAFE"; FINISH[FINISH["SAFE_WITH_CB"] = 1] = "SAFE_WITH_CB"; FINISH[FINISH["UNSAFE"] = 2] = "UNSAFE"; - })(exports.FINISH || (exports.FINISH = {})); - exports.ALPHA = []; + })(exports$1.FINISH || (exports$1.FINISH = {})); + exports$1.ALPHA = []; for (let i = 'A'.charCodeAt(0); i <= 'Z'.charCodeAt(0); i++) { // Upper case - exports.ALPHA.push(String.fromCharCode(i)); + exports$1.ALPHA.push(String.fromCharCode(i)); // Lower case - exports.ALPHA.push(String.fromCharCode(i + 0x20)); + exports$1.ALPHA.push(String.fromCharCode(i + 0x20)); } - exports.NUM_MAP = { + exports$1.NUM_MAP = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, }; - exports.HEX_MAP = { + exports$1.HEX_MAP = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 0XA, B: 0XB, C: 0XC, D: 0XD, E: 0XE, F: 0XF, a: 0xa, b: 0xb, c: 0xc, d: 0xd, e: 0xe, f: 0xf, }; - exports.NUM = [ + exports$1.NUM = [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ]; - exports.ALPHANUM = exports.ALPHA.concat(exports.NUM); - exports.MARK = ['-', '_', '.', '!', '~', '*', '\'', '(', ')']; - exports.USERINFO_CHARS = exports.ALPHANUM - .concat(exports.MARK) + exports$1.ALPHANUM = exports$1.ALPHA.concat(exports$1.NUM); + exports$1.MARK = ['-', '_', '.', '!', '~', '*', '\'', '(', ')']; + exports$1.USERINFO_CHARS = exports$1.ALPHANUM + .concat(exports$1.MARK) .concat(['%', ';', ':', '&', '=', '+', '$', ',']); // TODO(indutny): use RFC - exports.STRICT_URL_CHAR = [ + exports$1.STRICT_URL_CHAR = [ '!', '"', '$', '%', '&', '\'', '(', ')', '*', '+', ',', '-', '.', '/', ':', ';', '<', '=', '>', '@', '[', '\\', ']', '^', '_', '`', '{', '|', '}', '~', - ].concat(exports.ALPHANUM); - exports.URL_CHAR = exports.STRICT_URL_CHAR + ].concat(exports$1.ALPHANUM); + exports$1.URL_CHAR = exports$1.STRICT_URL_CHAR .concat(['\t', '\f']); // All characters with 0x80 bit set to 1 for (let i = 0x80; i <= 0xff; i++) { - exports.URL_CHAR.push(i); + exports$1.URL_CHAR.push(i); } - exports.HEX = exports.NUM.concat(['a', 'b', 'c', 'd', 'e', 'f', 'A', 'B', 'C', 'D', 'E', 'F']); + exports$1.HEX = exports$1.NUM.concat(['a', 'b', 'c', 'd', 'e', 'f', 'A', 'B', 'C', 'D', 'E', 'F']); /* Tokens as defined by rfc 2616. Also lowercases them. * token = 1* * separators = "(" | ")" | "<" | ">" | "@" @@ -8471,27 +8464,27 @@ function requireConstants$2 () { * | "/" | "[" | "]" | "?" | "=" * | "{" | "}" | SP | HT */ - exports.STRICT_TOKEN = [ + exports$1.STRICT_TOKEN = [ '!', '#', '$', '%', '&', '\'', '*', '+', '-', '.', '^', '_', '`', '|', '~', - ].concat(exports.ALPHANUM); - exports.TOKEN = exports.STRICT_TOKEN.concat([' ']); + ].concat(exports$1.ALPHANUM); + exports$1.TOKEN = exports$1.STRICT_TOKEN.concat([' ']); /* * Verify that a char is a valid visible (printable) US-ASCII * character or %x80-FF */ - exports.HEADER_CHARS = ['\t']; + exports$1.HEADER_CHARS = ['\t']; for (let i = 32; i <= 255; i++) { if (i !== 127) { - exports.HEADER_CHARS.push(i); + exports$1.HEADER_CHARS.push(i); } } // ',' = \x44 - exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c) => c !== 44); - exports.MAJOR = exports.NUM_MAP; - exports.MINOR = exports.MAJOR; + exports$1.CONNECTION_TOKEN_CHARS = exports$1.HEADER_CHARS.filter((c) => c !== 44); + exports$1.MAJOR = exports$1.NUM_MAP; + exports$1.MINOR = exports$1.MAJOR; var HEADER_STATE; (function (HEADER_STATE) { HEADER_STATE[HEADER_STATE["GENERAL"] = 0] = "GENERAL"; @@ -8503,8 +8496,8 @@ function requireConstants$2 () { HEADER_STATE[HEADER_STATE["CONNECTION_CLOSE"] = 6] = "CONNECTION_CLOSE"; HEADER_STATE[HEADER_STATE["CONNECTION_UPGRADE"] = 7] = "CONNECTION_UPGRADE"; HEADER_STATE[HEADER_STATE["TRANSFER_ENCODING_CHUNKED"] = 8] = "TRANSFER_ENCODING_CHUNKED"; - })(HEADER_STATE = exports.HEADER_STATE || (exports.HEADER_STATE = {})); - exports.SPECIAL_HEADERS = { + })(HEADER_STATE = exports$1.HEADER_STATE || (exports$1.HEADER_STATE = {})); + exports$1.SPECIAL_HEADERS = { 'connection': HEADER_STATE.CONNECTION, 'content-length': HEADER_STATE.CONTENT_LENGTH, 'proxy-connection': HEADER_STATE.CONNECTION, @@ -9343,10 +9336,10 @@ function requireClient () { const TIMEOUT_IDLE = 3; class Parser { - constructor (client, socket, { exports }) { + constructor (client, socket, { exports: exports$1 }) { assert(Number.isFinite(client[kMaxHeadersSize]) && client[kMaxHeadersSize] > 0); - this.llhttp = exports; + this.llhttp = exports$1; this.ptr = this.llhttp.llhttp_alloc(constants.TYPE.RESPONSE); this.client = client; this.socket = socket; @@ -14129,7 +14122,7 @@ function requirePendingInterceptorsFormatter () { hasRequiredPendingInterceptorsFormatter = 1; const { Transform } = require$$0$5; - const { Console } = require$$1$2; + const { Console } = require$$1$3; /** * Gets the output of `console.table(…)` as a string. @@ -14356,7 +14349,7 @@ function requireProxyAgent () { hasRequiredProxyAgent = 1; const { kProxy, kClose, kDestroy, kInterceptors } = requireSymbols$4(); - const { URL } = require$$1$3; + const { URL } = require$$1$4; const Agent = requireAgent(); const Pool = requirePool(); const DispatcherBase = requireDispatcherBase(); @@ -22306,7 +22299,7 @@ function requireEvents () { const { webidl } = requireWebidl(); const { kEnumerableProperty } = requireUtil$6(); - const { MessagePort } = require$$0$6; + const { MessagePort } = require$$0$8; /** * @see https://html.spec.whatwg.org/multipage/comms.html#messageevent @@ -22823,7 +22816,7 @@ function requireConnection () { if (hasRequiredConnection) return connection; hasRequiredConnection = 1; - const diagnosticsChannel = require$$0$7; + const diagnosticsChannel = require$$0$9; const { uid, states } = requireConstants(); const { kReadyState, @@ -23204,7 +23197,7 @@ function requireReceiver () { hasRequiredReceiver = 1; const { Writable } = require$$0$5; - const diagnosticsChannel = require$$0$7; + const diagnosticsChannel = require$$0$9; const { parserStates, opcodes, states, emptyBuffer } = requireConstants(); const { kReadyState, kSentClose, kResponse, kReceivedClose } = requireSymbols(); const { isValidStatusCode, failWebsocketConnection, websocketMessageReceived } = requireUtil(); @@ -25212,7 +25205,7 @@ var hasRequiredSummary; function requireSummary () { if (hasRequiredSummary) return summary; hasRequiredSummary = 1; - (function (exports) { + (function (exports$1) { var __awaiter = (summary && summary.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { @@ -25222,13 +25215,13 @@ function requireSummary () { step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0; + Object.defineProperty(exports$1, "__esModule", { value: true }); + exports$1.summary = exports$1.markdownSummary = exports$1.SUMMARY_DOCS_URL = exports$1.SUMMARY_ENV_VAR = void 0; const os_1 = require$$0; const fs_1 = require$$1; const { access, appendFile, writeFile } = fs_1.promises; - exports.SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY'; - exports.SUMMARY_DOCS_URL = 'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary'; + exports$1.SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY'; + exports$1.SUMMARY_DOCS_URL = 'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary'; class Summary { constructor() { this._buffer = ''; @@ -25244,9 +25237,9 @@ function requireSummary () { if (this._filePath) { return this._filePath; } - const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR]; + const pathFromEnv = process.env[exports$1.SUMMARY_ENV_VAR]; if (!pathFromEnv) { - throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`); + throw new Error(`Unable to find environment variable for $${exports$1.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`); } try { yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK); @@ -25492,8 +25485,8 @@ function requireSummary () { /** * @deprecated use `core.summary` */ - exports.markdownSummary = _summary; - exports.summary = _summary; + exports$1.markdownSummary = _summary; + exports$1.summary = _summary; } (summary)); return summary; @@ -25531,7 +25524,7 @@ function requirePathUtils () { }; Object.defineProperty(pathUtils, "__esModule", { value: true }); pathUtils.toPlatformPath = pathUtils.toWin32Path = pathUtils.toPosixPath = void 0; - const path = __importStar(require$$1$4); + const path = __importStar(require$$1$5); /** * toPosixPath converts the given path to the posix form. On Windows, \\ will be * replaced with /. @@ -25585,7 +25578,7 @@ var hasRequiredIoUtil; function requireIoUtil () { if (hasRequiredIoUtil) return ioUtil; hasRequiredIoUtil = 1; - (function (exports) { + (function (exports$1) { var __createBinding = (ioUtil && ioUtil.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); @@ -25615,22 +25608,22 @@ function requireIoUtil () { }); }; var _a; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.READONLY = exports.UV_FS_O_EXLOCK = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rm = exports.rename = exports.readlink = exports.readdir = exports.open = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0; + Object.defineProperty(exports$1, "__esModule", { value: true }); + exports$1.getCmdPath = exports$1.tryGetExecutablePath = exports$1.isRooted = exports$1.isDirectory = exports$1.exists = exports$1.READONLY = exports$1.UV_FS_O_EXLOCK = exports$1.IS_WINDOWS = exports$1.unlink = exports$1.symlink = exports$1.stat = exports$1.rmdir = exports$1.rm = exports$1.rename = exports$1.readlink = exports$1.readdir = exports$1.open = exports$1.mkdir = exports$1.lstat = exports$1.copyFile = exports$1.chmod = void 0; const fs = __importStar(require$$1); - const path = __importStar(require$$1$4); + const path = __importStar(require$$1$5); _a = fs.promises // export const {open} = 'fs' - , exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.open = _a.open, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rm = _a.rm, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink; + , exports$1.chmod = _a.chmod, exports$1.copyFile = _a.copyFile, exports$1.lstat = _a.lstat, exports$1.mkdir = _a.mkdir, exports$1.open = _a.open, exports$1.readdir = _a.readdir, exports$1.readlink = _a.readlink, exports$1.rename = _a.rename, exports$1.rm = _a.rm, exports$1.rmdir = _a.rmdir, exports$1.stat = _a.stat, exports$1.symlink = _a.symlink, exports$1.unlink = _a.unlink; // export const {open} = 'fs' - exports.IS_WINDOWS = process.platform === 'win32'; + exports$1.IS_WINDOWS = process.platform === 'win32'; // See https://github.com/nodejs/node/blob/d0153aee367422d0858105abec186da4dff0a0c5/deps/uv/include/uv/win.h#L691 - exports.UV_FS_O_EXLOCK = 0x10000000; - exports.READONLY = fs.constants.O_RDONLY; + exports$1.UV_FS_O_EXLOCK = 0x10000000; + exports$1.READONLY = fs.constants.O_RDONLY; function exists(fsPath) { return __awaiter(this, void 0, void 0, function* () { try { - yield exports.stat(fsPath); + yield exports$1.stat(fsPath); } catch (err) { if (err.code === 'ENOENT') { @@ -25641,14 +25634,14 @@ function requireIoUtil () { return true; }); } - exports.exists = exists; + exports$1.exists = exists; function isDirectory(fsPath, useStat = false) { return __awaiter(this, void 0, void 0, function* () { - const stats = useStat ? yield exports.stat(fsPath) : yield exports.lstat(fsPath); + const stats = useStat ? yield exports$1.stat(fsPath) : yield exports$1.lstat(fsPath); return stats.isDirectory(); }); } - exports.isDirectory = isDirectory; + exports$1.isDirectory = isDirectory; /** * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like: * \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases). @@ -25658,13 +25651,13 @@ function requireIoUtil () { if (!p) { throw new Error('isRooted() parameter "p" cannot be empty'); } - if (exports.IS_WINDOWS) { + if (exports$1.IS_WINDOWS) { return (p.startsWith('\\') || /^[A-Z]:/i.test(p) // e.g. \ or \hello or \\hello ); // e.g. C: or C:\hello } return p.startsWith('/'); } - exports.isRooted = isRooted; + exports$1.isRooted = isRooted; /** * Best effort attempt to determine whether a file exists and is executable. * @param filePath file path to check @@ -25676,7 +25669,7 @@ function requireIoUtil () { let stats = undefined; try { // test file exists - stats = yield exports.stat(filePath); + stats = yield exports$1.stat(filePath); } catch (err) { if (err.code !== 'ENOENT') { @@ -25685,7 +25678,7 @@ function requireIoUtil () { } } if (stats && stats.isFile()) { - if (exports.IS_WINDOWS) { + if (exports$1.IS_WINDOWS) { // on Windows, test for valid extension const upperExt = path.extname(filePath).toUpperCase(); if (extensions.some(validExt => validExt.toUpperCase() === upperExt)) { @@ -25704,7 +25697,7 @@ function requireIoUtil () { filePath = originalFilePath + extension; stats = undefined; try { - stats = yield exports.stat(filePath); + stats = yield exports$1.stat(filePath); } catch (err) { if (err.code !== 'ENOENT') { @@ -25713,12 +25706,12 @@ function requireIoUtil () { } } if (stats && stats.isFile()) { - if (exports.IS_WINDOWS) { + if (exports$1.IS_WINDOWS) { // preserve the case of the actual file (since an extension was appended) try { const directory = path.dirname(filePath); const upperName = path.basename(filePath).toUpperCase(); - for (const actualName of yield exports.readdir(directory)) { + for (const actualName of yield exports$1.readdir(directory)) { if (upperName === actualName.toUpperCase()) { filePath = path.join(directory, actualName); break; @@ -25741,10 +25734,10 @@ function requireIoUtil () { return ''; }); } - exports.tryGetExecutablePath = tryGetExecutablePath; + exports$1.tryGetExecutablePath = tryGetExecutablePath; function normalizeSeparators(p) { p = p || ''; - if (exports.IS_WINDOWS) { + if (exports$1.IS_WINDOWS) { // convert slashes on Windows p = p.replace(/\//g, '\\'); // remove redundant slashes @@ -25766,7 +25759,7 @@ function requireIoUtil () { var _a; return (_a = process.env['COMSPEC']) !== null && _a !== void 0 ? _a : `cmd.exe`; } - exports.getCmdPath = getCmdPath; + exports$1.getCmdPath = getCmdPath; } (ioUtil)); return ioUtil; @@ -25808,7 +25801,7 @@ function requireIo () { Object.defineProperty(io, "__esModule", { value: true }); io.findInPath = io.which = io.mkdirP = io.rmRF = io.mv = io.cp = void 0; const assert_1 = require$$0$3; - const path = __importStar(require$$1$4); + const path = __importStar(require$$1$5); const ioUtil = __importStar(requireIoUtil()); /** * Copies a file or folder. @@ -26116,7 +26109,7 @@ function requireToolrunner () { const os = __importStar(require$$0); const events = __importStar(require$$4$1); const child = __importStar(require$$2$3); - const path = __importStar(require$$1$4); + const path = __importStar(require$$1$5); const io = __importStar(requireIo()); const ioUtil = __importStar(requireIoUtil()); const timers_1 = require$$6$1; @@ -26818,7 +26811,7 @@ var hasRequiredPlatform; function requirePlatform () { if (hasRequiredPlatform) return platform; hasRequiredPlatform = 1; - (function (exports) { + (function (exports$1) { var __createBinding = (platform && platform.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -26854,8 +26847,8 @@ function requirePlatform () { var __importDefault = (platform && platform.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getDetails = exports.isLinux = exports.isMacOS = exports.isWindows = exports.arch = exports.platform = void 0; + Object.defineProperty(exports$1, "__esModule", { value: true }); + exports$1.getDetails = exports$1.isLinux = exports$1.isMacOS = exports$1.isWindows = exports$1.arch = exports$1.platform = void 0; const os_1 = __importDefault(require$$0); const exec = __importStar(requireExec()); const getWindowsInfo = () => __awaiter(void 0, void 0, void 0, function* () { @@ -26892,25 +26885,25 @@ function requirePlatform () { version }; }); - exports.platform = os_1.default.platform(); - exports.arch = os_1.default.arch(); - exports.isWindows = exports.platform === 'win32'; - exports.isMacOS = exports.platform === 'darwin'; - exports.isLinux = exports.platform === 'linux'; + exports$1.platform = os_1.default.platform(); + exports$1.arch = os_1.default.arch(); + exports$1.isWindows = exports$1.platform === 'win32'; + exports$1.isMacOS = exports$1.platform === 'darwin'; + exports$1.isLinux = exports$1.platform === 'linux'; function getDetails() { return __awaiter(this, void 0, void 0, function* () { - return Object.assign(Object.assign({}, (yield (exports.isWindows + return Object.assign(Object.assign({}, (yield (exports$1.isWindows ? getWindowsInfo() - : exports.isMacOS + : exports$1.isMacOS ? getMacOsInfo() - : getLinuxInfo()))), { platform: exports.platform, - arch: exports.arch, - isWindows: exports.isWindows, - isMacOS: exports.isMacOS, - isLinux: exports.isLinux }); + : getLinuxInfo()))), { platform: exports$1.platform, + arch: exports$1.arch, + isWindows: exports$1.isWindows, + isMacOS: exports$1.isMacOS, + isLinux: exports$1.isLinux }); }); } - exports.getDetails = getDetails; + exports$1.getDetails = getDetails; } (platform)); return platform; @@ -26921,7 +26914,7 @@ var hasRequiredCore; function requireCore () { if (hasRequiredCore) return core; hasRequiredCore = 1; - (function (exports) { + (function (exports$1) { var __createBinding = (core && core.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -26954,13 +26947,13 @@ function requireCore () { step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.platform = exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = exports.markdownSummary = exports.summary = exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; + Object.defineProperty(exports$1, "__esModule", { value: true }); + exports$1.platform = exports$1.toPlatformPath = exports$1.toWin32Path = exports$1.toPosixPath = exports$1.markdownSummary = exports$1.summary = exports$1.getIDToken = exports$1.getState = exports$1.saveState = exports$1.group = exports$1.endGroup = exports$1.startGroup = exports$1.info = exports$1.notice = exports$1.warning = exports$1.error = exports$1.debug = exports$1.isDebug = exports$1.setFailed = exports$1.setCommandEcho = exports$1.setOutput = exports$1.getBooleanInput = exports$1.getMultilineInput = exports$1.getInput = exports$1.addPath = exports$1.setSecret = exports$1.exportVariable = exports$1.ExitCode = void 0; const command_1 = requireCommand(); const file_command_1 = requireFileCommand(); const utils_1 = requireUtils$3(); const os = __importStar(require$$0); - const path = __importStar(require$$1$4); + const path = __importStar(require$$1$5); const oidc_utils_1 = requireOidcUtils(); /** * The code to exit an action @@ -26975,7 +26968,7 @@ function requireCore () { * A code indicating that the action was a failure */ ExitCode[ExitCode["Failure"] = 1] = "Failure"; - })(ExitCode || (exports.ExitCode = ExitCode = {})); + })(ExitCode || (exports$1.ExitCode = ExitCode = {})); //----------------------------------------------------------------------- // Variables //----------------------------------------------------------------------- @@ -26994,7 +26987,7 @@ function requireCore () { } (0, command_1.issueCommand)('set-env', { name }, convertedVal); } - exports.exportVariable = exportVariable; + exports$1.exportVariable = exportVariable; /** * Registers a secret which will get masked from logs * @param secret value of the secret @@ -27002,7 +26995,7 @@ function requireCore () { function setSecret(secret) { (0, command_1.issueCommand)('add-mask', {}, secret); } - exports.setSecret = setSecret; + exports$1.setSecret = setSecret; /** * Prepends inputPath to the PATH (for this action and future actions) * @param inputPath @@ -27017,7 +27010,7 @@ function requireCore () { } process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; } - exports.addPath = addPath; + exports$1.addPath = addPath; /** * Gets the value of an input. * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed. @@ -27037,7 +27030,7 @@ function requireCore () { } return val.trim(); } - exports.getInput = getInput; + exports$1.getInput = getInput; /** * Gets the values of an multiline input. Each value is also trimmed. * @@ -27055,7 +27048,7 @@ function requireCore () { } return inputs.map(input => input.trim()); } - exports.getMultilineInput = getMultilineInput; + exports$1.getMultilineInput = getMultilineInput; /** * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification. * Support boolean input list: `true | True | TRUE | false | False | FALSE` . @@ -27077,7 +27070,7 @@ function requireCore () { throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` + `Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); } - exports.getBooleanInput = getBooleanInput; + exports$1.getBooleanInput = getBooleanInput; /** * Sets the value of an output. * @@ -27093,7 +27086,7 @@ function requireCore () { process.stdout.write(os.EOL); (0, command_1.issueCommand)('set-output', { name }, (0, utils_1.toCommandValue)(value)); } - exports.setOutput = setOutput; + exports$1.setOutput = setOutput; /** * Enables or disables the echoing of commands into stdout for the rest of the step. * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set. @@ -27102,7 +27095,7 @@ function requireCore () { function setCommandEcho(enabled) { (0, command_1.issue)('echo', enabled ? 'on' : 'off'); } - exports.setCommandEcho = setCommandEcho; + exports$1.setCommandEcho = setCommandEcho; //----------------------------------------------------------------------- // Results //----------------------------------------------------------------------- @@ -27115,7 +27108,7 @@ function requireCore () { process.exitCode = ExitCode.Failure; error(message); } - exports.setFailed = setFailed; + exports$1.setFailed = setFailed; //----------------------------------------------------------------------- // Logging Commands //----------------------------------------------------------------------- @@ -27125,7 +27118,7 @@ function requireCore () { function isDebug() { return process.env['RUNNER_DEBUG'] === '1'; } - exports.isDebug = isDebug; + exports$1.isDebug = isDebug; /** * Writes debug message to user log * @param message debug message @@ -27133,7 +27126,7 @@ function requireCore () { function debug(message) { (0, command_1.issueCommand)('debug', {}, message); } - exports.debug = debug; + exports$1.debug = debug; /** * Adds an error issue * @param message error issue message. Errors will be converted to string via toString() @@ -27142,7 +27135,7 @@ function requireCore () { function error(message, properties = {}) { (0, command_1.issueCommand)('error', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); } - exports.error = error; + exports$1.error = error; /** * Adds a warning issue * @param message warning issue message. Errors will be converted to string via toString() @@ -27151,7 +27144,7 @@ function requireCore () { function warning(message, properties = {}) { (0, command_1.issueCommand)('warning', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); } - exports.warning = warning; + exports$1.warning = warning; /** * Adds a notice issue * @param message notice issue message. Errors will be converted to string via toString() @@ -27160,7 +27153,7 @@ function requireCore () { function notice(message, properties = {}) { (0, command_1.issueCommand)('notice', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); } - exports.notice = notice; + exports$1.notice = notice; /** * Writes info to log with console.log. * @param message info message @@ -27168,7 +27161,7 @@ function requireCore () { function info(message) { process.stdout.write(message + os.EOL); } - exports.info = info; + exports$1.info = info; /** * Begin an output group. * @@ -27179,14 +27172,14 @@ function requireCore () { function startGroup(name) { (0, command_1.issue)('group', name); } - exports.startGroup = startGroup; + exports$1.startGroup = startGroup; /** * End an output group. */ function endGroup() { (0, command_1.issue)('endgroup'); } - exports.endGroup = endGroup; + exports$1.endGroup = endGroup; /** * Wrap an asynchronous function call in a group. * @@ -27208,7 +27201,7 @@ function requireCore () { return result; }); } - exports.group = group; + exports$1.group = group; //----------------------------------------------------------------------- // Wrapper action state //----------------------------------------------------------------------- @@ -27226,7 +27219,7 @@ function requireCore () { } (0, command_1.issueCommand)('save-state', { name }, (0, utils_1.toCommandValue)(value)); } - exports.saveState = saveState; + exports$1.saveState = saveState; /** * Gets the value of an state set by this action's main execution. * @@ -27236,34 +27229,34 @@ function requireCore () { function getState(name) { return process.env[`STATE_${name}`] || ''; } - exports.getState = getState; + exports$1.getState = getState; function getIDToken(aud) { return __awaiter(this, void 0, void 0, function* () { return yield oidc_utils_1.OidcClient.getIDToken(aud); }); } - exports.getIDToken = getIDToken; + exports$1.getIDToken = getIDToken; /** * Summary exports */ var summary_1 = requireSummary(); - Object.defineProperty(exports, "summary", { enumerable: true, get: function () { return summary_1.summary; } }); + Object.defineProperty(exports$1, "summary", { enumerable: true, get: function () { return summary_1.summary; } }); /** * @deprecated use core.summary */ var summary_2 = requireSummary(); - Object.defineProperty(exports, "markdownSummary", { enumerable: true, get: function () { return summary_2.markdownSummary; } }); + Object.defineProperty(exports$1, "markdownSummary", { enumerable: true, get: function () { return summary_2.markdownSummary; } }); /** * Path exports */ var path_utils_1 = requirePathUtils(); - Object.defineProperty(exports, "toPosixPath", { enumerable: true, get: function () { return path_utils_1.toPosixPath; } }); - Object.defineProperty(exports, "toWin32Path", { enumerable: true, get: function () { return path_utils_1.toWin32Path; } }); - Object.defineProperty(exports, "toPlatformPath", { enumerable: true, get: function () { return path_utils_1.toPlatformPath; } }); + Object.defineProperty(exports$1, "toPosixPath", { enumerable: true, get: function () { return path_utils_1.toPosixPath; } }); + Object.defineProperty(exports$1, "toWin32Path", { enumerable: true, get: function () { return path_utils_1.toWin32Path; } }); + Object.defineProperty(exports$1, "toPlatformPath", { enumerable: true, get: function () { return path_utils_1.toPlatformPath; } }); /** * Platform utilities exports */ - exports.platform = __importStar(requirePlatform()); + exports$1.platform = __importStar(requirePlatform()); } (core)); return core; @@ -31114,7 +31107,7 @@ var hasRequiredUtils; function requireUtils () { if (hasRequiredUtils) return utils$1; hasRequiredUtils = 1; - (function (exports) { + (function (exports$1) { var __createBinding = (utils$1 && utils$1.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -31138,24 +31131,24 @@ function requireUtils () { __setModuleDefault(result, mod); return result; }; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getOctokitOptions = exports.GitHub = exports.defaults = exports.context = void 0; + Object.defineProperty(exports$1, "__esModule", { value: true }); + exports$1.getOctokitOptions = exports$1.GitHub = exports$1.defaults = exports$1.context = void 0; const Context = __importStar(requireContext()); const Utils = __importStar(requireUtils$1()); // octokit + plugins const core_1 = require$$2; const plugin_rest_endpoint_methods_1 = require$$3; const plugin_paginate_rest_1 = require$$4; - exports.context = new Context.Context(); + exports$1.context = new Context.Context(); const baseUrl = Utils.getApiBaseUrl(); - exports.defaults = { + exports$1.defaults = { baseUrl, request: { agent: Utils.getProxyAgent(baseUrl), fetch: Utils.getProxyFetch(baseUrl) } }; - exports.GitHub = core_1.Octokit.plugin(plugin_rest_endpoint_methods_1.restEndpointMethods, plugin_paginate_rest_1.paginateRest).defaults(exports.defaults); + exports$1.GitHub = core_1.Octokit.plugin(plugin_rest_endpoint_methods_1.restEndpointMethods, plugin_paginate_rest_1.paginateRest).defaults(exports$1.defaults); /** * Convience function to correctly format Octokit Options to pass into the constructor. * @@ -31171,7 +31164,7 @@ function requireUtils () { } return opts; } - exports.getOctokitOptions = getOctokitOptions; + exports$1.getOctokitOptions = getOctokitOptions; } (utils$1)); return utils$1;