onno-react
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -64,2 +64,7 @@ "use strict" | ||
} | ||
function merge(array, initial = {}) { | ||
return array.reduce((acc, val) => { | ||
return isArray(val) ? merge(val, initial) : Object.assign(acc, val) | ||
}, initial) | ||
} | ||
@@ -107,5 +112,2 @@ const KEYS = ["propsKeys", "styleKeys", "themeKeys"] | ||
function merge(styles) { | ||
return styles.reduce((o, s) => Object.assign(o, s), {}) | ||
} | ||
function interpolate(options) { | ||
@@ -112,0 +114,0 @@ let { name, renderers } = options |
@@ -60,2 +60,7 @@ import { oneOfType, number, string, objectOf, arrayOf } from "prop-types" | ||
} | ||
function merge(array, initial = {}) { | ||
return array.reduce((acc, val) => { | ||
return isArray(val) ? merge(val, initial) : Object.assign(acc, val) | ||
}, initial) | ||
} | ||
@@ -103,5 +108,2 @@ const KEYS = ["propsKeys", "styleKeys", "themeKeys"] | ||
function merge(styles) { | ||
return styles.reduce((o, s) => Object.assign(o, s), {}) | ||
} | ||
function interpolate(options) { | ||
@@ -108,0 +110,0 @@ let { name, renderers } = options |
{ | ||
"name": "onno-react", | ||
"license": "MIT", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"homepage": "https://onnojs.com", | ||
@@ -30,6 +30,6 @@ "description": "Onno propTypes for React", | ||
"@types/prop-types": "15.7.1", | ||
"onno": "0.4.0", | ||
"onno": "0.4.1", | ||
"prop-types": "15.7.2" | ||
}, | ||
"gitHead": "29c8a0cb54ab74ad59cf4e2284f72fe97ef4d526" | ||
"gitHead": "c1c97a224a30ea71b2d6ae8a78a05d68ebf41c3a" | ||
} |
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
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
58335
2154
+ Addedonno@0.4.1(transitive)
- Removedonno@0.4.0(transitive)
Updatedonno@0.4.1