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

@tapjs/intercept

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/intercept - npm Package Compare versions

Comparing version 0.0.0-11 to 0.0.0-12

37

dist/cjs/index.d.ts

@@ -15,3 +15,4 @@ import { TapPlugin, TestBase } from '@tapjs/core';

/**
* Base type of result objects generated by {@link Interceptor#capture}
* Base type of result objects generated by
* {@link @tapjs/intercept!Interceptor#capture}
*

@@ -26,3 +27,4 @@ * @typeParam F - the function that was captured

/**
* Results of {@link Interceptor#capture} where function returned
* Results of {@link @tapjs/intercept!Interceptor#capture} where function
* returned
*

@@ -36,3 +38,4 @@ * @typeParam F - the function that was captured

/**
* Results of {@link Interceptor#capture} where function threw
* Results of {@link @tapjs/intercept!Interceptor#capture} where function
* threw
*

@@ -45,3 +48,3 @@ * @typeParam F - the function that was captured

/**
* Results of {@link Interceptor#capture}
* Results of {@link @tapjs/intercept!Interceptor#capture}
*

@@ -124,5 +127,6 @@ * @typeParam F - the function that was captured

/**
* The method returned by {@link Interceptor#capture}, which returns
* the {@link CaptureResult} array when called, and has methods
* to restore or get args, and exposes the list of calls
* The method returned by {@link @tapjs/intercept!Interceptor#capture},
* which returns the {@link @tapjs/intercept!CaptureResult} array when
* called, and has methods to restore or get args, and exposes the list of
* calls
*/

