Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot ac1421dae2 chore(release): 0.1.0-develop.69 [skip ci]
# [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](cac24c9caa))
2023-11-18 11:33:03 +00:00
Derrick Hammer 6e589cbe64
Merge remote-tracking branch 'origin/develop' into develop 2023-11-18 06:32:12 -05:00
Derrick Hammer cac24c9caa
fix: unpack int checks missing possible types 2023-11-18 06:32:08 -05:00
4 changed files with 22 additions and 4 deletions

View File

@ -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) # [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)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@lumeweb/libs5", "name": "@lumeweb/libs5",
"version": "0.1.0-develop.68", "version": "0.1.0-develop.69",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/libs5", "name": "@lumeweb/libs5",
"version": "0.1.0-develop.68", "version": "0.1.0-develop.69",
"dependencies": { "dependencies": {
"@noble/curves": "^1.1.0", "@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1", "@noble/hashes": "^1.3.1",

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/libs5", "name": "@lumeweb/libs5",
"version": "0.1.0-develop.68", "version": "0.1.0-develop.69",
"type": "module", "type": "module",
"main": "lib/index.js", "main": "lib/index.js",
"repository": { "repository": {

View File

@ -166,7 +166,18 @@ export default class Unpacker {
private _unpack(): any { private _unpack(): any {
const b = this._d.getUint8(this._offset); 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(); return this.unpackInt();
} else if (b === 0xc2 || b === 0xc3 || b === 0xc0) { } else if (b === 0xc2 || b === 0xc3 || b === 0xc0) {
return this.unpackBool(); return this.unpackBool();