mirror of
https://github.com/actions/cache.git
synced 2024-11-23 02:11:27 +01:00
Remove unused definitions
This commit is contained in:
parent
2c12373f75
commit
067f6f3474
4 changed files with 32 additions and 32 deletions
16
dist/restore-only/index.js
vendored
16
dist/restore-only/index.js
vendored
|
@ -5958,10 +5958,10 @@ function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArch
|
||||||
const cacheServiceVersion = config.getCacheServiceVersion();
|
const cacheServiceVersion = config.getCacheServiceVersion();
|
||||||
switch (cacheServiceVersion) {
|
switch (cacheServiceVersion) {
|
||||||
case 'v2':
|
case 'v2':
|
||||||
return yield restoreCachev2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
|
return yield restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
|
||||||
case 'v1':
|
case 'v1':
|
||||||
default:
|
default:
|
||||||
return yield restoreCachev1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
|
return yield restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -5976,7 +5976,7 @@ exports.restoreCache = restoreCache;
|
||||||
* @param enableCrossOsArchive
|
* @param enableCrossOsArchive
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
function restoreCachev1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
|
function restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
restoreKeys = restoreKeys || [];
|
restoreKeys = restoreKeys || [];
|
||||||
const keys = [primaryKey, ...restoreKeys];
|
const keys = [primaryKey, ...restoreKeys];
|
||||||
|
@ -6049,7 +6049,7 @@ function restoreCachev1(paths, primaryKey, restoreKeys, options, enableCrossOsAr
|
||||||
* @param enableCrossOsArchive an optional boolean enabled to restore on windows any cache created on any platform
|
* @param enableCrossOsArchive an optional boolean enabled to restore on windows any cache created on any platform
|
||||||
* @returns string returns the key for the cache hit, otherwise returns undefined
|
* @returns string returns the key for the cache hit, otherwise returns undefined
|
||||||
*/
|
*/
|
||||||
function restoreCachev2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
|
function restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
restoreKeys = restoreKeys || [];
|
restoreKeys = restoreKeys || [];
|
||||||
const keys = [primaryKey, ...restoreKeys];
|
const keys = [primaryKey, ...restoreKeys];
|
||||||
|
@ -6127,10 +6127,10 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
|
||||||
const cacheServiceVersion = config.getCacheServiceVersion();
|
const cacheServiceVersion = config.getCacheServiceVersion();
|
||||||
switch (cacheServiceVersion) {
|
switch (cacheServiceVersion) {
|
||||||
case 'v2':
|
case 'v2':
|
||||||
return yield saveCachev2(paths, key, options, enableCrossOsArchive);
|
return yield saveCacheV2(paths, key, options, enableCrossOsArchive);
|
||||||
case 'v1':
|
case 'v1':
|
||||||
default:
|
default:
|
||||||
return yield saveCachev1(paths, key, options, enableCrossOsArchive);
|
return yield saveCacheV1(paths, key, options, enableCrossOsArchive);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -6144,7 +6144,7 @@ exports.saveCache = saveCache;
|
||||||
* @param enableCrossOsArchive
|
* @param enableCrossOsArchive
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
function saveCachev1(paths, key, options, enableCrossOsArchive = false) {
|
function saveCacheV1(paths, key, options, enableCrossOsArchive = false) {
|
||||||
var _a, _b, _c, _d, _e;
|
var _a, _b, _c, _d, _e;
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const compressionMethod = yield utils.getCompressionMethod();
|
const compressionMethod = yield utils.getCompressionMethod();
|
||||||
|
@ -6221,7 +6221,7 @@ function saveCachev1(paths, key, options, enableCrossOsArchive = false) {
|
||||||
* @param enableCrossOsArchive
|
* @param enableCrossOsArchive
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
function saveCachev2(paths, key, options, enableCrossOsArchive = false) {
|
function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
// BackendIds are retrieved form the signed JWT
|
// BackendIds are retrieved form the signed JWT
|
||||||
const backendIds = utils.getBackendIdsFromToken();
|
const backendIds = utils.getBackendIdsFromToken();
|
||||||
|
|
16
dist/restore/index.js
vendored
16
dist/restore/index.js
vendored
|
@ -5958,10 +5958,10 @@ function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArch
|
||||||
const cacheServiceVersion = config.getCacheServiceVersion();
|
const cacheServiceVersion = config.getCacheServiceVersion();
|
||||||
switch (cacheServiceVersion) {
|
switch (cacheServiceVersion) {
|
||||||
case 'v2':
|
case 'v2':
|
||||||
return yield restoreCachev2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
|
return yield restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
|
||||||
case 'v1':
|
case 'v1':
|
||||||
default:
|
default:
|
||||||
return yield restoreCachev1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
|
return yield restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -5976,7 +5976,7 @@ exports.restoreCache = restoreCache;
|
||||||
* @param enableCrossOsArchive
|
* @param enableCrossOsArchive
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
function restoreCachev1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
|
function restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
restoreKeys = restoreKeys || [];
|
restoreKeys = restoreKeys || [];
|
||||||
const keys = [primaryKey, ...restoreKeys];
|
const keys = [primaryKey, ...restoreKeys];
|
||||||
|
@ -6049,7 +6049,7 @@ function restoreCachev1(paths, primaryKey, restoreKeys, options, enableCrossOsAr
|
||||||
* @param enableCrossOsArchive an optional boolean enabled to restore on windows any cache created on any platform
|
* @param enableCrossOsArchive an optional boolean enabled to restore on windows any cache created on any platform
|
||||||
* @returns string returns the key for the cache hit, otherwise returns undefined
|
* @returns string returns the key for the cache hit, otherwise returns undefined
|
||||||
*/
|
*/
|
||||||
function restoreCachev2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
|
function restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
restoreKeys = restoreKeys || [];
|
restoreKeys = restoreKeys || [];
|
||||||
const keys = [primaryKey, ...restoreKeys];
|
const keys = [primaryKey, ...restoreKeys];
|
||||||
|
@ -6127,10 +6127,10 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
|
||||||
const cacheServiceVersion = config.getCacheServiceVersion();
|
const cacheServiceVersion = config.getCacheServiceVersion();
|
||||||
switch (cacheServiceVersion) {
|
switch (cacheServiceVersion) {
|
||||||
case 'v2':
|
case 'v2':
|
||||||
return yield saveCachev2(paths, key, options, enableCrossOsArchive);
|
return yield saveCacheV2(paths, key, options, enableCrossOsArchive);
|
||||||
case 'v1':
|
case 'v1':
|
||||||
default:
|
default:
|
||||||
return yield saveCachev1(paths, key, options, enableCrossOsArchive);
|
return yield saveCacheV1(paths, key, options, enableCrossOsArchive);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -6144,7 +6144,7 @@ exports.saveCache = saveCache;
|
||||||
* @param enableCrossOsArchive
|
* @param enableCrossOsArchive
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
function saveCachev1(paths, key, options, enableCrossOsArchive = false) {
|
function saveCacheV1(paths, key, options, enableCrossOsArchive = false) {
|
||||||
var _a, _b, _c, _d, _e;
|
var _a, _b, _c, _d, _e;
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const compressionMethod = yield utils.getCompressionMethod();
|
const compressionMethod = yield utils.getCompressionMethod();
|
||||||
|
@ -6221,7 +6221,7 @@ function saveCachev1(paths, key, options, enableCrossOsArchive = false) {
|
||||||
* @param enableCrossOsArchive
|
* @param enableCrossOsArchive
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
function saveCachev2(paths, key, options, enableCrossOsArchive = false) {
|
function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
// BackendIds are retrieved form the signed JWT
|
// BackendIds are retrieved form the signed JWT
|
||||||
const backendIds = utils.getBackendIdsFromToken();
|
const backendIds = utils.getBackendIdsFromToken();
|
||||||
|
|
16
dist/save-only/index.js
vendored
16
dist/save-only/index.js
vendored
|
@ -5958,10 +5958,10 @@ function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArch
|
||||||
const cacheServiceVersion = config.getCacheServiceVersion();
|
const cacheServiceVersion = config.getCacheServiceVersion();
|
||||||
switch (cacheServiceVersion) {
|
switch (cacheServiceVersion) {
|
||||||
case 'v2':
|
case 'v2':
|
||||||
return yield restoreCachev2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
|
return yield restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
|
||||||
case 'v1':
|
case 'v1':
|
||||||
default:
|
default:
|
||||||
return yield restoreCachev1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
|
return yield restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -5976,7 +5976,7 @@ exports.restoreCache = restoreCache;
|
||||||
* @param enableCrossOsArchive
|
* @param enableCrossOsArchive
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
function restoreCachev1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
|
function restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
restoreKeys = restoreKeys || [];
|
restoreKeys = restoreKeys || [];
|
||||||
const keys = [primaryKey, ...restoreKeys];
|
const keys = [primaryKey, ...restoreKeys];
|
||||||
|
@ -6049,7 +6049,7 @@ function restoreCachev1(paths, primaryKey, restoreKeys, options, enableCrossOsAr
|
||||||
* @param enableCrossOsArchive an optional boolean enabled to restore on windows any cache created on any platform
|
* @param enableCrossOsArchive an optional boolean enabled to restore on windows any cache created on any platform
|
||||||
* @returns string returns the key for the cache hit, otherwise returns undefined
|
* @returns string returns the key for the cache hit, otherwise returns undefined
|
||||||
*/
|
*/
|
||||||
function restoreCachev2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
|
function restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
restoreKeys = restoreKeys || [];
|
restoreKeys = restoreKeys || [];
|
||||||
const keys = [primaryKey, ...restoreKeys];
|
const keys = [primaryKey, ...restoreKeys];
|
||||||
|
@ -6127,10 +6127,10 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
|
||||||
const cacheServiceVersion = config.getCacheServiceVersion();
|
const cacheServiceVersion = config.getCacheServiceVersion();
|
||||||
switch (cacheServiceVersion) {
|
switch (cacheServiceVersion) {
|
||||||
case 'v2':
|
case 'v2':
|
||||||
return yield saveCachev2(paths, key, options, enableCrossOsArchive);
|
return yield saveCacheV2(paths, key, options, enableCrossOsArchive);
|
||||||
case 'v1':
|
case 'v1':
|
||||||
default:
|
default:
|
||||||
return yield saveCachev1(paths, key, options, enableCrossOsArchive);
|
return yield saveCacheV1(paths, key, options, enableCrossOsArchive);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -6144,7 +6144,7 @@ exports.saveCache = saveCache;
|
||||||
* @param enableCrossOsArchive
|
* @param enableCrossOsArchive
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
function saveCachev1(paths, key, options, enableCrossOsArchive = false) {
|
function saveCacheV1(paths, key, options, enableCrossOsArchive = false) {
|
||||||
var _a, _b, _c, _d, _e;
|
var _a, _b, _c, _d, _e;
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const compressionMethod = yield utils.getCompressionMethod();
|
const compressionMethod = yield utils.getCompressionMethod();
|
||||||
|
@ -6221,7 +6221,7 @@ function saveCachev1(paths, key, options, enableCrossOsArchive = false) {
|
||||||
* @param enableCrossOsArchive
|
* @param enableCrossOsArchive
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
function saveCachev2(paths, key, options, enableCrossOsArchive = false) {
|
function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
// BackendIds are retrieved form the signed JWT
|
// BackendIds are retrieved form the signed JWT
|
||||||
const backendIds = utils.getBackendIdsFromToken();
|
const backendIds = utils.getBackendIdsFromToken();
|
||||||
|
|
16
dist/save/index.js
vendored
16
dist/save/index.js
vendored
|
@ -5958,10 +5958,10 @@ function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArch
|
||||||
const cacheServiceVersion = config.getCacheServiceVersion();
|
const cacheServiceVersion = config.getCacheServiceVersion();
|
||||||
switch (cacheServiceVersion) {
|
switch (cacheServiceVersion) {
|
||||||
case 'v2':
|
case 'v2':
|
||||||
return yield restoreCachev2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
|
return yield restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
|
||||||
case 'v1':
|
case 'v1':
|
||||||
default:
|
default:
|
||||||
return yield restoreCachev1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
|
return yield restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -5976,7 +5976,7 @@ exports.restoreCache = restoreCache;
|
||||||
* @param enableCrossOsArchive
|
* @param enableCrossOsArchive
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
function restoreCachev1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
|
function restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
restoreKeys = restoreKeys || [];
|
restoreKeys = restoreKeys || [];
|
||||||
const keys = [primaryKey, ...restoreKeys];
|
const keys = [primaryKey, ...restoreKeys];
|
||||||
|
@ -6049,7 +6049,7 @@ function restoreCachev1(paths, primaryKey, restoreKeys, options, enableCrossOsAr
|
||||||
* @param enableCrossOsArchive an optional boolean enabled to restore on windows any cache created on any platform
|
* @param enableCrossOsArchive an optional boolean enabled to restore on windows any cache created on any platform
|
||||||
* @returns string returns the key for the cache hit, otherwise returns undefined
|
* @returns string returns the key for the cache hit, otherwise returns undefined
|
||||||
*/
|
*/
|
||||||
function restoreCachev2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
|
function restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
restoreKeys = restoreKeys || [];
|
restoreKeys = restoreKeys || [];
|
||||||
const keys = [primaryKey, ...restoreKeys];
|
const keys = [primaryKey, ...restoreKeys];
|
||||||
|
@ -6127,10 +6127,10 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
|
||||||
const cacheServiceVersion = config.getCacheServiceVersion();
|
const cacheServiceVersion = config.getCacheServiceVersion();
|
||||||
switch (cacheServiceVersion) {
|
switch (cacheServiceVersion) {
|
||||||
case 'v2':
|
case 'v2':
|
||||||
return yield saveCachev2(paths, key, options, enableCrossOsArchive);
|
return yield saveCacheV2(paths, key, options, enableCrossOsArchive);
|
||||||
case 'v1':
|
case 'v1':
|
||||||
default:
|
default:
|
||||||
return yield saveCachev1(paths, key, options, enableCrossOsArchive);
|
return yield saveCacheV1(paths, key, options, enableCrossOsArchive);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -6144,7 +6144,7 @@ exports.saveCache = saveCache;
|
||||||
* @param enableCrossOsArchive
|
* @param enableCrossOsArchive
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
function saveCachev1(paths, key, options, enableCrossOsArchive = false) {
|
function saveCacheV1(paths, key, options, enableCrossOsArchive = false) {
|
||||||
var _a, _b, _c, _d, _e;
|
var _a, _b, _c, _d, _e;
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const compressionMethod = yield utils.getCompressionMethod();
|
const compressionMethod = yield utils.getCompressionMethod();
|
||||||
|
@ -6221,7 +6221,7 @@ function saveCachev1(paths, key, options, enableCrossOsArchive = false) {
|
||||||
* @param enableCrossOsArchive
|
* @param enableCrossOsArchive
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
function saveCachev2(paths, key, options, enableCrossOsArchive = false) {
|
function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
// BackendIds are retrieved form the signed JWT
|
// BackendIds are retrieved form the signed JWT
|
||||||
const backendIds = utils.getBackendIdsFromToken();
|
const backendIds = utils.getBackendIdsFromToken();
|
||||||
|
|
Loading…
Reference in a new issue