@makeswift/runtime 0.2.17 → 0.2.19
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.
- package/dist/actions.cjs.js +6 -1
- package/dist/actions.cjs.js.map +1 -1
- package/dist/actions.es.js +6 -2
- package/dist/actions.es.js.map +1 -1
- package/dist/index.cjs.js +12 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +12 -6
- package/dist/index.es.js.map +1 -1
- package/dist/react-builder-preview.cjs.js +15 -1
- package/dist/react-builder-preview.cjs.js.map +1 -1
- package/dist/react-builder-preview.es.js +16 -2
- package/dist/react-builder-preview.es.js.map +1 -1
- package/dist/types/src/next/preview-mode.d.ts.map +1 -1
- package/dist/types/src/state/actions.d.ts +13 -1
- package/dist/types/src/state/actions.d.ts.map +1 -1
- package/dist/types/src/state/react-builder-preview.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -891,11 +891,17 @@ if (window.parent !== window) {
|
|
|
891
891
|
} else {
|
|
892
892
|
const originalFetch = window.fetch
|
|
893
893
|
|
|
894
|
-
window.fetch = function patchedFetch(
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
894
|
+
window.fetch = function patchedFetch(resource, options) {
|
|
895
|
+
const request = new Request(resource, options)
|
|
896
|
+
|
|
897
|
+
if (new URL(request.url).origin !== window.location.origin) {
|
|
898
|
+
return originalFetch.call(this, resource, options)
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
return originalFetch.call(
|
|
902
|
+
this,
|
|
903
|
+
new Request(request, { headers: { [headerName]: secret } }),
|
|
904
|
+
)
|
|
899
905
|
}
|
|
900
906
|
}
|
|
901
907
|
}
|
|
@@ -966,7 +972,7 @@ class Document$1 extends NextDocument {
|
|
|
966
972
|
});
|
|
967
973
|
}
|
|
968
974
|
}
|
|
969
|
-
const version = "0.2.
|
|
975
|
+
const version = "0.2.19";
|
|
970
976
|
function isErrorWithMessage(error) {
|
|
971
977
|
return typeof error === "object" && error !== null && "message" in error && typeof error.message === "string";
|
|
972
978
|
}
|