Commit d59a1464 authored by Dave Hadka's avatar Dave Hadka
Browse files

Upgrade to cache 1.0.1

parent 481a91ba
Loading
Loading
Loading
Loading
+4 −3
Changes for dist/restore/index.js: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -1022,7 +1022,7 @@ const semver = __importStar(__webpack_require__(280));
const util = __importStar(__webpack_require__(669));
const uuid_1 = __webpack_require__(898);
const constants_1 = __webpack_require__(931);
// From https://github.com/actions/toolkit/blob/master/packages/tool-cache/src/tool-cache.ts#L23
// From https://github.com/actions/toolkit/blob/main/packages/tool-cache/src/tool-cache.ts#L23
function createTempDirectory() {
    return __awaiter(this, void 0, void 0, function* () {
        const IS_WINDOWS = process.platform === 'win32';
@@ -4444,9 +4444,10 @@ function downloadCacheStorageSDK(archiveLocation, archivePath, options) {
            try {
                downloadProgress.startDisplayTimer();
                while (!downloadProgress.isDone()) {
                    const segmentSize = Math.min(maxSegmentSize, contentLength - downloadProgress.segmentOffset);
                    const segmentStart = downloadProgress.segmentOffset + downloadProgress.segmentSize;
                    const segmentSize = Math.min(maxSegmentSize, contentLength - segmentStart);
                    downloadProgress.nextSegment(segmentSize);
                    const result = yield client.downloadToBuffer(downloadProgress.segmentOffset, segmentSize, {
                    const result = yield client.downloadToBuffer(segmentStart, segmentSize, {
                        concurrency: options.downloadConcurrency,
                        onProgress: downloadProgress.onProgress()
                    });
+4 −3
Changes for dist/save/index.js: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -1022,7 +1022,7 @@ const semver = __importStar(__webpack_require__(280));
const util = __importStar(__webpack_require__(669));
const uuid_1 = __webpack_require__(898);
const constants_1 = __webpack_require__(931);
// From https://github.com/actions/toolkit/blob/master/packages/tool-cache/src/tool-cache.ts#L23
// From https://github.com/actions/toolkit/blob/main/packages/tool-cache/src/tool-cache.ts#L23
function createTempDirectory() {
    return __awaiter(this, void 0, void 0, function* () {
        const IS_WINDOWS = process.platform === 'win32';
@@ -4444,9 +4444,10 @@ function downloadCacheStorageSDK(archiveLocation, archivePath, options) {
            try {
                downloadProgress.startDisplayTimer();
                while (!downloadProgress.isDone()) {
                    const segmentSize = Math.min(maxSegmentSize, contentLength - downloadProgress.segmentOffset);
                    const segmentStart = downloadProgress.segmentOffset + downloadProgress.segmentSize;
                    const segmentSize = Math.min(maxSegmentSize, contentLength - segmentStart);
                    downloadProgress.nextSegment(segmentSize);
                    const result = yield client.downloadToBuffer(downloadProgress.segmentOffset, segmentSize, {
                    const result = yield client.downloadToBuffer(segmentStart, segmentSize, {
                        concurrency: options.downloadConcurrency,
                        onProgress: downloadProgress.onProgress()
                    });
+3 −3
Changes for package-lock.json: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -5,9 +5,9 @@
  "requires": true,
  "dependencies": {
    "@actions/cache": {
      "version": "1.0.0",
      "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-1.0.0.tgz",
      "integrity": "sha512-4gF8XNRhZpFNZJL/rzlnZ2H63P+3USLamvhkhIv5v2JKkEkRvgGVnaQ3kY0LAwYXai82U1wVQhn9cegIUxgRQg==",
      "version": "1.0.1",
      "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-1.0.1.tgz",
      "integrity": "sha512-QyMKGZTVB6bRBIMNEoW74LeqYtbY7cSaWNvaT1uqhzjredaW+vNFxv9XF/cyipzwZBVZgizOF2zpdVYnP0UVYg==",
      "requires": {
        "@actions/core": "^1.2.4",
        "@actions/exec": "^1.0.1",
+1 −1
Changes for package.json: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@
    "@actions/core": "^1.2.0",
    "@actions/exec": "^1.0.1",
    "@actions/io": "^1.0.1",
    "@actions/cache": "^1.0.0"
    "@actions/cache": "^1.0.1"
  },
  "devDependencies": {
    "@types/jest": "^24.0.13",