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 2.13.3 to 2.14.0

9

dist/index.js

@@ -28,2 +28,3 @@ "use strict";

--ignore-files string[]? ignore files
--ignore-unread boolean? allow writes to variables with implicit any types
-h,--help boolean? show help

@@ -45,3 +46,3 @@ --is number? fail if coverage rate !== this value

}
const { atLeast, debug, detail, enableCache, ignoreCatch, ignoreFiles, is, project, strict, update } = await getTarget(argv);
const { atLeast, debug, detail, enableCache, ignoreCatch, ignoreFiles, ignoreUnread, is, project, strict, update } = await getTarget(argv);
const { correctCount, totalCount, anys } = await type_coverage_core_1.lint(project, {

@@ -52,3 +53,4 @@ debug: debug,

ignoreCatch: ignoreCatch,
ignoreFiles: ignoreFiles
ignoreFiles: ignoreFiles,
ignoreUnreadAnys: ignoreUnread,
});

@@ -105,2 +107,3 @@ const percent = Math.floor(10000 * correctCount / totalCount) / 100;

const ignoreFiles = getArgOrCfgVal(['ignore-files', 'ignoreFiles']);
const ignoreUnread = getArgOrCfgVal(['ignore-unread', 'ignoreUnread']);
const is = getArgOrCfgVal(['is']);

@@ -110,3 +113,3 @@ const project = getArgOrCfgVal(['p', 'project']) || '.';

const update = getArgOrCfgVal(['update']);
return { atLeast, debug, detail, enableCache, ignoreCatch, ignoreFiles, is, project, strict, update };
return { atLeast, debug, detail, enableCache, ignoreCatch, ignoreFiles, ignoreUnread, is, project, strict, update };
}

@@ -113,0 +116,0 @@ async function saveTarget(target) {

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

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

"minimist": "1",
"type-coverage-core": "^2.13.3"
"type-coverage-core": "^2.14.0"
},

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