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.2 to 1.1.3

.travis.yml

3

CHANGELOG.md
# Changelog
## v1.1.3
- Updates dependencies
## v1.1.2

@@ -4,0 +7,0 @@ - Updates dependencies

14

dist/index.js
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
exports["default"] = void 0;
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));

@@ -50,3 +52,3 @@ /*

// Merge objects
if (_typeof(a) === 'object' && _typeof(b) === 'object') {
if ((0, _typeof2["default"])(a) === 'object' && (0, _typeof2["default"])(b) === 'object') {
// Merge arrays

@@ -56,3 +58,3 @@ if (a instanceof Array && b instanceof Array) {

if (typeof b[index] !== 'undefined') {
if (b[index] !== null && _typeof(b[index]) === 'object') {
if (b[index] !== null && (0, _typeof2["default"])(b[index]) === 'object') {
a[index] = deepExtend(a[index], b[index]);

@@ -70,3 +72,3 @@ } else {

if (_typeof(b[key]) === 'object' && b[key] !== null) {
if ((0, _typeof2["default"])(b[key]) === 'object' && b[key] !== null) {
a[key] = deepExtend(a[key], b[key]);

@@ -88,2 +90,2 @@ } else if (typeof b[key] !== 'undefined') {

var _default = deepExtend;
exports.default = _default;
exports["default"] = _default;
{
"name": "@jalik/deep-extend",
"version": "1.1.2",
"version": "1.1.3",
"description": "A utility to merge deep objects.",

@@ -34,19 +34,18 @@ "license": "MIT",

"devDependencies": {
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"acorn": "^6.1.0",
"ajv": "^6.9.2",
"babel-core": "^7.0.0-bridge.0",
"del": "^3.0.0",
"eslint": "^5.14.1",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-jest": "^22.3.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-react": "^7.12.4",
"gulp": "^4.0.0",
"@babel/core": "^7.5.5",
"acorn": "^6.2.1",
"ajv": "^6.10.2",
"babel-preset-airbnb": "^4.0.1",
"del": "^5.0.0",
"eslint": "^5.16.0",
"eslint-config-airbnb": "^17.1.1",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^22.13.6",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.14.3",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
"gulp-eslint": "^5.0.0",
"jest": "^24.1.0"
"jest": "^24.8.0"
}
}
# @jalik/deep-extend
![GitHub package.json version](https://img.shields.io/github/package-json/v/jalik/js-deep-extend.svg)
[![Build Status](https://travis-ci.com/jalik/js-deep-extend.svg?branch=master)](https://travis-ci.com/jalik/js-deep-extend)
![GitHub](https://img.shields.io/github/license/jalik/js-deep-extend.svg)
![GitHub last commit](https://img.shields.io/github/last-commit/jalik/js-deep-extend.svg)
[![GitHub issues](https://img.shields.io/github/issues/jalik/js-deep-extend.svg)](https://github.com/jalik/js-deep-extend/issues)
![npm](https://img.shields.io/npm/dt/@jalik/deep-extend.svg)

@@ -9,4 +15,2 @@ A utility to merge deep objects.

**This library has been unit tested.**
## Merging deep objects

@@ -13,0 +17,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