Socket
Socket
Sign inDemoInstall

@tapjs/intercept

Package Overview
Dependencies
Maintainers
0
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 3.0.0 to 3.0.1

8

dist/commonjs/index.js

@@ -22,2 +22,6 @@ "use strict";

#t;
#builtTest;
#bt() {
return (this.#builtTest ??= this.#t.t);
}
constructor(t) {

@@ -48,3 +52,3 @@ this.#t = t;

if (orig && !orig.configurable) {
throw notConfig('intercept property', prop, this.#t.t.intercept);
throw notConfig('intercept property', prop, this.#bt().intercept);
}

@@ -182,3 +186,3 @@ let restore;

if (prop && !prop.configurable) {
throw notConfig('capture method', method, this.#t.t.capture);
throw notConfig('capture method', method, this.#bt().capture);
}

@@ -185,0 +189,0 @@ // if we don't have a prop we can restore by just deleting

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

#t;
#builtTest;
#bt() {
return (this.#builtTest ??= this.#t.t);
}
constructor(t) {

@@ -45,3 +49,3 @@ this.#t = t;

if (orig && !orig.configurable) {
throw notConfig('intercept property', prop, this.#t.t.intercept);
throw notConfig('intercept property', prop, this.#bt().intercept);
}

@@ -179,3 +183,3 @@ let restore;

if (prop && !prop.configurable) {
throw notConfig('capture method', method, this.#t.t.capture);
throw notConfig('capture method', method, this.#bt().capture);
}

@@ -182,0 +186,0 @@ // if we don't have a prop we can restore by just deleting

{
"name": "@tapjs/intercept",
"version": "3.0.0",
"version": "3.0.1",
"description": "a built-in tap extension for t.intercept() and t.capture()",

@@ -45,7 +45,7 @@ "tshy": {

"dependencies": {
"@tapjs/after": "2.0.0",
"@tapjs/after": "2.0.1",
"@tapjs/stack": "3.0.0"
},
"peerDependencies": {
"@tapjs/core": "3.0.0"
"@tapjs/core": "3.0.1"
},

@@ -52,0 +52,0 @@ "tap": {

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