@actions/cache
Advanced tools
Comparing version 3.2.2 to 3.2.3
@@ -73,3 +73,4 @@ "use strict"; | ||
function getCacheVersion(paths, compressionMethod, enableCrossOsArchive = false) { | ||
const components = paths; | ||
// don't pass changes upstream | ||
const components = paths.slice(); | ||
// Add compression method to cache version to restore | ||
@@ -76,0 +77,0 @@ // compressed cache as per compression method |
@@ -94,22 +94,17 @@ "use strict"; | ||
try { | ||
for (var _e = true, _f = __asyncValues(globber.globGenerator()), _g; _g = yield _f.next(), _a = _g.done, !_a;) { | ||
for (var _e = true, _f = __asyncValues(globber.globGenerator()), _g; _g = yield _f.next(), _a = _g.done, !_a; _e = true) { | ||
_c = _g.value; | ||
_e = false; | ||
try { | ||
const file = _c; | ||
const relativeFile = path | ||
.relative(workspace, file) | ||
.replace(new RegExp(`\\${path.sep}`, 'g'), '/'); | ||
core.debug(`Matched: ${relativeFile}`); | ||
// Paths are made relative so the tar entries are all relative to the root of the workspace. | ||
if (relativeFile === '') { | ||
// path.relative returns empty string if workspace and file are equal | ||
paths.push('.'); | ||
} | ||
else { | ||
paths.push(`${relativeFile}`); | ||
} | ||
const file = _c; | ||
const relativeFile = path | ||
.relative(workspace, file) | ||
.replace(new RegExp(`\\${path.sep}`, 'g'), '/'); | ||
core.debug(`Matched: ${relativeFile}`); | ||
// Paths are made relative so the tar entries are all relative to the root of the workspace. | ||
if (relativeFile === '') { | ||
// path.relative returns empty string if workspace and file are equal | ||
paths.push('.'); | ||
} | ||
finally { | ||
_e = true; | ||
else { | ||
paths.push(`${relativeFile}`); | ||
} | ||
@@ -116,0 +111,0 @@ } |
@@ -8,3 +8,3 @@ "use strict"; | ||
CacheFilename["Zstd"] = "cache.tzst"; | ||
})(CacheFilename = exports.CacheFilename || (exports.CacheFilename = {})); | ||
})(CacheFilename || (exports.CacheFilename = CacheFilename = {})); | ||
var CompressionMethod; | ||
@@ -17,3 +17,3 @@ (function (CompressionMethod) { | ||
CompressionMethod["Zstd"] = "zstd"; | ||
})(CompressionMethod = exports.CompressionMethod || (exports.CompressionMethod = {})); | ||
})(CompressionMethod || (exports.CompressionMethod = CompressionMethod = {})); | ||
var ArchiveToolType; | ||
@@ -23,3 +23,3 @@ (function (ArchiveToolType) { | ||
ArchiveToolType["BSD"] = "bsd"; | ||
})(ArchiveToolType = exports.ArchiveToolType || (exports.ArchiveToolType = {})); | ||
})(ArchiveToolType || (exports.ArchiveToolType = ArchiveToolType = {})); | ||
// The default number of retry attempts. | ||
@@ -26,0 +26,0 @@ exports.DefaultRetryAttempts = 2; |
{ | ||
"name": "@actions/cache", | ||
"version": "3.2.2", | ||
"version": "3.2.3", | ||
"preview": true, | ||
@@ -48,3 +48,3 @@ "description": "Actions cache lib", | ||
"@azure/storage-blob": "^12.13.0", | ||
"semver": "^6.1.0", | ||
"semver": "^6.3.1", | ||
"uuid": "^3.3.3" | ||
@@ -55,4 +55,4 @@ }, | ||
"@types/uuid": "^3.4.5", | ||
"typescript": "^4.8.0" | ||
"typescript": "^5.2.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129804
1855
Updatedsemver@^6.3.1