xpress-mongo
Advanced tools
Comparing version 0.0.53 to 0.0.54
{ | ||
"name": "xpress-mongo", | ||
"version": "0.0.53", | ||
"version": "0.0.54", | ||
"description": "Light Weight ODM for mongoDb", | ||
@@ -28,16 +28,16 @@ "main": "js/index.js", | ||
"dependencies": { | ||
"@types/mongodb": "^3.5.27", | ||
"axios": "^0.20.0", | ||
"@types/mongodb": "^3.5.32", | ||
"@types/node": "^14.14.6", | ||
"@types/uuid": "^8.3.0", | ||
"axios": "^0.21.0", | ||
"deep-object-diff": "^1.1.0", | ||
"mongodb": "^3.6.2", | ||
"object-collection": "^1.0.29", | ||
"object-collection": "^1.0.30", | ||
"uuid": "^8.3.1" | ||
}, | ||
"devDependencies": { | ||
"@types/lodash": "^4.14.161", | ||
"@types/node": "^14.11.2", | ||
"@types/uuid": "^8.3.0", | ||
"@types/lodash": "^4.14.163", | ||
"chance": "^1.1.7", | ||
"typescript": "^4.0.3" | ||
"typescript": "^4.0.5" | ||
} | ||
} |
@@ -7,25 +7,25 @@ const {connector, connection} = require('./connection'); | ||
// 5f8bb34c17793a7bb278d24f | ||
const user = await Users.findById('5e5acba088ebeef8a715ca43', { | ||
// projection: {_id: 0} | ||
}); | ||
// // 5f8bb34c17793a7bb278d24f | ||
// const user = await Users.findById('5e5acba088ebeef8a715ca43', { | ||
// // projection: {_id: 0} | ||
// }); | ||
// | ||
// | ||
// // user.set('contact.date', new Date()); | ||
// | ||
// console.log(await user.save()); | ||
// user.set('contact.date', new Date()); | ||
console.log(await user.save()); | ||
/** | ||
* Async Space | ||
*/ | ||
// const guest = new Users().set({ | ||
// type: 'guest', | ||
// first_name: 'Hello', | ||
// last_name: 'World', | ||
// guestId: '678', | ||
// updated_at: 'Fri, 03 Apr 2020 00:00:00 GMT' | ||
// }); | ||
// | ||
// console.log(guest); | ||
const guest = new Users().set({ | ||
type: 'guest', | ||
first_name: 'Hello', | ||
last_name: 'World', | ||
guestId: '678', | ||
updated_at: 'Fri, 03 Apr 2020 00:00:00 GMT' | ||
}); | ||
console.log(guest); | ||
/** | ||
@@ -32,0 +32,0 @@ * End Async Space |
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
146728
3
4402
8
+ Added@types/node@^14.14.6
+ Added@types/uuid@^8.3.0
+ Added@types/node@14.18.63(transitive)
+ Added@types/uuid@8.3.4(transitive)
+ Addedaxios@0.21.4(transitive)
- Removed@types/node@22.9.3(transitive)
- Removedaxios@0.20.0(transitive)
- Removedundici-types@6.19.8(transitive)
Updated@types/mongodb@^3.5.32
Updatedaxios@^0.21.0
Updatedobject-collection@^1.0.30