Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 2.3.6 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",

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