advaya-mongo
Advanced tools
Comparing version 1.0.2 to 1.0.3
15
index.js
@@ -0,1 +1,3 @@ | ||
var ObjectID = require('mongodb').ObjectID; | ||
var db= require('./db'); | ||
@@ -32,2 +34,15 @@ var initialize= require('./initialize'); | ||
//Api static methods | ||
modelApi.id2bson = function (id) { | ||
return new ObjectID(id); | ||
}, | ||
modelApi.generateId = function () { | ||
return new ObjectID(); | ||
}, | ||
modelApi.ObjectID = function () { | ||
return ObjectID; | ||
}, | ||
return { | ||
@@ -34,0 +49,0 @@ api: modelApi, |
{ | ||
"name": "advaya-mongo", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"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
27324
889