(1.0.19) bump
This commit is contained in:
3
dist/index.cjs.js
vendored
3
dist/index.cjs.js
vendored
@@ -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
3
dist/index.es.js
vendored
@@ -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}`);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "updaterweblibrary",
|
||||
"version": "1.0.18",
|
||||
"version": "1.0.19",
|
||||
"description": "OTA Updater App frontend library",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Reference in New Issue
Block a user