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

@styled-system/space

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@styled-system/space - npm Package Compare versions

Comparing version 5.0.2 to 5.0.3

6

package.json
{
"name": "@styled-system/space",
"version": "5.0.2",
"version": "5.0.3",
"main": "dist/index.js",

@@ -8,5 +8,5 @@ "module": "dist/index.esm.js",

"license": "MIT",
"gitHead": "563a753edcb0f441fe5040458ac36c5c72f03a9d",
"gitHead": "25c6e4d49f6b9e3154a59a5a3f4ed1a463ee27f7",
"dependencies": {
"@styled-system/core": "^5.0.2"
"@styled-system/core": "^5.0.3"
},

@@ -13,0 +13,0 @@ "publishConfig": {

@@ -16,3 +16,3 @@ import { get, system } from '@styled-system/core'

const absolute = Math.abs(n)
const value = get(scale, absolute)
const value = get(scale, absolute, absolute)
if (!isNumber(value)) {

@@ -19,0 +19,0 @@ return isNegative ? '-' + value : value

@@ -142,1 +142,10 @@ import { space } from '../src'

})
test('handles margin with no theme', () => {
const styles = space({
mt: 12,
})
expect(styles).toEqual({
marginTop: 12,
})
})
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