Socket
Socket
Sign inDemoInstall

madge

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

madge - npm Package Compare versions

Comparing version 3.9.0 to 3.9.1

7

bin/cli.js

@@ -111,2 +111,9 @@ #!/usr/bin/env node

if (config.tsConfig) {
const ts = require('typescript');
const tsParsedConfig = ts.readJsonConfigFile(config.tsConfig, ts.sys.readFile);
const obj = ts.parseJsonSourceFileConfigFileContent(tsParsedConfig, ts.sys, path.dirname(config.tsConfig));
config.tsConfig = obj.raw;
}
if (program.includeNpm) {

@@ -113,0 +120,0 @@ config.includeNpm = program.includeNpm;

4

CHANGELOG.md
# CHANGELOG
## v3.9.1 (June 08, 2020)
* Improved performance when reading TypeScript config (Thanks to @FauxFaux)
## v3.9.0 (May 07, 2020)

@@ -4,0 +8,0 @@

3

package.json
{
"name": "madge",
"version": "3.9.0",
"version": "3.9.1",
"author": "Patrik Henningsson <patrik.henningsson@gmail.com>",

@@ -66,2 +66,3 @@ "repository": "git://github.com/pahen/madge",

"rc": "^1.2.7",
"typescript": "^3.7.5",
"walkdir": "^0.4.1"

@@ -68,0 +69,0 @@ },

@@ -370,2 +370,6 @@ <p align="center">

## Using both Javascript and Typescript in your project?
Madge uses [dependency-tree](https://www.npmjs.com/package/dependency-tree) which uses [filing-cabinet](https://www.npmjs.com/package/filing-cabinet) to resolve modules. However it requires configurations for each file type (js/jsx) and (ts/tsx). So provide both `webpackConfig` and `tsConfig` options to madge.
## Using mixed import syntax in the same file?

@@ -372,0 +376,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