errorreporter 1.0.360 → 1.0.361
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/index.js +3 -3
- package/package.json +21 -21
- package/readme.md +17 -12
package/index.js
CHANGED
|
@@ -18,9 +18,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18
18
|
// -*- coding: utf-8 -*-
|
|
19
19
|
/** @module errorreporter *//* !
|
|
20
20
|
region header
|
|
21
|
-
[Project page](https://
|
|
21
|
+
[Project page](https://tsickert.com/errorreporter)
|
|
22
22
|
|
|
23
|
-
Copyright Torben Sickert (info["~at~"]
|
|
23
|
+
Copyright Torben Sickert (info["~at~"]tsickert.com) 16.12.2012
|
|
24
24
|
|
|
25
25
|
License
|
|
26
26
|
-------
|
|
@@ -29,7 +29,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29
29
|
naming 3.0 unported license.
|
|
30
30
|
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
31
31
|
endregion
|
|
32
|
-
*/var _ref;function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]}},e:function e(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a
|
|
32
|
+
*/var _ref;function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]}},e:function e(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a,u=!0;return{s:function s(){t=t.call(r)},n:function n(){u=!0;var r=t.next();return r.done?{done:!0}:{value:r.value,done:u=!1}},e:function e(r){o=!0,a=r},f:function f(){try{u||null==t.return||t.return()}finally{if(o)throw a}}}}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+""}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var r;if("undefined"!=typeof Symbol&&void 0!==(r=t[Symbol.toPrimitive])){var i=r.call(t,e||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var determineGlobalContext=function determineGlobalContext(){if(typeof globalThis==="undefined"){if(typeof window==="undefined"){if(typeof __webpack_require__.g==="undefined")return false?0:module;if("window"in __webpack_require__.g)return __webpack_require__.g.window;return __webpack_require__.g}return window}return globalThis};var globalContext=determineGlobalContext();var _errorHandler=function errorHandler(errorMessage,url,lineNumber,columnNumber,error){var issue=_objectSpread({},BROWSER_ISSUE);var location=Object.prototype.hasOwnProperty.call(globalContext,"window")&&Object.prototype.hasOwnProperty.call(globalContext.window,"location")?globalContext.window.location:_errorHandler.location;/*
|
|
33
33
|
Sends an error report to current requested domain via ajax in JSON
|
|
34
34
|
format. Supported by Chrome 13+, Firefox 6.0+, Internet Explorer 5.5+,
|
|
35
35
|
Opera 11.60+, Safari 5.1+
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "errorreporter",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.361",
|
|
4
4
|
"description": "Error reporter for client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"client",
|
|
7
7
|
"error",
|
|
8
8
|
"reporter"
|
|
9
9
|
],
|
|
10
|
-
"homepage": "https://
|
|
10
|
+
"homepage": "https://tsickert.com/errorreporter",
|
|
11
11
|
"bugs": {
|
|
12
|
-
"email": "info@
|
|
12
|
+
"email": "info@tsickert.com",
|
|
13
13
|
"url": "https://github.com/thaibault/errorreporter/issues"
|
|
14
14
|
},
|
|
15
15
|
"license": "CC-BY-3.0",
|
|
16
16
|
"author": {
|
|
17
|
-
"email": "info@
|
|
17
|
+
"email": "info@tsickert.com",
|
|
18
18
|
"name": "Torben Sickert",
|
|
19
|
-
"url": "https://
|
|
19
|
+
"url": "https://tsickert.com"
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
],
|
|
31
31
|
"sideEffects": true,
|
|
32
32
|
"scripts": {
|
|
33
|
-
"build": "yarn build:types
|
|
34
|
-
"build:bundle": "yarn build:types
|
|
35
|
-
"build:bundle:compatible": "yarn build:types
|
|
33
|
+
"build": "yarn build:types && yarn build:bundle:compatible",
|
|
34
|
+
"build:bundle": "yarn build:types && yarn build:bundle:compatible",
|
|
35
|
+
"build:bundle:compatible": "yarn build:types && weboptimizer build '{__reference__: [\"target:bundle\", \"target:compatible\"]}'",
|
|
36
36
|
"build:bundle:plain": "weboptimizer build '{__reference__: \"target:bundle\"}'",
|
|
37
37
|
"build:plain": "weboptimizer build",
|
|
38
38
|
"build:types": "weboptimizer build:types",
|
|
39
|
-
"check": "yarn check:types
|
|
39
|
+
"check": "yarn check:types && yarn lint",
|
|
40
40
|
"check:types": "weboptimizer check:types",
|
|
41
41
|
"clear": "weboptimizer clear",
|
|
42
42
|
"document": "weboptimizer document",
|
|
@@ -52,26 +52,26 @@
|
|
|
52
52
|
"watch": "weboptimizer build --watch"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@babel/eslint-parser": "^8.0.
|
|
55
|
+
"@babel/eslint-parser": "^8.0.7",
|
|
56
56
|
"@babel/plugin-transform-proto-to-assign": "^8.0.1",
|
|
57
57
|
"@eslint/js": "^10.0.1",
|
|
58
58
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
59
59
|
"@types/jsdom": "^30.0.0",
|
|
60
|
-
"@types/node": "^26.5
|
|
60
|
+
"@types/node": "^26.6.5",
|
|
61
61
|
"@types/webpack-env": "^1.18.8",
|
|
62
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
63
|
-
"@typescript-eslint/parser": "^8.
|
|
64
|
-
"clientnode": "^4.0.
|
|
65
|
-
"eslint": "^10.
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "^8.71.2",
|
|
63
|
+
"@typescript-eslint/parser": "^8.71.2",
|
|
64
|
+
"clientnode": "^4.0.1522",
|
|
65
|
+
"eslint": "^10.13.0",
|
|
66
66
|
"eslint-config-google": "^0.14.0",
|
|
67
|
-
"eslint-plugin-jsdoc": "^
|
|
68
|
-
"jest": "^30.5.
|
|
67
|
+
"eslint-plugin-jsdoc": "^65.3.8",
|
|
68
|
+
"jest": "^30.5.2",
|
|
69
69
|
"jsdoc": "^4.0.5",
|
|
70
70
|
"node-fetch": "^3.3.2",
|
|
71
|
-
"typescript-eslint": "^8.
|
|
71
|
+
"typescript-eslint": "^8.71.2",
|
|
72
72
|
"ua-parser-js": "^2.0.10",
|
|
73
|
-
"web-documentation": "^1.0.
|
|
74
|
-
"weboptimizer": "^4.0.
|
|
73
|
+
"web-documentation": "^1.0.61",
|
|
74
|
+
"weboptimizer": "^4.0.88",
|
|
75
75
|
"webpack-dev-server": "^6.0.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
|
-
"packageManager": "yarn@4.18.
|
|
119
|
+
"packageManager": "yarn@4.18.1+sha512.b2e1e7524f654f2749d32b4ebcb4622473cb5bcbc485df2007e12a154e50162a4d795526768bc5f5b8f81717bfd79deb2472813d86fb5ae2eb551fa9c872b08f"
|
|
120
120
|
}
|
package/readme.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- !/usr/bin/env markdown
|
|
2
2
|
-*- coding: utf-8 -*-
|
|
3
3
|
region header
|
|
4
|
-
Copyright Torben Sickert (info["~at~"]
|
|
4
|
+
Copyright Torben Sickert (info["~at~"]tsickert.com) 16.12.2012
|
|
5
5
|
|
|
6
6
|
License
|
|
7
7
|
-------
|
|
@@ -10,7 +10,8 @@ This library written by Torben Sickert stands under a creative commons naming
|
|
|
10
10
|
3.0 unported license. See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
11
11
|
endregion -->
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
<!--|deDE:Projektstatus-->
|
|
14
|
+
Project Status
|
|
14
15
|
--------------
|
|
15
16
|
|
|
16
17
|
[](https://www.npmjs.com/package/errorreporter)
|
|
@@ -26,9 +27,18 @@ Project status
|
|
|
26
27
|
[](https://coveralls.io/github/thaibault/errorreporter)
|
|
27
28
|
|
|
28
29
|
[](https://github.com/thaibault/errorreporter/actions/workflows/deploy-web-documentation.yaml)
|
|
29
|
-
[](https://tsickert.com/errorreporter)
|
|
31
|
+
|
|
32
|
+
<!--|deDE:Verwendung-->
|
|
33
|
+
Use case
|
|
34
|
+
--------
|
|
35
|
+
|
|
36
|
+
A client side error reporter written in JavaScript. Embed this code into your
|
|
37
|
+
website markup and get an ajax call to a specified resource for each distinct
|
|
38
|
+
error with detailed client information. You can filter each non-supported
|
|
39
|
+
client technology to avoid getting error reports from environments which aren't
|
|
40
|
+
expected.
|
|
30
41
|
|
|
31
|
-
<!--|deDE:Installation-->
|
|
32
42
|
Installation
|
|
33
43
|
------------
|
|
34
44
|
|
|
@@ -50,14 +60,9 @@ npm install errorreporter
|
|
|
50
60
|
<script src="https://unpkg.com/errorreporter@latest/index.js"></script>
|
|
51
61
|
```
|
|
52
62
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
A client side error reporter written in JavaScript. Embed this code into your
|
|
57
|
-
website markup and get an ajax call to a specified resource for each distinct
|
|
58
|
-
error with detailed client information. You can filter each non-supported
|
|
59
|
-
client technology to avoid getting error reports from environments which aren't
|
|
60
|
-
expected.
|
|
63
|
+
<!--|deDE:Beispiel-->
|
|
64
|
+
Example
|
|
65
|
+
-------
|
|
61
66
|
|
|
62
67
|
<!--showExample-->
|
|
63
68
|
|