errorreporter 1.0.346 → 1.0.347
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 +2 -2
- package/readme.md +12 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "errorreporter",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.347",
|
|
4
4
|
"description": "Error reporter for client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"client",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"node-fetch": "^3.3.2",
|
|
70
70
|
"typescript-eslint": "^8.60.1",
|
|
71
71
|
"ua-parser-js": "^2.0.10",
|
|
72
|
-
"web-documentation": "^1.0.
|
|
72
|
+
"web-documentation": "^1.0.31",
|
|
73
73
|
"weboptimizer": "^3.0.24",
|
|
74
74
|
"webpack-dev-server": "^5.2.4"
|
|
75
75
|
},
|
package/readme.md
CHANGED
|
@@ -44,7 +44,7 @@ zip file here and inject or request via cdn in HTML:
|
|
|
44
44
|
npm install errorreporter
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
<!--showExample-->
|
|
47
|
+
<!--showExample:hidden-->
|
|
48
48
|
|
|
49
49
|
```HTML
|
|
50
50
|
<script src="https://unpkg.com/errorreporter@latest/index.js"></script>
|
|
@@ -59,8 +59,18 @@ error with detailed client information. You can filter each non-supported
|
|
|
59
59
|
client technology to avoid getting error reports from environments which aren't
|
|
60
60
|
expected.
|
|
61
61
|
|
|
62
|
+
<!--showExample-->
|
|
63
|
+
|
|
64
|
+
```HTML
|
|
65
|
+
<div id="error-output"></div>
|
|
66
|
+
```
|
|
67
|
+
|
|
62
68
|
<!--showExample:JavaScript-->
|
|
63
69
|
|
|
64
70
|
```JavaScript
|
|
65
|
-
|
|
71
|
+
errorreporter.globalContext.fetch = (url, options) => {
|
|
72
|
+
console.log('A', options);
|
|
73
|
+
document.querySelector('#error-output').textContent = options.body;
|
|
74
|
+
};
|
|
75
|
+
Promise.reject('Example error')
|
|
66
76
|
```
|