🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

cosa

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cosa - npm Package Compare versions

Comparing version

to
2.4.0

14

lib/model.js

@@ -66,3 +66,3 @@ var q = require('q');

count: function (query, options) {
query = assign({}, query, definition.where);
query = assign({}, definition.where, query);
options = options || {};

@@ -79,3 +79,3 @@ options.count = true;

find: function (query, options) {
query = assign({}, query, definition.where);
query = assign({}, definition.where, query);
options = options || {};

@@ -94,3 +94,3 @@ var collection = definition.collection;

findOne: function (query, options) {
query = assign({}, query, definition.where);
query = assign({}, definition.where, query);
options = options || {};

@@ -111,3 +111,3 @@ options.findOne = true;

update: function (query, update, options) {
query = assign({}, query, definition.where);
query = assign({}, definition.where, query);
options = defaults(options, { autoSet: true });

@@ -124,3 +124,3 @@ var collection = definition.collection;

remove: function (query, options) {
query = assign({}, query, definition.where);
query = assign({}, definition.where, query);
options = options || {};

@@ -133,3 +133,3 @@ var collection = definition.collection;

distinct: function (key, query, options) {
query = assign({}, query, definition.where);
query = assign({}, definition.where, query);
options = options || {};

@@ -148,3 +148,3 @@ var collection = definition.collection;

project: function (query, value, options) {
query = assign({}, query, definition.where);
query = assign({}, definition.where, query);
options = options || {};

@@ -151,0 +151,0 @@ var collection = definition.collection;

{
"name": "cosa",
"version": "2.3.6",
"version": "2.4.0",
"description": "Cosa Models for MongoDB",

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