(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) {
|
if (dataView[0] == 1) {
|
||||||
// send file
|
// send file
|
||||||
await this.sendNextPacket();
|
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) {
|
else if (dataView[0] == 2) {
|
||||||
// done logic
|
// done logic
|
||||||
@@ -224,7 +224,7 @@ class Updater {
|
|||||||
else {
|
else {
|
||||||
// send disagree
|
// send disagree
|
||||||
await this.sendEndCmd(false);
|
await this.sendEndCmd(false);
|
||||||
progressCallback(`Error, starting over`);
|
progressCallback(`Error, starting over: ${this._fileProgress} / ${this._fileSize}`);
|
||||||
this._fileProgress = 0;
|
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) {
|
if (dataView[0] == 1) {
|
||||||
// send file
|
// send file
|
||||||
await this.sendNextPacket();
|
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) {
|
else if (dataView[0] == 2) {
|
||||||
// done logic
|
// done logic
|
||||||
@@ -222,7 +222,7 @@ class Updater {
|
|||||||
else {
|
else {
|
||||||
// send disagree
|
// send disagree
|
||||||
await this.sendEndCmd(false);
|
await this.sendEndCmd(false);
|
||||||
progressCallback(`Error, starting over`);
|
progressCallback(`Error, starting over: ${this._fileProgress} / ${this._fileSize}`);
|
||||||
this._fileProgress = 0;
|
this._fileProgress = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "updaterweblibrary",
|
"name": "updaterweblibrary",
|
||||||
"version": "1.0.17",
|
"version": "1.0.18",
|
||||||
"description": "OTA Updater App frontend library",
|
"description": "OTA Updater App frontend library",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user