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

@vue/babel-plugin-jsx

Package Overview
Dependencies
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/babel-plugin-jsx - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

11

dist/index.js

@@ -125,4 +125,7 @@ "use strict";

var transformJSXText = (path) => {
const { node } = path;
const lines = node.value.split(/\r\n|\n|\r/);
const str = transformText(path.node.value);
return str !== "" ? t.stringLiteral(str) : null;
};
var transformText = (text) => {
const lines = text.split(/\r\n|\n|\r/);
let lastNonEmptyLine = 0;

@@ -154,3 +157,3 @@ for (let i = 0; i < lines.length; i++) {

}
return str !== "" ? t.stringLiteral(str) : null;
return str;
};

@@ -407,3 +410,3 @@ var transformJSXExpressionContainer = (path) => path.get("expression").node;

if (valuePath.isStringLiteral()) {
return transformJSXText(valuePath);
return t3.stringLiteral(transformText(valuePath.node.value));
}

@@ -410,0 +413,0 @@ if (valuePath.isJSXExpressionContainer()) {

{
"name": "@vue/babel-plugin-jsx",
"version": "1.1.4",
"version": "1.1.5",
"description": "Babel plugin for Vue 3 JSX",

@@ -30,3 +30,3 @@ "author": "Amour1688 <lcz_1996@foxmail.com>",

"svg-tags": "^1.0.0",
"@vue/babel-helper-vue-transform-on": "^1.1.4"
"@vue/babel-helper-vue-transform-on": "^1.1.5"
},

@@ -33,0 +33,0 @@ "devDependencies": {

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