New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 6.1.1 to 6.2.0

serializer/index.js

29

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

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

"native",
"serializer",
"src",

@@ -32,4 +33,4 @@ "typings"

"babel-preset-react": "^6.24.1",
"enzyme": "^3.4.1",
"enzyme-adapter-react-16": "^1.2.0",
"enzyme": "^3.6.0",
"enzyme-adapter-react-16": "^1.5.0",
"enzyme-to-json": "^3.3.1",

@@ -39,3 +40,3 @@ "eslint": "^3.17.1",

"eslint-config-prettier": "^2.9.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^4.0.0",

@@ -46,17 +47,17 @@ "eslint-plugin-prettier": "^2.1.2",

"jest": "^23.5.0",
"lint-staged": "^7.0.0",
"preact": "^8.3.0",
"preact-compat": "^3.18.2",
"lint-staged": "^7.2.2",
"preact": "^8.3.1",
"preact-compat": "^3.18.4",
"preact-render-to-json": "^3.6.6",
"prettier": "^1.14.2",
"react": "^16.4.2",
"react-dom": "^16.4.2",
"react": "^16.5.0",
"react-dom": "^16.5.0",
"react-native": "^0.53.3",
"react-test-renderer": "^16.4.2",
"react-testing-library": "^5.0.0",
"styled-components": "^3.4.2",
"typescript": "^3.0.1"
"react-test-renderer": "^16.5.0",
"react-testing-library": "^5.0.1",
"styled-components": "^3.4.5",
"typescript": "^3.0.3"
},
"dependencies": {
"css": "^2.2.1"
"css": "^2.2.4"
},

@@ -63,0 +64,0 @@ "peerDependencies": {

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

if (node instanceof global.Element) {
if (global.Element && node instanceof global.Element) {
newClassNames = getClassNamesFromDOM(node)

@@ -128,3 +128,3 @@ } else {

(val.$$typeof === Symbol.for('react.test.json') ||
val instanceof global.Element)
(global.Element && val instanceof global.Element))
)

@@ -131,0 +131,0 @@ },

@@ -21,3 +21,3 @@ const { getCSS, matcherTest, buildReturnMessage } = require('./utils')

}
} else if (received instanceof global.Element) {
} else if (global.Element && received instanceof global.Element) {
className = Array.from(received.classList).join(' ')

@@ -34,3 +34,3 @@ }

const getAtRules = (ast, options) => {
const mediaRegex = /(\([a-z-]+:)\s?([a-z0-9]+\))/g
const mediaRegex = /(\([a-z-]+:)\s?([a-z0-9.]+\))/g

@@ -37,0 +37,0 @@ return Object.keys(options)

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

} else {
StyleSheet = require('styled-components/lib/models/StyleSheet').default
StyleSheet = require('styled-components/lib/models/StyleSheet').default // eslint-disable-line
}

@@ -50,3 +50,3 @@

const getClassNames = () =>
extract(/data-styled-components="([^"]*)"/g).split(/\s/)
extract(/data-styled(?:-components)?="([^"]*)"/g).split(/\s/)

@@ -53,0 +53,0 @@ const getComponentIDs = () =>

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