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

babel-plugin-hylid-bridge

Package Overview
Dependencies
Maintainers
0
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-hylid-bridge - npm Package Compare versions

Comparing version 3.2.0-alpha.8 to 3.2.0-alpha.10

2

lib/helper.js

@@ -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,

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