@tapjs/intercept
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -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
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
102150
1049
+ Added@tapjs/after@2.0.1(transitive)
+ Added@tapjs/after-each@3.0.1(transitive)
+ Added@tapjs/asserts@3.0.1(transitive)
+ Added@tapjs/before@3.0.1(transitive)
+ Added@tapjs/before-each@3.0.1(transitive)
+ Added@tapjs/chdir@2.0.1(transitive)
+ Added@tapjs/core@3.0.1(transitive)
+ Added@tapjs/filter@3.0.1(transitive)
+ Added@tapjs/fixture@3.0.1(transitive)
+ Added@tapjs/mock@3.0.1(transitive)
+ Added@tapjs/node-serialize@3.0.1(transitive)
+ Added@tapjs/snapshot@3.0.1(transitive)
+ Added@tapjs/spawn@3.0.1(transitive)
+ Added@tapjs/stdin@3.0.1(transitive)
+ Added@tapjs/test@3.0.1(transitive)
+ Added@tapjs/typescript@2.0.1(transitive)
+ Added@tapjs/worker@3.0.1(transitive)
+ Addedtypescript@5.5.4(transitive)
- Removed@tapjs/after@2.0.0(transitive)
- Removed@tapjs/after-each@3.0.0(transitive)
- Removed@tapjs/asserts@3.0.0(transitive)
- Removed@tapjs/before@3.0.0(transitive)
- Removed@tapjs/before-each@3.0.0(transitive)
- Removed@tapjs/chdir@2.0.0(transitive)
- Removed@tapjs/core@3.0.0(transitive)
- Removed@tapjs/filter@3.0.0(transitive)
- Removed@tapjs/fixture@3.0.0(transitive)
- Removed@tapjs/mock@3.0.0(transitive)
- Removed@tapjs/node-serialize@3.0.0(transitive)
- Removed@tapjs/snapshot@3.0.0(transitive)
- Removed@tapjs/spawn@3.0.0(transitive)
- Removed@tapjs/stdin@3.0.0(transitive)
- Removed@tapjs/test@3.0.0(transitive)
- Removed@tapjs/typescript@2.0.0(transitive)
- Removed@tapjs/worker@3.0.0(transitive)
- Removedtypescript@5.6.2(transitive)
Updated@tapjs/after@2.0.1