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

@teleporthq/teleport-plugin-css

Package Overview
Dependencies
Maintainers
4
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teleporthq/teleport-plugin-css - npm Package Compare versions

Comparing version

to
0.18.0

9

__tests__/index.ts

@@ -19,2 +19,11 @@ import { component, elementNode, staticNode } from '@teleporthq/teleport-uidl-builders'

uidlSample.node.content.key = 'element-key'
componentChunk.meta.nodesLookup = {
...componentChunk.meta.nodesLookup,
'element-key': {
type: 'element',
tagName: 'div',
properties: {},
},
}
const structure: ComponentStructure = {

@@ -21,0 +30,0 @@ uidl: uidlSample,

3

dist/cjs/index.js

@@ -114,2 +114,5 @@ "use strict";

var root = templateLookup[key];
if (!root) {
throw new teleport_types_1.PluginCSS("Node - " + key + " is missing from the template chunk");
}
var elementClassName = teleport_shared_1.StringUtils.camelCaseToDashCase(key);

@@ -116,0 +119,0 @@ var componentFileName = teleport_shared_1.UIDLUtils.getComponentFileName(uidl); // Filename used to enforce dash case naming

@@ -91,2 +91,5 @@ var __assign = (this && this.__assign) || function () {

var root = templateLookup[key];
if (!root) {
throw new PluginCSS("Node - " + key + " is missing from the template chunk");
}
var elementClassName = StringUtils.camelCaseToDashCase(key);

@@ -93,0 +96,0 @@ var componentFileName = UIDLUtils.getComponentFileName(uidl); // Filename used to enforce dash case naming

10

package.json
{
"name": "@teleporthq/teleport-plugin-css",
"version": "0.17.7",
"version": "0.18.0",
"description": "A plugin for creating the styles into external css files",

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

"@babel/types": "^7.5.5",
"@teleporthq/teleport-plugin-common": "^0.17.7",
"@teleporthq/teleport-shared": "^0.17.7",
"@teleporthq/teleport-types": "^0.17.7"
"@teleporthq/teleport-plugin-common": "^0.18.0",
"@teleporthq/teleport-shared": "^0.18.0",
"@teleporthq/teleport-types": "^0.18.0"
},
"gitHead": "5547aade455379febefd8b84efa856f6346a8404"
"gitHead": "7b47f013bf1889e19b31875a8f3abdc43b22615a"
}

@@ -93,2 +93,5 @@ import { StringUtils, UIDLUtils } from '@teleporthq/teleport-shared'

const root = templateLookup[key]
if (!root) {
throw new PluginCSS(`Node - ${key} is missing from the template chunk`)
}

@@ -95,0 +98,0 @@ const elementClassName = StringUtils.camelCaseToDashCase(key)

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