Release v1.2.6
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