genesys-cloud-client-logger
Advanced tools
Comparing version 4.2.0-PCM-1992.3 to 4.2.0-PCM-1992.4
@@ -32,4 +32,4 @@ { | ||
], | ||
"build": "3", | ||
"buildDate": "2022-09-14T14:53:23.905392Z" | ||
"build": "4", | ||
"buildDate": "2022-09-14T17:28:54.065856Z" | ||
} |
@@ -32,3 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
this.logUploader = getOrCreateLogUploader(logger.config.url, logger.config.debugMode); | ||
window.addEventListener('unload', this.sendAllLogsInstantly.bind(this)); | ||
/* istanbul ignore next */ | ||
window.addEventListener('unload', () => { | ||
this.addLogToSend('info', 'window.unload was called, sending all logs instantly'); | ||
this.sendAllLogsInstantly(); | ||
}); | ||
/* when we stop server logging, we need to clear everything out */ | ||
@@ -35,0 +39,0 @@ this.logger.on('onStop', (_reason) => { |
@@ -66,3 +66,7 @@ "use strict"; | ||
this.logUploader = (0, log_uploader_1.getOrCreateLogUploader)(logger.config.url, logger.config.debugMode); | ||
window.addEventListener('unload', this.sendAllLogsInstantly.bind(this)); | ||
/* istanbul ignore next */ | ||
window.addEventListener('unload', function () { | ||
_this.addLogToSend('info', 'window.unload was called, sending all logs instantly'); | ||
_this.sendAllLogsInstantly(); | ||
}); | ||
/* when we stop server logging, we need to clear everything out */ | ||
@@ -69,0 +73,0 @@ this.logger.on('onStop', function (_reason) { |
{ | ||
"name": "genesys-cloud-client-logger", | ||
"version": "4.2.0-PCM-1992.3", | ||
"version": "4.2.0-PCM-1992.4", | ||
"description": "Common logger for genesys cloud client application to upload logs server", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2772050
21492