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

@matrixai/workers

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@matrixai/workers - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

2

dist/WorkerManager.d.ts

@@ -30,3 +30,3 @@ import type { ModuleThread } from 'threads';

cores?: number;
logger?: Logger;
logger: Logger;
});

@@ -33,0 +33,0 @@ get running(): boolean;

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

this._destroyed = false;
this.logger = logger ?? new logger_1.default(this.constructor.name);
this.logger = logger;
this.pool = threads_1.Pool(workerFactory, cores);

@@ -47,3 +47,3 @@ this._running = true;

*/
static async createWorkerManager({ workerFactory, cores, logger, }) {
static async createWorkerManager({ workerFactory, cores, logger = new logger_1.default(this.name), }) {
const workerManager = new WorkerManager({

@@ -50,0 +50,0 @@ workerFactory,

{
"name": "@matrixai/workers",
"version": "1.2.2",
"version": "1.2.3",
"author": "Roger Qiu",

@@ -5,0 +5,0 @@ "description": "Multithreaded Workers",

Sorry, the diff of this file is not supported yet

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