diff --git a/dist/index.cjs.js b/dist/index.cjs.js index c787704..ec9419c 100644 --- a/dist/index.cjs.js +++ b/dist/index.cjs.js @@ -206,7 +206,7 @@ class Updater { if (dataView[0] == 1) { // send file await this.sendNextPacket(); - progressCallback(`Sending (${Math.floor((this._fileProgress * 100) / this._fileSize)}), ${this._fileProgress} / ${this._fileSize}`); + progressCallback(`Sending (${Math.floor((this._fileProgress * 100) / this._fileSize)}%), ${this._fileProgress} / ${this._fileSize}`); } else if (dataView[0] == 2) { // done logic @@ -224,7 +224,7 @@ class Updater { else { // send disagree await this.sendEndCmd(false); - progressCallback(`Error, starting over`); + progressCallback(`Error, starting over: ${this._fileProgress} / ${this._fileSize}`); this._fileProgress = 0; } } diff --git a/dist/index.es.js b/dist/index.es.js index 6e2038e..cdbcb55 100644 --- a/dist/index.es.js +++ b/dist/index.es.js @@ -204,7 +204,7 @@ class Updater { if (dataView[0] == 1) { // send file await this.sendNextPacket(); - progressCallback(`Sending (${Math.floor((this._fileProgress * 100) / this._fileSize)}), ${this._fileProgress} / ${this._fileSize}`); + progressCallback(`Sending (${Math.floor((this._fileProgress * 100) / this._fileSize)}%), ${this._fileProgress} / ${this._fileSize}`); } else if (dataView[0] == 2) { // done logic @@ -222,7 +222,7 @@ class Updater { else { // send disagree await this.sendEndCmd(false); - progressCallback(`Error, starting over`); + progressCallback(`Error, starting over: ${this._fileProgress} / ${this._fileSize}`); this._fileProgress = 0; } } diff --git a/package.json b/package.json index c269d6a..60e28d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "updaterweblibrary", - "version": "1.0.17", + "version": "1.0.18", "description": "OTA Updater App frontend library", "repository": { "type": "git",