Socket
Socket
Sign inDemoInstall

babel-plugin-styled-components

Package Overview
Dependencies
56
Maintainers
3
Versions
95
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.11.0 to 1.11.1

5

lib/utils/detectors.js

@@ -15,3 +15,2 @@ "use strict";

var VALID_TOP_LEVEL_IMPORT_PATHS = ['styled-components', 'styled-components/no-tags', 'styled-components/native', 'styled-components/primitives'];
var CACHE_MISS = Symbol('CACHE_MISS');

@@ -29,7 +28,7 @@ var isValidTopLevelImport = function isValidTopLevelImport(x) {

if (!bypassCache && cacheKey in localNameCache && localNameCache[cacheKey] !== CACHE_MISS) {
if (!bypassCache && cacheKey in localNameCache) {
return localNameCache[cacheKey];
}
var localName = state.styledRequired ? name === 'default' ? 'styled' : name : CACHE_MISS;
var localName = state.styledRequired ? name === 'default' ? 'styled' : name : false;
state.file.path.traverse({

@@ -36,0 +35,0 @@ ImportDeclaration: {

2

package.json
{
"version": "1.11.0",
"version": "1.11.1",
"name": "babel-plugin-styled-components",

@@ -4,0 +4,0 @@ "description": "Improve the debugging experience and add server-side rendering support to styled-components",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc