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

mquery

Package Overview
Dependencies
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mquery - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

mqTest.js

5

History.md
0.2.1 / 2013-07-08
==================
* select no longer accepts arrays as parameters [ebensing](https://github.com/ebensing)
0.2.0 / 2013-07-05

@@ -3,0 +8,0 @@ ==================

10

lib/mquery.js

@@ -1038,2 +1038,6 @@ 'use strict';

if (arguments.length !== 1) {
throw new Error("Invalid select: select only takes 1 argument");
}
this._validate('select');

@@ -1044,3 +1048,3 @@

if ('string' == type || 'object' == type && 'number' == typeof arg.length) {
if ('string' == type || 'object' == type && 'number' == typeof arg.length && !Array.isArray(arg)) {
if ('string' == type)

@@ -1060,3 +1064,3 @@ arg = arg.split(/\s+/);

if (utils.isObject(arg)) {
if (utils.isObject(arg) && !Array.isArray(arg)) {
var keys = utils.keys(arg);

@@ -1069,3 +1073,3 @@ for (var i = 0; i < keys.length; ++i) {

throw new TypeError('Invalid select() argument. Must be string, object, or array.');
throw new TypeError('Invalid select() argument. Must be string or object.');
}

@@ -1072,0 +1076,0 @@

{
"name": "mquery",
"version": "0.2.0",
"version": "0.2.1",
"description": "Expressive query building for MongoDB",

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

Sorry, the diff of this file is too big to display

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