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

mongojs

Package Overview
Dependencies
Maintainers
0
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongojs - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

4

index.js

@@ -13,3 +13,3 @@ var mongo = require('mongodb');

return function(args) {
if (typeof args[0] === 'object' && typeof args[0]._id === 'string') {
if (args[0] && typeof args[0] === 'object' && typeof args[0]._id === 'string') {
args[0]._id = new mongo.BSONNative.ObjectID(args[0]._id);

@@ -229,4 +229,2 @@ }

that.collection = function(name) {
var that = {};
var oncollection = common.future();

@@ -233,0 +231,0 @@

{
"name":"mongojs",
"description":"a simple mongo module that emulates the mongo api",
"version":"0.1.5",
"version":"0.1.6",
"author": "Ge.tt <hello@ge.tt>",

@@ -6,0 +6,0 @@ "contributors": [

@@ -7,3 +7,3 @@ # mongojs

DB is very simple to use:
mongojs is very simple to use:

@@ -10,0 +10,0 @@ ``` 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