1function _class_call_check(instance, Constructor) { 2 if (!(instance instanceof Constructor)) { 3 throw new TypeError("Cannot call a class as a function"); 4 } 5} 6function _defineProperties(target, props) { 7 for(var i = 0; i < props.length; i++){ 8 var descriptor = props[i]; 9 descriptor.enumerable = descriptor.enumerable || false; 10 descriptor.configurable = true; 11 if ("value" in descriptor) descriptor.writable = true; 12 Object.defineProperty(target, descriptor.key, descriptor); 13 } 14} 15function _create_class(Constructor, protoProps, staticProps) { 16 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 17 if (staticProps) _defineProperties(Constructor, staticProps); 18 return Constructor; 19} 20function _define_property(obj, key, value) { 21 if (key in obj) { 22 Object.defineProperty(obj, key, { 23 value: value, 24 enumerable: true, 25 configurable: true, 26 writable: true 27 }); 28 } else { 29 obj[key] = value; 30 } 31 return obj; 32} 33import Ajax from "./Ajax.js"; 34var LogsUtils = /*#__PURE__*/ function() { 35 "use strict"; 36 function LogsUtils() { 37 _class_call_check(this, LogsUtils); 38 } 39 _create_class(LogsUtils, null, [ 40 { 41 key: "info", 42 value: function info(data) { 43 data.severity = "info"; 44 LogsUtils.log(data); 45 } 46 }, 47 { 48 key: "error", 49 value: function error(data) { 50 data.severity = "error"; 51 LogsUtils.log(data); 52 } 53 }, 54 { 55 key: "log", 56 value: function log(data) { 57 if (LogsUtils.messageList.includes(data.message)) { 58 console.log("Logs: already sent: " + data.message); 59 return; 60 } 61 LogsUtils.messageList.push(data.message); 62 Ajax.beacon({ 63 url: window.APP_REPORTING_URL, 64 data: data 65 }) // api_exposed_js_error_reporting 66 ; 67 } 68 } 69 ]); 70 return LogsUtils; 71}(); 72_define_property(LogsUtils, "messageList", []); 73export { LogsUtils as default };
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.