Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-transform-jsx-to-html

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-jsx-to-html - npm Package Compare versions

Comparing version 0.2.1-beta.7 to 0.2.1-beta.8

8

lib/index.js

@@ -32,3 +32,3 @@ const esutils = require('esutils');

let html = `<${ tagName}`;
let html = `<${tagName}`;

@@ -72,3 +72,3 @@ let attrs = openingPath.node.attributes;

if (path.node.closingElement || innerHTML) {
pushResult(t.stringLiteral(`</${ tagName }>`), result);
pushResult(t.stringLiteral(`</${tagName}>`), result);
}

@@ -202,3 +202,3 @@

const value = prop.value.value.replace(/\n\s+/g, ' ');
staticAttrs = `${staticAttrs } ${ name }="${ value }"`;
staticAttrs = `${staticAttrs} ${name}="${value}"`;
} else {

@@ -266,3 +266,3 @@ _props.push(convertAttribute(prop));

node.name = t.stringLiteral(
`${node.name.namespace.name }:${ node.name.name.name}`,
`${node.name.namespace.name}:${node.name.name.name}`,
);

@@ -269,0 +269,0 @@ } else if (esutils.keyword.isIdentifierNameES6(node.name.name)) {

{
"name": "babel-plugin-transform-jsx-to-html",
"version": "0.2.1-beta.7",
"version": "0.2.1-beta.8",
"description": "Transform JSX to HTML.",

@@ -5,0 +5,0 @@ "license": "BSD-3-Clause",

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