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

fork-ts-checker-webpack-plugin

Package Overview
Dependencies
Maintainers
4
Versions
222
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fork-ts-checker-webpack-plugin - npm Package Compare versions

Comparing version 0.4.6 to 0.4.7

7

CHANGELOG.md

@@ -0,4 +1,9 @@

## v0.4.7
* [Fix(types collision): update chalk and chokidar](https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/147) (#142)
* [Fix(logger): Don't limit Options.logger to Console type](https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/143)
## v0.4.6
* [Fix(types): Make options Partial<Options> ](https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/141) (#140)
* [Fix(types): Make options Partial<Options>](https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/141) (#140)

@@ -5,0 +10,0 @@ ## v0.4.5

4

lib/formatter/codeframeFormatter.js
"use strict";
var os = require("os");
var codeFrame = require("babel-code-frame");
var chalk = require("chalk");
var chalk_1 = require("chalk");
var fs = require("fs");
module.exports = function createCodeframeFormatter(options) {
return function codeframeFormatter(message, useColors) {
var colors = new chalk.constructor({ enabled: useColors });
var colors = new chalk_1.default.constructor({ enabled: useColors });
var messageColor = message.isWarningSeverity() ? colors.bold.yellow : colors.bold.red;

@@ -10,0 +10,0 @@ var positionColor = colors.dim;

"use strict";
var chalk = require("chalk");
var chalk_1 = require("chalk");
var os = require("os");
module.exports = function createDefaultFormatter() {
return function defaultFormatter(message, useColors) {
var colors = new chalk.constructor({ enabled: useColors });
var colors = new chalk_1.default.constructor({ enabled: useColors });
var messageColor = message.isWarningSeverity() ? colors.bold.yellow : colors.bold.red;

@@ -8,0 +8,0 @@ var fileAndNumberColor = colors.bold.cyan;

@@ -5,3 +5,3 @@ "use strict";

var childProcess = require("child_process");
var chalk = require("chalk");
var chalk_1 = require("chalk");
var fs = require("fs");

@@ -53,3 +53,3 @@ var os = require("os");

this.useColors = options.colors !== false; // default true
this.colors = new chalk.constructor({ enabled: this.useColors });
this.colors = new chalk_1.default.constructor({ enabled: this.useColors });
this.formatter = (options.formatter && isFunction(options.formatter))

@@ -56,0 +56,0 @@ ? options.formatter

/// <reference types="node" />
import childProcess = require('child_process');
import chalk = require('chalk');
import { Chalk } from 'chalk';
import webpack = require('webpack');

@@ -9,2 +9,7 @@ import CancellationToken = require('./CancellationToken');

declare type Formatter = (message: NormalizedMessage, useColors: boolean) => string;
interface Logger {
error(message?: any): void;
warn(message?: any): void;
info(message?: any): void;
}
interface Options {

@@ -18,3 +23,3 @@ tsconfig: string;

colors: boolean;
logger: Console;
logger: Logger;
formatter: 'default' | 'codeframe' | Formatter;

@@ -47,3 +52,3 @@ formatterOptions: any;

ignoreLints: string[];
logger: Console;
logger: Logger;
silent: boolean;

@@ -55,3 +60,3 @@ async: boolean;

useColors: boolean;
colors: chalk.Chalk;
colors: Chalk;
formatter: Formatter;

@@ -58,0 +63,0 @@ tsconfigPath: string;

{
"name": "fork-ts-checker-webpack-plugin",
"version": "0.4.6",
"version": "0.4.7",
"description": "Runs typescript type checker and linter on separate process.",

@@ -53,4 +53,3 @@ "main": "lib/index.js",

"@types/babel-code-frame": "^6.20.1",
"@types/chalk": "^0.4.31",
"@types/chokidar": "^1.7.2",
"@types/chokidar": "^1.7.5",
"@types/lodash.endswith": "^4.2.3",

@@ -89,4 +88,4 @@ "@types/lodash.isfunction": "^3.0.3",

"babel-code-frame": "^6.22.0",
"chalk": "^1.1.3",
"chokidar": "^1.7.0",
"chalk": "^2.4.1",
"chokidar": "^2.0.4",
"lodash.endswith": "^4.2.1",

@@ -93,0 +92,0 @@ "lodash.isfunction": "^3.0.8",

@@ -70,3 +70,3 @@ # Fork TS Checker Webpack Plugin

* **async** `boolean`:
True by default - `async: false` can block webpack's emit to wait for type checker/linter and to add errors to the webpack's compilation.`
True by default - `async: false` can block webpack's emit to wait for type checker/linter and to add errors to the webpack's compilation.
We recommend to set this to `false` in projects where type checking is faster than webpack's build - it's better for integration with other plugins. Another scenario where you might want to set this to `false` is if you use the `overlay` functionality of `webpack-dev-server`.

@@ -73,0 +73,0 @@

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