@bigbinary/neeto-commons-frontend 2.0.124 → 2.0.125
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/package.json +5 -3
- package/react-utils.cjs.js +7 -9
- package/react-utils.cjs.js.map +1 -1
- package/react-utils.d.ts +3 -2
- package/react-utils.js +7 -9
- package/react-utils.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-commons-frontend",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.125",
|
|
4
4
|
"description": "A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-commons-frontend.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|
|
@@ -88,7 +88,8 @@
|
|
|
88
88
|
"@bigbinary/neeto-icons": "^1.9.15",
|
|
89
89
|
"@bigbinary/neeto-molecules": "^1.0.9",
|
|
90
90
|
"@bigbinary/neetoui": "^4.4.9",
|
|
91
|
-
"@honeybadger-io/
|
|
91
|
+
"@honeybadger-io/js": "^6.4.1",
|
|
92
|
+
"@honeybadger-io/react": "^6.1.3",
|
|
92
93
|
"@rails/actioncable": "^7.0.3",
|
|
93
94
|
"@rollup/plugin-alias": "^3.1.9",
|
|
94
95
|
"@rollup/plugin-babel": "^5.3.1",
|
|
@@ -180,7 +181,8 @@
|
|
|
180
181
|
"@bigbinary/neeto-icons": "latest",
|
|
181
182
|
"@bigbinary/neeto-molecules": "^latest",
|
|
182
183
|
"@bigbinary/neetoui": "latest",
|
|
183
|
-
"@honeybadger-io/
|
|
184
|
+
"@honeybadger-io/js": "^6.4.1",
|
|
185
|
+
"@honeybadger-io/react": "^6.1.3",
|
|
184
186
|
"antd": "4.18.7",
|
|
185
187
|
"autoprefixer": "^10.4.13",
|
|
186
188
|
"axios": "^0.27.2",
|
package/react-utils.cjs.js
CHANGED
|
@@ -120,6 +120,8 @@ var FallbackComponent = function FallbackComponent() {
|
|
|
120
120
|
}))));
|
|
121
121
|
};
|
|
122
122
|
var ignorableErrorsRegex = /(window\.requestAnimationFrame|ResizeObserver|ChunkLoadError|window\.webkit\.messageHandlers)/;
|
|
123
|
+
|
|
124
|
+
/** @type {import("neetocommons/react-utils").HoneybadgerErrorBoundary} */
|
|
123
125
|
var HoneybadgerErrorBoundary = function HoneybadgerErrorBoundary(_ref) {
|
|
124
126
|
var children = _ref.children,
|
|
125
127
|
_ref$ErrorComponent = _ref.ErrorComponent,
|
|
@@ -127,7 +129,7 @@ var HoneybadgerErrorBoundary = function HoneybadgerErrorBoundary(_ref) {
|
|
|
127
129
|
_ref$filterErrors = _ref.filterErrors,
|
|
128
130
|
filterErrors = _ref$filterErrors === void 0 ? undefined : _ref$filterErrors;
|
|
129
131
|
react.Honeybadger.beforeNotify(function (notice) {
|
|
130
|
-
if (ignorableErrorsRegex.test(notice.message) || notice.stack.includes("chrome-extension://")) {
|
|
132
|
+
if (notice && (ignorableErrorsRegex.test(notice.message) || notice.stack.includes("chrome-extension://"))) {
|
|
131
133
|
return false;
|
|
132
134
|
}
|
|
133
135
|
return filterErrors === null || filterErrors === void 0 ? void 0 : filterErrors(notice);
|
|
@@ -142,14 +144,10 @@ var HoneybadgerErrorBoundary = function HoneybadgerErrorBoundary(_ref) {
|
|
|
142
144
|
breadcrumbsEnabled: true,
|
|
143
145
|
projectRoot: "webpack:///./"
|
|
144
146
|
});
|
|
145
|
-
return (
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
ErrorComponent: ErrorComponent,
|
|
150
|
-
honeybadger: honeybadger
|
|
151
|
-
}, children)
|
|
152
|
-
);
|
|
147
|
+
return /*#__PURE__*/React__default["default"].createElement(react.HoneybadgerErrorBoundary, {
|
|
148
|
+
ErrorComponent: ErrorComponent,
|
|
149
|
+
honeybadger: honeybadger
|
|
150
|
+
}, children);
|
|
153
151
|
};
|
|
154
152
|
|
|
155
153
|
function _objectWithoutPropertiesLoose(source, excluded) {
|