mock-property
Given an object and a property, replaces a property descriptor (or deletes it), and returns a thunk to restore it.
mock-property@1.1.2 was published on 2026-06-20. Its manifest declares 8 runtime dependencies and 0 peer requirements. Type declarations are bundled according to the package metadata. The declared Node.js requirement is >= 0.4.
All mock-property versions · Permanent reference to 1.1.2
Package specifications
| Version | 1.1.2 |
|---|---|
| License declaration | MIT |
| Published | 2026-06-20T06:28:56.814Z |
| Node.js requirement | >= 0.4 |
| Type declarations | Bundled declarations |
| Runtime dependency count | 8 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 59.63 KiB |
| Published file count | 11 |
| Package type | Not declared |
| ES module entry | Not declared |
| Default entry | index.js |
| Side effects declaration | false |
| Direct advisories | 0 |
| Resolved graph dependencies | 10 |
| Repository stars | 6 |
| Repository forks | 1 |
Install mock-property 1.1.2
npm install mock-property@1.1.2 pnpm add mock-property@1.1.2 yarn add mock-property@1.1.2
Runtime dependencies
- gopd ^1.2.0
- hasown ^2.0.4
- isarray ^2.0.5
- es-errors ^1.3.0
- object-inspect ^1.13.4
- define-data-property ^1.1.4
- functions-have-names ^1.2.3
- has-property-descriptors ^1.0.2
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- define-data-property@1.1.4 — direct
- es-define-property@1.0.1 — indirect
- es-errors@1.3.0 — direct
- function-bind@1.1.2 — indirect
- functions-have-names@1.2.3 — direct
- gopd@1.2.0 — direct
- has-property-descriptors@1.0.2 — direct
- hasown@2.0.4 — direct
- isarray@2.0.5 — direct
- object-inspect@1.13.4 — direct
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
|---|---|
| Code-Review | 0/10 — Found 0/30 approved changesets -- score normalized to 0 |
| Maintained | 10/10 — 12 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10 |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Pinned-Dependencies | 0/10 — dependency not pinned by hash detected -- score normalized to 0 |
| SAST | 0/10 — no SAST tool detected |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Fuzzing | 0/10 — project is not fuzzed |
| License | 10/10 — license file detected |
| Security-Policy | 10/10 — security policy file detected |
Evidence and freshness
- https://registry.npmjs.org/mock-property/1.1.2 — retrieved 2026-10-30T23:35:36.361Z (stale snapshot; refresh pending)
- https://api.deps.dev/v3/projects/github.com%2Fljharb%2Fmock-property — retrieved 2026-10-30T23:35:36.767Z (stale snapshot; refresh pending)
- https://api.deps.dev/v3/systems/npm/packages/mock-property/versions/1.1.2:dependencies — retrieved 2026-10-31T22:14:40.675Z
- https://api.deps.dev/v3/systems/npm/packages/mock-property/versions/1.1.2 — retrieved 2026-10-31T22:14:40.699Z