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

@ant-design-vue/babel-plugin-jsx

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 1.0.0-alpha.5 to 1.0.0-alpha.6

12

dist/index.js

@@ -561,7 +561,7 @@ 'use strict';

if ((patchFlag === 0 || patchFlag === PatchFlags.HYDRATE_EVENTS) && hasRef) {
if ((patchFlag === 0 || patchFlag === PatchFlags.HYDRATE_EVENTS) && (hasRef || directives.length > 0)) {
patchFlag |= PatchFlags.NEED_PATCH;
}
let propsExpression;
let propsExpression = t.nullLiteral();

@@ -655,4 +655,8 @@ if (mergeArgs.length) {

const child = children.length === 1 && t.isStringLiteral(children[0]) ? children[0] : t.arrayExpression(children);
const {
compatibleProps,
usePatchFlag
} = state.opts;
if (state.opts.compatibleProps && !state.get('compatibleProps')) {
if (compatibleProps && !state.get('compatibleProps')) {
state.set('compatibleProps', helperModuleImports.addDefault(path, '@ant-design-vue/babel-helper-vue-compatible-props', {

@@ -663,3 +667,3 @@ nameHint: '_compatibleProps'

const createVNode = t.callExpression(createIdentifier(t, state, 'createVNode'), [tag, state.opts.compatibleProps ? t.callExpression(state.get('compatibleProps'), [props]) : props, children[0] ? isComponent ? t.objectExpression([t.objectProperty(t.identifier('default'), t.callExpression(createIdentifier(t, state, 'withCtx'), [t.arrowFunctionExpression([], t.isStringLiteral(child) ? t.callExpression(createIdentifier(t, state, 'createTextVNode'), [child]) : child)])), t.objectProperty(t.identifier('_'), t.numericLiteral(1))]) : child : t.nullLiteral(), patchFlag && t.addComment(t.numericLiteral(patchFlag), 'trailing', ` ${flagNames} `, false), dynamicPropNames.size && t.arrayExpression([...dynamicPropNames.keys()].map(name => t.stringLiteral(name)))].filter(Boolean));
const createVNode = t.callExpression(createIdentifier(t, state, usePatchFlag ? 'createVNode' : 'h'), [tag, compatibleProps ? t.callExpression(state.get('compatibleProps'), [props]) : props, children[0] ? isComponent ? t.objectExpression([t.objectProperty(t.identifier('default'), t.callExpression(createIdentifier(t, state, 'withCtx'), [t.arrowFunctionExpression([], t.isStringLiteral(child) ? t.callExpression(createIdentifier(t, state, 'createTextVNode'), [child]) : child)]))]) : child : t.nullLiteral(), patchFlag && usePatchFlag && t.addComment(t.numericLiteral(patchFlag), 'trailing', ` ${flagNames} `, false), dynamicPropNames.size && usePatchFlag && t.arrayExpression([...dynamicPropNames.keys()].map(name => t.stringLiteral(name)))].filter(Boolean));

@@ -666,0 +670,0 @@ if (!directives.length) {

{
"name": "@ant-design-vue/babel-plugin-jsx",
"version": "1.0.0-alpha.5",
"version": "1.0.0-alpha.6",
"description": "Babel plugin for Vue 3.0 JSX",

@@ -5,0 +5,0 @@ "author": "Amour1688 <lcz_1996@foxmail.com>",

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