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

onno-react

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onno-react - npm Package Compare versions

Comparing version 0.5.3 to 0.5.4

4

cjs/index.js

@@ -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"
}
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