(1.0.20) bump

This commit is contained in:
2025-11-30 21:11:31 +00:00
parent b155baed03
commit b13787b704
3 changed files with 5 additions and 3 deletions

3
dist/index.cjs.js vendored
View File

@@ -175,11 +175,12 @@ class Updater {
}
async sendNextPacket() {
let packet = this.file.slice(this._fileProgress, this._fileProgress + this._packetSize);
this._fileProgress += this._packetSize;
return new Promise((resolve, reject) => {
this.bleObject.write(this.bleDeviceId, this._updaterServiceUUID, this._updateFileCharacteristicUUID, packet.buffer, () => {
this._fileProgress += this._packetSize;
resolve(true);
}, (error) => {
this._fileProgress -= this._packetSize;
reject(error);
});
});

3
dist/index.es.js vendored
View File

@@ -173,11 +173,12 @@ class Updater {
}
async sendNextPacket() {
let packet = this.file.slice(this._fileProgress, this._fileProgress + this._packetSize);
this._fileProgress += this._packetSize;
return new Promise((resolve, reject) => {
this.bleObject.write(this.bleDeviceId, this._updaterServiceUUID, this._updateFileCharacteristicUUID, packet.buffer, () => {
this._fileProgress += this._packetSize;
resolve(true);
}, (error) => {
this._fileProgress -= this._packetSize;
reject(error);
});
});

View File

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