@@ -137,3 +141,4 @@ export type CaptureResultsMethod<T extends {}, M extends Methods<T>, F = T[M]> = (() => CaptureResult<F extends (...a: any[]) => any ? F : (...a: any[]) => any>[]) & {

/**
* Base class for objects created by {@link Interceptor#intercept}
* Base class for objects created by
* {@link @tapjs/intercept!Interceptor#intercept}
*/

@@ -148,3 +153,3 @@ export interface InterceptResultBase {

/**
* Result from {@link Interceptor#intercept} for gets
* Result from {@link @tapjs/intercept!Interceptor#intercept} for gets
*/

@@ -155,3 +160,3 @@ export interface InterceptResultGet extends InterceptResultBase {

/**
* Result from {@link Interceptor#intercept} for sets
* Result from {@link @tapjs/intercept!Interceptor#intercept} for sets
*/

@@ -162,7 +167,7 @@ export interface InterceptResultSet extends InterceptResultBase {

/**
* Result from {@link Interceptor#intercept}
* Result from {@link @tapjs/intercept!Interceptor#intercept}
*/
export type InterceptResult = InterceptResultGet | InterceptResultSet;
/**
* Method returned by {@link Interceptor#intercept}
* Method returned by {@link @tapjs/intercept!Interceptor#intercept}
*/

@@ -173,4 +178,6 @@ export type InterceptResultsMethod = (() => InterceptResult[]) & {

/**
* Implementation class providing the {@link Interceptor#intercept},
* {@link Interceptor#capture}, and {@link Interceptor#captureFn} methods.
* Implementation class providing the
* {@link @tapjs/intercept!Interceptor#intercept},
* {@link @tapjs/intercept!Interceptor#capture}, and
* {@link @tapjs/intercept!Interceptor#captureFn} methods.
*/

@@ -220,5 +227,5 @@ export declare class Interceptor {

/**
* plugin method that instantiates an {@link Interceptor}
* plugin method that instantiates an {@link @tapjs/intercept!Interceptor}
*/
export declare const plugin: TapPlugin<Interceptor>;
//# sourceMappingURL=index.d.ts.map

@@ -7,4 +7,6 @@ "use strict";

/**
* Implementation class providing the {@link Interceptor#intercept},
* {@link Interceptor#capture}, and {@link Interceptor#captureFn} methods.
* Implementation class providing the
* {@link @tapjs/intercept!Interceptor#intercept},
* {@link @tapjs/intercept!Interceptor#capture}, and
* {@link @tapjs/intercept!Interceptor#captureFn} methods.
*/

@@ -233,3 +235,3 @@ class Interceptor {

/**
* plugin method that instantiates an {@link Interceptor}
* plugin method that instantiates an {@link @tapjs/intercept!Interceptor}
*/

@@ -236,0 +238,0 @@ const plugin = t => new Interceptor(t);

@@ -15,3 +15,4 @@ import { TapPlugin, TestBase } from '@tapjs/core';

/**
* Base type of result objects generated by {@link Interceptor#capture}
* Base type of result objects generated by
* {@link @tapjs/intercept!Interceptor#capture}
*

@@ -26,3 +27,4 @@ * @typeParam F - the function that was captured

/**
* Results of {@link Interceptor#capture} where function returned
* Results of {@link @tapjs/intercept!Interceptor#capture} where function
* returned
*

@@ -36,3 +38,4 @@ * @typeParam F - the function that was captured

/**
* Results of {@link Interceptor#capture} where function threw
* Results of {@link @tapjs/intercept!Interceptor#capture} where function
* threw
*

@@ -45,3 +48,3 @@ * @typeParam F - the function that was captured

/**
* Results of {@link Interceptor#capture}
* Results of {@link @tapjs/intercept!Interceptor#capture}
*

@@ -124,5 +127,6 @@ * @typeParam F - the function that was captured

/**
* The method returned by {@link Interceptor#capture}, which returns
* the {@link CaptureResult} array when called, and has methods
* to restore or get args, and exposes the list of calls
* The method returned by {@link @tapjs/intercept!Interceptor#capture},
* which returns the {@link @tapjs/intercept!CaptureResult} array when
* called, and has methods to restore or get args, and exposes the list of
* calls
*/

@@ -137,3 +141,4 @@ export type CaptureResultsMethod<T extends {}, M extends Methods<T>, F = T[M]> = (() => CaptureResult<F extends (...a: any[]) => any ? F : (...a: any[]) => any>[]) & {

/**
* Base class for objects created by {@link Interceptor#intercept}
* Base class for objects created by
* {@link @tapjs/intercept!Interceptor#intercept}
*/

@@ -148,3 +153,3 @@ export interface InterceptResultBase {

/**
* Result from {@link Interceptor#intercept} for gets
* Result from {@link @tapjs/intercept!Interceptor#intercept} for gets
*/

@@ -155,3 +160,3 @@ export interface InterceptResultGet extends InterceptResultBase {

/**
* Result from {@link Interceptor#intercept} for sets
* Result from {@link @tapjs/intercept!Interceptor#intercept} for sets
*/

@@ -162,7 +167,7 @@ export interface InterceptResultSet extends InterceptResultBase {

/**
* Result from {@link Interceptor#intercept}
* Result from {@link @tapjs/intercept!Interceptor#intercept}
*/
export type InterceptResult = InterceptResultGet | InterceptResultSet;
/**
* Method returned by {@link Interceptor#intercept}
* Method returned by {@link @tapjs/intercept!Interceptor#intercept}
*/

@@ -173,4 +178,6 @@ export type InterceptResultsMethod = (() => InterceptResult[]) & {

/**
* Implementation class providing the {@link Interceptor#intercept},
* {@link Interceptor#capture}, and {@link Interceptor#captureFn} methods.
* Implementation class providing the
* {@link @tapjs/intercept!Interceptor#intercept},
* {@link @tapjs/intercept!Interceptor#capture}, and
* {@link @tapjs/intercept!Interceptor#captureFn} methods.
*/

@@ -220,5 +227,5 @@ export declare class Interceptor {

/**
* plugin method that instantiates an {@link Interceptor}
* plugin method that instantiates an {@link @tapjs/intercept!Interceptor}
*/
export declare const plugin: TapPlugin<Interceptor>;
//# sourceMappingURL=index.d.ts.map
import { plugin as TeardownPlugin } from '@tapjs/after';
import { at, captureString } from '@tapjs/stack';
/**
* Implementation class providing the {@link Interceptor#intercept},
* {@link Interceptor#capture}, and {@link Interceptor#captureFn} methods.
* Implementation class providing the
* {@link @tapjs/intercept!Interceptor#intercept},
* {@link @tapjs/intercept!Interceptor#capture}, and
* {@link @tapjs/intercept!Interceptor#captureFn} methods.
*/

@@ -228,5 +230,5 @@ export class Interceptor {

/**
* plugin method that instantiates an {@link Interceptor}
* plugin method that instantiates an {@link @tapjs/intercept!Interceptor}
*/
export const plugin = t => new Interceptor(t);
//# sourceMappingURL=index.js.map
{
"name": "@tapjs/intercept",
"version": "0.0.0-11",
"version": "0.0.0-12",
"description": "a built-in tap extension for t.intercept() and t.capture()",

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

"peerDependencies": {
"@tapjs/core": "0.0.0-11"
"@tapjs/core": "0.0.0-12"
},
"dependencies": {
"@tapjs/after": "0.0.0-11",
"@tapjs/stack": "0.0.0-3"
"@tapjs/after": "0.0.0-12",
"@tapjs/stack": "0.0.0-4"
},

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