errorreporter 1.0.350 → 1.0.352
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.d.ts +1 -1
- package/index.js +122 -125
- package/package.json +18 -22
- package/type.d.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ErrorHandler, Issue } from './type';
|
|
1
|
+
import type { ErrorHandler, Issue } from './type';
|
|
2
2
|
export declare const determineGlobalContext: (() => typeof globalThis);
|
|
3
3
|
export declare const globalContext: typeof globalThis;
|
|
4
4
|
export declare const errorHandler: ErrorHandler;
|
package/index.js
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
module.exports = factory((function webpackLoadOptionalExternalModule() { try { return require("ua-parser-js"); } catch(e) {} }()));
|
|
4
|
-
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define("errorreporter", ["ua-parser-js"], factory);
|
|
6
|
-
else if(typeof exports === 'object')
|
|
7
|
-
exports["errorreporter"] = factory((function webpackLoadOptionalExternalModule() { try { return require("ua-parser-js"); } catch(e) {} }()));
|
|
8
|
-
else
|
|
9
|
-
root["errorreporter"] = factory(root["ua-parser-js"]);
|
|
10
|
-
})(this, function(__WEBPACK_EXTERNAL_MODULE__1__) {
|
|
11
|
-
return /******/ (function() { // webpackBootstrap
|
|
12
|
-
/******/ "use strict";
|
|
13
|
-
/******/ var __webpack_modules__ = ([
|
|
1
|
+
if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;import * as __WEBPACK_EXTERNAL_MODULE_ua_parser_js_bfffbf01__ from "ua-parser-js";
|
|
2
|
+
/******/ var __webpack_modules__ = ([
|
|
14
3
|
/* 0 */
|
|
15
4
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16
5
|
|
|
@@ -38,134 +27,142 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
38
27
|
naming 3.0 unported license.
|
|
39
28
|
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
40
29
|
endregion
|
|
41
|
-
*/function
|
|
30
|
+
*/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=!0,u=!1;return{s:function s(){t=t.call(r)},n:function n(){var r=t.next();return a=r.done,r},e:function e(r){u=!0,o=r},f:function f(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}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,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?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;/*
|
|
42
31
|
Sends an error report to current requested domain via ajax in JSON
|
|
43
32
|
format. Supported by Chrome 13+, Firefox 6.0+, Internet Explorer 5.5+,
|
|
44
33
|
Opera 11.60+, Safari 5.1+
|
|
45
34
|
*/// URL to send error messages to.
|
|
46
|
-
_errorHandler.reportPath
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
35
|
+
if(!_errorHandler.reportPath)_errorHandler.reportPath="/__error_report__";// Handler to call if error reporting fails.
|
|
36
|
+
if(!Object.prototype.hasOwnProperty.call(_errorHandler,"failedHandler"))_errorHandler.failedHandler=function(error){if("alert"in globalContext)globalContext.alert(error)};// All issues which completely match will be ignored.
|
|
37
|
+
if(!Object.prototype.hasOwnProperty.call(_errorHandler,"issuesToIgnore"))_errorHandler.issuesToIgnore=[/* eslint-disable max-len */{browser:{name:"IE"}},{browser:{major:/[123456789]|10/,name:"Firefox"}},{errorMessage:/Access is denied/},{errorMessage:/Das System kann auf die Datei nicht zugreifen/},{errorMessage:/Der RPC-Server ist nicht verfügbar/},{errorMessage:"Error loading script"},{errorMessage:/Für diesen Vorgang ist nicht genügend Speicher verfügbar/},{errorMessage:/^In den Microsoft-Interneterweiterungen ist ein interner Fehler aufgetreten\./},{errorMessage:/^IndexSizeError: Index or size is negative or greater than the allowed amount/},{errorMessage:/Nicht genügend Arbeitsspeicher/},{errorMessage:/^NS_ERROR[A-Z_]*:.*/},{errorMessage:/Permission denied to access property/},{errorMessage:/^QuotaExceededError:/},{errorMessage:/^ReferenceError: "gapi" is not defined\..*/},{errorMessage:"Script error."},{errorMessage:/^SecurityError/},{errorMessage:/TypeError: Expected argument of type object, but instead had type object/},{errorMessage:/^TypeError: undefined is not an object \(evaluating 'window\.__firefox__\..+'\)$/},{errorMessage:/Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied/},{errorMessage:/Uncaught ReferenceError: ztePageScrollModule is not defined/},{errorMessage:"Unbekannter Fehler"},{errorMessage:"UnknownError"},{errorMessage:/^uncaught exception: /},{errorMessage:/Zugriff verweigert/}/* eslint-enable max-len */];if(Array.isArray(_errorHandler.additionalIssuesToIgnore))_errorHandler.issuesToIgnore=_errorHandler.issuesToIgnore.concat(_errorHandler.additionalIssuesToIgnore);// Handler to call for browser which should be ignored.
|
|
38
|
+
if(!Object.prototype.hasOwnProperty.call(_errorHandler,"issueToIgnoreHandler"))_errorHandler.issueToIgnoreHandler=function(issue,issueToIgnore){/*
|
|
39
|
+
We should avoid error message if a specific error message
|
|
40
|
+
should be ignored.
|
|
41
|
+
*/if(!issueToIgnore.errorMessage)globalContext.alert("Your technology \"".concat(issue.technologyDescription,"\" to ")+"display this website isn't supported any more. Please "+"upgrade your browser engine.")};// Handler to call when error reporting was successful.
|
|
42
|
+
if(!Object.prototype.hasOwnProperty.call(_errorHandler,"reportedHandler"))_errorHandler.reportedHandler=function(){// Do nothing.
|
|
43
|
+
};try{// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
44
|
+
issue.errorMessage=String(errorMessage)||"Unclear";// Checks if given object completely matches given match object.
|
|
45
|
+
var _matches=function matches(issueItem,issueItemSpecification){if(Object.prototype.toString.call(issueItemSpecification)==="[object Object]"&&Object.prototype.toString.call(issueItem)==="[object Object]"){for(var _i=0,_Object$keys=Object.keys(issueItemSpecification);_i<_Object$keys.length;_i++){var key=_Object$keys[_i];if(!(issueItem[key]&&_matches(issueItem[key],issueItemSpecification[key])))return false}return true}if(Object.prototype.toString.call(issueItemSpecification)==="[object RegExp]")return issueItemSpecification.test(String(issueItem));return issueItemSpecification===issueItem};var _iterator=_createForOfIteratorHelper(_errorHandler.issuesToIgnore),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var issueToIgnore=_step.value;if(_matches(issue,issueToIgnore))_errorHandler.issueToIgnoreHandler(issue,issueToIgnore)}}catch(err){_iterator.e(err)}finally{_iterator.f()}var toString=function toString(value){if(["boolean","number"].includes(_typeof(value))||value===null)return String(value);return"\""+/* eslint-disable @typescript-eslint/no-base-to-string */String(value)/* eslint-enable @typescript-eslint/no-base-to-string */.replace(/\\/g,"\\\\").replace(/\r\n|\r/g,"\\n").replace(/"/g,"\\\"")+"\""};var _serialize=function serialize(value){if(value!==null&&_typeof(value)==="object"&&!(value instanceof RegExp)){if(Array.isArray(value)){var _result="[";var _iterator2=_createForOfIteratorHelper(value),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var item=_step2.value;if(_result!=="[")_result+=",";_result+=_serialize(item)}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}return"".concat(_result,"]")}var result="{";for(var _i2=0,_Object$keys2=Object.keys(value);_i2<_Object$keys2.length;_i2++){var key=_Object$keys2[_i2];if(result!=="{")result+=",";result+="\"".concat(key,"\":")+_serialize(value[key])}return"".concat(result,"}")}return toString(value)};var errorKey="".concat(errorMessage,"#").concat(location.href,"#")+"".concat(String(lineNumber),"#").concat(String(columnNumber));if(!Object.prototype.hasOwnProperty.call(_errorHandler.reported,errorKey)){_errorHandler.reported[errorKey]=true;var portPrefix=location.port?": ".concat(location.port):"";var headers={"Content-type":"application/json"};globalContext.fetch("".concat(location.protocol,"//").concat(location.hostname).concat(portPrefix)+_errorHandler.reportPath,{body:_serialize({absoluteURL:location.href,columnNumber:columnNumber,errorMessage:errorMessage,issuesToIgnore:_errorHandler.issuesToIgnore,lineNumber:lineNumber,stack:error===null||error===void 0?void 0:error.stack,technologyDescription:issue.technologyDescription,url:url,userAgent:Object.prototype.hasOwnProperty.call(globalContext,"window")&&Object.prototype.hasOwnProperty.call(globalContext.window,"navigator")&&globalContext.window.navigator.userAgent?globalContext.window.navigator.userAgent:"unclear"}),headers:Object.prototype.hasOwnProperty.call(globalContext,"Headers")?new globalContext.Headers(headers):headers,method:"PUT"}).then(_errorHandler.reportedHandler).catch(function(error){_errorHandler.failedHandler(error)})}}catch(error){_errorHandler.failedHandler(error)}};_errorHandler.location={hostname:"localhost",href:"http://localhost",protocol:"http"};/*
|
|
46
|
+
Bound reported errors to globale error handler to avoid global variable
|
|
47
|
+
pollution.
|
|
48
|
+
*/_errorHandler.reported={};var BASE_ISSUE={errorMessage:"",technologyDescription:"Unclear",ua:"",engine:{name:"",version:""},os:{name:"",version:""}};var BROWSER_ISSUE=_objectSpread({},BASE_ISSUE);try{BROWSER_ISSUE=_objectSpread(_objectSpread({},BROWSER_ISSUE),__webpack_require__(1)())}catch(_unused){// Ignore error.
|
|
49
|
+
}try{if(BROWSER_ISSUE.browser){var _BROWSER_ISSUE$device;BROWSER_ISSUE.technologyDescription="".concat(BROWSER_ISSUE.browser.name," ").concat(BROWSER_ISSUE.browser.major," (")+"".concat(BROWSER_ISSUE.browser.version," | ").concat(BROWSER_ISSUE.engine.name," ")+"".concat(BROWSER_ISSUE.engine.version,") | ").concat(BROWSER_ISSUE.os.name," ")+BROWSER_ISSUE.os.version;if((_BROWSER_ISSUE$device=BROWSER_ISSUE.device)!==null&&_BROWSER_ISSUE$device!==void 0&&_BROWSER_ISSUE$device.model&&BROWSER_ISSUE.device.type&&BROWSER_ISSUE.device.vendor)BROWSER_ISSUE.technologyDescription+=" | ".concat(BROWSER_ISSUE.device.model," ")+"".concat(BROWSER_ISSUE.device.type," ").concat(BROWSER_ISSUE.device.vendor)}}catch(error){console.warn(error)}/* harmony default export */ __webpack_exports__["default"] = (_errorHandler);// Register extended error handler globally.
|
|
50
|
+
if(globalContext.addEventListener){// Handling synchronous errors and general runtime errors
|
|
51
|
+
globalContext.addEventListener("error",function(event){_errorHandler(event.message,event.source,event.lineno,event.colno,event.error,event.filename)});// Intercepting unhandled promise rejections (async/await)
|
|
52
|
+
globalContext.addEventListener("unhandledrejection",function(event){_errorHandler(event.reason)})}
|
|
51
53
|
|
|
52
54
|
/***/ }),
|
|
53
55
|
/* 1 */
|
|
54
56
|
/***/ (function(module) {
|
|
55
57
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__1__;
|
|
58
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_ua_parser_js_bfffbf01__;
|
|
59
59
|
|
|
60
60
|
/***/ })
|
|
61
|
-
/******/
|
|
61
|
+
/******/ ]);
|
|
62
62
|
/************************************************************************/
|
|
63
|
-
/******/
|
|
64
|
-
/******/
|
|
65
|
-
/******/
|
|
66
|
-
/******/
|
|
67
|
-
/******/
|
|
68
|
-
/******/
|
|
69
|
-
/******/
|
|
70
|
-
/******/
|
|
71
|
-
/******/
|
|
72
|
-
/******/ }
|
|
73
|
-
/******/ // Create a new module (and put it into the cache)
|
|
74
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
75
|
-
/******/ id: moduleId,
|
|
76
|
-
/******/ loaded: false,
|
|
77
|
-
/******/ exports: {}
|
|
78
|
-
/******/ };
|
|
79
|
-
/******/
|
|
80
|
-
/******/ // Execute the module function
|
|
81
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
82
|
-
/******/
|
|
83
|
-
/******/ // Flag the module as loaded
|
|
84
|
-
/******/ module.loaded = true;
|
|
85
|
-
/******/
|
|
86
|
-
/******/ // Return the exports of the module
|
|
87
|
-
/******/ return module.exports;
|
|
63
|
+
/******/ // The module cache
|
|
64
|
+
/******/ var __webpack_module_cache__ = {};
|
|
65
|
+
/******/
|
|
66
|
+
/******/ // The require function
|
|
67
|
+
/******/ function __webpack_require__(moduleId) {
|
|
68
|
+
/******/ // Check if module is in cache
|
|
69
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
70
|
+
/******/ if (cachedModule !== undefined) {
|
|
71
|
+
/******/ return cachedModule.exports;
|
|
88
72
|
/******/ }
|
|
89
|
-
/******/
|
|
73
|
+
/******/ // Create a new module (and put it into the cache)
|
|
74
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
75
|
+
/******/ id: moduleId,
|
|
76
|
+
/******/ loaded: false,
|
|
77
|
+
/******/ exports: {}
|
|
78
|
+
/******/ };
|
|
79
|
+
/******/
|
|
80
|
+
/******/ // Execute the module function
|
|
81
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
82
|
+
/******/
|
|
83
|
+
/******/ // Flag the module as loaded
|
|
84
|
+
/******/ module.loaded = true;
|
|
85
|
+
/******/
|
|
86
|
+
/******/ // Return the exports of the module
|
|
87
|
+
/******/ return module.exports;
|
|
88
|
+
/******/ }
|
|
89
|
+
/******/
|
|
90
90
|
/************************************************************************/
|
|
91
|
-
/******/
|
|
92
|
-
/******/
|
|
93
|
-
/******/
|
|
94
|
-
/******/
|
|
95
|
-
/******/
|
|
96
|
-
/******/
|
|
97
|
-
/******/
|
|
98
|
-
/******/
|
|
99
|
-
/******/
|
|
100
|
-
/******/
|
|
101
|
-
/******/
|
|
102
|
-
/******/
|
|
103
|
-
/******/
|
|
104
|
-
/******/
|
|
105
|
-
/******/ }
|
|
106
|
-
/******/ } else if(binding === 0) { i++; }
|
|
107
|
-
/******/ }
|
|
108
|
-
/******/ } else {
|
|
109
|
-
/******/ for(var key in definition) {
|
|
110
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
111
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
91
|
+
/******/ /* webpack/runtime/define property getters */
|
|
92
|
+
/******/ !function() {
|
|
93
|
+
/******/ // define getter/value functions for harmony exports
|
|
94
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
95
|
+
/******/ if(Array.isArray(definition)) {
|
|
96
|
+
/******/ var i = 0;
|
|
97
|
+
/******/ while(i < definition.length) {
|
|
98
|
+
/******/ var key = definition[i++];
|
|
99
|
+
/******/ var binding = definition[i++];
|
|
100
|
+
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
101
|
+
/******/ if(binding === 0) {
|
|
102
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
103
|
+
/******/ } else {
|
|
104
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
112
105
|
/******/ }
|
|
113
|
-
/******/ }
|
|
114
|
-
/******/ }
|
|
115
|
-
/******/ };
|
|
116
|
-
/******/ }();
|
|
117
|
-
/******/
|
|
118
|
-
/******/ /* webpack/runtime/global */
|
|
119
|
-
/******/ !function() {
|
|
120
|
-
/******/ __webpack_require__.g = (function() {
|
|
121
|
-
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
122
|
-
/******/ try {
|
|
123
|
-
/******/ return this || new Function('return this')();
|
|
124
|
-
/******/ } catch (e) {
|
|
125
|
-
/******/ if (typeof window === 'object') return window;
|
|
106
|
+
/******/ } else if(binding === 0) { i++; }
|
|
126
107
|
/******/ }
|
|
127
|
-
/******/ }
|
|
128
|
-
/******/
|
|
129
|
-
/******/
|
|
130
|
-
/******/
|
|
131
|
-
/******/ !function() {
|
|
132
|
-
/******/ __webpack_require__.hmd = function(module) {
|
|
133
|
-
/******/ module = Object.create(module);
|
|
134
|
-
/******/ if (!module.children) module.children = [];
|
|
135
|
-
/******/ Object.defineProperty(module, 'exports', {
|
|
136
|
-
/******/ enumerable: true,
|
|
137
|
-
/******/ set: function() {
|
|
138
|
-
/******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
|
|
108
|
+
/******/ } else {
|
|
109
|
+
/******/ for(var key in definition) {
|
|
110
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
111
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
139
112
|
/******/ }
|
|
140
|
-
/******/ });
|
|
141
|
-
/******/ return module;
|
|
142
|
-
/******/ };
|
|
143
|
-
/******/ }();
|
|
144
|
-
/******/
|
|
145
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
146
|
-
/******/ !function() {
|
|
147
|
-
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
148
|
-
/******/ }();
|
|
149
|
-
/******/
|
|
150
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
151
|
-
/******/ !function() {
|
|
152
|
-
/******/ // define __esModule on exports
|
|
153
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
154
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
155
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
156
113
|
/******/ }
|
|
157
|
-
/******/
|
|
158
|
-
/******/
|
|
159
|
-
/******/
|
|
160
|
-
/******/
|
|
114
|
+
/******/ }
|
|
115
|
+
/******/ };
|
|
116
|
+
/******/ }();
|
|
117
|
+
/******/
|
|
118
|
+
/******/ /* webpack/runtime/global */
|
|
119
|
+
/******/ !function() {
|
|
120
|
+
/******/ __webpack_require__.g = (function() {
|
|
121
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
122
|
+
/******/ try {
|
|
123
|
+
/******/ return this || new Function('return this')();
|
|
124
|
+
/******/ } catch (e) {
|
|
125
|
+
/******/ if (typeof window === 'object') return window;
|
|
126
|
+
/******/ }
|
|
127
|
+
/******/ })();
|
|
128
|
+
/******/ }();
|
|
129
|
+
/******/
|
|
130
|
+
/******/ /* webpack/runtime/harmony module decorator */
|
|
131
|
+
/******/ !function() {
|
|
132
|
+
/******/ __webpack_require__.hmd = function(module) {
|
|
133
|
+
/******/ module = Object.create(module);
|
|
134
|
+
/******/ if (!module.children) module.children = [];
|
|
135
|
+
/******/ Object.defineProperty(module, 'exports', {
|
|
136
|
+
/******/ enumerable: true,
|
|
137
|
+
/******/ set: function() {
|
|
138
|
+
/******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
|
|
139
|
+
/******/ }
|
|
140
|
+
/******/ });
|
|
141
|
+
/******/ return module;
|
|
142
|
+
/******/ };
|
|
143
|
+
/******/ }();
|
|
144
|
+
/******/
|
|
145
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
146
|
+
/******/ !function() {
|
|
147
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
148
|
+
/******/ }();
|
|
149
|
+
/******/
|
|
150
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
151
|
+
/******/ !function() {
|
|
152
|
+
/******/ // define __esModule on exports
|
|
153
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
154
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
155
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
156
|
+
/******/ }
|
|
157
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
158
|
+
/******/ };
|
|
159
|
+
/******/ }();
|
|
160
|
+
/******/
|
|
161
161
|
/************************************************************************/
|
|
162
|
-
/******/
|
|
163
|
-
/******/
|
|
164
|
-
/******/
|
|
165
|
-
/******/
|
|
166
|
-
/******/
|
|
167
|
-
/******/
|
|
168
|
-
/******/
|
|
169
|
-
/******/ })()
|
|
170
|
-
;
|
|
171
|
-
});
|
|
162
|
+
/******/
|
|
163
|
+
/******/ // startup
|
|
164
|
+
/******/ // Load entry module and return exports
|
|
165
|
+
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
166
|
+
/******/ var __webpack_exports__ = __webpack_require__(0);
|
|
167
|
+
/******/ window.errorreporter = __webpack_exports__;
|
|
168
|
+
/******/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "errorreporter",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.352",
|
|
4
4
|
"description": "Error reporter for client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"client",
|
|
@@ -50,28 +50,28 @@
|
|
|
50
50
|
"watch": "weboptimizer build --watch"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@babel/eslint-parser": "^
|
|
54
|
-
"@babel/plugin-transform-proto-to-assign": "^
|
|
55
|
-
"@babel/runtime": "^
|
|
53
|
+
"@babel/eslint-parser": "^8.0.1",
|
|
54
|
+
"@babel/plugin-transform-proto-to-assign": "^8.0.1",
|
|
55
|
+
"@babel/runtime": "^8.0.0",
|
|
56
56
|
"@eslint/js": "^10.0.1",
|
|
57
57
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
58
58
|
"@types/jsdom": "^28.0.3",
|
|
59
|
-
"@types/node": "^
|
|
59
|
+
"@types/node": "^26.1.1",
|
|
60
60
|
"@types/webpack-env": "^1.18.8",
|
|
61
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
62
|
-
"@typescript-eslint/parser": "^8.
|
|
63
|
-
"clientnode": "^4.0.
|
|
64
|
-
"eslint": "^10.
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^8.65.0",
|
|
62
|
+
"@typescript-eslint/parser": "^8.65.0",
|
|
63
|
+
"clientnode": "^4.0.1456",
|
|
64
|
+
"eslint": "^10.7.0",
|
|
65
65
|
"eslint-config-google": "^0.14.0",
|
|
66
|
-
"eslint-plugin-jsdoc": "^63.0
|
|
66
|
+
"eslint-plugin-jsdoc": "^63.2.0",
|
|
67
67
|
"jest": "^30.4.2",
|
|
68
68
|
"jsdoc": "^4.0.5",
|
|
69
69
|
"node-fetch": "^3.3.2",
|
|
70
|
-
"typescript-eslint": "^8.
|
|
70
|
+
"typescript-eslint": "^8.65.0",
|
|
71
71
|
"ua-parser-js": "^2.0.10",
|
|
72
72
|
"web-documentation": "^1.0.42",
|
|
73
|
-
"weboptimizer": "^
|
|
74
|
-
"webpack-dev-server": "^
|
|
73
|
+
"weboptimizer": "^4.0.26",
|
|
74
|
+
"webpack-dev-server": "^6.0.0"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"@babel/runtime": "*",
|
|
@@ -96,21 +96,18 @@
|
|
|
96
96
|
"globals@npm:^11.1.0": "patch:globals@npm%3A11.12.0#~/.yarn/patches/globals-npm-11.12.0-1fa7f41a6c.patch",
|
|
97
97
|
"globals@npm:^9.18.0": "patch:globals@npm%3A11.12.0#~/.yarn/patches/globals-npm-11.12.0-1fa7f41a6c.patch"
|
|
98
98
|
},
|
|
99
|
+
"type": "module",
|
|
99
100
|
"sideEffects": true,
|
|
100
101
|
"webDocumentation": {
|
|
101
102
|
"tagline": "Error reporter for client.",
|
|
102
103
|
"trackingCode": "UA-40192634-22"
|
|
103
104
|
},
|
|
104
105
|
"webOptimizer": {
|
|
105
|
-
"module": {
|
|
106
|
-
"optimizer": {
|
|
107
|
-
"babelMinify": {
|
|
108
|
-
"#": "Bounding the \"onerror\" keyword to the global scope is necessary here.",
|
|
109
|
-
"__evaluate__": "self.debug ? {} : {bundle: {transform: {mangle: false}}, module: {mangle: false}}"
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
106
|
"target:compatible": {
|
|
107
|
+
"exportFormat": {
|
|
108
|
+
"self": "window"
|
|
109
|
+
},
|
|
110
|
+
"libraryName": "errorreporter",
|
|
114
111
|
"module": {
|
|
115
112
|
"preprocessor": {
|
|
116
113
|
"javaScript": {
|
|
@@ -124,7 +121,6 @@
|
|
|
124
121
|
}
|
|
125
122
|
},
|
|
126
123
|
"target:bundle": {
|
|
127
|
-
"libraryName": "errorreporter",
|
|
128
124
|
"module": {
|
|
129
125
|
"preprocessor": {
|
|
130
126
|
"javaScript": {
|
package/type.d.ts
CHANGED