dependency-cruiser
Advanced tools
Comparing version 1.9.1 to 1.9.2
{ | ||
"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 @@ |
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
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
431117
1861