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

babel-plugin-transform-vue-jsx

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-vue-jsx - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

10

index.js

@@ -85,3 +85,3 @@ var esutils = require('esutils')

* support spread elements. We loop over all attributes,
* breaking on spreads, we then push a new object containg
* breaking on spreads, we then push a new object containing
* all prior attributes to an array for later processing.

@@ -112,3 +112,3 @@ */

if (objs[0]) {
if (objs[0] && t.isObjectExpression(objs[0])) {
objs[0] = groupProps(objs[0].properties, t)

@@ -125,6 +125,8 @@ }

}
// add prop merging helper
file.addImport('babel-helper-vue-jsx-merge-props', 'default', '_mergeJSXProps')
// spread it
attribs = t.callExpression(
file.addHelper('extends'),
objs
t.identifier('_mergeJSXProps'),
[t.arrayExpression(objs)]
)

@@ -131,0 +133,0 @@ }

4

package.json
{
"name": "babel-plugin-transform-vue-jsx",
"version": "1.0.1",
"version": "1.1.0",
"description": "Babel plugin for Vue 2.0 JSX",

@@ -34,2 +34,3 @@ "main": "index.js",

"peerDependencies": {
"babel-helper-vue-jsx-merge-props": "^1.0.0",
"babel-plugin-syntax-jsx": "^6.8.0"

@@ -39,2 +40,3 @@ },

"babel-cli": "^6.10.1",
"babel-helper-vue-jsx-merge-props": "^1.0.0",
"babel-plugin-syntax-jsx": "^6.8.0",

@@ -41,0 +43,0 @@ "babel-preset-es2015": "^6.9.0",

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