@tapjs/intercept
Advanced tools
Comparing version 0.0.0-11 to 0.0.0-12
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93727
907
+ Added@tapjs/after@0.0.0-12(transitive)
+ Added@tapjs/core@0.0.0-12(transitive)
+ Added@tapjs/stack@0.0.0-4(transitive)
+ Added@tapjs/test@0.0.0-12(transitive)
+ Addedtap-parser@15.0.0-2(transitive)
+ Addedtcompare@6.0.1-3(transitive)
- Removed@tapjs/after@0.0.0-11(transitive)
- Removed@tapjs/core@0.0.0-11(transitive)
- Removed@tapjs/stack@0.0.0-3(transitive)
- Removed@tapjs/test@0.0.0-11(transitive)
- Removedtap-parser@15.0.0-1(transitive)
- Removedtcompare@6.0.1-2(transitive)
Updated@tapjs/after@0.0.0-12
Updated@tapjs/stack@0.0.0-4