@applica-software-guru/react-admin 1.3.132 → 1.3.133
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/dev/useErrorEventCatcher.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +1 -1
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +4 -1
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +1 -1
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/dev/useErrorEventCatcher.ts +5 -1
package/dist/react-admin.es.js
CHANGED
|
@@ -30291,7 +30291,10 @@ const hJ = ({
|
|
|
30291
30291
|
}) => {
|
|
30292
30292
|
const a = O.useMemo(() => i.errorHandler ? i.errorHandler : new pJ({ apiUrl: t }), [t, i.errorHandler]), l = console.error, A = O.useCallback(
|
|
30293
30293
|
function(u, ...g) {
|
|
30294
|
-
|
|
30294
|
+
var C;
|
|
30295
|
+
if (!u)
|
|
30296
|
+
return !1;
|
|
30297
|
+
const f = r(u instanceof ErrorEvent ? u : (C = u == null ? void 0 : u.toString()) == null ? void 0 : C.replace(/%s/g, () => g.shift()));
|
|
30295
30298
|
if (f.isCatched())
|
|
30296
30299
|
return !1;
|
|
30297
30300
|
f.logError() && (u instanceof ErrorEvent ? a.handle(u) : a.handle(new ErrorEvent("window.onerror", { error: u, message: u.toString() }))), f.displayError() && l.apply(console, arguments);
|