Socket
Socket
Sign inDemoInstall

@cloudant/couchbackup

Package Overview
Dependencies
Maintainers
3
Versions
479
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudant/couchbackup - npm Package Compare versions

Comparing version 2.0.1-SNAPSHOT.86 to 2.0.1-SNAPSHOT.87

4

app.js

@@ -257,2 +257,6 @@ // Copyright © 2017 IBM Corp. All rights reserved.

writer.removeAllListeners();
// Only call destroy if it is available on the stream
if (srcStream.destroy && srcStream.destroy instanceof Function) {
srcStream.destroy();
}
callback(err);

@@ -259,0 +263,0 @@ } else {

# Unreleased
- [NEW] Changed to use nodejs-cloudant for database requests.
- [FIXED] An unhandled `readstream.destroy is not a function` error when trying
to terminate a restore process that encountered an error.

@@ -4,0 +7,0 @@ # 2.0.0 (2017-07-04)

15

includes/restore.js

@@ -31,14 +31,11 @@ // Copyright © 2017 IBM Corp. All rights reserved.

var errHandler = function(err) {
if (!err.isTransient) {
readstream.destroy();
}
};
// pipe the input to the output, via transformation functions
readstream
.pipe(liner) // transform the input stream into per-line
.on('error', errHandler)
.pipe(writer) // transform the data
.on('error', errHandler);
.on('error', function(err) {
// Forward the error to the writer event emitter where we already have
// listeners on for handling errors
writer.emit('error', err);
})
.pipe(writer); // transform the data

@@ -45,0 +42,0 @@ callback(null, writer);

@@ -123,3 +123,3 @@ // Copyright © 2017 IBM Corp. All rights reserved.

linenumber++;
if (obj !== '') {
if (!didError && obj !== '') {
// see if it parses as JSON

@@ -126,0 +126,0 @@ try {

{
"name": "@cloudant/couchbackup",
"version": "2.0.1-SNAPSHOT.86",
"version": "2.0.1-SNAPSHOT.87",
"description": "CouchBackup - command-line backup utility for Cloudant/CouchDB",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/cloudant/couchbackup",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc