@cloudant/couchbackup
Advanced tools
Comparing version 2.1.1-SNAPSHOT.114 to 2.2.0-SNAPSHOT.116
# 2.2.0 (UNRELEASED) | ||
- [FIXED] An issue where the `_changes` response stream doesn't get correctly | ||
decompressed. | ||
- [FIXED] Prevent duplicate execution of backup error callbacks. | ||
- [NOTE] Update engines in preparation for Node.js 4 “Argon” end-of-life. | ||
@@ -3,0 +6,0 @@ |
@@ -198,2 +198,3 @@ // Copyright © 2017, 2018 IBM Corp. All rights reserved. | ||
function processBatchSet(db, parallelism, log, batches, ee, start, grandtotal, callback) { | ||
var hasErrored = false; | ||
var total = grandtotal; | ||
@@ -224,6 +225,9 @@ | ||
if (err) { | ||
err = error.convertResponseError(err); | ||
// Kill the queue for fatal errors | ||
q.kill(); | ||
ee.emit('error', err); | ||
if (!hasErrored) { | ||
hasErrored = true; | ||
err = error.convertResponseError(err); | ||
// Kill the queue for fatal errors | ||
q.kill(); | ||
ee.emit('error', err); | ||
} | ||
done(); | ||
@@ -230,0 +234,0 @@ } else { |
@@ -74,3 +74,3 @@ // Copyright © 2017, 2018 IBM Corp. All rights reserved. | ||
} else { | ||
resp.pipe(liner()) | ||
changesRequest.pipe(liner()) | ||
.on('error', function(err) { | ||
@@ -77,0 +77,0 @@ callback(err); |
{ | ||
"name": "@cloudant/couchbackup", | ||
"version": "2.1.1-SNAPSHOT.114", | ||
"version": "2.2.0-SNAPSHOT.116", | ||
"description": "CouchBackup - command-line backup utility for Cloudant/CouchDB", | ||
@@ -26,3 +26,3 @@ "homepage": "https://github.com/cloudant/couchbackup", | ||
"debug": "~3.1.0", | ||
"@cloudant/cloudant": "^2.0.2", | ||
"@cloudant/cloudant": "^2.1.0", | ||
"tmp": "0.0.33" | ||
@@ -29,0 +29,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91301
1634
Updated@cloudant/cloudant@^2.1.0