@rh-support/components 2.6.27 → 2.6.28
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../src/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAkC,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEjG,UAAU,MAAM;IACZ,QAAQ,EAAE,KAAK,CAAC,iBAAiB,GAAG,SAAS,CAAC;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACtC,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5D;AAED,UAAU,MAAM;IACZ,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,qBAAa,aAAc,SAAQ,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;gBAC5C,KAAK,EAAE,MAAM;IAKzB,MAAM,CAAC,wBAAwB,IAAI,MAAM;IAIzC,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../src/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAkC,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEjG,UAAU,MAAM;IACZ,QAAQ,EAAE,KAAK,CAAC,iBAAiB,GAAG,SAAS,CAAC;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACtC,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5D;AAED,UAAU,MAAM;IACZ,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,qBAAa,aAAc,SAAQ,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;gBAC5C,KAAK,EAAE,MAAM;IAKzB,MAAM,CAAC,wBAAwB,IAAI,MAAM;IAIzC,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;IAmB3D,MAAM,IAAI,SAAS;CAetB"}
|
|
@@ -11,17 +11,23 @@ export class ErrorBoundary extends Component {
|
|
|
11
11
|
}
|
|
12
12
|
componentDidCatch(error, errorInfo) {
|
|
13
13
|
var _a;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
try {
|
|
15
|
+
const { onError } = this.props;
|
|
16
|
+
if (typeof onError === 'function') {
|
|
17
|
+
try {
|
|
18
|
+
onError.call(this, error, (_a = errorInfo.componentStack) !== null && _a !== void 0 ? _a : '');
|
|
19
|
+
}
|
|
20
|
+
catch (ignoredError) {
|
|
21
|
+
const errorObj = ignoredError instanceof Error ? ignoredError : new Error(String(ignoredError));
|
|
22
|
+
sendToSentry(errorObj, { error: `Error boundary function component: ${errorObj.message}` });
|
|
23
|
+
}
|
|
22
24
|
}
|
|
25
|
+
sendToSentry(error, { error: `Error boundary component: ${error.message}` });
|
|
26
|
+
}
|
|
27
|
+
catch (sentryError) {
|
|
28
|
+
// Never let Sentry reporting break the error boundary fallback UI
|
|
29
|
+
console.error('Error reporting to Sentry from ErrorBoundary:', sentryError);
|
|
23
30
|
}
|
|
24
|
-
sendToSentry(error, { error: `Error boundary component: ${error.message}` });
|
|
25
31
|
}
|
|
26
32
|
render() {
|
|
27
33
|
const { children, FallbackComponent } = this.props;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/components",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.28",
|
|
4
4
|
"description": "Contains all reusabel components for support app",
|
|
5
5
|
"author": "Vikas Rathee <vrathee@redhat.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"@patternfly/react-icons": "6.2.1",
|
|
63
63
|
"@patternfly/react-table": "6.2.1",
|
|
64
64
|
"@rh-support/types": "2.0.31",
|
|
65
|
-
"@rh-support/user-permissions": "2.6.
|
|
66
|
-
"@rh-support/utils": "2.6.
|
|
65
|
+
"@rh-support/user-permissions": "2.6.26",
|
|
66
|
+
"@rh-support/utils": "2.6.25",
|
|
67
67
|
"dompurify": "^2.2.6",
|
|
68
68
|
"js-worker-search": "^1.4.1",
|
|
69
69
|
"lazysizes": "^5.3.2",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"defaults and supports es6-module",
|
|
104
104
|
"maintained node versions"
|
|
105
105
|
],
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "3a73c83f1d0dc4d76cb2a83041dd6438501e70f4"
|
|
107
107
|
}
|