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.7.0 to 1.7.1

4

doc/cli.md

@@ -35,4 +35,4 @@ # dependency-cruiser command line interface

See the _dependency-cruise_ target in the [Makefile](https://github.com/sverweij/dependency-cruiser/blob/master/Makefile#L78) for a real world
example.
See the _dependency-cruise_ target in the [Makefile](https://github.com/sverweij/dependency-cruiser/blob/master/Makefile#L95)
for a real world example.

@@ -39,0 +39,0 @@ ### dot

# dependency-cruiser's validation format
- A [json schema](../src/validate/jsonschema.json) describes the output format.
- Examples:
- a [starter rule set](./jsonschema.json)
- a [starter rule set](./rules.starter.json)
- dependency-cruiser's [own rule set](../.dependency-cruiser-custom.json)

@@ -36,1 +36,16 @@

```
## Basics
- _Explain name/ severity/ comment/ from/ to/ path_
- _Advise {} over {"path": ".+"}_
## Reference
### Forbidden
### Allowed
### Specifying and excluding paths
### Attributes
#### path
#### pathNot
#### couldNotResolve
#### coreModule
{
"name": "dependency-cruiser",
"version": "1.7.0",
"version": "1.7.1",
"description": "Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.",

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

"acorn": "4.0.3",
"ajv": "4.9.1",
"ajv": "4.9.2",
"chalk": "1.1.3",

@@ -65,3 +65,3 @@ "coffee-script": "1.12.0",

"semver": "5.3.0",
"typescript": "2.0.10"
"typescript": "2.1.4"
},

@@ -68,0 +68,0 @@ "engines": {

# Dependency cruiser ![Dependency cruiser](https://raw.githubusercontent.com/sverweij/dependency-cruiser/master/doc/assets/ZKH-Dependency-recolored-160.png)
_Validate and visualize dependencies. With your rules._ JavaScript, TypeScript. ES6, CommonJS, AMD.
_Validate and visualize dependencies. With your rules._ JavaScript. TypeScript. CoffeeScript. ES6, CommonJS, AMD.

@@ -7,3 +7,3 @@ ![Snazzy dot output to whet your appetite](https://raw.githubusercontent.com/sverweij/dependency-cruiser/master/doc/assets/sample-dot-output.png)

## What's this do?
- Run through the dependencies in any JavaScript or TypeScript project and ...
- Run through the dependencies in any JavaScript, TypeScript or CoffeeScript project and ...
- ... **validate** them against a set of (your own) rules

@@ -14,3 +14,3 @@ - ... **report** violated rules

As a nice side effect it can generate **cool dependency graphs**
As a nice side effect it can generate [**cool dependency graphs**](https://github.com/sverweij/dependency-cruiser/blob/master/doc/real-world-samples.md)
you can stick on the wall to impress your grandma.

@@ -17,0 +17,0 @@

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

if ([".litcoffee", ".coffee.md"].some(pExt => path.extname(pFileName) === pExt)){
lFile = coffeeScript.compile(lFile, {literate:true});
}
try {

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

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

const SUPPORTED_EXTENSIONS = [
".js",
".ts",
".coffee",
".litcoffee",
".coffee.md"
];
function getAllJSFilesFromDir (pDirName, pOptions) {

@@ -18,3 +26,3 @@ return fs.readdirSync(pDirName)

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

@@ -21,0 +29,0 @@ }

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

const SUPPORTED_EXTENSIONS = [
".js",
".ts",
".d.ts",
".coffee",
".litcoffee",
".coffee.md"
];
/*

@@ -24,3 +33,9 @@ * resolves both CommonJS and ES6

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

@@ -27,0 +42,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