@cloudflare/patch-workers-url

Encodes % so Worker's URL parser won't throw

Usage no npm install needed!

<script type="module">
  import cloudflarePatchWorkersUrl from 'https://cdn.skypack.dev/@cloudflare/patch-workers-url';
</script>

README

@cloudflare/patch-workers-url

Overrides URL constructor: to encode % so Worker's URL parser won't throw.

Usage

Make sure to import @cloudflare/patch-workers-url first to apply the change to other imported dependencies.

import "@cloudflare/patch-workers-url";