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.6.3 to 1.7.0

6

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

@@ -22,2 +22,3 @@ "dependency-cruiser": "bin/dependency-cruise",

"typescript",
"coffeescript",
"dependencies",

@@ -56,2 +57,3 @@ "ES6",

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

@@ -58,0 +60,0 @@ "figures": "2.0.0",

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

const typescript = require('typescript');
const coffeeScript = require('coffee-script');
const fs = require('fs');

@@ -32,2 +33,6 @@ const _ = require('lodash');

if (path.extname(pFileName) === ".coffee"){
lFile = coffeeScript.compile(lFile);
}
try {

@@ -34,0 +39,0 @@ return acorn.parse(lFile, {sourceType: 'module'});

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

}
if ([".js", ".ts"].some(pExt => path.extname(pFileName) === pExt)){
if ([".js", ".ts", ".coffee"].some(pExt => path.extname(pFileName) === pExt)){
return pSum.concat(path.join(pDirName, pFileName));

@@ -20,0 +20,0 @@ }

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

pBaseDir,
resolve.sync(pModuleName, {basedir: pFileDir, extensions: [".js", ".ts", ".d.ts"]})
resolve.sync(pModuleName, {basedir: pFileDir, extensions: [".js", ".ts", ".d.ts", ".coffee"]})
);

@@ -26,0 +26,0 @@ lRetval.followable = (path.extname(lRetval.resolved) !== ".json");

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