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 3.0.0 to 3.0.1

4

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

@@ -41,3 +41,3 @@ "main": "./src/index.js",

"strip-ansi": "^3.0.1",
"styled-components": "^2.0.0"
"styled-components": "^2.0.1"
},

@@ -44,0 +44,0 @@ "dependencies": {

@@ -51,4 +51,4 @@ /* eslint-disable one-var, no-useless-escape, no-underscore-dangle, no-nested-ternary */

const css = getCSS(styleSheet)
const styles = new RegExp(`${className} {([^}]*)`, 'g').exec(css)
const capture = new RegExp(`${selector}:[\s]*([^;]+)`, 'g')
const styles = new RegExp(`${className}[\\s]?{([^}]*)`, 'g').exec(css)
const capture = new RegExp(`${selector}:[\\s]*([^;]+)`, 'g')

@@ -55,0 +55,0 @@ if (styles && styles[1].match(capture)) {

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