@carbon/charts
Advanced tools
Comparing version 0.16.4 to 0.16.5
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.16.4](https://github.com/IBM/carbon-charts/compare/v0.16.3...v0.16.4) (2019-09-12) | ||
**Note:** Version bump only for package @carbon/charts | ||
## [0.16.3](https://github.com/IBM/carbon-charts/compare/v0.16.2...v0.16.3) (2019-09-11) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@carbon/charts", | ||
"version": "0.16.3", | ||
"version": "0.16.4", | ||
"description": "Carbon charting components", | ||
@@ -51,2 +51,3 @@ "main": "./index.js", | ||
"carbon-components": "10.3.2", | ||
"lodash-es": "4.17.15", | ||
"resize-observer-polyfill": "1.5.0" | ||
@@ -53,0 +54,0 @@ }, |
@@ -5,3 +5,3 @@ export declare namespace Tools { | ||
function clone(obj: any): any; | ||
const merge: (target: any, ...objects: any[]) => any; | ||
const merge: any; | ||
/************************************** | ||
@@ -8,0 +8,0 @@ * DOM-related operations * |
28
tools.js
@@ -0,1 +1,2 @@ | ||
import { merge as lodashMerge } from "lodash-es"; | ||
// Functions | ||
@@ -44,28 +45,3 @@ export var Tools; | ||
// custom deep object merge | ||
Tools.merge = function (target) { | ||
var objects = []; | ||
for (var _i = 1; _i < arguments.length; _i++) { | ||
objects[_i - 1] = arguments[_i]; | ||
} | ||
for (var _a = 0, objects_1 = objects; _a < objects_1.length; _a++) { | ||
var object = objects_1[_a]; | ||
for (var key in object) { | ||
if (object.hasOwnProperty(key)) { | ||
// since we're dealing relatively simple objects this should work fine | ||
if (object[key] && typeof object[key] === "object") { | ||
if (!target[key]) { | ||
target[key] = {}; | ||
} | ||
// recursively merge into the target | ||
// configs only run 3 or 4 levels deep, so no stack explosions | ||
target[key] = Tools.merge(target[key], object[key]); | ||
} | ||
else { | ||
target[key] = object[key]; | ||
} | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
Tools.merge = lodashMerge; | ||
/************************************** | ||
@@ -72,0 +48,0 @@ * DOM-related operations * |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
2157735
6778
8
+ Addedlodash-es@4.17.15
+ Addedlodash-es@4.17.15(transitive)