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.12 to 0.2.13

coverage/coverage.json

19

index.js

@@ -99,8 +99,7 @@ var _ = require('lodash'),

var self = this;
var query = options.where ||  {};
var offset = options.offset ||  0;
var query = options.where || {};
var offset = options.offset || 0;
var limit = options.limit || this.limit || 50;
var sort = options.sort ? convertSort(options.sort) : {
$natural: 1
};
var sort = options.sort ? convertSort(options.sort) : false;
if (options.after_id) {

@@ -118,8 +117,10 @@ query._id = {

if (err) return callback(err);
collection
var q = collection
.find(query)
.sort(sort)
.skip(offset)
.limit(limit)
.toArray(function (err, results) {
.limit(limit);
if (sort) {
q.sort(sort);
}
q.toArray(function (err, results) {
if(!model.model) {

@@ -126,0 +127,0 @@ if(!results || results.length === 0) {

{
"name": "backbone-db-mongodb",
"version": "0.2.12",
"version": "0.2.13",
"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