babel-plugin-hylid-bridge
Advanced tools
Comparing version 3.2.0-alpha.11 to 3.2.0
@@ -140,3 +140,3 @@ "use strict"; | ||
}))); | ||
var _buildElseIf = function buildElseIf(targetList) { | ||
var buildElseIf = function buildElseIf(targetList) { | ||
if (!targetList.length) { | ||
@@ -147,3 +147,3 @@ return; | ||
var targetSplit = (0, _helper.splitTarget)(target); | ||
return babelTypes.ifStatement(babelTypes.identifier("".concat(appEnvLocalName, ".").concat((0, _helper.camelCase)("is_".concat(targetSplit[0], "_").concat(targetSplit[1])))), babelTypes.blockStatement([babelTypes.expressionStatement(babelTypes.assignmentExpression('=', babelTypes.identifier(myLocalName), babelTypes.identifier("".concat(identifierPrefix).concat(targetSplit[0], "_").concat(targetSplit[1], "_my__"))))]), _buildElseIf(targetList.slice(1))); | ||
return babelTypes.ifStatement(babelTypes.identifier("".concat(appEnvLocalName, ".").concat((0, _helper.camelCase)("is_".concat(targetSplit[0], "_").concat(targetSplit[1])))), babelTypes.blockStatement([babelTypes.expressionStatement(babelTypes.assignmentExpression('=', babelTypes.identifier(myLocalName), babelTypes.identifier("".concat(identifierPrefix).concat(targetSplit[0], "_").concat(targetSplit[1], "_my__"))))]), buildElseIf(targetList.slice(1))); | ||
}; | ||
@@ -156,3 +156,3 @@ nodes.push(babelTypes.variableDeclaration('var', [babelTypes.variableDeclarator(babelTypes.identifier(myLocalName))])); | ||
} else { | ||
var elseIfNode = _buildElseIf(targets); | ||
var elseIfNode = buildElseIf(targets); | ||
elseIfNode && nodes.push(elseIfNode); | ||
@@ -172,3 +172,3 @@ } | ||
}); | ||
var _buildElseIf2 = function buildElseIf(targetList) { | ||
var _buildElseIf = function _buildElseIf(targetList) { | ||
if (!targetList.length) { | ||
@@ -182,3 +182,3 @@ return; | ||
}); | ||
return babelTypes.ifStatement(babelTypes.identifier("".concat(appEnvLocalName, ".").concat((0, _helper.camelCase)("is_".concat(targetSplit[0], "_").concat(targetSplit[1])))), babelTypes.blockStatement([babelTypes.expressionStatement(babelTypes.assignmentExpression('=', babelTypes.identifier(myLocalName), babelTypes.objectExpression(propertyList)))]), _buildElseIf2(targetList.slice(1))); | ||
return babelTypes.ifStatement(babelTypes.identifier("".concat(appEnvLocalName, ".").concat((0, _helper.camelCase)("is_".concat(targetSplit[0], "_").concat(targetSplit[1])))), babelTypes.blockStatement([babelTypes.expressionStatement(babelTypes.assignmentExpression('=', babelTypes.identifier(myLocalName), babelTypes.objectExpression(propertyList)))]), _buildElseIf(targetList.slice(1))); | ||
}; | ||
@@ -194,3 +194,3 @@ nodes.push(babelTypes.variableDeclaration('var', [babelTypes.variableDeclarator(babelTypes.identifier(myLocalName))])); | ||
} else { | ||
var _elseIfNode = _buildElseIf2(targets); | ||
var _elseIfNode = _buildElseIf(targets); | ||
_elseIfNode && nodes.push(_elseIfNode); | ||
@@ -197,0 +197,0 @@ } |
{ | ||
"name": "babel-plugin-hylid-bridge", | ||
"version": "3.2.0-alpha.11", | ||
"version": "3.2.0", | ||
"description": "babel-plugin-hylid-bridge", | ||
@@ -25,7 +25,6 @@ "main": "lib/index.js", | ||
"babel-plugin-tester": "^10.1.0", | ||
"hylid-bridge": "^3.2.0-alpha.11" | ||
"hylid-bridge": "^3.2.0" | ||
}, | ||
"sideEffects": false, | ||
"registry": "https://registry.npmjs.org/", | ||
"repository": "https://code.alipay.com/ant-ife/hylid-bridge.git" | ||
"registry": "https://registry.npmjs.org/" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
27960