From fc9f4dc3ad2b0a3bbe6f00b907c822f4e1509218 Mon Sep 17 00:00:00 2001 From: Bret Comnes Date: Mon, 10 Feb 2020 13:51:34 -0700 Subject: [PATCH] bumps --- node_modules/@actions/core/package.json | 12 +++++----- node_modules/@actions/github/package.json | 12 +++++----- node_modules/async-neocities-tmp/index.js | 13 +++++++---- node_modules/async-neocities-tmp/package.json | 22 +++++++++---------- package.json | 6 ++--- 5 files changed, 35 insertions(+), 30 deletions(-) diff --git a/node_modules/@actions/core/package.json b/node_modules/@actions/core/package.json index 2a00bc0..9f39f1a 100644 --- a/node_modules/@actions/core/package.json +++ b/node_modules/@actions/core/package.json @@ -1,27 +1,27 @@ { - "_from": "@actions/core@^1.2.2", + "_from": "@actions/core@1.2.2", "_id": "@actions/core@1.2.2", "_inBundle": false, "_integrity": "sha512-IbCx7oefq+Gi6FWbSs2Fnw8VkEI6Y4gvjrYprY3RV//ksq/KPMlClOerJ4jRosyal6zkUIc8R9fS/cpRMlGClg==", "_location": "/@actions/core", "_phantomChildren": {}, "_requested": { - "type": "range", + "type": "version", "registry": true, - "raw": "@actions/core@^1.2.2", + "raw": "@actions/core@1.2.2", "name": "@actions/core", "escapedName": "@actions%2fcore", "scope": "@actions", - "rawSpec": "^1.2.2", + "rawSpec": "1.2.2", "saveSpec": null, - "fetchSpec": "^1.2.2" + "fetchSpec": "1.2.2" }, "_requiredBy": [ "/" ], "_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.2.tgz", "_shasum": "3c4848d50378f9e3bcb67bcf97813382ec7369ee", - "_spec": "@actions/core@^1.2.2", + "_spec": "@actions/core@1.2.2", "_where": "/Users/bret/repos/deploy-to-neocities", "bugs": { "url": "https://github.com/actions/toolkit/issues" diff --git a/node_modules/@actions/github/package.json b/node_modules/@actions/github/package.json index ddb8e29..2acfc00 100644 --- a/node_modules/@actions/github/package.json +++ b/node_modules/@actions/github/package.json @@ -1,27 +1,27 @@ { - "_from": "@actions/github@^2.1.0", + "_from": "@actions/github@2.1.0", "_id": "@actions/github@2.1.0", "_inBundle": false, "_integrity": "sha512-G4ncMlh4pLLAvNgHUYUtpWQ1zPf/VYqmRH9oshxLabdaOOnp7i1hgSgzr2xne2YUaSND3uqemd3YYTIsm2f/KQ==", "_location": "/@actions/github", "_phantomChildren": {}, "_requested": { - "type": "range", + "type": "version", "registry": true, - "raw": "@actions/github@^2.1.0", + "raw": "@actions/github@2.1.0", "name": "@actions/github", "escapedName": "@actions%2fgithub", "scope": "@actions", - "rawSpec": "^2.1.0", + "rawSpec": "2.1.0", "saveSpec": null, - "fetchSpec": "^2.1.0" + "fetchSpec": "2.1.0" }, "_requiredBy": [ "/" ], "_resolved": "https://registry.npmjs.org/@actions/github/-/github-2.1.0.tgz", "_shasum": "ca36cfb146b4c8955f3d5f88d8dde5f89194de21", - "_spec": "@actions/github@^2.1.0", + "_spec": "@actions/github@2.1.0", "_where": "/Users/bret/repos/deploy-to-neocities", "bugs": { "url": "https://github.com/actions/toolkit/issues" diff --git a/node_modules/async-neocities-tmp/index.js b/node_modules/async-neocities-tmp/index.js index 5137ab8..d222829 100644 --- a/node_modules/async-neocities-tmp/index.js +++ b/node_modules/async-neocities-tmp/index.js @@ -153,16 +153,21 @@ class NeocitiesAPIClient { statsCb: () => {}, ...opts } - + const getRemoteFiles = this.list() const [localFiles, remoteFiles] = Promise.all([ afw.allFiles(path.join(folder), { shaper: f => f }), - this.list() + getRemoteFiles ]) const { filesToUpload, filesToDelete, filesSkipped } = await neocitiesLocalDiff(remoteFiles, localFiles) opts.statsCb({ filesToUpload, filesToDelete, filesSkipped }) - const work = [this.upload(filesToUpload)] - if (opts.cleanup) work.push(this.delete(filesToDelete)) + const work = [] + const uploadJob = this.upload(filesToUpload) + work.push(uploadJob) + if (opts.cleanup) { + const deleteJob = this.delete(filesToDelete) + work.push(deleteJob) + } await work diff --git a/node_modules/async-neocities-tmp/package.json b/node_modules/async-neocities-tmp/package.json index eef9ef5..e8b58e0 100644 --- a/node_modules/async-neocities-tmp/package.json +++ b/node_modules/async-neocities-tmp/package.json @@ -1,26 +1,26 @@ { - "_from": "async-neocities-tmp@^0.0.4", - "_id": "async-neocities-tmp@0.0.4", + "_from": "async-neocities-tmp@0.0.5", + "_id": "async-neocities-tmp@0.0.5", "_inBundle": false, - "_integrity": "sha512-sJMy3T04IDDxAVBZkqGcGy9NjFMW/rdCA8LC7tCgWYQA6/cGhjrnB85EVcjNWqjekEuogSTwrurblp7ZQxU5ww==", + "_integrity": "sha512-jEu2qT3rpMa7P+aRHdhnF7lNBHJJpV+Bf3FoypIqSNn0gCi1FG+0ujsZ8eMbR/k0hu709Ar4r6WaVGDvp3npYQ==", "_location": "/async-neocities-tmp", "_phantomChildren": {}, "_requested": { - "type": "range", + "type": "version", "registry": true, - "raw": "async-neocities-tmp@^0.0.4", + "raw": "async-neocities-tmp@0.0.5", "name": "async-neocities-tmp", "escapedName": "async-neocities-tmp", - "rawSpec": "^0.0.4", + "rawSpec": "0.0.5", "saveSpec": null, - "fetchSpec": "^0.0.4" + "fetchSpec": "0.0.5" }, "_requiredBy": [ "/" ], - "_resolved": "https://registry.npmjs.org/async-neocities-tmp/-/async-neocities-tmp-0.0.4.tgz", - "_shasum": "f0a2075db8899d149ccf3b8c2fc1893505e7ef3f", - "_spec": "async-neocities-tmp@^0.0.4", + "_resolved": "https://registry.npmjs.org/async-neocities-tmp/-/async-neocities-tmp-0.0.5.tgz", + "_shasum": "dca9ee7fbb2847aebc29d3cb6e4981845abaca39", + "_spec": "async-neocities-tmp@0.0.5", "_where": "/Users/bret/repos/deploy-to-neocities", "author": { "name": "Bret Comnes", @@ -68,5 +68,5 @@ "dist" ] }, - "version": "0.0.4" + "version": "0.0.5" } diff --git a/package.json b/package.json index 5a9b6cf..16c0182 100644 --- a/package.json +++ b/package.json @@ -30,9 +30,9 @@ "tap": "^14.10.5" }, "dependencies": { - "@actions/core": "^1.2.2", - "@actions/github": "^2.1.0", - "async-neocities-tmp": "^0.0.4" + "@actions/core": "1.2.2", + "@actions/github": "2.1.0", + "async-neocities-tmp": "0.0.5" }, "standard": { "ignore": [