couchdb-bootstrap
Advanced tools
Comparing version 1.3.2 to 1.4.0
@@ -7,2 +7,4 @@ var push = require('couchdb-push') | ||
module.exports = function(url, source, options, callback) { | ||
options.concurrency = 'concurrency' in options ? options.concurrency : 100 | ||
utils.dbs(source, function(error, filenames) { | ||
@@ -18,3 +20,3 @@ if (error) return callback(error) | ||
async.map(filenames, function(filename, next) { | ||
async.mapLimit(filenames, options.concurrency, function(filename, next) { | ||
push(db, filename, options, next) | ||
@@ -21,0 +23,0 @@ }, utils.groupByDatabase(dbname, done)) |
{ | ||
"name": "couchdb-bootstrap", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"description": "Bootstrap projects: configure CouchDB, setup security, deploy ddocs and create users.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -72,2 +72,3 @@ # CouchDB Bootstrap | ||
* `source` - directory holding the bootstrap tree | ||
* `options.concurrency` - Limit number of concurrent requests. Defaults to `100`. | ||
* `options.multipart` - When set to `true`, attachments are saved via multipart api. | ||
@@ -74,0 +75,0 @@ * `callback` - called when done with a `response` object describing the status of all operations. |
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
13394
303
104