Compare commits
2 Commits
v1.2.2
...
6d15fe9b72
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d15fe9b72 | |||
| 53233bffea |
2
app.json
2
app.json
@@ -6,7 +6,7 @@
|
|||||||
"appType": "app",
|
"appType": "app",
|
||||||
"version": {
|
"version": {
|
||||||
"code": 1,
|
"code": 1,
|
||||||
"name": "1.2.1"
|
"name": "1.2.2"
|
||||||
},
|
},
|
||||||
"icon": "icon.png",
|
"icon": "icon.png",
|
||||||
"vender": "zepp",
|
"vender": "zepp",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
export function decodeVarint(buffer, offset) {
|
export function decodeVarint(buffer, offset) {
|
||||||
let res = this.BigInt(0);
|
let res = 0;
|
||||||
let shift = 0;
|
let shift = 0;
|
||||||
let byte = 0;
|
let byte = 0;
|
||||||
|
|
||||||
@@ -10,8 +10,8 @@ export function decodeVarint(buffer, offset) {
|
|||||||
|
|
||||||
byte = buffer[offset++];
|
byte = buffer[offset++];
|
||||||
|
|
||||||
const multiplier = this.BigInt(2) ** this.BigInt(shift);
|
const multiplier = 2 ** shift;
|
||||||
const thisByteValue = this.BigInt(byte & 0x7f) * multiplier;
|
const thisByteValue = (byte & 0x7f) * multiplier;
|
||||||
shift += 7;
|
shift += 7;
|
||||||
res = res + thisByteValue;
|
res = res + thisByteValue;
|
||||||
} while (byte >= 0x80);
|
} while (byte >= 0x80);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "totpfit",
|
"name": "totpfit",
|
||||||
"version": "1.2.1",
|
"version": "1.2.2",
|
||||||
"description": "Another 2FAuthenticator based on TOTP for Zepp Amazfit GTS 4",
|
"description": "Another 2FAuthenticator based on TOTP for Zepp Amazfit GTS 4",
|
||||||
"main": "app.js",
|
"main": "app.js",
|
||||||
"author": "Lisoveliy",
|
"author": "Lisoveliy",
|
||||||
|
|||||||
Reference in New Issue
Block a user