New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

couchdb-iterator

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couchdb-iterator - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

index.js

@@ -69,2 +69,4 @@ 'use strict';

queryOptions.reduce = false;
return queryOptions;

@@ -71,0 +73,0 @@ }

2

package.json
{
"name": "couchdb-iterator",
"version": "2.0.1",
"version": "2.0.2",
"description": "A fast and easy to ease CouchDB iterator for views and all documents",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -133,3 +133,3 @@ # couchdb-iterator

The tests expect a running CouchDB in `http://localhost:5984` but you may specify a different address with `COUCHDB`, e.g.: `$ COUCHDB=http://admin:admin@localhost:5984 npm test`.
The tests expect a running CouchDB in `http://localhost:5984` and will create and destroy `couchdb-iterator-tests` database. You may specify a different address with `COUCHDB`, e.g.: `$ COUCHDB=http://admin:admin@localhost:5984/my-custom-database-for-tests npm test`.

@@ -136,0 +136,0 @@

@@ -6,4 +6,3 @@ 'use strict';

const couchdbAddr = process.env.COUCHDB || 'http://localhost:5984';
const couchdbDb = 'couchdb-iterator-tests';
const couchdbAddr = process.env.COUCHDB || 'http://localhost:5984/couchdb-iterator-tests';

@@ -49,4 +48,4 @@ // Fixed documents

function prepare() {
const couch = nano(couchdbAddr);
const couchdb = couch.use(couchdbDb);
const couchdb = nano(couchdbAddr);
const couch = nano(couchdb.config.url);

@@ -57,6 +56,6 @@ Promise.promisifyAll(couch.db);

// Destroy previous db if any
return couch.db.destroyAsync(couchdbDb)
return couch.db.destroyAsync(couchdb.config.db)
.catch({ error: 'not_found' }, () => {})
// Create db
.then(() => couch.db.createAsync(couchdbDb))
.then(() => couch.db.createAsync(couchdb.config.db))
// Create documents

@@ -69,5 +68,5 @@ .then(() => {

couchdb,
couchdbAddr: `${couchdb.config.url}/${couchdb.config.db}`,
couchdbAddr,
documents,
destroy: () => couch.db.destroyAsync(couchdbDb),
destroy: () => couch.db.destroyAsync(couchdb.config.db),
});

@@ -74,0 +73,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