New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

backbone-db-mongodb

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backbone-db-mongodb - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

4

index.js

@@ -23,3 +23,3 @@ var _ = require('underscore'),

function toMongoDoc(doc) {
if (doc._id) {
if (doc && doc._id) {
if (typeof doc._id === "string" && doc._id.length === "24") {

@@ -34,3 +34,3 @@ debug('converting _id to MongoID');

function fromMongoDoc(doc) {
if (doc._id) {
if (doc && doc._id) {
if (typeof doc._id === "object" && doc._id.toString && doc._id.toString().length === "24") {

@@ -37,0 +37,0 @@ debug('converting _id to MongoID');

{
"name": "backbone-db-mongodb",
"version": "0.2.2",
"version": "0.2.3",
"description": "MongoDB driver for Backbone.Db",

@@ -5,0 +5,0 @@ "main": "index.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