Socket
Socket
Sign inDemoInstall

@hh.ru/babel-plugin-static-value-extractor

Package Overview
Dependencies
Maintainers
13
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hh.ru/babel-plugin-static-value-extractor - npm Package Compare versions

Comparing version 0.8.0 to 0.9.0

.vscode/launch.json

10

lib/traverser.js

@@ -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) {

2

package.json
{
"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": {

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