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
1
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 6.0.8 to 6.1.0

lib/utils/async/pool.d.ts

8

lib/ForkTsCheckerWebpackPlugin.d.ts
import webpack from 'webpack';
import { ForkTsCheckerWebpackPluginOptions } from './ForkTsCheckerWebpackPluginOptions';
import { Pool } from './utils/async/pool';
declare class ForkTsCheckerWebpackPlugin implements webpack.Plugin {
/**
* Current version of the plugin
*/
static readonly version: string;
/**
* Default pool for the plugin concurrency limit
*/
static readonly pool: Pool;
private readonly options;

@@ -6,0 +14,0 @@ constructor(options?: ForkTsCheckerWebpackPluginOptions);

11

lib/ForkTsCheckerWebpackPlugin.js

@@ -23,2 +23,4 @@ "use strict";

const tapAfterEnvironmentToPatchWatching_1 = require("./hooks/tapAfterEnvironmentToPatchWatching");
const pool_1 = require("./utils/async/pool");
const os_1 = __importDefault(require("os"));
class ForkTsCheckerWebpackPlugin {

@@ -64,2 +66,9 @@ constructor(options = {}) {

exports.ForkTsCheckerWebpackPlugin = ForkTsCheckerWebpackPlugin;
ForkTsCheckerWebpackPlugin.version = '6.0.8'; // will be replaced by the @semantic-release/exec
/**
* Current version of the plugin
*/
ForkTsCheckerWebpackPlugin.version = '6.1.0'; // will be replaced by the @semantic-release/exec
/**
* Default pool for the plugin concurrency limit
*/
ForkTsCheckerWebpackPlugin.pool = pool_1.createPool(Math.max(1, os_1.default.cpus().length));

8

lib/hooks/tapStartToConnectAndRunReporter.js

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

const interceptDoneToGetWebpackDevServerTap_1 = require("./interceptDoneToGetWebpackDevServerTap");
const ForkTsCheckerWebpackPlugin_1 = require("../ForkTsCheckerWebpackPlugin");
function tapStartToConnectAndRunReporter(compiler, reporter, configuration, state) {

@@ -71,3 +72,3 @@ const hooks = pluginHooks_1.getForkTsCheckerWebpackPluginHooks(compiler);

const previousReportPromise = state.reportPromise;
state.reportPromise = new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
state.reportPromise = ForkTsCheckerWebpackPlugin_1.ForkTsCheckerWebpackPlugin.pool.submit((done) => new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
change = yield hooks.start.promise(change, compilation);

@@ -88,3 +89,3 @@ try {

// get issues after dependencies are resolved as it can be blocking
report.getIssues().then(resolveIssues).catch(rejectIssues);
report.getIssues().then(resolveIssues).catch(rejectIssues).finally(done);
});

@@ -102,6 +103,7 @@ }

resolveIssues(undefined);
done();
}
}));
})));
}));
}
exports.tapStartToConnectAndRunReporter = tapStartToConnectAndRunReporter;
{
"name": "fork-ts-checker-webpack-plugin",
"version": "6.0.8",
"version": "6.1.0",
"description": "Runs typescript type checker and linter on separate process.",

@@ -5,0 +5,0 @@ "keywords": [

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