detective-typescript
Advanced tools
Comparing version 11.0.0 to 11.0.1
'use strict'; | ||
const Parser = require('@typescript-eslint/typescript-estree'); | ||
const parser = require('@typescript-eslint/typescript-estree'); | ||
const types = require('ast-module-types'); | ||
const Walker = require('node-source-walk'); | ||
const types = require('ast-module-types'); | ||
@@ -17,3 +17,3 @@ /** | ||
const walkerOptions = { ...options, parser: Parser }; | ||
const walkerOptions = { ...options, parser }; | ||
@@ -67,3 +67,3 @@ // Determine whether to skip "type-only" imports | ||
!node.arguments || | ||
!node.arguments.length) { | ||
node.arguments.length === 0) { | ||
break; | ||
@@ -70,0 +70,0 @@ } |
{ | ||
"name": "detective-typescript", | ||
"version": "11.0.0", | ||
"version": "11.0.1", | ||
"author": "Patrik Henningsson <patrik.henningsson@gmail.com>", | ||
@@ -43,5 +43,5 @@ "description": "Get the dependencies of a TypeScript module", | ||
"c8": "^7.13.0", | ||
"eslint": "^8.39.0", | ||
"eslint": "^8.40.0", | ||
"mocha": "^10.2.0" | ||
} | ||
} |
@@ -1,3 +0,7 @@ | ||
### detective-typescript [![CI](https://img.shields.io/github/actions/workflow/status/dependents/detective-typescript/ci.yml?branch=main&label=CI&logo=github)](https://github.com/dependents/detective-typescript/actions/workflows/ci.yml?query=branch%3Amain) [![npm](https://img.shields.io/npm/v/detective-typescript)](https://www.npmjs.com/package/detective-typescript) [![npm](https://img.shields.io/npm/dm/detective-typescript)](https://www.npmjs.com/package/detective-typescript) | ||
# detective-typescript | ||
[![CI](https://img.shields.io/github/actions/workflow/status/dependents/detective-typescript/ci.yml?branch=main&label=CI&logo=github)](https://github.com/dependents/detective-typescript/actions/workflows/ci.yml?query=branch%3Amain) | ||
[![npm version](https://img.shields.io/npm/v/detective-typescript?logo=npm&logoColor=fff)](https://www.npmjs.com/package/detective-typescript) | ||
[![npm downloads](https://img.shields.io/npm/dm/detective-typescript)](https://www.npmjs.com/package/detective-typescript) | ||
> Get the dependencies of TypeScript module | ||
@@ -9,3 +13,3 @@ | ||
### Usage | ||
## Usage | ||
@@ -22,3 +26,3 @@ ```js | ||
### Options | ||
## Options | ||
@@ -30,4 +34,4 @@ - `skipTypeImports` (default: `false`) Skips imports that only imports types | ||
#### License | ||
## License | ||
MIT |
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
5526
35