| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-04-15 | 749 Bytes | |
| Release v1.2.6 source code.tar.gz | 2026-04-15 | 113.5 kB | |
| Release v1.2.6 source code.zip | 2026-04-15 | 161.5 kB | |
| Totals: 3 Items | 275.8 kB | 0 | |
Bug Fixes
- Respect
pocketMock({ enable: false })and skip initialization when disabled. - Prevent repeated
fetchandXMLHttpRequestpatching whenpocketMock()is called multiple times. - Preserve falsy primitive values such as
0,false, and empty strings in request/response log formatting. - Validate Vite plugin save payloads before writing
pocket-mock.json, returning400for invalid JSON without overwriting existing config.
Tests
- Added regression tests for interceptor patch idempotency.
- Added regression tests for invalid Vite plugin config saves.
- Added coverage for falsy primitive JSON formatting.
📦 NPM Package: pocket-mocker@1.2.6