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

type-coverage-core

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-coverage-core - npm Package Compare versions

Comparing version 2.6.1 to 2.7.0

6

dist/checker.js

@@ -6,3 +6,7 @@ "use strict";

const typescript_1 = tslib_1.__importDefault(require("typescript"));
function collectAny(node, { file, sourceFile, typeCheckResult, ingoreMap, debug }) {
function collectAny(node, context) {
const { file, sourceFile, typeCheckResult, ingoreMap, debug, processAny } = context;
if (processAny !== undefined) {
return processAny(node, context);
}
const { line, character } = typescript_1.default.getLineAndCharacterOfPosition(sourceFile, node.getStart(sourceFile));

@@ -9,0 +13,0 @@ if (ingoreMap[file] && ingoreMap[file].has(line)) {

3

dist/core.js

@@ -90,4 +90,5 @@ "use strict";

strict: lintOptions.strict,
processAny: lintOptions.processAny,
checker,
ingoreMap
ingoreMap,
};

@@ -94,0 +95,0 @@ sourceFile.forEachChild(node => {

@@ -18,2 +18,6 @@ import ts from 'typescript';

}
/**
* @public
*/
export declare type ProccessAny = (node: ts.Node, context: FileContext) => boolean;
export interface LintOptions {

@@ -29,2 +33,3 @@ debug: boolean;

absolutePath?: boolean;
processAny?: ProccessAny;
}

@@ -45,2 +50,3 @@ export interface FileContext {

};
processAny?: ProccessAny;
}

@@ -47,0 +53,0 @@ interface TypeCheckCache extends FileTypeCheckResult {

{
"name": "type-coverage-core",
"version": "2.6.1",
"version": "2.7.0",
"description": "A library to check type coverage for typescript code",

@@ -22,3 +22,3 @@ "main": "dist/index.js",

},
"gitHead": "7434331936c8521d97dfe923154c3cea9255688f"
"gitHead": "25f0e17ac40ec7597279341c5117717080708d2b"
}
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