advaya-mongo
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -17,4 +17,6 @@ var ObjectId= require('mongodb').ObjectId; | ||
{ | ||
var wasAnObject; | ||
if(!Array.isArray(obj)) | ||
{ | ||
wasAnObject= true; | ||
obj=[obj]; | ||
@@ -104,3 +106,6 @@ } | ||
return newObj; | ||
if(wasAnObject) | ||
return newObj[0]; | ||
else | ||
return newObj; | ||
}); | ||
@@ -107,0 +112,0 @@ |
{ | ||
"name": "advaya-mongo", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Advaya mongo plugin", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
28060
917