@cloudflare/pages-shared 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,7 @@ globalThis.URL = function(globalURL) {
|
|
|
4
4
|
PatchedURL.revokeObjectURL = globalURL.revokeObjectURL;
|
|
5
5
|
return PatchedURL;
|
|
6
6
|
function PatchedURL(input, base) {
|
|
7
|
-
const url = new
|
|
7
|
+
const url = new globalURL(encodeURI(input), base);
|
|
8
8
|
return new Proxy(url, {
|
|
9
9
|
get(target, prop) {
|
|
10
10
|
return globalThis.decodeURIComponent(target[prop]);
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ globalThis.URL = (function (globalURL) {
|
|
|
8
8
|
return PatchedURL as unknown as typeof globalURL;
|
|
9
9
|
|
|
10
10
|
function PatchedURL(input: string, base?: string | URL) {
|
|
11
|
-
const url = new
|
|
11
|
+
const url = new globalURL(encodeURI(input), base);
|
|
12
12
|
|
|
13
13
|
return new Proxy(url, {
|
|
14
14
|
get(target, prop) {
|