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

jest-styled-components

Package Overview
Dependencies
Maintainers
2
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-styled-components - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

2

package.json
{
"name": "jest-styled-components",
"version": "1.2.0",
"version": "1.3.0",
"description": "Jest utilities for Styled Components",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

@@ -18,6 +18,12 @@ const css = require('css')

const filterNodes = classNames => rule => (
rule.type === 'rule' && classNames.includes(rule.selectors[0].substring(1))
)
const filterNodes = classNames => (rule) => {
if (rule.type === 'rule') {
const position = rule.selectors[0].indexOf(':')
const indexEnd = position > -1 ? position : rule.selectors[0].length
return classNames.includes(rule.selectors[0].substring(1, indexEnd))
}
return false
}
const getMediaQueries = (ast, filter) => (

@@ -24,0 +30,0 @@ ast.stylesheet.rules

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