ndjson-to-couchdb
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -26,3 +26,3 @@ var async = require('async'); | ||
obj._id = obj._id || obj[ config.key ]; | ||
req_opts.uri = req_opts.uri + '/' + obj._id; | ||
req_opts.uri = req_opts.uri + '/' + encodeURIComponent(obj._id); | ||
} | ||
@@ -59,3 +59,3 @@ var update = function(){ | ||
method: 'HEAD', | ||
url: config.url + '/' + obj._id | ||
url: config.url + '/' + encodeURIComponent(obj._id) | ||
} | ||
@@ -74,3 +74,3 @@ request(req_opts, function(err, resp){ | ||
json: true, | ||
url: config.url + '/' + obj._id | ||
url: config.url + '/' + encodeURIComponent(obj._id) | ||
} | ||
@@ -82,3 +82,3 @@ var fields = config.copy_fields_from_prev_rev; | ||
couchr.get(config.url + '/' + obj._id, function(err, doc) { | ||
couchr.get(config.url + '/' + encodeURIComponent(obj._id), function(err, doc) { | ||
if (err) return cb(err); | ||
@@ -93,2 +93,1 @@ | ||
} | ||
{ | ||
"name": "ndjson-to-couchdb", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Stream ndjson to couchdb", | ||
@@ -5,0 +5,0 @@ "bin": "bin/cli.js", |
4821