New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@teleporthq/teleport-plugin-react-styled-components

Package Overview
Dependencies
Maintainers
2
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teleporthq/teleport-plugin-react-styled-components - npm Package Compare versions

Comparing version 0.36.3 to 0.36.4

11

dist/cjs/index.js

@@ -103,14 +103,13 @@ "use strict";

var projectStyleReferences = new Set();
var root = jsxNodesLookup[key];
if (root === undefined) {
throw new teleport_types_1.PluginStyledComponent("Element \n ".concat(JSON.stringify(element, null, 2), " \n with key ").concat(key, " is missing from the template chunk"));
}
if ((dependency === null || dependency === void 0 ? void 0 : dependency.type) === 'local') {
teleport_plugin_common_1.StyleBuilders.setPropValueForCompStyle({
attrs: attrs,
key: key,
jsxNodesLookup: jsxNodesLookup,
root: root,
getClassName: getClassName,
});
}
var root = jsxNodesLookup[key];
if (root === undefined) {
throw new teleport_types_1.PluginStyledComponent("Element \n ".concat(JSON.stringify(element, null, 2), " \n with key ").concat(key, " is missing from the template chunk"));
}
var className = teleport_shared_1.StringUtils.dashCaseToUpperCamelCase(key);

@@ -117,0 +116,0 @@ if (style) {

@@ -76,14 +76,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

var projectStyleReferences = new Set();
var root = jsxNodesLookup[key];
if (root === undefined) {
throw new PluginStyledComponent("Element \n ".concat(JSON.stringify(element, null, 2), " \n with key ").concat(key, " is missing from the template chunk"));
}
if ((dependency === null || dependency === void 0 ? void 0 : dependency.type) === 'local') {
StyleBuilders.setPropValueForCompStyle({
attrs: attrs,
key: key,
jsxNodesLookup: jsxNodesLookup,
root: root,
getClassName: getClassName,
});
}
var root = jsxNodesLookup[key];
if (root === undefined) {
throw new PluginStyledComponent("Element \n ".concat(JSON.stringify(element, null, 2), " \n with key ").concat(key, " is missing from the template chunk"));
}
var className = StringUtils.dashCaseToUpperCamelCase(key);

@@ -90,0 +89,0 @@ if (style) {

{
"name": "@teleporthq/teleport-plugin-react-styled-components",
"version": "0.36.3",
"version": "0.36.4",
"description": "A plugin for injecting the styles through styled-components inside React components",

@@ -28,7 +28,7 @@ "author": "teleportHQ",

"@babel/types": "^7.5.5",
"@teleporthq/teleport-plugin-common": "^0.36.3",
"@teleporthq/teleport-plugin-common": "^0.36.4",
"@teleporthq/teleport-shared": "^0.36.0",
"@teleporthq/teleport-types": "^0.36.0"
},
"gitHead": "396edb4848948bdc958929df0d863070fef0c681"
"gitHead": "ed0d0df03112a5d9e9840d54f44884c369155c47"
}

@@ -80,11 +80,2 @@ import * as types from '@babel/types'

if (dependency?.type === 'local') {
StyleBuilders.setPropValueForCompStyle({
attrs,
key,
jsxNodesLookup,
getClassName,
})
}
const root = jsxNodesLookup[key]

@@ -101,2 +92,10 @@ if (root === undefined) {

if (dependency?.type === 'local') {
StyleBuilders.setPropValueForCompStyle({
attrs,
root,
getClassName,
})
}
let className = StringUtils.dashCaseToUpperCamelCase(key)

@@ -103,0 +102,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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