@tramvai/module-error-interceptor 1.53.6 → 1.55.2
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/README.md +7 -5
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
# Error interceptor
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Wrapper module for the [@tinkoff/error-handlers](../libs/error-handlers)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Explanation
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
### Integration with tramvai
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Module doesn't provide any public interface and only registers error handlers with `@tinkoff/error-handlers` which will catch errors on server and client.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
### How does it work on server
|
|
12
|
+
|
|
13
|
+
Subscribes to the event `unhandledRejection` and any sudden signals and uncaughtErrors with library `death` then logs it to the console.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-error-interceptor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.55.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "lib/browser.js",
|
|
6
6
|
"main": "lib/server.js",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"@tinkoff/error-handlers": "0.4.26"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@tramvai/core": "1.
|
|
26
|
-
"@tramvai/module-common": "1.
|
|
27
|
-
"@tramvai/module-render": "1.
|
|
28
|
-
"@tramvai/react": "1.
|
|
25
|
+
"@tramvai/core": "1.55.2",
|
|
26
|
+
"@tramvai/module-common": "1.55.2",
|
|
27
|
+
"@tramvai/module-render": "1.55.2",
|
|
28
|
+
"@tramvai/react": "1.55.2",
|
|
29
29
|
"tslib": "^2.0.3"
|
|
30
30
|
},
|
|
31
31
|
"module": "lib/server.es.js",
|