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

@ms-cloudpack/worker-pool

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ms-cloudpack/worker-pool - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

12

lib/initializeWorker.d.ts

@@ -0,6 +1,5 @@

/** @import { InitializeWorkerOptions } from './types/InitializeWorkerOptions.js' */
/** @import { WorkerResponse } from './types/WorkerResponse.js' */
/** @import { WorkerRequest } from './types/WorkerRequest.js' */
/**
* @typedef {import('./types/WorkerResponse.js').WorkerResponse} WorkerResponse
* @typedef {import('./types/WorkerRequest.js').WorkerRequest} WorkerRequest
*/
/**
* Helper which should be called by the worker entry file.

@@ -12,5 +11,4 @@ * Initializes event handlers to respond to parent process requests.

*/
export function initializeWorker(options: import("./types/InitializeWorkerOptions.js").InitializeWorkerOptions): void;
export type WorkerResponse = import("./types/WorkerResponse.js").WorkerResponse;
export type WorkerRequest = import("./types/WorkerRequest.js").WorkerRequest;
export function initializeWorker(options: InitializeWorkerOptions): void;
import type { InitializeWorkerOptions } from './types/InitializeWorkerOptions.js';
//# sourceMappingURL=initializeWorker.d.ts.map
// This file is JS because it's used by the test worker entry JS files within this package
import { parentPort } from 'worker_threads';
import { getRequestString } from './getRequestString.js';
/** @import { InitializeWorkerOptions } from './types/InitializeWorkerOptions.js' */
/** @import { WorkerResponse } from './types/WorkerResponse.js' */
/** @import { WorkerRequest } from './types/WorkerRequest.js' */
/**
* @typedef {import('./types/WorkerResponse.js').WorkerResponse} WorkerResponse
* @typedef {import('./types/WorkerRequest.js').WorkerRequest} WorkerRequest
*/
/**
* Helper which should be called by the worker entry file.

@@ -15,4 +14,3 @@ * Initializes event handlers to respond to parent process requests.

*/
export function initializeWorker(
/** @type {import('./types/InitializeWorkerOptions.js').InitializeWorkerOptions} */ options) {
export function initializeWorker(/** @type {InitializeWorkerOptions} */ options) {
const { methods, beforeEach, afterEach, timeout } = options;

@@ -19,0 +17,0 @@ let /** @type {(WorkerRequest & { startHeap: number; startTime: number }) | undefined} */ pendingRequest;

{
"name": "@ms-cloudpack/worker-pool",
"version": "0.3.0",
"version": "0.3.1",
"description": "General worker pool helper.",

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet

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