Comparing version 1.1.0 to 1.1.1
@@ -15,2 +15,3 @@ 'use strict' | ||
} | ||
let cb = ()=>{}; | ||
if (arguments.length == 2) { // To be removed in version 2.0.0 | ||
@@ -33,3 +34,11 @@ let options = arguments[1] | ||
} | ||
this.connect() | ||
if (arguments.length == 3) { | ||
let options = arguments[1] | ||
this.db = arguments[0] | ||
if (options.protocol) this.config.protocol = options.protocol | ||
if (options.hostname) this.config.hostname = options.hostname | ||
if (options.port) this.config.port = options.port | ||
cb = arguments[2] | ||
} | ||
this.connect(cb) | ||
} | ||
@@ -36,0 +45,0 @@ |
{ | ||
"name": "couchdbjs", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A node client for couchdb.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -21,3 +21,3 @@ # couchdbjs | ||
const Couchdbjs = require('couchdbjs'); | ||
const db = new Couchdbjs(dbname, options); | ||
const db = new Couchdbjs(dbname, options, callback); | ||
``` | ||
@@ -133,3 +133,3 @@ Note : Here DB is the object of the class couchdbjs. | ||
```js | ||
db.deleteDoc(id, cb); | ||
db.getDoc(id, cb); | ||
``` | ||
@@ -136,0 +136,0 @@ `id` is the id of the document. |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15866
307
1