Comparing version 0.3.3 to 0.3.4
@@ -260,6 +260,6 @@ /*! | ||
function searchOne(me, p) { | ||
p.limit = 2; | ||
p.limit = 2; // we need 1 but limit to 2 to know if search was not unique | ||
return search(me, p).then(function (data) { | ||
if (data.length != 1) | ||
throw new Error('More than one document was found'); | ||
throw new Error('Search result was not a single document'); | ||
var p2 = { id: data[0] }; | ||
@@ -266,0 +266,0 @@ if (p.user) p2.user = p.user; |
{ | ||
"name": "tdoc-api", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "Wrapper around tDoc REST-ful APIs", | ||
@@ -15,3 +15,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"bluebird": "^3.3.0", | ||
"bluebird": "^3.3.3", | ||
"restler": "^3.2.2" | ||
@@ -18,0 +18,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
26851
Updatedbluebird@^3.3.3