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.1.0 to 1.1.1

2

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

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

@@ -8,3 +8,3 @@ [![Build Status](https://travis-ci.org/styled-components/jest-styled-components.svg?branch=master)](https://travis-ci.org/styled-components/jest-styled-components)

<img alt="Preview" src="screenshot.png" width="500px" height="450px" />
<img alt="Preview" src="screenshot.png" width="500px" height="505px" />

@@ -11,0 +11,0 @@ ## Installation

@@ -7,4 +7,4 @@ const css = require('css')

classNames = node.children.reduce((acc, child) => (
acc.concat(getClassNames(child, acc),
)), classNames)
acc.concat(getClassNames(child, acc))
), classNames)
}

@@ -21,3 +21,3 @@ if (node.props && node.props.className) {

ast.stylesheet.rules = ast.stylesheet.rules.filter(rule => (
classNames.includes(rule.selectors[0].substring(1))
rule.type === 'rule' && classNames.includes(rule.selectors[0].substring(1))
))

@@ -24,0 +24,0 @@

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