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.3.0 to 1.3.1

2

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

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

@@ -12,3 +12,3 @@ const chalk = require('chalk')

(isAddition(line) || isDeletion(line)) &&
(/\.[a-zA-Z]+ {/.test(line) || /className="[a-zA-Z]+"/.test(line))
(/\.[a-zA-Z:]+ {/.test(line) || /className="[a-zA-Z]+"/.test(line))
)

@@ -23,10 +23,10 @@

if (isAddition(line)) {
return chalk.green(line)
return chalk.red(line)
}
if (isDeletion(line)) {
return chalk.red(line)
return chalk.green(line)
}
return chalk.gray(line)
return chalk.dim(line)
}).join('\n')

@@ -33,0 +33,0 @@ )

@@ -22,2 +22,3 @@ const css = require('css')

const indexEnd = position > -1 ? position : rule.selectors[0].length
return classNames.includes(rule.selectors[0].substring(1, indexEnd))

@@ -24,0 +25,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