@wix/wix-ui-icons-common 3.190.3 → 3.190.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/cjs/core/fetcher.js
CHANGED
|
@@ -35,12 +35,16 @@ __export(fetcher_exports, {
|
|
|
35
35
|
module.exports = __toCommonJS(fetcher_exports);
|
|
36
36
|
const ABORT_SIGNAL_TIMEOUT = 5e3;
|
|
37
37
|
let sanitizer;
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
const importSanitizer = () => Promise.resolve().then(() => Promise.resolve().then(() => __toESM(require("./sanitize"))));
|
|
39
|
+
const loadSanitizer = () => {
|
|
40
|
+
if (!sanitizer) {
|
|
41
|
+
sanitizer = importSanitizer().catch(importSanitizer).catch((error) => {
|
|
42
|
+
sanitizer = void 0;
|
|
43
|
+
throw error;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
return sanitizer;
|
|
47
|
+
};
|
|
44
48
|
const isTransientError = (error) => error instanceof Error && (error.name === "TimeoutError" || error.name === "AbortError");
|
|
45
49
|
function createTimeoutSignal(timeout) {
|
|
46
50
|
if (typeof AbortSignal.timeout === "function") {
|
package/dist/esm/core/fetcher.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
const ABORT_SIGNAL_TIMEOUT = 5e3;
|
|
2
2
|
let sanitizer;
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
const importSanitizer = () => Promise.resolve().then(() => import("./sanitize.js"));
|
|
4
|
+
const loadSanitizer = () => {
|
|
5
|
+
if (!sanitizer) {
|
|
6
|
+
sanitizer = importSanitizer().catch(importSanitizer).catch((error) => {
|
|
7
|
+
sanitizer = void 0;
|
|
8
|
+
throw error;
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
return sanitizer;
|
|
12
|
+
};
|
|
9
13
|
const isTransientError = (error) => error instanceof Error && (error.name === "TimeoutError" || error.name === "AbortError");
|
|
10
14
|
function createTimeoutSignal(timeout) {
|
|
11
15
|
if (typeof AbortSignal.timeout === "function") {
|