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

@jalik/deep-extend

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jalik/deep-extend - npm Package Compare versions

Comparing version 1.1.11 to 1.1.12

4

CHANGELOG.md
# Changelog
## v1.1.12
- Fixed potential prototype pollution while merging
- Upgraded dependencies
## v1.1.11

@@ -4,0 +8,0 @@ - Upgraded dependencies

12

dist/deepExtend.js

@@ -76,8 +76,10 @@ "use strict";

for (var j = 0; j < keys.length; j += 1) {
var key = keys[j];
var key = keys[j]; // Avoid prototype pollution.
if ((0, _typeof2["default"])(b[key]) === 'object' && b[key] !== null) {
a[key] = deepExtend(a[key], b[key]);
} else if (typeof b[key] !== 'undefined') {
a[key] = b[key];
if (key !== '__proto__') {
if ((0, _typeof2["default"])(b[key]) === 'object' && b[key] !== null) {
a[key] = deepExtend(a[key], b[key]);
} else if (typeof b[key] !== 'undefined') {
a[key] = b[key];
}
}

@@ -84,0 +86,0 @@ }

{
"name": "@jalik/deep-extend",
"version": "1.1.11",
"version": "1.1.12",
"description": "A utility to merge deep objects.",

@@ -37,18 +37,18 @@ "license": "MIT",

"dependencies": {
"@babel/runtime": "^7.12.5"
"@babel/runtime": "^7.14.0"
},
"devDependencies": {
"@babel/cli": "^7.12.10",
"@babel/core": "^7.12.10",
"@babel/plugin-transform-runtime": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"acorn": "^8.0.4",
"ajv": "^7.0.3",
"eslint": "^7.18.0",
"@babel/cli": "^7.14.3",
"@babel/core": "^7.14.3",
"@babel/plugin-transform-runtime": "^7.14.3",
"@babel/preset-env": "^7.14.2",
"acorn": "^8.2.4",
"ajv": "^8.4.0",
"eslint": "^7.26.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.1.3",
"eslint-plugin-import": "^2.23.2",
"eslint-plugin-jest": "^24.3.6",
"jest": "^26.6.3",
"typescript": "^4.1.3"
"typescript": "^4.2.4"
}
}

@@ -61,6 +61,9 @@ /*

if (typeof b[key] === 'object' && b[key] !== null) {
a[key] = deepExtend(a[key], b[key]);
} else if (typeof b[key] !== 'undefined') {
a[key] = b[key];
// Avoid prototype pollution.
if (key !== '__proto__') {
if (typeof b[key] === 'object' && b[key] !== null) {
a[key] = deepExtend(a[key], b[key]);
} else if (typeof b[key] !== 'undefined') {
a[key] = b[key];
}
}

@@ -67,0 +70,0 @@ }

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