babel-plugin-hylid-bridge
Advanced tools
Comparing version 3.2.0-alpha.8 to 3.2.0-alpha.10
@@ -27,3 +27,3 @@ "use strict"; | ||
return word.replace(/[A-Z]/g, function (match, index) { | ||
return index === 0 ? match.toLowerCase() : "_".concat(match); | ||
return index === 0 ? match.toLowerCase() : "_".concat(match.toLowerCase()); | ||
}); | ||
@@ -30,0 +30,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 _buildElseIf = function _buildElseIf(targetList) { | ||
var _buildElseIf2 = 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)))]), _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.objectExpression(propertyList)))]), _buildElseIf2(targetList.slice(1))); | ||
}; | ||
@@ -194,3 +194,3 @@ nodes.push(babelTypes.variableDeclaration('var', [babelTypes.variableDeclarator(babelTypes.identifier(myLocalName))])); | ||
} else { | ||
var _elseIfNode = _buildElseIf(targets); | ||
var _elseIfNode = _buildElseIf2(targets); | ||
_elseIfNode && nodes.push(_elseIfNode); | ||
@@ -197,0 +197,0 @@ } |
{ | ||
"name": "babel-plugin-hylid-bridge", | ||
"version": "3.2.0-alpha.8", | ||
"version": "3.2.0-alpha.10", | ||
"description": "babel-plugin-hylid-bridge", | ||
@@ -25,3 +25,3 @@ "main": "lib/index.js", | ||
"babel-plugin-tester": "^10.1.0", | ||
"hylid-bridge": "^3.2.0-alpha.8" | ||
"hylid-bridge": "^3.2.0-alpha.10" | ||
}, | ||
@@ -28,0 +28,0 @@ "sideEffects": false, |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a 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
28051
1