@playcademy/sdk 0.3.4 → 0.3.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.
- package/dist/index.js +5 -1
- package/dist/internal.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1980,7 +1980,11 @@ async function probeCorsReachability(url) {
|
|
|
1980
1980
|
const controller = new AbortController;
|
|
1981
1981
|
const timer = setTimeout(() => controller.abort(), CORS_PROBE_TIMEOUT_MS);
|
|
1982
1982
|
try {
|
|
1983
|
-
await fetch(url, {
|
|
1983
|
+
await fetch(url, {
|
|
1984
|
+
mode: "no-cors",
|
|
1985
|
+
cache: "no-store",
|
|
1986
|
+
signal: controller.signal
|
|
1987
|
+
});
|
|
1984
1988
|
return "reachable";
|
|
1985
1989
|
} catch {
|
|
1986
1990
|
return "unreachable";
|
package/dist/internal.js
CHANGED
|
@@ -2091,7 +2091,11 @@ async function probeCorsReachability(url) {
|
|
|
2091
2091
|
const controller = new AbortController;
|
|
2092
2092
|
const timer = setTimeout(() => controller.abort(), CORS_PROBE_TIMEOUT_MS);
|
|
2093
2093
|
try {
|
|
2094
|
-
await fetch(url, {
|
|
2094
|
+
await fetch(url, {
|
|
2095
|
+
mode: "no-cors",
|
|
2096
|
+
cache: "no-store",
|
|
2097
|
+
signal: controller.signal
|
|
2098
|
+
});
|
|
2095
2099
|
return "reachable";
|
|
2096
2100
|
} catch {
|
|
2097
2101
|
return "unreachable";
|