(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) {
// done logic
console.log(`progress >= filesize: ${this._fileProgress} vs ${this._fileSize}`);
if (this._fileProgress >= this._fileSize) {
console.log("true");
// send agree
await this.sendEndCmd(true);
progressCallback(`Complete!`);
@@ -222,6 +224,7 @@ class Updater {
});
}
else {
console.log("False");
// send disagree
await this.sendEndCmd(false);
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) {
// done logic
console.log(`progress >= filesize: ${this._fileProgress} vs ${this._fileSize}`);
if (this._fileProgress >= this._fileSize) {
console.log("true");
// send agree
await this.sendEndCmd(true);
progressCallback(`Complete!`);
@@ -220,6 +222,7 @@ class Updater {
});
}
else {
console.log("False");
// send disagree
await this.sendEndCmd(false);
progressCallback(`Error, starting over: ${this._fileProgress} / ${this._fileSize}`);

View File

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