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.96 to 2.0.1-SNAPSHOT.97

1

CHANGES.md
# Unreleased
- [NEW] Changed to use nodejs-cloudant for database requests.
- [IMPROVED] Added compression to restore process requests.
- [FIXED] An unhandled `readstream.destroy is not a function` error when trying

@@ -5,0 +6,0 @@ to terminate a restore process that encountered an error.

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

const stream = require('stream');
const zlib = require('zlib');
const error = require('./error.js');

@@ -38,3 +39,13 @@ const debug = require('debug')('couchbackup:writer');

db.bulk(payload, function(err) {
// Stream the payload through a zip stream to the server
var payloadStream = new stream.PassThrough();
payloadStream.end(Buffer.from(JSON.stringify(payload), 'utf8'));
var zipstream = zlib.createGzip();
var req = db.server.request({
db: db.config.db,
path: '_bulk_docs',
method: 'POST',
headers: {'content-encoding': 'gzip'}
}, function(err) {
err = error.convertResponseError(err);

@@ -50,2 +61,3 @@ if (err) {

});
payloadStream.pipe(zipstream).pipe(req);
}, parallelism);

@@ -52,0 +64,0 @@

2

package.json
{
"name": "@cloudant/couchbackup",
"version": "2.0.1-SNAPSHOT.96",
"version": "2.0.1-SNAPSHOT.97",
"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