Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

type-coverage

Package Overview
Dependencies
Maintainers
1
Versions
136
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 2.28.2 to 2.29.0

14

dist/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const minimist = require("minimist");
const chalk = require("chalk");
const fs = require("fs");

@@ -64,3 +65,3 @@ const util = require("util");

}
const { atLeast, debug, detail, enableCache, ignoreCatch, ignoreFiles, ignoreUnread, is, project, strict, update, updateIfHigher, ignoreNested, ignoreAsAssertion, ignoreTypeAssertion, ignoreNonNullAssertion, ignoreObject, ignoreEmptyType, showRelativePath, historyFile, noDetailWhenFailed, reportSemanticError, reportUnusedIgnore, cacheDirectory, notOnlyInCWD, } = await getTarget(argv);
const { atLeast, debug, detail, enableCache, ignoreCatch, ignoreFiles, ignoreUnread, is, project, strict, update, updateIfHigher, ignoreNested, ignoreAsAssertion, ignoreTypeAssertion, ignoreNonNullAssertion, ignoreObject, ignoreEmptyType, showRelativePath, historyFile, noDetailWhenFailed, reportSemanticError, reportUnusedIgnore, cacheDirectory, notOnlyInCWD } = await getTarget(argv);
const { correctCount, totalCount, anys } = await (0, type_coverage_core_1.lint)(project, {

@@ -200,3 +201,3 @@ debug,

cacheDirectory,
notOnlyInCWD,
notOnlyInCWD
};

@@ -251,14 +252,15 @@ }

if (percentString) {
const diffInfo = `${correctCount} / ${totalCount}`;
if (totalCount) {
console.log(`${correctCount} / ${totalCount} ${percentString}%`);
console.log(succeeded ? chalk.green(`(${diffInfo}) ${percentString}%`) : chalk.red(`(${diffInfo}) ${percentString}%`));
}
else {
console.log(`${correctCount} / ${totalCount}`);
console.log(succeeded ? chalk.green(diffInfo) : chalk.red(diffInfo));
}
}
if (succeeded) {
console.log('type-coverage success.');
console.log(chalk.green('type-coverage success.'));
}
else {
console.log(error);
console.log(chalk.red(error));
}

@@ -265,0 +267,0 @@ }

{
"name": "type-coverage",
"version": "2.28.2",
"version": "2.29.0",
"description": "A CLI tool to check type coverage for typescript code",

@@ -10,3 +10,4 @@ "repository": "https://github.com/plantain-00/type-coverage.git",

"minimist": "1",
"type-coverage-core": "^2.28.1"
"type-coverage-core": "^2.28.1",
"chalk": "4.1.2"
},

@@ -13,0 +14,0 @@ "publishConfig": {

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