xpress-mongo
Advanced tools
Comparing version 2.3.1 to 2.4.0
{ | ||
"name": "xpress-mongo", | ||
"version": "2.3.1", | ||
"version": "2.4.0", | ||
"description": "Light Weight ODM for mongoDb NodeJs", | ||
@@ -36,4 +36,4 @@ "main": "index.js", | ||
"lodash": "^4.17.21", | ||
"mongodb": "4.2.2", | ||
"object-collection": "^2.1.5", | ||
"mongodb": "4.3.0", | ||
"object-collection": "^3.0.0", | ||
"uuid": "^8.3.2" | ||
@@ -43,4 +43,4 @@ }, | ||
"@types/chance": "^1.1.3", | ||
"@types/node": "^16.11.12", | ||
"@types/uuid": "^8.3.3", | ||
"@types/node": "^17.0.8", | ||
"@types/uuid": "^8.3.4", | ||
"chance": "^1.1.8", | ||
@@ -47,0 +47,0 @@ "japa": "^4.0.0", |
@@ -281,3 +281,3 @@ import ObjectCollection = require("object-collection"); | ||
*/ | ||
static exists(query: StringToAnyObject | Object): Promise<boolean>; | ||
static exists(query: StringToAnyObject): Promise<boolean>; | ||
/** | ||
@@ -459,3 +459,6 @@ * Has One relationship | ||
protected $isStrict(): boolean | { | ||
removeNonSchemaFields?: boolean | undefined; | ||
removeNonSchemaFields?: boolean | undefined; /** Model Loaded Relationships | ||
* @private | ||
* @type {*[]} | ||
*/ | ||
}; | ||
@@ -462,0 +465,0 @@ /** |
@@ -854,5 +854,5 @@ "use strict"; | ||
model = model[0](); | ||
let relatedData = await model | ||
let relatedData = (await model | ||
.native() | ||
.findOne(where, options); | ||
.findOne(where, options)); | ||
if (cast && relatedData) | ||
@@ -859,0 +859,0 @@ relatedData = model.use(relatedData); |
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
101376
3156
+ Addedip-address@9.0.5(transitive)
+ Addedjsbn@1.1.0(transitive)
+ Addedmongodb@4.3.0(transitive)
+ Addedobject-collection@3.0.1(transitive)
+ Addedsmart-buffer@4.2.0(transitive)
+ Addedsocks@2.8.3(transitive)
+ Addedsprintf-js@1.1.3(transitive)
- Removedmongodb@4.2.2(transitive)
- Removedobject-collection@2.2.0(transitive)
Updatedmongodb@4.3.0
Updatedobject-collection@^3.0.0