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 3.2.3 to 3.2.4

6

History.md

@@ -0,4 +1,8 @@

3.2.4 / 2021-02-12
==================
* fix(utils): make clone() only copy own properties Automattic/mongoose#9876
3.2.3 / 2020-12-10
==================
* fix(utils): avoid copying special properties like `__proto__` when merging and cloning
* fix(utils): avoid copying special properties like `__proto__` when merging and cloning. Fix CVE-2020-35149

@@ -5,0 +9,0 @@ 3.2.2 / 2019-09-22

11

lib/utils.js

@@ -71,5 +71,4 @@ 'use strict';

var val;
var k;
for (k in obj) {
for (const k of Object.keys(obj)) {
// Not technically prototype pollution because this wouldn't merge properties

@@ -299,9 +298,3 @@ // onto `Object.prototype`, but avoid properties like __proto__ as a precaution.

exports.keys = Object.keys || function(obj) {
var keys = [];
for (var k in obj) if (obj.hasOwnProperty(k)) {
keys.push(k);
}
return keys;
};
exports.keys = Object.keys;

@@ -308,0 +301,0 @@ /**

{
"name": "mquery",
"version": "3.2.3",
"version": "3.2.4",
"description": "Expressive query building for MongoDB",

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