Socket
Socket
Sign inDemoInstall

@tapjs/worker

Package Overview
Dependencies
Maintainers
2
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tapjs/worker - npm Package Compare versions

Comparing version 0.0.0-12 to 0.0.0-13

17

dist/cjs/index.d.ts

@@ -5,5 +5,22 @@ import { PromiseWithSubtest, TapPlugin, TestBase, Worker, WorkerOpts } from '@tapjs/core';

#private;
/**
* True if in the main thread. False when running in a worker thread
* spawned by {@link @tapjs/worker!WorkerPlugin#worker | t.worker}
*
* @group Test Reflection
*/
isMainThread: boolean;
constructor(t: TestBase);
/**
* In the worker thread, the worker data that was provided to the
* {@link @tapjs/worker!WorkerPlugin#worker | t.worker} method.
*
* In the main thread, this field is `undefined`.
*/
get workerData(): any;
/**
* Start a Node Worker thread and parse its standard output as a child test
*
* @group Subtest Methods
*/
worker(filename: string): PromiseWithWorker;

@@ -10,0 +27,0 @@ worker(filename: string, name?: string): PromiseWithWorker;

@@ -9,2 +9,8 @@ "use strict";

#workerData;
/**
* True if in the main thread. False when running in a worker thread
* spawned by {@link @tapjs/worker!WorkerPlugin#worker | t.worker}
*
* @group Test Reflection
*/
isMainThread;

@@ -20,2 +26,8 @@ constructor(t) {

}
/**
* In the worker thread, the worker data that was provided to the
* {@link @tapjs/worker!WorkerPlugin#worker | t.worker} method.
*
* In the main thread, this field is `undefined`.
*/
get workerData() {

@@ -22,0 +34,0 @@ return this.#workerData;

@@ -5,5 +5,22 @@ import { PromiseWithSubtest, TapPlugin, TestBase, Worker, WorkerOpts } from '@tapjs/core';

#private;
/**
* True if in the main thread. False when running in a worker thread
* spawned by {@link @tapjs/worker!WorkerPlugin#worker | t.worker}
*
* @group Test Reflection
*/
isMainThread: boolean;
constructor(t: TestBase);
/**
* In the worker thread, the worker data that was provided to the
* {@link @tapjs/worker!WorkerPlugin#worker | t.worker} method.
*
* In the main thread, this field is `undefined`.
*/
get workerData(): any;
/**
* Start a Node Worker thread and parse its standard output as a child test
*
* @group Subtest Methods
*/
worker(filename: string): PromiseWithWorker;

@@ -10,0 +27,0 @@ worker(filename: string, name?: string): PromiseWithWorker;

@@ -6,2 +6,8 @@ import { Worker, } from '@tapjs/core';

#workerData;
/**
* True if in the main thread. False when running in a worker thread
* spawned by {@link @tapjs/worker!WorkerPlugin#worker | t.worker}
*
* @group Test Reflection
*/
isMainThread;

@@ -17,2 +23,8 @@ constructor(t) {

}
/**
* In the worker thread, the worker data that was provided to the
* {@link @tapjs/worker!WorkerPlugin#worker | t.worker} method.
*
* In the main thread, this field is `undefined`.
*/
get workerData() {

@@ -19,0 +31,0 @@ return this.#workerData;

4

package.json
{
"name": "@tapjs/worker",
"version": "0.0.0-12",
"version": "0.0.0-13",
"description": "a built-in tap extension for t.worker()",

@@ -46,3 +46,3 @@ "type": "module",

"peerDependencies": {
"@tapjs/core": "0.0.0-12"
"@tapjs/core": "0.0.0-13"
},

@@ -49,0 +49,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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