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.0.18 to 0.1.0

8

cjs/index.js

@@ -102,3 +102,3 @@ "use strict"

const BREAKPOINTS = ["xs", "sm", "md", "lg", "xl"].map((alias, index) => ({
const BREAKPOINTS = ["all", "sm", "md", "lg", "xl"].map((alias, index) => ({
alias,

@@ -193,4 +193,6 @@ value: index * 360

const breakpoint = get(index, breakpoints)
const isZero = parseInt(breakpoint, 10) === 0
const query = isZero ? null : mq(breakpoint)
const styleValue = resolve([index, value.alias], propsValue)
if (!isNil(styleValue)) pushStyle(styleValue, mq(breakpoint))
if (!isNil(styleValue)) pushStyle(styleValue, query)
})

@@ -733,3 +735,3 @@ }

transform: addPx,
defaults: [12, 14, 16, 20, 24, 32, 48, 64]
defaults: [12, 14, 16, 20, 24, 32, 40, 48, 56, 64]
})

@@ -736,0 +738,0 @@ const fontStyle = style({

@@ -98,3 +98,3 @@ import { oneOfType, number, string, objectOf, arrayOf } from "prop-types"

const BREAKPOINTS = ["xs", "sm", "md", "lg", "xl"].map((alias, index) => ({
const BREAKPOINTS = ["all", "sm", "md", "lg", "xl"].map((alias, index) => ({
alias,

@@ -189,4 +189,6 @@ value: index * 360

const breakpoint = get(index, breakpoints)
const isZero = parseInt(breakpoint, 10) === 0
const query = isZero ? null : mq(breakpoint)
const styleValue = resolve([index, value.alias], propsValue)
if (!isNil(styleValue)) pushStyle(styleValue, mq(breakpoint))
if (!isNil(styleValue)) pushStyle(styleValue, query)
})

@@ -729,3 +731,3 @@ }

transform: addPx,
defaults: [12, 14, 16, 20, 24, 32, 48, 64]
defaults: [12, 14, 16, 20, 24, 32, 40, 48, 56, 64]
})

@@ -732,0 +734,0 @@ const fontStyle = style({

{
"name": "onno-react",
"license": "MIT",
"version": "0.0.18",
"version": "0.1.0",
"description": "Onno propTypes for React",

@@ -30,6 +30,6 @@ "homepage": "https://github.com/wagerfield/onno/tree/master/packages/onno-react#readme",

"@types/prop-types": "15.7.1",
"onno": "0.0.18",
"onno": "0.1.0",
"prop-types": "15.7.2"
},
"gitHead": "7a5145c7f092640a61ecd97aeb5570e782c63659"
"gitHead": "e930b2abbf3ee93c4a272aa65e180564ab8fa77b"
}
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