onno-react
Advanced tools
Comparing version 0.5.3 to 0.5.4
@@ -21,2 +21,3 @@ "use strict" | ||
const isType = (type) => (x) => typeof x === type | ||
const isFunction = isType("function") | ||
const isObject = isType("object") | ||
@@ -228,3 +229,3 @@ const isPlainObject = (x) => !!x && isObject(x) && !isArray(x) | ||
} | ||
if (typeof transform === "function") value = transform(value) | ||
if (isFunction(transform)) value = transform(value) | ||
if (styleKeys === null) { | ||
@@ -1035,2 +1036,3 @@ return isPlainObject(value) ? value : null | ||
exports.isFraction = isFraction | ||
exports.isFunction = isFunction | ||
exports.isNil = isNil | ||
@@ -1037,0 +1039,0 @@ exports.isNumber = isNumber |
@@ -17,2 +17,3 @@ import { oneOfType, number, string, objectOf, arrayOf } from "prop-types" | ||
const isType = (type) => (x) => typeof x === type | ||
const isFunction = isType("function") | ||
const isObject = isType("object") | ||
@@ -224,3 +225,3 @@ const isPlainObject = (x) => !!x && isObject(x) && !isArray(x) | ||
} | ||
if (typeof transform === "function") value = transform(value) | ||
if (isFunction(transform)) value = transform(value) | ||
if (styleKeys === null) { | ||
@@ -1029,2 +1030,3 @@ return isPlainObject(value) ? value : null | ||
isFraction, | ||
isFunction, | ||
isNil, | ||
@@ -1031,0 +1033,0 @@ isNumber, |
{ | ||
"name": "onno-react", | ||
"license": "MIT", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"homepage": "https://onnojs.com", | ||
@@ -30,6 +30,6 @@ "description": "Onno propTypes for React", | ||
"@types/prop-types": "15.7.1", | ||
"onno": "0.5.3", | ||
"onno": "0.5.4", | ||
"prop-types": "15.7.2" | ||
}, | ||
"gitHead": "be2154c634b965ddaa15d98eed0e2b4419755c2d" | ||
"gitHead": "ec06cad8206dcca01624ecfb1708fb4917adf593" | ||
} |
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
59665
2208
+ Addedonno@0.5.4(transitive)
- Removedonno@0.5.3(transitive)
Updatedonno@0.5.4