(1.0.19) bump

This commit is contained in:
2025-11-30 17:42:03 +00:00
parent 266044215d
commit 41a2e30aca
3 changed files with 7 additions and 1 deletions

3
dist/index.cjs.js vendored
View File

@@ -210,7 +210,9 @@ class Updater {
} }
else if (dataView[0] == 2) { else if (dataView[0] == 2) {
// done logic // done logic
console.log(`progress >= filesize: ${this._fileProgress} vs ${this._fileSize}`);
if (this._fileProgress >= this._fileSize) { if (this._fileProgress >= this._fileSize) {
console.log("true");
// send agree // send agree
await this.sendEndCmd(true); await this.sendEndCmd(true);
progressCallback(`Complete!`); progressCallback(`Complete!`);
@@ -222,6 +224,7 @@ class Updater {
}); });
} }
else { else {
console.log("False");
// send disagree // send disagree
await this.sendEndCmd(false); await this.sendEndCmd(false);
progressCallback(`Error, starting over: ${this._fileProgress} / ${this._fileSize}`); progressCallback(`Error, starting over: ${this._fileProgress} / ${this._fileSize}`);

3
dist/index.es.js vendored
View File

@@ -208,7 +208,9 @@ class Updater {
} }
else if (dataView[0] == 2) { else if (dataView[0] == 2) {
// done logic // done logic
console.log(`progress >= filesize: ${this._fileProgress} vs ${this._fileSize}`);
if (this._fileProgress >= this._fileSize) { if (this._fileProgress >= this._fileSize) {
console.log("true");
// send agree // send agree
await this.sendEndCmd(true); await this.sendEndCmd(true);
progressCallback(`Complete!`); progressCallback(`Complete!`);
@@ -220,6 +222,7 @@ class Updater {
}); });
} }
else { else {
console.log("False");
// send disagree // send disagree
await this.sendEndCmd(false); await this.sendEndCmd(false);
progressCallback(`Error, starting over: ${this._fileProgress} / ${this._fileSize}`); progressCallback(`Error, starting over: ${this._fileProgress} / ${this._fileSize}`);

View File

@@ -1,6 +1,6 @@
{ {
"name": "updaterweblibrary", "name": "updaterweblibrary",
"version": "1.0.18", "version": "1.0.19",
"description": "OTA Updater App frontend library", "description": "OTA Updater App frontend library",
"repository": { "repository": {
"type": "git", "type": "git",