mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-03-24 15:51:36 +00:00
update
This commit is contained in:
21
node_modules/async-neocities-tmp/index.js
generated
vendored
21
node_modules/async-neocities-tmp/index.js
generated
vendored
@@ -153,23 +153,18 @@ class NeocitiesAPIClient {
|
|||||||
statsCb: () => {},
|
statsCb: () => {},
|
||||||
...opts
|
...opts
|
||||||
}
|
}
|
||||||
const getRemoteFiles = this.list()
|
|
||||||
const [localFiles, remoteFiles] = Promise.all([
|
const [localFiles, remoteFiles] = await Promise.all([
|
||||||
afw.allFiles(path.join(folder), { shaper: f => f }),
|
afw.allFiles(folder, { shaper: f => f }),
|
||||||
getRemoteFiles
|
this.list()
|
||||||
])
|
])
|
||||||
|
|
||||||
const { filesToUpload, filesToDelete, filesSkipped } = await neocitiesLocalDiff(remoteFiles, localFiles)
|
const { filesToUpload, filesToDelete, filesSkipped } = await neocitiesLocalDiff(remoteFiles.files, localFiles)
|
||||||
opts.statsCb({ filesToUpload, filesToDelete, filesSkipped })
|
opts.statsCb({ filesToUpload, filesToDelete, filesSkipped })
|
||||||
const work = []
|
const work = [this.upload(filesToUpload)]
|
||||||
const uploadJob = this.upload(filesToUpload)
|
if (opts.cleanup) { work.push(this.delete(filesToDelete)) }
|
||||||
work.push(uploadJob)
|
|
||||||
if (opts.cleanup) {
|
|
||||||
const deleteJob = this.delete(filesToDelete)
|
|
||||||
work.push(deleteJob)
|
|
||||||
}
|
|
||||||
|
|
||||||
await work
|
await Promise.all(work)
|
||||||
|
|
||||||
return { filesToUpload, filesToDelete, filesSkipped }
|
return { filesToUpload, filesToDelete, filesSkipped }
|
||||||
}
|
}
|
||||||
|
|||||||
20
node_modules/async-neocities-tmp/package.json
generated
vendored
20
node_modules/async-neocities-tmp/package.json
generated
vendored
@@ -1,26 +1,26 @@
|
|||||||
{
|
{
|
||||||
"_from": "async-neocities-tmp@0.0.5",
|
"_from": "async-neocities-tmp@0.0.8",
|
||||||
"_id": "async-neocities-tmp@0.0.5",
|
"_id": "async-neocities-tmp@0.0.8",
|
||||||
"_inBundle": false,
|
"_inBundle": false,
|
||||||
"_integrity": "sha512-jEu2qT3rpMa7P+aRHdhnF7lNBHJJpV+Bf3FoypIqSNn0gCi1FG+0ujsZ8eMbR/k0hu709Ar4r6WaVGDvp3npYQ==",
|
"_integrity": "sha512-7WRDMN4/h+OkOiTzX7NC9pmx8OJL2e/bwwAH6EUHAQLhled7a9NrIXw1hV+sZMVWH3NhmpPxWr6nfGEqmtE2GA==",
|
||||||
"_location": "/async-neocities-tmp",
|
"_location": "/async-neocities-tmp",
|
||||||
"_phantomChildren": {},
|
"_phantomChildren": {},
|
||||||
"_requested": {
|
"_requested": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"registry": true,
|
"registry": true,
|
||||||
"raw": "async-neocities-tmp@0.0.5",
|
"raw": "async-neocities-tmp@0.0.8",
|
||||||
"name": "async-neocities-tmp",
|
"name": "async-neocities-tmp",
|
||||||
"escapedName": "async-neocities-tmp",
|
"escapedName": "async-neocities-tmp",
|
||||||
"rawSpec": "0.0.5",
|
"rawSpec": "0.0.8",
|
||||||
"saveSpec": null,
|
"saveSpec": null,
|
||||||
"fetchSpec": "0.0.5"
|
"fetchSpec": "0.0.8"
|
||||||
},
|
},
|
||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
"/"
|
"/"
|
||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/async-neocities-tmp/-/async-neocities-tmp-0.0.5.tgz",
|
"_resolved": "https://registry.npmjs.org/async-neocities-tmp/-/async-neocities-tmp-0.0.8.tgz",
|
||||||
"_shasum": "dca9ee7fbb2847aebc29d3cb6e4981845abaca39",
|
"_shasum": "9b7a2a7bd8df8fc1c868f5a69013b4125b247b5d",
|
||||||
"_spec": "async-neocities-tmp@0.0.5",
|
"_spec": "async-neocities-tmp@0.0.8",
|
||||||
"_where": "/Users/bret/repos/deploy-to-neocities",
|
"_where": "/Users/bret/repos/deploy-to-neocities",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Bret Comnes",
|
"name": "Bret Comnes",
|
||||||
@@ -68,5 +68,5 @@
|
|||||||
"dist"
|
"dist"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"version": "0.0.5"
|
"version": "0.0.8"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "1.2.2",
|
"@actions/core": "1.2.2",
|
||||||
"@actions/github": "2.1.0",
|
"@actions/github": "2.1.0",
|
||||||
"async-neocities-tmp": "0.0.5"
|
"async-neocities-tmp": "0.0.8"
|
||||||
},
|
},
|
||||||
"standard": {
|
"standard": {
|
||||||
"ignore": [
|
"ignore": [
|
||||||
|
|||||||
Reference in New Issue
Block a user