@base44-preview/vite-plugin 1.0.2-pr.54.58bdb49 → 1.0.2-pr.54.e3f284a
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 @@ window.removeEventListener("error", handleWindowError);
|
|
|
4
4
|
window.addEventListener("unhandledrejection", handleUnhandledRejection);
|
|
5
5
|
window.addEventListener("error", handleWindowError);
|
|
6
6
|
let shouldPropagateErrors = true;
|
|
7
|
-
let suppressionTimer;
|
|
7
|
+
let suppressionTimer = null;
|
|
8
8
|
let hadSuppressedErrors = false;
|
|
9
9
|
if (import.meta.hot) {
|
|
10
10
|
import.meta.hot.on("vite:beforeUpdate", () => {
|
|
@@ -13,7 +13,7 @@ if (import.meta.hot) {
|
|
|
13
13
|
clearTimeout(suppressionTimer);
|
|
14
14
|
suppressionTimer = setTimeout(() => {
|
|
15
15
|
shouldPropagateErrors = true;
|
|
16
|
-
suppressionTimer =
|
|
16
|
+
suppressionTimer = null;
|
|
17
17
|
if (hadSuppressedErrors) {
|
|
18
18
|
window.parent?.postMessage({ type: "sandbox:hmrErrorsSuppressed" }, "*");
|
|
19
19
|
hadSuppressedErrors = false;
|
|
@@ -23,7 +23,7 @@ if (import.meta.hot) {
|
|
|
23
23
|
import.meta.hot.on("vite:afterUpdate", () => {
|
|
24
24
|
shouldPropagateErrors = true;
|
|
25
25
|
clearTimeout(suppressionTimer);
|
|
26
|
-
suppressionTimer =
|
|
26
|
+
suppressionTimer = null;
|
|
27
27
|
if (hadSuppressedErrors) {
|
|
28
28
|
window.parent?.postMessage({ type: "sandbox:hmrErrorsSuppressed" }, "*");
|
|
29
29
|
hadSuppressedErrors = false;
|
|
@@ -32,7 +32,7 @@ if (import.meta.hot) {
|
|
|
32
32
|
import.meta.hot.on("vite:beforeFullReload", () => {
|
|
33
33
|
shouldPropagateErrors = false;
|
|
34
34
|
clearTimeout(suppressionTimer);
|
|
35
|
-
suppressionTimer =
|
|
35
|
+
suppressionTimer = null;
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
function onAppError({ title, details, componentName, originalError, }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unhandled-errors-handlers.js","sourceRoot":"","sources":["../../src/injections/unhandled-errors-handlers.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,MAAM,CAAC,mBAAmB,CAAC,oBAAoB,EAAE,wBAAwB,CAAC,CAAC;AAC3E,MAAM,CAAC,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;AAEvD,MAAM,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,wBAAwB,CAAC,CAAC;AACxE,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;AAEpD,IAAI,qBAAqB,GAAG,IAAI,CAAC;AACjC,IAAI,
|
|
1
|
+
{"version":3,"file":"unhandled-errors-handlers.js","sourceRoot":"","sources":["../../src/injections/unhandled-errors-handlers.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,MAAM,CAAC,mBAAmB,CAAC,oBAAoB,EAAE,wBAAwB,CAAC,CAAC;AAC3E,MAAM,CAAC,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;AAEvD,MAAM,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,wBAAwB,CAAC,CAAC;AACxE,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;AAEpD,IAAI,qBAAqB,GAAG,IAAI,CAAC;AACjC,IAAI,gBAAgB,GAAyC,IAAI,CAAC;AAClE,IAAI,mBAAmB,GAAG,KAAK,CAAC;AAEhC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;IACpB,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,mBAAmB,EAAE,GAAG,EAAE;QAC3C,qBAAqB,GAAG,KAAK,CAAC;QAC9B,mBAAmB,GAAG,KAAK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M,GAAG,GAAG,YAAY;QACtB,CAAC,CAAC,MAAM,YAAY,KAAK,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE;QACjD,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC3B,UAAU,CAAC;QACT,KAAK,EAAE,GAAG;QACV,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE;QAC/B,aAAa,EAAE,YAAY;QAC3B,aAAa,EAAE,KAAK,CAAC,KAAK;KAC3B,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ window.addEventListener("unhandledrejection", handleUnhandledRejection);
|
|
|
7
7
|
window.addEventListener("error", handleWindowError);
|
|
8
8
|
|
|
9
9
|
let shouldPropagateErrors = true;
|
|
10
|
-
let suppressionTimer: ReturnType<typeof setTimeout> |
|
|
10
|
+
let suppressionTimer: ReturnType<typeof setTimeout> | null = null;
|
|
11
11
|
let hadSuppressedErrors = false;
|
|
12
12
|
|
|
13
13
|
if (import.meta.hot) {
|
|
@@ -15,11 +15,11 @@ if (import.meta.hot) {
|
|
|
15
15
|
shouldPropagateErrors = false;
|
|
16
16
|
hadSuppressedErrors = false;
|
|
17
17
|
|
|
18
|
-
clearTimeout(suppressionTimer);
|
|
18
|
+
clearTimeout(suppressionTimer!);
|
|
19
19
|
|
|
20
20
|
suppressionTimer = setTimeout(() => {
|
|
21
21
|
shouldPropagateErrors = true;
|
|
22
|
-
suppressionTimer =
|
|
22
|
+
suppressionTimer = null;
|
|
23
23
|
if (hadSuppressedErrors) {
|
|
24
24
|
window.parent?.postMessage({ type: "sandbox:hmrErrorsSuppressed" }, "*");
|
|
25
25
|
hadSuppressedErrors = false;
|
|
@@ -28,8 +28,8 @@ if (import.meta.hot) {
|
|
|
28
28
|
});
|
|
29
29
|
import.meta.hot.on("vite:afterUpdate", () => {
|
|
30
30
|
shouldPropagateErrors = true;
|
|
31
|
-
clearTimeout(suppressionTimer);
|
|
32
|
-
suppressionTimer =
|
|
31
|
+
clearTimeout(suppressionTimer!);
|
|
32
|
+
suppressionTimer = null;
|
|
33
33
|
if (hadSuppressedErrors) {
|
|
34
34
|
window.parent?.postMessage({ type: "sandbox:hmrErrorsSuppressed" }, "*");
|
|
35
35
|
hadSuppressedErrors = false;
|
|
@@ -37,8 +37,8 @@ if (import.meta.hot) {
|
|
|
37
37
|
});
|
|
38
38
|
import.meta.hot.on("vite:beforeFullReload", () => {
|
|
39
39
|
shouldPropagateErrors = false;
|
|
40
|
-
clearTimeout(suppressionTimer);
|
|
41
|
-
suppressionTimer =
|
|
40
|
+
clearTimeout(suppressionTimer!);
|
|
41
|
+
suppressionTimer = null;
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
|