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-12 to 0.0.0-13

6

dist/cjs/index.d.ts

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

* properties will throw an error.
*
* @group Spies, Mocks, and Fixtures
*/

@@ -202,2 +204,4 @@ intercept<T extends object>(obj: T, prop: keyof T, desc?: PropertyDescriptor, strictMode?: boolean): InterceptResultsMethod;

* `restore()` method on the returned function when you are done capturing.
*
* @group Spies, Mocks, and Fixtures
*/

@@ -212,2 +216,4 @@ capture<T extends {}, M extends Methods<T>>(obj: T, method: M, impl?: (...a: any[]) => any): CaptureResultsMethod<T, M>;

* passed to each call since the last time it was inspected.
*
* @group Spies, Mocks, and Fixtures
*/

@@ -214,0 +220,0 @@ captureFn<F extends (this: any, ...a: any[]) => any>(original: F): ((...a: any[]) => any) & {

@@ -25,2 +25,4 @@ "use strict";

* properties will throw an error.
*
* @group Spies, Mocks, and Fixtures
*/

@@ -159,2 +161,4 @@ intercept(obj, prop, desc, strictMode = true) {

* `restore()` method on the returned function when you are done capturing.
*
* @group Spies, Mocks, and Fixtures
*/

@@ -207,2 +211,4 @@ capture(obj, method, impl = (..._) => { }) {

* passed to each call since the last time it was inspected.
*
* @group Spies, Mocks, and Fixtures
*/

@@ -209,0 +215,0 @@ captureFn(original) {

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

* properties will throw an error.
*
* @group Spies, Mocks, and Fixtures
*/

@@ -202,2 +204,4 @@ intercept<T extends object>(obj: T, prop: keyof T, desc?: PropertyDescriptor, strictMode?: boolean): InterceptResultsMethod;

* `restore()` method on the returned function when you are done capturing.
*
* @group Spies, Mocks, and Fixtures
*/

@@ -212,2 +216,4 @@ capture<T extends {}, M extends Methods<T>>(obj: T, method: M, impl?: (...a: any[]) => any): CaptureResultsMethod<T, M>;

* passed to each call since the last time it was inspected.
*
* @group Spies, Mocks, and Fixtures
*/

@@ -214,0 +220,0 @@ captureFn<F extends (this: any, ...a: any[]) => any>(original: F): ((...a: any[]) => any) & {

@@ -22,2 +22,4 @@ import { plugin as TeardownPlugin } from '@tapjs/after';

* properties will throw an error.
*
* @group Spies, Mocks, and Fixtures
*/

@@ -156,2 +158,4 @@ intercept(obj, prop, desc, strictMode = true) {

* `restore()` method on the returned function when you are done capturing.
*
* @group Spies, Mocks, and Fixtures
*/

@@ -204,2 +208,4 @@ capture(obj, method, impl = (..._) => { }) {

* passed to each call since the last time it was inspected.
*
* @group Spies, Mocks, and Fixtures
*/

@@ -206,0 +212,0 @@ captureFn(original) {

6

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

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

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

@@ -52,0 +52,0 @@ },

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