Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Jan 16, 2025
1 parent fb32d81 commit ea37d1c
Show file tree
Hide file tree
Showing 3 changed files with 520 additions and 605 deletions.
165 changes: 50 additions & 115 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6388,15 +6388,19 @@ var require_semver = __commonJS({
}
});

// node_modules/.pnpm/@actions[email protected].1/node_modules/@actions/tool-cache/lib/manifest.js
// node_modules/.pnpm/@actions[email protected].2/node_modules/@actions/tool-cache/lib/manifest.js
var require_manifest = __commonJS({
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/tool-cache/lib/manifest.js"(exports2, module2) {
"node_modules/.pnpm/@[email protected].2/node_modules/@actions/tool-cache/lib/manifest.js"(exports2, module2) {
"use strict";
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() {
return m[k];
} });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() {
return m[k];
} };
}
Object.defineProperty(o, k2, desc);
} : function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
o[k2] = m[k];
Expand All @@ -6410,7 +6414,7 @@ var require_manifest = __commonJS({
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) {
for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
}
__setModuleDefault(result, mod);
return result;
Expand Down Expand Up @@ -6457,10 +6461,10 @@ var require_manifest = __commonJS({
let file;
for (const candidate of candidates) {
const version2 = candidate.version;
core_1.debug(`check ${version2} satisfies ${versionSpec}`);
(0, core_1.debug)(`check ${version2} satisfies ${versionSpec}`);
if (semver.satisfies(version2, versionSpec) && (!stable || candidate.stable === stable)) {
file = candidate.files.find((item) => {
core_1.debug(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);
(0, core_1.debug)(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);
let chk = item.arch === archFilter && item.platform === platFilter;
if (chk && item.platform_version) {
const osVersion = module2.exports._getOsVersion();
Expand All @@ -6473,7 +6477,7 @@ var require_manifest = __commonJS({
return chk;
});
if (file) {
core_1.debug(`matched ${candidate.version}`);
(0, core_1.debug)(`matched ${candidate.version}`);
match = candidate;
break;
}
Expand Down Expand Up @@ -6523,89 +6527,19 @@ var require_manifest = __commonJS({
}
});

// node_modules/.pnpm/[email protected]/node_modules/uuid/lib/rng.js
var require_rng = __commonJS({
"node_modules/.pnpm/[email protected]/node_modules/uuid/lib/rng.js"(exports2, module2) {
var crypto = require("crypto");
module2.exports = function nodeRNG() {
return crypto.randomBytes(16);
};
}
});

// node_modules/.pnpm/[email protected]/node_modules/uuid/lib/bytesToUuid.js
var require_bytesToUuid = __commonJS({
"node_modules/.pnpm/[email protected]/node_modules/uuid/lib/bytesToUuid.js"(exports2, module2) {
var byteToHex = [];
for (i = 0; i < 256; ++i) {
byteToHex[i] = (i + 256).toString(16).substr(1);
}
var i;
function bytesToUuid(buf, offset) {
var i2 = offset || 0;
var bth = byteToHex;
return [
bth[buf[i2++]],
bth[buf[i2++]],
bth[buf[i2++]],
bth[buf[i2++]],
"-",
bth[buf[i2++]],
bth[buf[i2++]],
"-",
bth[buf[i2++]],
bth[buf[i2++]],
"-",
bth[buf[i2++]],
bth[buf[i2++]],
"-",
bth[buf[i2++]],
bth[buf[i2++]],
bth[buf[i2++]],
bth[buf[i2++]],
bth[buf[i2++]],
bth[buf[i2++]]
].join("");
}
module2.exports = bytesToUuid;
}
});

// node_modules/.pnpm/[email protected]/node_modules/uuid/v4.js
var require_v4 = __commonJS({
"node_modules/.pnpm/[email protected]/node_modules/uuid/v4.js"(exports2, module2) {
var rng = require_rng();
var bytesToUuid = require_bytesToUuid();
function v4(options, buf, offset) {
var i = buf && offset || 0;
if (typeof options == "string") {
buf = options === "binary" ? new Array(16) : null;
options = null;
}
options = options || {};
var rnds = options.random || (options.rng || rng)();
rnds[6] = rnds[6] & 15 | 64;
rnds[8] = rnds[8] & 63 | 128;
if (buf) {
for (var ii = 0; ii < 16; ++ii) {
buf[i + ii] = rnds[ii];
}
}
return buf || bytesToUuid(rnds);
}
module2.exports = v4;
}
});

// node_modules/.pnpm/@actions[email protected]/node_modules/@actions/tool-cache/lib/retry-helper.js
// node_modules/.pnpm/@actions[email protected]/node_modules/@actions/tool-cache/lib/retry-helper.js
var require_retry_helper = __commonJS({
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/tool-cache/lib/retry-helper.js"(exports2) {
"node_modules/.pnpm/@[email protected].2/node_modules/@actions/tool-cache/lib/retry-helper.js"(exports2) {
"use strict";
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() {
return m[k];
} });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() {
return m[k];
} };
}
Object.defineProperty(o, k2, desc);
} : function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
o[k2] = m[k];
Expand All @@ -6619,7 +6553,7 @@ var require_retry_helper = __commonJS({
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) {
for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
}
__setModuleDefault(result, mod);
return result;
Expand Down Expand Up @@ -6699,15 +6633,19 @@ var require_retry_helper = __commonJS({
}
});

// node_modules/.pnpm/@actions[email protected].1/node_modules/@actions/tool-cache/lib/tool-cache.js
// node_modules/.pnpm/@actions[email protected].2/node_modules/@actions/tool-cache/lib/tool-cache.js
var require_tool_cache = __commonJS({
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/tool-cache/lib/tool-cache.js"(exports2) {
"node_modules/.pnpm/@[email protected].2/node_modules/@actions/tool-cache/lib/tool-cache.js"(exports2) {
"use strict";
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() {
return m[k];
} });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() {
return m[k];
} };
}
Object.defineProperty(o, k2, desc);
} : function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
o[k2] = m[k];
Expand All @@ -6721,7 +6659,7 @@ var require_tool_cache = __commonJS({
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) {
for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
}
__setModuleDefault(result, mod);
return result;
Expand Down Expand Up @@ -6753,13 +6691,11 @@ var require_tool_cache = __commonJS({
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
return mod && mod.__esModule ? mod : { "default": mod };
};
Object.defineProperty(exports2, "__esModule", { value: true });
exports2.evaluateVersions = exports2.isExplicitVersion = exports2.findFromManifest = exports2.getManifestFromRepo = exports2.findAllVersions = exports2.find = exports2.cacheFile = exports2.cacheDir = exports2.extractZip = exports2.extractXar = exports2.extractTar = exports2.extract7z = exports2.downloadTool = exports2.HTTPError = void 0;
var core3 = __importStar(require_core());
var io = __importStar(require_io());
var crypto = __importStar(require("crypto"));
var fs2 = __importStar(require("fs"));
var mm = __importStar(require_manifest());
var os = __importStar(require("os"));
Expand All @@ -6769,7 +6705,6 @@ var require_tool_cache = __commonJS({
var stream = __importStar(require("stream"));
var util = __importStar(require("util"));
var assert_1 = require("assert");
var v4_1 = __importDefault(require_v4());
var exec_1 = require_exec();
var retry_helper_1 = require_retry_helper();
var HTTPError = class extends Error {
Expand All @@ -6785,7 +6720,7 @@ var require_tool_cache = __commonJS({
var userAgent = "actions/tool-cache";
function downloadTool2(url, dest, auth, headers) {
return __awaiter(this, void 0, void 0, function* () {
dest = dest || path3.join(_getTempDirectory(), v4_1.default());
dest = dest || path3.join(_getTempDirectory(), crypto.randomUUID());
yield io.mkdirP(path3.dirname(dest));
core3.debug(`Downloading ${url}`);
core3.debug(`Destination ${dest}`);
Expand Down Expand Up @@ -6850,8 +6785,8 @@ var require_tool_cache = __commonJS({
}
function extract7z(file, dest, _7zPath) {
return __awaiter(this, void 0, void 0, function* () {
assert_1.ok(IS_WINDOWS, "extract7z() not supported on current OS");
assert_1.ok(file, 'parameter "file" is required');
(0, assert_1.ok)(IS_WINDOWS, "extract7z() not supported on current OS");
(0, assert_1.ok)(file, 'parameter "file" is required');
dest = yield _createExtractFolder(dest);
const originalCwd = process.cwd();
process.chdir(dest);
Expand All @@ -6868,7 +6803,7 @@ var require_tool_cache = __commonJS({
const options = {
silent: true
};
yield exec_1.exec(`"${_7zPath}"`, args, options);
yield (0, exec_1.exec)(`"${_7zPath}"`, args, options);
} finally {
process.chdir(originalCwd);
}
Expand All @@ -6892,7 +6827,7 @@ var require_tool_cache = __commonJS({
};
try {
const powershellPath = yield io.which("powershell", true);
yield exec_1.exec(`"${powershellPath}"`, args, options);
yield (0, exec_1.exec)(`"${powershellPath}"`, args, options);
} finally {
process.chdir(originalCwd);
}
Expand All @@ -6909,7 +6844,7 @@ var require_tool_cache = __commonJS({
dest = yield _createExtractFolder(dest);
core3.debug("Checking tar --version");
let versionOutput = "";
yield exec_1.exec("tar --version", [], {
yield (0, exec_1.exec)("tar --version", [], {
ignoreReturnCode: true,
silent: true,
listeners: {
Expand Down Expand Up @@ -6940,15 +6875,15 @@ var require_tool_cache = __commonJS({
args.push("--overwrite");
}
args.push("-C", destArg, "-f", fileArg);
yield exec_1.exec(`tar`, args);
yield (0, exec_1.exec)(`tar`, args);
return dest;
});
}
exports2.extractTar = extractTar2;
function extractXar(file, dest, flags = []) {
return __awaiter(this, void 0, void 0, function* () {
assert_1.ok(IS_MAC, "extractXar() not supported on current OS");
assert_1.ok(file, 'parameter "file" is required');
(0, assert_1.ok)(IS_MAC, "extractXar() not supported on current OS");
(0, assert_1.ok)(file, 'parameter "file" is required');
dest = yield _createExtractFolder(dest);
let args;
if (flags instanceof Array) {
Expand All @@ -6961,7 +6896,7 @@ var require_tool_cache = __commonJS({
args.push("-v");
}
const xarPath = yield io.which("xar", true);
yield exec_1.exec(`"${xarPath}"`, _unique(args));
yield (0, exec_1.exec)(`"${xarPath}"`, _unique(args));
return dest;
});
}
Expand Down Expand Up @@ -7003,7 +6938,7 @@ var require_tool_cache = __commonJS({
pwshCommand
];
core3.debug(`Using pwsh at path: ${pwshPath}`);
yield exec_1.exec(`"${pwshPath}"`, args);
yield (0, exec_1.exec)(`"${pwshPath}"`, args);
} else {
const powershellCommand = [
`$ErrorActionPreference = 'Stop' ;`,
Expand All @@ -7023,7 +6958,7 @@ var require_tool_cache = __commonJS({
];
const powershellPath = yield io.which("powershell", true);
core3.debug(`Using powershell at path: ${powershellPath}`);
yield exec_1.exec(`"${powershellPath}"`, args);
yield (0, exec_1.exec)(`"${powershellPath}"`, args);
}
});
}
Expand All @@ -7035,7 +6970,7 @@ var require_tool_cache = __commonJS({
args.unshift("-q");
}
args.unshift("-o");
yield exec_1.exec(`"${unzipPath}"`, args, { cwd: dest });
yield (0, exec_1.exec)(`"${unzipPath}"`, args, { cwd: dest });
});
}
function cacheDir2(sourceDir, tool, version2, arch) {
Expand Down Expand Up @@ -7166,7 +7101,7 @@ var require_tool_cache = __commonJS({
function _createExtractFolder(dest) {
return __awaiter(this, void 0, void 0, function* () {
if (!dest) {
dest = path3.join(_getTempDirectory(), v4_1.default());
dest = path3.join(_getTempDirectory(), crypto.randomUUID());
}
yield io.mkdirP(dest);
return dest;
Expand Down Expand Up @@ -7224,12 +7159,12 @@ var require_tool_cache = __commonJS({
exports2.evaluateVersions = evaluateVersions;
function _getCacheDirectory() {
const cacheDirectory = process.env["RUNNER_TOOL_CACHE"] || "";
assert_1.ok(cacheDirectory, "Expected RUNNER_TOOL_CACHE to be defined");
(0, assert_1.ok)(cacheDirectory, "Expected RUNNER_TOOL_CACHE to be defined");
return cacheDirectory;
}
function _getTempDirectory() {
const tempDirectory = process.env["RUNNER_TEMP"] || "";
assert_1.ok(tempDirectory, "Expected RUNNER_TEMP to be defined");
(0, assert_1.ok)(tempDirectory, "Expected RUNNER_TEMP to be defined");
return tempDirectory;
}
function _getGlobal(key, defaultValue) {
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dependencies": {
"@actions/core": "^1.11.1",
"@actions/http-client": "~2.1.1",
"@actions/tool-cache": "^2.0.1",
"@actions/tool-cache": "^2.0.2",
"@badrap/valita": "^0.4.2",
"@iarna/toml": "^2.2.5",
"jsonc-parser": "^3.3.1",
Expand All @@ -27,23 +27,23 @@
"devDependencies": {
"@tsconfig/node20": "^20.1.4",
"@tsconfig/strictest": "^2.0.5",
"@types/node": "^20.17.9",
"@types/node": "^20.17.14",
"@types/semver": "^6.2.7",
"@types/shell-quote": "^1.7.5",
"@types/which": "^3.0.4",
"@vitest/coverage-v8": "^2.1.8",
"dprint": "^0.47.6",
"esbuild": "^0.24.0",
"eslint": "^9.16.0",
"dprint": "^0.48.0",
"esbuild": "^0.24.2",
"eslint": "^9.18.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-unicorn": "^56.0.1",
"globals": "^15.13.0",
"globals": "^15.14.0",
"husky": "^9.1.7",
"jest-serializer-path": "^0.1.15",
"klona": "^2.0.6",
"rimraf": "^6.0.1",
"typescript": "~5.7.2",
"typescript-eslint": "^8.17.0",
"typescript": "~5.7.3",
"typescript-eslint": "^8.20.0",
"vitest": "^2.1.8"
},
"overrides": {
Expand Down Expand Up @@ -75,5 +75,5 @@
"after:git:release": "(git tag -d v2 && git push origin :refs/tags/v2) || true && git tag v2 && git push origin v2"
}
},
"packageManager": "[email protected].0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
"packageManager": "[email protected].4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0"
}
Loading

0 comments on commit ea37d1c

Please sign in to comment.