Socket
Socket
Sign inDemoInstall

type-coverage

Package Overview
Dependencies
Maintainers
1
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-coverage - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

33

dist/index.js

@@ -367,2 +367,34 @@ "use strict";

}
else if (node.kind === ts.SyntaxKind.Constructor) {
const constructorDeclaration = node;
handleNode(constructorDeclaration.name, file, sourceFile);
for (const parameter of constructorDeclaration.parameters) {
handleNode(parameter, file, sourceFile);
}
handleNode(constructorDeclaration.body, file, sourceFile);
}
else if (node.kind === ts.SyntaxKind.NamespaceExportDeclaration) {
const namespaceExportDeclaration = node;
handleNode(namespaceExportDeclaration.name, file, sourceFile);
}
else if (node.kind === ts.SyntaxKind.QualifiedName) {
const qualifiedName = node;
handleNode(qualifiedName.left, file, sourceFile);
handleNode(qualifiedName.right, file, sourceFile);
}
else if (node.kind === ts.SyntaxKind.ArrayBindingPattern) {
const arrayBindingPattern = node;
for (const element of arrayBindingPattern.elements) {
handleNode(element, file, sourceFile);
}
}
else if (node.kind === ts.SyntaxKind.ExternalModuleReference) {
const externalModuleReference = node;
handleNode(externalModuleReference.expression, file, sourceFile);
}
else if (node.kind === ts.SyntaxKind.SpreadAssignment) {
const spreadAssignment = node;
handleNode(spreadAssignment.name, file, sourceFile);
handleNode(spreadAssignment.expression, file, sourceFile);
}
else if (node.kind === ts.SyntaxKind.EndOfFileToken

@@ -378,2 +410,3 @@ || node.kind === ts.SyntaxKind.NumericLiteral

|| node.kind === ts.SyntaxKind.TrueKeyword
|| node.kind === ts.SyntaxKind.EmptyStatement
|| node.kind === ts.SyntaxKind.BreakStatement

@@ -380,0 +413,0 @@ || node.kind === ts.SyntaxKind.ContinueStatement

2

package.json
{
"name": "type-coverage",
"version": "1.0.2",
"version": "1.0.3",
"description": "A CLI tool to check type coverage for typescript code",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -14,3 +14,3 @@ # type-coverage

`yarn add type-coverage -g`
`yarn add global type-coverage`

@@ -17,0 +17,0 @@ ## usage

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