@wix/wix-ui-icons-common 3.184.0 → 3.185.0
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/cjs/core/fetcher.js
CHANGED
|
@@ -61,6 +61,9 @@ class IconContentFetcher {
|
|
|
61
61
|
if (this.pendingRequests.has(cacheKey)) {
|
|
62
62
|
throw this.pendingRequests.get(cacheKey);
|
|
63
63
|
}
|
|
64
|
+
if (typeof fetch !== "function") {
|
|
65
|
+
return "";
|
|
66
|
+
}
|
|
64
67
|
const url = `https://static.parastorage.com/services/wix-ui-icons-common/dist/icons/${theme}/${category}/${name}.${hash}.json`;
|
|
65
68
|
const request = fetch(url, {
|
|
66
69
|
signal: createTimeoutSignal(ABORT_SIGNAL_TIMEOUT)
|
package/dist/esm/core/fetcher.js
CHANGED
|
@@ -36,6 +36,9 @@ class IconContentFetcher {
|
|
|
36
36
|
if (this.pendingRequests.has(cacheKey)) {
|
|
37
37
|
throw this.pendingRequests.get(cacheKey);
|
|
38
38
|
}
|
|
39
|
+
if (typeof fetch !== "function") {
|
|
40
|
+
return "";
|
|
41
|
+
}
|
|
39
42
|
const url = `https://static.parastorage.com/services/wix-ui-icons-common/dist/icons/${theme}/${category}/${name}.${hash}.json`;
|
|
40
43
|
const request = fetch(url, {
|
|
41
44
|
signal: createTimeoutSignal(ABORT_SIGNAL_TIMEOUT)
|