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

@tapjs/before

Package Overview
Dependencies
Maintainers
2
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tapjs/before - npm Package Compare versions

Comparing version 0.0.0-3 to 0.0.0-4

16

dist/cjs/index.d.ts

@@ -0,2 +1,11 @@

/**
* Plugin class providing {@link Before#before} on the
* {@link Test} class.
*
* @module
*/
import { TapPlugin, TestBase } from '@tapjs/core';
/**
* Implementation class returned by plugin function
*/
export declare class Before {

@@ -6,3 +15,5 @@ #private;

/**
* Just run the supplied function right away.
* Just run the supplied function right away, but do not run any
* child tests until it has completed.
*
* This is handy when some setup may require asynchronous actions, and

@@ -13,3 +24,6 @@ * tests should wait until after it completes.

}
/**
* Plugin method that creates the {@link Before} instance
*/
export declare const plugin: TapPlugin<Before>;
//# sourceMappingURL=index.d.ts.map
"use strict";
/**
* Plugin class providing {@link Before#before} on the
* {@link Test} class.
*
* @module
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.plugin = exports.Before = void 0;
const is_actual_promise_1 = require("is-actual-promise");
/**
* Implementation class returned by plugin function
*/
class Before {

@@ -11,3 +20,5 @@ #t;

/**
* Just run the supplied function right away.
* Just run the supplied function right away, but do not run any
* child tests until it has completed.
*
* This is handy when some setup may require asynchronous actions, and

@@ -46,4 +57,7 @@ * tests should wait until after it completes.

exports.Before = Before;
/**
* Plugin method that creates the {@link Before} instance
*/
const plugin = (t) => new Before(t);
exports.plugin = plugin;
//# sourceMappingURL=index.js.map

@@ -0,2 +1,11 @@

/**
* Plugin class providing {@link Before#before} on the
* {@link Test} class.
*
* @module
*/
import { TapPlugin, TestBase } from '@tapjs/core';
/**
* Implementation class returned by plugin function
*/
export declare class Before {

@@ -6,3 +15,5 @@ #private;

/**
* Just run the supplied function right away.
* Just run the supplied function right away, but do not run any
* child tests until it has completed.
*
* This is handy when some setup may require asynchronous actions, and

@@ -13,3 +24,6 @@ * tests should wait until after it completes.

}
/**
* Plugin method that creates the {@link Before} instance
*/
export declare const plugin: TapPlugin<Before>;
//# sourceMappingURL=index.d.ts.map

@@ -0,2 +1,11 @@

/**
* Plugin class providing {@link Before#before} on the
* {@link Test} class.
*
* @module
*/
import { isPromise } from 'is-actual-promise';
/**
* Implementation class returned by plugin function
*/
export class Before {

@@ -8,3 +17,5 @@ #t;

/**
* Just run the supplied function right away.
* Just run the supplied function right away, but do not run any
* child tests until it has completed.
*
* This is handy when some setup may require asynchronous actions, and

@@ -42,3 +53,6 @@ * tests should wait until after it completes.

}
/**
* Plugin method that creates the {@link Before} instance
*/
export const plugin = (t) => new Before(t);
//# sourceMappingURL=index.js.map

4

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

@@ -47,3 +47,3 @@ "main": "./dist/cjs/index.js",

"peerDependencies": {
"@tapjs/core": "0.0.0-3"
"@tapjs/core": "0.0.0-4"
},

@@ -50,0 +50,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