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

deepmerge-plus

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deepmerge-plus - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

22

core.d.ts
declare function deepmerge<T1, T2>(x: T1, y: T2, options?: deepmerge.Options): Partial<T1 & T2>;
declare namespace deepmerge {
var deepmerge: typeof deepmerge;
var default: typeof deepmerge;
}
declare function deepmerge<T>(x: Partial<T>, y: Partial<T>, options?: deepmerge.Options): Partial<T>;
declare namespace deepmerge {
var deepmerge: typeof deepmerge;
var default: typeof deepmerge;
}
declare namespace deepmerge {
interface ICache {

@@ -13,12 +21,16 @@ key?: any;

arrayMerge?(destination: any[], source: any[], options?: Options): any[];
isMergeableObject?(value: any, isMergeableObject: (value) => boolean, optionsArgument?: Options, key?: any): void;
isMergeableObject?(value: any, isMergeableObject: (value) => boolean, optionsArgument?: Options, key?: any): boolean;
isMergeableObject?(value: any, isMergeableObject: (value: any) => boolean, optionsArgument?: Options, key?: any): void;
isMergeableObject?(value: any, isMergeableObject: (value: any) => boolean, optionsArgument?: Options, key?: any): boolean;
/**
* (val = old || new) mode
*/
keyValueOrMode?: boolean;
}
const isMergeable: (value) => boolean;
const isMergeable: (value: any) => boolean;
const SYMBOL_IS_MERGEABLE: unique symbol;
const all: <T, T2 = any>(array: Partial<T2 & T>[], optionsArgument?: Options) => T2 & T;
}
export = deepmerge;
declare global {
export { deepmerge };
export default deepmerge;
declare global {
interface Window {

@@ -25,0 +37,0 @@ deepmerge<T>(x: Partial<T>, y: Partial<T>, options?: deepmerge.Options): T;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const isMergeableObject = require("is-mergeable-object");

@@ -14,8 +15,11 @@ function emptyTarget(val) {

if (tmp.destination) {
//console.log('destination', tmp.destination[tmp.key], ret, tmp.key);
ret = tmp.destination[tmp.key] || ret;
}
if (tmp.target) {
//console.log('target', tmp.target[tmp.key], ret, tmp.key);
ret = tmp.target[tmp.key] || ret;
}
if (tmp.source) {
//console.log('source', tmp.source[tmp.key], ret, tmp.key);
ret = tmp.source[tmp.key] || ret;

@@ -97,2 +101,3 @@ }

}
exports.deepmerge = deepmerge;
(function (deepmerge) {

@@ -105,2 +110,3 @@ deepmerge.isMergeable = isMergeableObject;

}
// @ts-ignore
return array.reduce(function (prev, next) {

@@ -111,2 +117,6 @@ return deepmerge(prev, next, optionsArgument);

})(deepmerge || (deepmerge = {}));
module.exports = deepmerge;
exports.deepmerge = deepmerge;
deepmerge.deepmerge = deepmerge;
deepmerge.default = deepmerge;
exports.default = deepmerge;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImNvcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5REFBMEQ7QUFFMUQsU0FBUyxXQUFXLENBQUMsR0FBRztJQUV2QixPQUFPLEtBQUssQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFBO0FBQ3BDLENBQUM7QUFFRCxTQUFTLDZCQUE2QixDQUFDLEtBQUssRUFBRSxlQUFrQyxFQUFFLEdBQXNCO0lBRXZHLElBQUksS0FBSyxHQUFHLENBQUMsZUFBZSxJQUFJLGVBQWUsQ0FBQyxLQUFLLEtBQUssS0FBSyxDQUFDO0lBRWhFLElBQUksSUFBSSxHQUFHLEtBQUssSUFBSSxrQkFBa0IsQ0FBQyxLQUFLLEVBQUUsZUFBZSxFQUFFLEdBQUcsQ0FBQyxDQUFDO0lBRXBFLElBQUksR0FBRyxHQUFHLENBQUMsSUFBSSxDQUFDO1FBQ2YsQ0FBQyxDQUFDLFNBQVMsQ0FBQyxXQUFXLENB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HVjZShmdW5jdGlvbiAocHJldiwgbmV4dClcblx0XHR7XG5cdFx0XHRyZXR1cm4gZGVlcG1lcmdlKHByZXYsIG5leHQsIG9wdGlvbnNBcmd1bWVudClcblx0XHR9LCB7fSlcblx0fVxufVxuXG5kZWVwbWVyZ2UuZGVlcG1lcmdlID0gZGVlcG1lcmdlO1xuZGVlcG1lcmdlLmRlZmF1bHQgPSBkZWVwbWVyZ2U7XG5cbmV4cG9ydCB7IGRlZXBtZXJnZSB9XG5cbmV4cG9ydCBkZWZhdWx0IGRlZXBtZXJnZVxuXG5kZWNsYXJlIGdsb2JhbFxue1xuXHRpbnRlcmZhY2UgV2luZG93XG5cdHtcblx0XHRkZWVwbWVyZ2U8VD4oeDogUGFydGlhbDxUPiwgeTogUGFydGlhbDxUPiwgb3B0aW9ucz86IGRlZXBtZXJnZS5PcHRpb25zKTogVDtcblxuXHRcdGRlZXBtZXJnZTxUMSwgVDI+KHg6IFQxLCB5OiBUMiwgb3B0aW9ucz86IGRlZXBtZXJnZS5PcHRpb25zKTogVDEgJiBUMjtcblx0fVxufVxuIl19

@@ -1,6 +0,5 @@

import * as _deepmerge from './core';
declare const deepmerge: typeof _deepmerge & {
deepmerge: typeof _deepmerge;
default: typeof _deepmerge;
};
/**
* Created by user on 2018/2/28/028.
*/
import deepmerge from './core';
export = deepmerge;
"use strict";
const _deepmerge = require("./core");
const deepmerge = _deepmerge;
deepmerge.deepmerge = deepmerge;
deepmerge.default = deepmerge;
module.exports = deepmerge;
/**
* Created by user on 2018/2/28/028.
*/
const core_1 = require("./core");
module.exports = core_1.default;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7O0dBRUc7QUFFSCxpQ0FBK0I7QUFJL0IsaUJBQVMsY0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDcmVhdGVkIGJ5IHVzZXIgb24gMjAxOC8yLzI4LzAyOC5cbiAqL1xuXG5pbXBvcnQgZGVlcG1lcmdlIGZyb20gJy4vY29yZSc7XG5pbXBvcnQgSU9wdGlvbnMgPSBkZWVwbWVyZ2UuT3B0aW9ucztcbmltcG9ydCBJQ2FjaGUgPSBkZWVwbWVyZ2UuSUNhY2hlO1xuXG5leHBvcnQgPSBkZWVwbWVyZ2U7XG4iXX0=
{
"name": "deepmerge-plus",
"version": "2.1.2",
"version": "2.1.3",
"description": "A library for deep (recursive) merging of Javascript objects",

@@ -40,2 +40,3 @@ "keywords": [

"devDependencies": {
"@bluelovers/tsconfig": "^1.0.0",
"moment": "^2.20.1"

@@ -42,0 +43,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