5.0.0 • Published 1 week ago
iso-web
Licence
MIT
Version
5.0.0
Deps
4
Size
118 kB
Vulns
0
Weekly
0
iso-web

Isomorphic web apis utilities for fetch, event target, signals, crypto and doh.
Install
pnpm install iso-web
MSW
iso-web/msw needs msw 3, an optional peer dependency:
pnpm install -D msw@3
In browsers the worker script must match the installed msw. Generate it again and deploy it every time msw is upgraded, with a worker from msw 2 stop() never resolves and the next start() hangs:
pnpm exec msw init <PUBLIC_DIR>
License
MIT Hugo Dias