@hh.ru/babel-plugin-static-value-extractor
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -70,3 +70,4 @@ "use strict"; | ||
var staticPropName = opts.staticPropName, | ||
pathsToReplace = opts.pathsToReplace; | ||
pathsToReplace = opts.pathsToReplace, | ||
constantName = opts.constantName; | ||
var importDeclarationPaths = []; | ||
@@ -98,2 +99,9 @@ | ||
}, | ||
VariableDeclarator: { | ||
enter: function enter(path) { | ||
if (constantName && path.node.id.name === constantName && _core.types.isProgram(path.parentPath.parent)) { | ||
staticProps = getConcatenatedStaticProps(staticProps, path.node.init); | ||
} | ||
} | ||
}, | ||
ClassProperty: { | ||
@@ -100,0 +108,0 @@ enter: function enter(path) { |
{ | ||
"name": "@hh.ru/babel-plugin-static-value-extractor", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "devDependencies": { |
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
17818
8
276
1