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

roots-db

Package Overview
Dependencies
Maintainers
1
Versions
383
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

roots-db - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

9

lib/mongodb.driver.js

@@ -87,3 +87,3 @@ /*

Mongodb.prototype.objectFilter = { blacklist: [ mongodb.ObjectID.prototype ] } ;
Mongodb.prototype.pathSeparator = '.' ;
//Mongodb.prototype.pathSeparator = '.' ;

@@ -363,2 +363,5 @@

// Should not be updated
delete rawDocument._id ;
if ( typeof id === 'string' ) { id = mongodb.ObjectID( id ) ; }

@@ -376,4 +379,6 @@ this.mongoCollection.update( { _id : id } , rawDocument , callback ) ;

// Should not be updated
delete rawDocument._id ;
if ( typeof id === 'string' ) { id = mongodb.ObjectID( id ) ; }
if ( typeof rawDocument._id === 'string' ) { rawDocument._id = mongodb.ObjectID( rawDocument._id ) ; }
this.mongoCollection.update( { _id : id } , { $set: rawDocument } , callback ) ;

@@ -380,0 +385,0 @@ } ;

{
"name": "roots-db",
"version": "0.1.4",
"version": "0.1.5",
"description": "Even more minimalistic ODM",

@@ -5,0 +5,0 @@ "main": "lib/rootsDb.js",

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