@andrewscwei/mongodb-odm
Advanced tools
Comparing version 0.40.0 to 0.41.0
@@ -8,2 +8,3 @@ "use strict"; | ||
const mongodb_1 = require("mongodb"); | ||
const bson_1 = __importDefault(require("bson")); | ||
/** | ||
@@ -49,4 +50,6 @@ * Checks if a value is an UpdateQuery. | ||
return false; | ||
if (!is_1.default.directInstanceOf(value, mongodb_1.ObjectID)) | ||
return false; | ||
if (is_1.default.directInstanceOf(value, mongodb_1.ObjectID)) | ||
return true; | ||
if (is_1.default.directInstanceOf(value, bson_1.default.ObjectID)) | ||
return true; | ||
if (!mongodb_1.ObjectID.isValid(value)) | ||
@@ -53,0 +56,0 @@ return false; |
{ | ||
"name": "@andrewscwei/mongodb-odm", | ||
"version": "0.40.0", | ||
"version": "0.41.0", | ||
"description": "ODM for MongoDB", | ||
@@ -38,2 +38,3 @@ "main": "build/index.js", | ||
"bcrypt": "^3.0.2", | ||
"bson": "^4.0.1", | ||
"debug": "^4.1.0", | ||
@@ -45,2 +46,3 @@ "lodash": "^4.17.11", | ||
"@types/bcrypt": "^3.0.0", | ||
"@types/bson": "^1.0.11", | ||
"@types/debug": "^0.0.31", | ||
@@ -47,0 +49,0 @@ "@types/dotenv": "^6.1.0", |
Sorry, the diff of this file is not supported yet
207889
3562
7
14
+ Addedbson@^4.0.1
+ Addedbase64-js@1.5.1(transitive)
+ Addedbson@4.7.2(transitive)
+ Addedbuffer@5.7.1(transitive)
+ Addedieee754@1.2.1(transitive)
- Removedbson@6.7.0(transitive)