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.0-SNAPSHOT.79 to 2.0.0-SNAPSHOT.80

2

package.json
{
"name": "@cloudant/couchbackup",
"version": "2.0.0-SNAPSHOT.79",
"version": "2.0.0-SNAPSHOT.80",
"description": "CouchBackup - command-line backup utility for Cloudant/CouchDB",

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

@@ -55,6 +55,11 @@ // Copyright © 2017 IBM Corp. All rights reserved.

// https://github.com/h2non/toxy#slow-read
// Note this only impacts read of data from requests so only for non-GET
// In practice this means that it impacts restore much more than backup
// since although backup POSTs to _bulk_get the content is much smaller
// than what is POSTed to _bulk_docs for a restore.
// Similarly to bandwidth-limit use a 1 ms threshold
proxy
.poison(tpoisons.slowRead({ chunk: 256, threshold: 1 }))
// Slow read for 10 % of the time e.g. 1 ms in every 100
.withRule(trules.timeThreshold({ duration: 1, period: 100 }));
// Slow read for 10 % of the time e.g. 10 ms in every 100
.withRule(trules.timeThreshold({ duration: 10, period: 100 }));
break;

@@ -96,4 +101,6 @@ case 'rate-limit':

// COUCH_BACKEND_URL is the real CouchDb instance.
proxy.listen(url.parse(process.env.COUCH_URL).port);
const toxyUrl = url.parse(process.env.COUCH_URL);
// Listen on the specified hostname only, so if using localhost we don't
// need external connections.
proxy.listen(toxyUrl.port, toxyUrl.hostname);
});

@@ -100,0 +107,0 @@

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