Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Commit a8f0f0d

Browse files
authored
NPM dependency updates
* Update development dependencies * Update runtime dependencies
1 parent 951bc8a commit a8f0f0d

8 files changed

+2757
-11007
lines changed

dist/main/index.js

+773-4,891
Large diffs are not rendered by default.

dist/main/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/post/index.js

+771-4,889
Large diffs are not rendered by default.

dist/post/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+1,162-1,172
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -26,29 +26,29 @@
2626
],
2727
"license": "MIT",
2828
"dependencies": {
29-
"@actions/cache": "3.1.4",
29+
"@actions/cache": "3.2.1",
3030
"@actions/core": "1.10.0",
3131
"@actions/exec": "1.1.1",
3232
"@actions/github": "5.1.1",
3333
"@actions/glob": "0.4.0",
34-
"@actions/http-client": "2.0.1",
34+
"@actions/http-client": "2.1.0",
3535
"@actions/tool-cache": "2.0.1",
3636
"string-argv": "0.3.1"
3737
},
3838
"devDependencies": {
39-
"@types/jest": "28.1.7",
4039
"@types/node": "16.11.21",
40+
"@types/jest": "29.5.0",
4141
"@types/unzipper": "0.10.5",
42-
"@typescript-eslint/parser": "5.54.0",
42+
"@typescript-eslint/parser": "5.56.0",
4343
"@vercel/ncc": "0.36.1",
44-
"eslint": "8.35.0",
45-
"eslint-plugin-github": "4.6.1",
44+
"eslint": "8.36.0",
45+
"eslint-plugin-github": "4.7.0",
4646
"eslint-plugin-jest": "27.2.1",
47-
"jest": "28.1.3",
47+
"jest": "29.5.0",
4848
"js-yaml": "4.1.0",
4949
"patch-package": "6.5.1",
50-
"prettier": "2.8.4",
51-
"ts-jest": "28.0.8",
52-
"typescript": "4.9.5"
50+
"prettier": "2.8.7",
51+
"ts-jest": "29.0.5",
52+
"typescript": "5.0.2"
5353
}
5454
}

patches/@actions+cache+3.1.4.patch patches/@actions+cache+3.2.1.patch

