Download Latest Version Release v1.2.6 source code.zip (161.5 kB)
Email in envelope

Get an email when there's a new version of PocketMocker

Home / v1.2.6
Name Modified Size InfoDownloads / 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 fetch and XMLHttpRequest patching when pocketMock() 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, returning 400 for 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

Source: README.md, updated 2026-04-15