New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dev-dep-tool

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dev-dep-tool - npm Package Compare versions

Comparing version 0.0.14-dev.6 to 0.0.14-dev.7

7

library/ExportIndex/parseExport.js

@@ -5,7 +5,7 @@ var _path = require("path");

var _File = require("dr-js/library/node/file/File");
const getExportListFromParsedAST = (fileString, sourceFilename) => {
const getExportListFromParsedAST = (fileString, sourceFilename, babylonPluginList) => {
const resultAST = (0, _babylon.parse)(fileString, {
sourceFilename,
sourceType: 'module',
plugins: ['objectRestSpread', 'classProperties', 'exportDefaultFrom', 'exportNamespaceFrom']
plugins: babylonPluginList || ['objectRestSpread', 'classProperties', 'exportDefaultFrom', 'exportNamespaceFrom', 'jsx']
});

@@ -29,2 +29,3 @@ const exportNodeList = resultAST.program.body.filter(({

const createExportParser = ({
babylonPluginList,
logger

@@ -54,3 +55,3 @@ }) => {

});
const exportList = getExportListFromParsedAST(fileString, path);
const exportList = getExportListFromParsedAST(fileString, path, babylonPluginList);
getRoute(routeList).fileList.push({

@@ -57,0 +58,0 @@ name: name.slice(0, -3),

@@ -1,1 +0,1 @@

{"name":"dev-dep-tool","version":"0.0.14-dev.6","author":"dr-js","license":"MIT","description":"Provide common package devDependencies","keywords":["Dr","Dr-js","JavaScript"],"homepage":"https://github.com/dr-js/dev-dep#readme","repository":{"type":"git","url":"git+https://github.com/dr-js/dev-dep.git"},"bugs":{"url":"https://github.com/dr-js/dev-dep/issues"},"bin":"bin/index.js","dependencies":{"dr-js":"^0.12.0-dev.2"}}
{"name":"dev-dep-tool","version":"0.0.14-dev.7","author":"dr-js","license":"MIT","description":"Provide common package devDependencies","keywords":["Dr","Dr-js","JavaScript"],"homepage":"https://github.com/dr-js/dev-dep#readme","repository":{"type":"git","url":"git+https://github.com/dr-js/dev-dep.git"},"bugs":{"url":"https://github.com/dr-js/dev-dep/issues"},"bin":"bin/index.js","dependencies":{"dr-js":"^0.12.0-dev.2"}}
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