Socket
Socket
Sign inDemoInstall

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

Package Overview
Dependencies
Maintainers
9
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.5.0 to 0.5.1

27

lib/index.js

@@ -91,14 +91,15 @@ 'use strict';

extractStaticValueFromFile(file, opts, function (_staticPropsList, _importsDeclarations) {
staticPropsList = staticPropsList.concat(_staticPropsList);
cachedFiles[file] = _staticPropsList;
importsDeclarations = _importsDeclarations;
});
if (cachedFiles[file]) {
staticPropsList = staticPropsList.concat(cachedFiles[file].propsList);
importsDeclarations = cachedFiles[file].importsDeclarations;
} else {
extractStaticValueFromFile(file, opts, function (_staticPropsList, _importsDeclarations) {
staticPropsList = staticPropsList.concat(_staticPropsList);
importsDeclarations = _importsDeclarations;
cachedFiles[file] = { propsList: _staticPropsList, importsDeclarations: importsDeclarations };
});
}
importsDeclarations.forEach(function (file) {
if (!cachedFiles[file]) {
_extractStaticValueImportedFilesFromFile(file, opts, staticPropsList);
} else {
staticPropsList = staticPropsList.concat(cachedFiles[file]);
}
_extractStaticValueImportedFilesFromFile(file, opts, staticPropsList);
});

@@ -108,9 +109,9 @@ }

if (cachedFiles[file]) {
staticPropsList = cachedFiles[file];
staticPropsList = cachedFiles[file].propsList;
} else {
_extractStaticValueImportedFilesFromFile(file, opts);
cachedFiles[file] = staticPropsList;
cachedFiles[file] = { propsList: staticPropsList, importsDeclarations: [] };
}
var values = [].concat(_toConsumableArray(new Set(staticPropsList)));
var values = [].concat(_toConsumableArray(new Set(cachedFiles[file].propsList)));

@@ -117,0 +118,0 @@ cb(values);

{
"name": "@hh.ru/babel-plugin-static-value-extractor",
"version": "0.5.0",
"version": "0.5.1",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

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