+36-37
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,12 @@ index 4658366..b796e58 100644
2626
+ constructor(key: string, size?: number);
2727
+}
2828
diff --git a/node_modules/@actions/cache/lib/cache.js b/node_modules/@actions/cache/lib/cache.js
29-
index 0fa9df3..5f0b173 100644
29+
index 9d636aa..a176bd7 100644
3030
--- a/node_modules/@actions/cache/lib/cache.js
3131
+++ b/node_modules/@actions/cache/lib/cache.js
32-
@@ -97,26 +97,18 @@ function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArch
33-
}
34-
archivePath = path.join(yield utils.createTempDirectory(), utils.getCacheFileName(compressionMethod));
35-
core.debug(`Archive Path: ${archivePath}`);
36-
+ const restoredEntry = new CacheEntry(cacheEntry.cacheKey);
37-
// Download the cache from the cache entry
38-
yield cacheHttpClient.downloadCache(cacheEntry.archiveLocation, archivePath, options);
39-
if (core.isDebug()) {
40-
yield tar_1.listTar(archivePath, compressionMethod);
41-
}
42-
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
43-
+ restoredEntry.size = archiveFileSize;
32+
@@ -127,18 +127,21 @@ function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArch
4433
core.info(`Cache Size: ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B)`);
45-
yield tar_1.extractTar(archivePath, compressionMethod);
34+
yield (0, tar_1.extractTar)(archivePath, compressionMethod);
4635
core.info('Cache restored successfully');
4736
- return cacheEntry.cacheKey;
4837
- }
@@ -55,29 +44,31 @@ index 0fa9df3..5f0b173 100644
5544
- // Supress all non-validation cache related errors because caching should be optional
5645
- core.warning(`Failed to restore: ${error.message}`);
5746
- }
58-
+ return restoredEntry;
47+
+
48+
+ // PATCHED - Return more inforamtion about restored entry
49+
+ return new CacheEntry(cacheEntry.cacheKey, archiveFileSize);;
5950
}
51+
+ // PATCHED - propagate errors
52+
+ // catch (error) {
53+
+ // const typedError = error;
54+
+ // if (typedError.name === ValidationError.name) {
55+
+ // throw error;
56+
+ // }
57+
+ // else {
58+
+ // // Supress all non-validation cache related errors because caching should be optional
59+
+ // core.warning(`Failed to restore: ${error.message}`);
60+
+ // }
61+
+ // }
6062
finally {
6163
// Try to delete the archive to save space
62-
@@ -156,6 +148,7 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
63-
const archiveFolder = yield utils.createTempDirectory();
64-
const archivePath = path.join(archiveFolder, utils.getCacheFileName(compressionMethod));
65-
core.debug(`Archive Path: ${archivePath}`);
66-
+ const savedEntry = new CacheEntry(key);
67-
try {
68-
yield tar_1.createTar(archiveFolder, cachePaths, compressionMethod);
69-
if (core.isDebug()) {
70-
@@ -163,6 +156,7 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
64+
try {
65+
@@ -206,19 +209,23 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
7166
}
72-
const fileSizeLimit = 10 * 1024 * 1024 * 1024; // 10GB per repo limit
73-
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
74-
+ savedEntry.size = archiveFileSize;
75-
core.debug(`File Size: ${archiveFileSize}`);
76-
// For GHES, this check will take place in ReserveCache API with enterprise file size limit
77-
if (archiveFileSize > fileSizeLimit && !utils.isGhes()) {
78-
@@ -186,18 +180,6 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
7967
core.debug(`Saving Cache (ID: ${cacheId})`);
8068
yield cacheHttpClient.saveCache(cacheId, archivePath, options);
69+
+
70+
+ // PATCHED - Return more inforamtion about saved entry
71+
+ return new CacheEntry(key, archiveFileSize);
8172
}
8273
- catch (error) {
8374
- const typedError = error;
@@ -91,15 +82,23 @@ index 0fa9df3..5f0b173 100644
9182
- core.warning(`Failed to save: ${typedError.message}`);
9283
- }
9384
- }
85+
+ // PATCHED - propagate errors
86+
+ // catch (error) {
87+
+ // const typedError = error;
88+
+ // if (typedError.name === ValidationError.name) {
89+
+ // throw error;
90+
+ // }
91+
+ // else if (typedError.name === ReserveCacheError.name) {
92+
+ // core.info(`Failed to save: ${typedError.message}`);
93+
+ // }
94+
+ // else {
95+
+ // core.warning(`Failed to save: ${typedError.message}`);
96+
+ // }
97+
+ // }
9498
finally {
9599
// Try to delete the archive to save space
96100
try {
97-
@@ -207,8 +189,15 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
98-
core.debug(`Failed to delete archive: ${error}`);
99-
}
100-
}
101-
- return cacheId;
102-
+ return savedEntry;
101+
@@ -232,4 +239,11 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
103102
});
104103
}
105104
exports.saveCache = saveCache;

patches/@azure+logger+1.0.3.patch patches/@azure+logger+1.0.4.patch

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
# Patch removes logging of the AZURE_LOG_LEVEL env var value
2-
# This logging triggers a high severity Warning from CodeQL, which can prevent organizational users from adopting the action.
3-
41
diff --git a/node_modules/@azure/logger/dist-esm/src/index.js b/node_modules/@azure/logger/dist-esm/src/index.js
5-
index 116b59e..cf87f3c 100644
2+
index cc25720..2925db5 100644
63
--- a/node_modules/@azure/logger/dist-esm/src/index.js
74
+++ b/node_modules/@azure/logger/dist-esm/src/index.js
85
@@ -20,7 +20,7 @@ if (logLevelFromEnv) {
@@ -15,10 +12,10 @@ index 116b59e..cf87f3c 100644
1512
}
1613
/**
1714
diff --git a/node_modules/@azure/logger/dist/index.js b/node_modules/@azure/logger/dist/index.js
18-
index 327fbdb..4432d73 100644
15+
index 81e97c3..a0e14d8 100644
1916
--- a/node_modules/@azure/logger/dist/index.js
2017
+++ b/node_modules/@azure/logger/dist/index.js
21-
@@ -122,7 +122,7 @@ if (logLevelFromEnv) {
18+
@@ -125,7 +125,7 @@ if (logLevelFromEnv) {
2219
setLogLevel(logLevelFromEnv);
2320
}
2421
else {

0 commit comments

Comments
 (0)