Compare commits

...

6 Commits

Author SHA1 Message Date
Bret Comnes
0dd3a06ef7 0.0.10 2020-02-13 11:59:16 -07:00
Bret Comnes
bf2d333152 chore: deps 2020-02-13 11:58:33 -07:00
Bret Comnes
f13458cc2d 0.0.9 2020-02-13 11:54:18 -07:00
Bret Comnes
5e6f9848c7 chore: update deps 2020-02-13 11:53:43 -07:00
Bret Comnes
fad2c4a165 0.0.8 2020-02-13 11:46:12 -07:00
Bret Comnes
1638c39428 chore: update async-neocities to 1.1.3 2020-02-13 11:45:29 -07:00
5 changed files with 53 additions and 14 deletions

View File

@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
## [v0.0.10](https://github.com/bcomnes/deploy-to-neocities/compare/v0.0.9...v0.0.10) - 2020-02-13
### Commits
- chore: deps [`bf2d333`](https://github.com/bcomnes/deploy-to-neocities/commit/bf2d333152be116ec87d35592c8cb9ee4ef6821b)
## [v0.0.9](https://github.com/bcomnes/deploy-to-neocities/compare/v0.0.8...v0.0.9) - 2020-02-13
### Commits
- chore: update deps [`5e6f984`](https://github.com/bcomnes/deploy-to-neocities/commit/5e6f9848c78a5f3a668b47a27dc14835005bf98c)
## [v0.0.8](https://github.com/bcomnes/deploy-to-neocities/compare/v0.0.7...v0.0.8) - 2020-02-13
### Commits
- chore: update async-neocities to 1.1.3 [`1638c39`](https://github.com/bcomnes/deploy-to-neocities/commit/1638c394287dcf61bcf439a387dbefc2e68b2128)
## [v0.0.7](https://github.com/bcomnes/deploy-to-neocities/compare/v0.0.6...v0.0.7) - 2020-02-13
### Commits

View File

@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
## [v1.1.5](https://github.com/bcomnes/async-neocities/compare/v1.1.4...v1.1.5) - 2020-02-13
### Commits
- bug: Log last stats before clear [`c4c83f8`](https://github.com/bcomnes/async-neocities/commit/c4c83f8e329303404dfec6a2943d8b01783040ad)
## [v1.1.4](https://github.com/bcomnes/async-neocities/compare/v1.1.3...v1.1.4) - 2020-02-13
### Commits
- bug: fix logging handler logic [`f6c5921`](https://github.com/bcomnes/async-neocities/commit/f6c5921d6fd0a420c5895ed6ba2fe2f766e726fd)
## [v1.1.3](https://github.com/bcomnes/async-neocities/compare/v1.1.2...v1.1.3) - 2020-02-13
### Commits
- refactor: Stop logging progress when the stream has been read. [`3ce0fc4`](https://github.com/bcomnes/async-neocities/commit/3ce0fc452acbbbd28c39b53a3a9a4318a8019c09)
## [v1.1.2](https://github.com/bcomnes/async-neocities/compare/v1.1.1...v1.1.2) - 2020-02-13
### Commits

View File

@@ -35,13 +35,16 @@ function statsHandler (opts = {}) {
function progressHandler (stats) {
Object.assign(lastStats, stats)
if (!stats.complete) {
if (!stats.complete && stats.progress < 1) {
if (!progressInterval) {
progressInterval = setInterval(logProgress, 500, lastStats)
logProgress(lastStats)
}
} else {
if (progressInterval) clearInterval(progressInterval)
if (progressInterval) {
clearInterval(progressInterval)
logProgress(lastStats)
}
}
}

View File

@@ -1,26 +1,26 @@
{
"_from": "async-neocities@1.1.2",
"_id": "async-neocities@1.1.2",
"_from": "async-neocities@1.1.5",
"_id": "async-neocities@1.1.5",
"_inBundle": false,
"_integrity": "sha512-Pe7dwjZYb85T0g7YgPjbbhGUa5WlIVVwCrieoPj3urCIN1lVDWSu39OiBkG61Wbi+VDxoJqaa7qWoKC7etSVDw==",
"_integrity": "sha512-7EHFjdmPACBQ2prEr7wUQsIi9bVXrD5tpR9PTmDndmZn5U+0uPe6dQxuk+xKI6BLizQVQVKjjODPTI+De5rlTA==",
"_location": "/async-neocities",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "async-neocities@1.1.2",
"raw": "async-neocities@1.1.5",
"name": "async-neocities",
"escapedName": "async-neocities",
"rawSpec": "1.1.2",
"rawSpec": "1.1.5",
"saveSpec": null,
"fetchSpec": "1.1.2"
"fetchSpec": "1.1.5"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/async-neocities/-/async-neocities-1.1.2.tgz",
"_shasum": "275c86c483cfb6360835ba792bc0ba985c9a889a",
"_spec": "async-neocities@1.1.2",
"_resolved": "https://registry.npmjs.org/async-neocities/-/async-neocities-1.1.5.tgz",
"_shasum": "b9d31cf903ff6253beaf9012201bfae97908436f",
"_spec": "async-neocities@1.1.5",
"_where": "/Users/bret/repos/deploy-to-neocities",
"author": {
"name": "Bret Comnes",
@@ -80,5 +80,5 @@
"dist"
]
},
"version": "1.1.2"
"version": "1.1.5"
}

View File

@@ -1,6 +1,6 @@
{
"name": "deploy-to-neocities",
"version": "0.0.7",
"version": "0.0.10",
"description": "Github Action to deplpoy a folder to Neocities.org",
"main": "index.js",
"private": true,
@@ -39,7 +39,7 @@
"dependencies": {
"@actions/core": "1.2.2",
"@actions/github": "2.1.0",
"async-neocities": "1.1.2",
"async-neocities": "1.1.5",
"pretty-time": "1.1.0"
},
"standard": {