Socket
Socket
Sign inDemoInstall

dependency-cruiser

Package Overview
Dependencies
Maintainers
1
Versions
533
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dependency-cruiser - npm Package Compare versions

Comparing version 1.9.1 to 1.9.2

2

package.json
{
"name": "dependency-cruiser",
"version": "1.9.1",
"version": "1.9.2",
"description": "Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.",

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

@@ -21,6 +21,10 @@ "use strict";

.forEach(arg =>
arg.elements.forEach(el => pDependencies.push({
moduleName: el.value,
moduleSystem: "amd"
}))
arg.elements.forEach(el =>
el.value.split('!').forEach(pString =>
pDependencies.push({
moduleName: pString,
moduleSystem: "amd"
})
)
)
);

@@ -27,0 +31,0 @@ }

@@ -10,2 +10,3 @@ "use strict";

// require('./lalala').doFunkyStuff();
// require('zoinks!./wappie')
walk.simple(

@@ -17,6 +18,8 @@ pAST,

if (pNode.arguments && pNode.arguments[0] && pNode.arguments[0].value){
pDependencies.push({
moduleName: pNode.arguments[0].value,
moduleSystem: pModuleSystem ? pModuleSystem : "cjs"
});
pNode.arguments[0].value.split("!").forEach(pString =>
pDependencies.push({
moduleName: pString,
moduleSystem: pModuleSystem ? pModuleSystem : "cjs"
})
);
}

@@ -23,0 +26,0 @@ }

@@ -151,3 +151,6 @@ "use strict";

const lDependencies = extractFileDirArray(pFileDirArray, pOptions).reduce(complete, []);
const lDependencies = _(
extractFileDirArray(pFileDirArray, pOptions).reduce(complete, [])
).uniqBy(pDependency => pDependency.source)
.value();
const lViolations = extractViolations(lDependencies);

@@ -154,0 +157,0 @@

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