Compare commits
3 Commits
v0.1.0-dev
...
v0.1.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | ac1421dae2 | |
Derrick Hammer | 6e589cbe64 | |
Derrick Hammer | cac24c9caa |
|
@ -1,3 +1,10 @@
|
|||
# [0.1.0-develop.69](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.68...v0.1.0-develop.69) (2023-11-18)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* unpack int checks missing possible types ([cac24c9](https://git.lumeweb.com/LumeWeb/libs5/commit/cac24c9caa59896a9731dd1ec0af2ab93ad124da))
|
||||
|
||||
# [0.1.0-develop.68](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.67...v0.1.0-develop.68) (2023-11-18)
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lumeweb/libs5",
|
||||
"version": "0.1.0-develop.68",
|
||||
"version": "0.1.0-develop.69",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/libs5",
|
||||
"version": "0.1.0-develop.68",
|
||||
"version": "0.1.0-develop.69",
|
||||
"dependencies": {
|
||||
"@noble/curves": "^1.1.0",
|
||||
"@noble/hashes": "^1.3.1",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/libs5",
|
||||
"version": "0.1.0-develop.68",
|
||||
"version": "0.1.0-develop.69",
|
||||
"type": "module",
|
||||
"main": "lib/index.js",
|
||||
"repository": {
|
||||
|
|
|
@ -166,7 +166,18 @@ export default class Unpacker {
|
|||
|
||||
private _unpack(): any {
|
||||
const b = this._d.getUint8(this._offset);
|
||||
if (b <= 0x7f || (b >= 0xe0 && b <= 0xff)) {
|
||||
if (
|
||||
b <= 0x7f ||
|
||||
b >= 0xe0 ||
|
||||
b === 0xcc ||
|
||||
b === 0xcd ||
|
||||
b === 0xce ||
|
||||
b === 0xcf ||
|
||||
b === 0xd0 ||
|
||||
b === 0xd1 ||
|
||||
b === 0xd2 ||
|
||||
b === 0xd3
|
||||
) {
|
||||
return this.unpackInt();
|
||||
} else if (b === 0xc2 || b === 0xc3 || b === 0xc0) {
|
||||
return this.unpackBool();
|
||||
|
|
Loading…
Reference in New Issue