Socket
Socket
Sign inDemoInstall

babel-helper-vue-jsx-merge-props

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-helper-vue-jsx-merge-props - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

15

index.js

@@ -5,3 +5,3 @@ var nestRE = /^(attrs|props|on|nativeOn|class|style|hook)$/

return objs.reduce(function (a, b) {
var aa, bb, key, nestedKey
var aa, bb, key, nestedKey, temp
for (key in b) {

@@ -11,2 +11,15 @@ aa = a[key]

if (aa && nestRE.test(key)) {
// normalize class
if (key === 'class') {
if (typeof aa === 'string') {
temp = aa
a[key] = aa = {}
aa[temp] = true
}
if (typeof bb === 'string') {
temp = bb
b[key] = bb = {}
bb[temp] = true
}
}
if (key === 'on' || key === 'nativeOn' || key === 'hook') {

@@ -13,0 +26,0 @@ // merge functions

2

package.json
{
"name": "babel-helper-vue-jsx-merge-props",
"version": "2.0.1",
"version": "2.0.2",
"description": "babel helper for vue jsx spread.",

@@ -5,0 +5,0 @@ "main": "index.js",

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