Update dependencies #85

Merged
grahamc merged 2 commits from update-deps into main 2024-05-09 20:29:19 +00:00
3 changed files with 81 additions and 60 deletions
Showing only changes of commit 40590837d0 - Show all commits

48
dist/index.js generated vendored
View file

@ -96378,7 +96378,9 @@ const got = source_create(defaults);
;// CONCATENATED MODULE: external "node:stream/promises"
const external_node_stream_promises_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:stream/promises");
;// CONCATENATED MODULE: ./node_modules/.pnpm/github.com+DeterminateSystems+detsys-ts@d872d42fb693faad3027a08c78620639f23168e1_tj7555e2gallxxhsq2k6pe3ybq/node_modules/detsys-ts/dist/index.js
;// CONCATENATED MODULE: external "node:zlib"
const external_node_zlib_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:zlib");
;// CONCATENATED MODULE: ./node_modules/.pnpm/github.com+DeterminateSystems+detsys-ts@2391ba1ef3d22027cd4d9ecce147007a88f63643_is35d24tynybsms6zejuqsabhi/node_modules/detsys-ts/dist/index.js
var __defProp = Object.defineProperty;
var __export = (target, all) => {
for (var name in all)
@ -96743,7 +96745,11 @@ var getArrayOfStrings = (name, separator) => {
};
var handleString = (input, separator) => {
const sepChar = separator === "comma" ? "," : /\s+/;
return input.trim().split(sepChar).map((s) => s.trim());
const trimmed = input.trim();
if (trimmed === "") {
return [];
}
return trimmed.split(sepChar).map((s) => s.trim());
};
var getMultilineStringOrNull = (name) => {
const value = core.getMultilineInput(name);
@ -96824,6 +96830,8 @@ function constructSourceParameters(legacyPrefix) {
var DEFAULT_IDS_HOST = "https://install.determinate.systems";
var IDS_HOST = process.env["IDS_HOST"] ?? DEFAULT_IDS_HOST;
var EVENT_EXCEPTION = "exception";
@ -96839,6 +96847,7 @@ var IdsToolbox = class {
this.actionOptions = makeOptionsConfident(actionOptions);
this.hookMain = void 0;
this.hookPost = void 0;
this.exceptionAttachments = /* @__PURE__ */ new Map();
this.events = [];
this.client = got_dist_source.extend({
retry: {
@ -96917,6 +96926,17 @@ var IdsToolbox = class {
);
this.recordEvent(`begin_${this.executionPhase}`);
}
/**
* Attach a file to the diagnostics data in error conditions.
*
* The file at `location` doesn't need to exist when stapleFile is called.
*
* If the file doesn't exist or is unreadable when trying to staple the attachments, the JS error will be stored in a context value at `staple_failure_{name}`.
* If the file is readable, the file's contents will be stored in a context value at `staple_value_{name}`.
*/
stapleFile(name, location) {
this.exceptionAttachments.set(name, location);
}
onMain(callback) {
this.hookMain = callback;
}
@ -96929,6 +96949,9 @@ var IdsToolbox = class {
process.exitCode = 1;
});
}
stringifyError(error2) {
return error2 instanceof Error || typeof error2 == "string" ? error2.toString() : JSON.stringify(error2);
}
async executeAsync() {
try {
process.env.DETSYS_CORRELATION = JSON.stringify(
@ -96946,14 +96969,31 @@ var IdsToolbox = class {
this.addFact(FACT_ENDED_WITH_EXCEPTION, false);
} catch (error2) {
this.addFact(FACT_ENDED_WITH_EXCEPTION, true);
const reportable = error2 instanceof Error || typeof error2 == "string" ? error2.toString() : JSON.stringify(error2);
const reportable = this.stringifyError(error2);
this.addFact(FACT_FINAL_EXCEPTION, reportable);
if (this.executionPhase === "post") {
core.warning(reportable);
} else {
core.setFailed(reportable);
}
this.recordEvent(EVENT_EXCEPTION);
const do_gzip = (0,external_node_util_.promisify)(external_node_zlib_namespaceObject.gzip);
const exceptionContext = /* @__PURE__ */ new Map();
for (const [attachmentLabel, filePath] of this.exceptionAttachments) {
try {
const logText = (0,external_node_fs_namespaceObject.readFileSync)(filePath);
const buf = await do_gzip(logText);
exceptionContext.set(
`staple_value_${attachmentLabel}`,
buf.toString("base64")
);
} catch (e) {
exceptionContext.set(
`staple_failure_${attachmentLabel}`,
this.stringifyError(e)
);
}
}
this.recordEvent(EVENT_EXCEPTION, Object.fromEntries(exceptionContext));
} finally {
await this.complete();
}

View file

@ -33,7 +33,7 @@
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/node": "^20.12.9",
"@types/node": "^20.12.11",
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@vercel/ncc": "^0.38.1",

View file

@ -16,7 +16,7 @@ dependencies:
version: 5.1.1
detsys-ts:
specifier: github:DeterminateSystems/detsys-ts
version: github.com/DeterminateSystems/detsys-ts/d872d42fb693faad3027a08c78620639f23168e1
version: github.com/DeterminateSystems/detsys-ts/2391ba1ef3d22027cd4d9ecce147007a88f63643
string-argv:
specifier: ^0.3.2
version: 0.3.2
@ -26,8 +26,8 @@ devDependencies:
specifier: ^4.3.0
version: 4.3.0(prettier@3.2.5)
"@types/node":
specifier: ^20.12.9
version: 20.12.9
specifier: ^20.12.11
version: 20.12.11
"@types/uuid":
specifier: ^9.0.8
version: 9.0.8
@ -1327,14 +1327,14 @@ packages:
integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==,
}
dependencies:
"@types/node": 20.12.9
"@types/node": 20.12.11
form-data: 4.0.0
dev: false
/@types/node@20.12.9:
/@types/node@20.12.11:
resolution:
{
integrity: sha512-o93r47yu04MHumPBCFg0bMPBMNgtMg3jzbhl7e68z50+BMHmRMGDJv13eBlUgOdc9i/uoJXGMGYLtJV4ReTXEg==,
integrity: sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw==,
}
dependencies:
undici-types: 5.26.5
@ -1352,7 +1352,7 @@ packages:
integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==,
}
dependencies:
"@types/node": 20.12.9
"@types/node": 20.12.11
dev: false
/@types/uuid@9.0.8:
@ -1387,7 +1387,7 @@ packages:
graphemer: 1.4.0
ignore: 5.3.1
natural-compare: 1.4.0
semver: 7.6.0
semver: 7.6.2
ts-api-utils: 1.3.0(typescript@5.4.5)
typescript: 5.4.5
transitivePeerDependencies:
@ -1478,7 +1478,7 @@ packages:
globby: 11.1.0
is-glob: 4.0.3
minimatch: 9.0.4
semver: 7.6.0
semver: 7.6.2
ts-api-utils: 1.3.0(typescript@5.4.5)
typescript: 5.4.5
transitivePeerDependencies:
@ -1501,7 +1501,7 @@ packages:
"@typescript-eslint/types": 7.8.0
"@typescript-eslint/typescript-estree": 7.8.0(typescript@5.4.5)
eslint: 8.57.0
semver: 7.6.0
semver: 7.6.2
transitivePeerDependencies:
- supports-color
- typescript
@ -1843,8 +1843,8 @@ packages:
engines: { node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7 }
hasBin: true
dependencies:
caniuse-lite: 1.0.30001616
electron-to-chromium: 1.4.756
caniuse-lite: 1.0.30001617
electron-to-chromium: 1.4.761
node-releases: 2.0.14
update-browserslist-db: 1.0.15(browserslist@4.23.0)
dev: true
@ -1916,10 +1916,10 @@ packages:
engines: { node: ">=6" }
dev: true
/caniuse-lite@1.0.30001616:
/caniuse-lite@1.0.30001617:
resolution:
{
integrity: sha512-RHVYKov7IcdNjVHJFNY/78RdG4oGVjbayxv8u5IO74Wv7Hlq4PnJE6mo/OjFijjVFNy5ijnCt6H3IIo4t+wfEw==,
integrity: sha512-mLyjzNI9I+Pix8zwcrpxEbGlfqOkF9kM3ptzmKNw5tizSyYwMe+nGLTqMK9cO+0E+Bh6TsBxNAaHWEM8xwSsmA==,
}
dev: true
@ -2214,10 +2214,10 @@ packages:
}
dev: true
/electron-to-chromium@1.4.756:
/electron-to-chromium@1.4.761:
resolution:
{
integrity: sha512-RJKZ9+vEBMeiPAvKNWyZjuYyUqMndcP1f335oHqn3BEQbs2NFtVrnK5+6Xg5wSM9TknNNpWghGDUCKGYF+xWXw==,
integrity: sha512-PIbxpiJGx6Bb8dQaonNc6CGTRlVntdLg/2nMa1YhnrwYOORY9a3ZgGN0UQYE6lAcj/lkyduJN7BPt/JiY+jAQQ==,
}
dev: true
@ -2235,10 +2235,10 @@ packages:
}
dev: true
/enhanced-resolve@5.16.0:
/enhanced-resolve@5.16.1:
resolution:
{
integrity: sha512-O+QWCviPNSSLAD9Ucn8Awv+poAkqn3T1XY5/N7kR7rQO9yfSGWkYZDwpJ+iKF7B8rxaQKWngSqACpgzeapSyoA==,
integrity: sha512-4U5pNsuDl0EhuZpq46M5xPslstkviJuhrdobaRDBk2Jy2KO37FDAJl4lb2KlNabxT0m4MTK2UHNrsAcphE8nyw==,
}
engines: { node: ">=10.13.0" }
dependencies:
@ -2479,12 +2479,12 @@ packages:
eslint-plugin-import: "*"
dependencies:
debug: 4.3.4
enhanced-resolve: 5.16.0
enhanced-resolve: 5.16.1
eslint: 8.57.0
eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.8.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0)
eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.8.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0)
fast-glob: 3.3.2
get-tsconfig: 4.7.4
get-tsconfig: 4.7.5
is-core-module: 2.13.1
is-glob: 4.0.3
transitivePeerDependencies:
@ -3110,10 +3110,10 @@ packages:
get-intrinsic: 1.2.4
dev: true
/get-tsconfig@4.7.4:
/get-tsconfig@4.7.5:
resolution:
{
integrity: sha512-ofbkKj+0pjXjhejr007J/fLf+sW+8H7K5GCm+msC8q3IpvgjobpyPqSRFemNyIMxklC0zeJpi7VDFna19FacvQ==,
integrity: sha512-ZCuZCnlqNzjb4QprAzXKdpp/gh6KTxSJuw3IBsPnV/7fV4NxC9ckB+vPTt8w7fJA0TaSD7c55BR47JD6MEDyDw==,
}
dependencies:
resolve-pkg-maps: 1.0.0
@ -3139,10 +3139,10 @@ packages:
is-glob: 4.0.3
dev: true
/glob@10.3.12:
/glob@10.3.14:
resolution:
{
integrity: sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg==,
integrity: sha512-4fkAqu93xe9Mk7le9v0y3VrPDqLKHarNi2s4Pv7f2yOvfhWfhc7hRPHC/JyqMqb8B/Dt/eGS4n7ykwf3fOsl8g==,
}
engines: { node: ">=16 || 14 >=14.17" }
hasBin: true
@ -3150,8 +3150,8 @@ packages:
foreground-child: 3.1.1
jackspeak: 2.3.6
minimatch: 9.0.4
minipass: 7.1.0
path-scurry: 1.10.2
minipass: 7.1.1
path-scurry: 1.11.0
dev: true
/glob@7.2.3:
@ -3940,16 +3940,6 @@ packages:
engines: { node: 14 || >=16.14 }
dev: true
/lru-cache@6.0.0:
resolution:
{
integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==,
}
engines: { node: ">=10" }
dependencies:
yallist: 4.0.0
dev: true
/merge-stream@2.0.0:
resolution:
{
@ -4043,10 +4033,10 @@ packages:
}
dev: true
/minipass@7.1.0:
/minipass@7.1.1:
resolution:
{
integrity: sha512-oGZRv2OT1lO2UF1zUcwdTb3wqUwI0kBGTgt/T7OdSj6M6N5m3o5uPf0AIW6lVxGGoiWUR7e2AwTE+xiwK8WQig==,
integrity: sha512-UZ7eQ+h8ywIRAW1hIEl2AqdwzJucU/Kp59+8kkZeSvafXhZjul247BvIJjEVFVeON6d7lM46XX1HXCduKAS8VA==,
}
engines: { node: ">=16 || 14 >=14.17" }
dev: true
@ -4318,15 +4308,15 @@ packages:
}
dev: true
/path-scurry@1.10.2:
/path-scurry@1.11.0:
resolution:
{
integrity: sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA==,
integrity: sha512-LNHTaVkzaYaLGlO+0u3rQTz7QrHTFOuKyba9JMTQutkmtNew8dw8wOD7mTU/5fCPZzCWpfW0XnQKzY61P0aTaw==,
}
engines: { node: ">=16 || 14 >=14.17" }
dependencies:
lru-cache: 10.2.2
minipass: 7.1.0
minipass: 7.1.1
dev: true
/path-type@4.0.0:
@ -4638,15 +4628,13 @@ packages:
}
hasBin: true
/semver@7.6.0:
/semver@7.6.2:
resolution:
{
integrity: sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==,
integrity: sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==,
}
engines: { node: ">=10" }
hasBin: true
dependencies:
lru-cache: 6.0.0
dev: true
/set-function-length@1.2.2:
@ -4871,7 +4859,7 @@ packages:
dependencies:
"@jridgewell/gen-mapping": 0.3.5
commander: 4.1.1
glob: 10.3.12
glob: 10.3.14
lines-and-columns: 1.2.4
mz: 2.7.0
pirates: 4.0.6
@ -5416,13 +5404,6 @@ packages:
engines: { node: ">=4.0" }
dev: false
/yallist@4.0.0:
resolution:
{
integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==,
}
dev: true
/yaml@2.4.2:
resolution:
{
@ -5440,10 +5421,10 @@ packages:
engines: { node: ">=10" }
dev: true
github.com/DeterminateSystems/detsys-ts/d872d42fb693faad3027a08c78620639f23168e1:
github.com/DeterminateSystems/detsys-ts/2391ba1ef3d22027cd4d9ecce147007a88f63643:
resolution:
{
tarball: https://codeload.github.com/DeterminateSystems/detsys-ts/tar.gz/d872d42fb693faad3027a08c78620639f23168e1,
tarball: https://codeload.github.com/DeterminateSystems/detsys-ts/tar.gz/2391ba1ef3d22027cd4d9ecce147007a88f63643,
}
name: detsys-ts
version: 1.0.0