(1.0.18) bump
This commit is contained in:
4
dist/index.cjs.js
vendored
4
dist/index.cjs.js
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
4
dist/index.es.js
vendored
4
dist/index.es.js
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user