This commit is contained in:
2022-07-18 02:50:52 +00:00
parent befd344ab0
commit 06181b34d6
8569 changed files with 818704 additions and 352705 deletions
+1 -1
View File
@@ -9,4 +9,4 @@
* @param t
* @param path
* @returns boolean
*/var index=a=>{const b=a.types;return{inherits:syntaxJsx,visitor:{Program(a){a.traverse({ExportDefaultDeclaration(a){b.isArrowFunctionExpression(a.node.declaration)&&hasJSX(b,a)&&convertFunctionalComponent(b,a.get("declaration"))},VariableDeclaration(a){if(1===a.node.declarations.length&&b.isVariableDeclarator(a.node.declarations[0])&&b.isArrowFunctionExpression(a.node.declarations[0].init)){const c=a.get("declarations")[0];if(isFunctionalComponentDeclarator(b,c)){const c=a.node.declarations[0].id.name;convertFunctionalComponent(b,a.get("declarations")[0].get("init"),c)}}}})}}}};module.exports=index;
*/var index=a=>{const b=a.types;return{inherits:syntaxJsx,visitor:{Program(a){a.traverse({ExportDefaultDeclaration:{exit(a){b.isArrowFunctionExpression(a.node.declaration)&&hasJSX(b,a)&&convertFunctionalComponent(b,a.get("declaration"))}},VariableDeclaration:{exit(a){if(1===a.node.declarations.length&&b.isVariableDeclarator(a.node.declarations[0])&&b.isArrowFunctionExpression(a.node.declarations[0].init)){const c=a.get("declarations")[0];if(isFunctionalComponentDeclarator(b,c)){const c=a.node.declarations[0].id.name;convertFunctionalComponent(b,a.get("declarations")[0].get("init"),c)}}}}})}}}};module.exports=index;
+17 -14
View File
@@ -1,33 +1,33 @@
{
"_args": [
[
"@vue/babel-sugar-functional-vue@1.1.2",
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
"@vue/babel-sugar-functional-vue@1.2.2",
"/home/node/nuxt"
]
],
"_from": "@vue/babel-sugar-functional-vue@1.1.2",
"_id": "@vue/babel-sugar-functional-vue@1.1.2",
"_from": "@vue/babel-sugar-functional-vue@1.2.2",
"_id": "@vue/babel-sugar-functional-vue@1.2.2",
"_inBundle": false,
"_integrity": "sha512-YhmdJQSVEFF5ETJXzrMpj0nkCXEa39TvVxJTuVjzvP2rgKhdMmQzlJuMv/HpadhZaRVMCCF3AEjjJcK5q/cYzQ==",
"_integrity": "sha512-JvbgGn1bjCLByIAU1VOoepHQ1vFsroSA/QkzdiSs657V79q6OwEWLCQtQnEXD/rLTA8rRit4rMOhFpbjRFm82w==",
"_location": "/@vue/babel-sugar-functional-vue",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "@vue/babel-sugar-functional-vue@1.1.2",
"raw": "@vue/babel-sugar-functional-vue@1.2.2",
"name": "@vue/babel-sugar-functional-vue",
"escapedName": "@vue%2fbabel-sugar-functional-vue",
"scope": "@vue",
"rawSpec": "1.1.2",
"rawSpec": "1.2.2",
"saveSpec": null,
"fetchSpec": "1.1.2"
"fetchSpec": "1.2.2"
},
"_requiredBy": [
"/@vue/babel-preset-jsx"
],
"_resolved": "https://registry.npmjs.org/@vue/babel-sugar-functional-vue/-/babel-sugar-functional-vue-1.1.2.tgz",
"_spec": "1.1.2",
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
"_resolved": "https://registry.npmjs.org/@vue/babel-sugar-functional-vue/-/babel-sugar-functional-vue-1.2.2.tgz",
"_spec": "1.2.2",
"_where": "/home/node/nuxt",
"author": {
"name": "Nick Messing",
"email": "dot.nick.dot.messing@gmail.com"
@@ -49,7 +49,7 @@
"vue": "^2.5.17"
},
"files": [],
"gitHead": "67d6d39beab9f853118b4e0bbe901f5899ae7245",
"gitHead": "e7413fd4de9f658dcc99cb17323b8404d2164bb7",
"license": "MIT",
"main": "dist/plugin.js",
"name": "@vue/babel-sugar-functional-vue",
@@ -63,6 +63,9 @@
"@babel/core": "^7.0.0-0"
},
"private": false,
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/vuejs/jsx/tree/master/packages/babel-sugar-functional-vue"
@@ -71,8 +74,8 @@
"build": "rollup -c",
"build:test": "rollup -c rollup.config.testing.js",
"prepublish": "yarn build",
"pretest": "yarn build:test",
"pretest": "yarn build:test && cd ../babel-plugin-transform-vue-jsx && yarn build:test",
"test": "nyc --reporter=html --reporter=text-summary ava -v test/test.js"
},
"version": "1.1.2"
"version": "1.2.2"
}