Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dependency-cruiser

Package Overview
Dependencies
Maintainers
1
Versions
536
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.7.1 to 1.7.2

src/report/vis.template.hbs

4

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

@@ -56,3 +56,3 @@ "bin": {

"chalk": "1.1.3",
"coffee-script": "1.12.0",
"coffee-script": "1.12.1",
"commander": "2.9.0",

@@ -59,0 +59,0 @@ "figures": "2.0.0",

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

const reportErr = require("../report/errReporter");
const reportVis = require("../report/visReporter");

@@ -19,3 +20,4 @@ const TYPE2REPORTER = {

"csv" : reportCsv,
"err" : reportErr
"err" : reportErr,
"vis" : reportVis
};

@@ -22,0 +24,0 @@

@@ -9,3 +9,3 @@ "use strict";

const MODULE_SYSTEM_LIST_RE = /^((cjs|amd|es6)(,|$))+$/gi;
const OUTPUT_TYPES_RE = /(html|dot|csv|err|json)/g;
const OUTPUT_TYPES_RE = /(html|dot|csv|err|json|vis)/g;

@@ -12,0 +12,0 @@ function validateFileExistence(pDirOrFile) {

@@ -25,6 +25,6 @@ "use strict";

return pRule =>
(!Boolean(pRule.from.path) || pFrom.match(pRule.from.path)) &&
(!Boolean(pRule.from.path) || pFrom.match(pRule.from.path)) &&
(!Boolean(pRule.from.pathNot) || !(pFrom.match(pRule.from.pathNot))) &&
(!Boolean(pRule.to.path) || pTo.resolved.match(pRule.to.path)) &&
(!Boolean(pRule.to.pathNot) || !(pTo.resolved.match(pRule.to.pathNot))) &&
(!Boolean(pRule.to.path) || pTo.resolved.match(pRule.to.path)) &&
(!Boolean(pRule.to.pathNot) || !(pTo.resolved.match(pRule.to.pathNot))) &&
propertyEquals(pTo, pRule, "coreModule") &&

@@ -31,0 +31,0 @@ propertyEquals(pTo, pRule, "couldNotResolve");

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