Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xpress-mongo

Package Overview
Dependencies
Maintainers
1
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xpress-mongo - npm Package Compare versions

Comparing version 0.0.53 to 0.0.54

16

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc