mock-property
Given an object and a property, replaces a property descriptor (or deletes it), and returns a thunk to restore it.
5
Versions
MIT
License
No
Install Scripts
Missing
Provenance
Supply chain provenance
Status for the latest visible version.
No SLSA provenance
npm registry signatures
gitHead linked
Without SLSA provenance there is no cryptographic link between this tarball and the public source — the axios compromise (March 2026) relied on exactly this gap.
Maintainers
ljharb
Keywords
testingmockobjectpropertyvaluedescriptortestdeletedefine
Accepted risks
Findings the reviewer chose to accept rather than block on.
| Source | Rule | Reason | Accepted by | When |
|---|---|---|---|---|
| dependencies | unvetted-dep:gopd | AI (dependencies): gopd is a well-known ljharb ecosystem package; stable dependency for this package. | ai | |
| dependencies | unvetted-dep:define-data-property | AI (dependencies): define-data-property is a well-known ljharb ecosystem package; stable dependency for this package. | ai | |
| dependencies | unvetted-dep:functions-have-names | AI (dependencies): functions-have-names is a well-known ljharb ecosystem package; stable dependency for this package. | ai |
Versions (showing 5 of 5)
| Version | Deps | Published |
|---|---|---|
| 1.1.0 | 7 / 33 | |
| 1.0.3 | 6 / 13 | |
| 1.0.2 | 6 / 13 | |
| 1.0.1 | 6 / 13 | |
| 1.0.0 | 4 / 12 |
v1.0.3
1 finding
LOW
No provenance attestation
provenance
Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.
v1.0.1
1 finding
LOW
No provenance attestation
provenance
Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.