Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot 343bc2eae0 chore(release): 0.2.0-develop.47 [skip ci]
# [0.2.0-develop.47](https://git.lumeweb.com/LumeWeb/libweb/compare/v0.2.0-develop.46...v0.2.0-develop.47) (2023-09-04)

### Bug Fixes

* encodeRegistryValue needs to use type and hashType ([880a70f](880a70f153))
2023-09-04 07:20:38 +00:00
Derrick Hammer 9820f7ac0f
Merge remote-tracking branch 'origin/develop' into develop 2023-09-04 03:19:16 -04:00
Derrick Hammer 880a70f153
fix: encodeRegistryValue needs to use type and hashType 2023-09-04 03:16:33 -04:00
4 changed files with 12 additions and 8 deletions

View File

@ -1,3 +1,10 @@
# [0.2.0-develop.47](https://git.lumeweb.com/LumeWeb/libweb/compare/v0.2.0-develop.46...v0.2.0-develop.47) (2023-09-04)
### Bug Fixes
* encodeRegistryValue needs to use type and hashType ([880a70f](https://git.lumeweb.com/LumeWeb/libweb/commit/880a70f153f5d989cae0385c1111aff37feaf0c5))
# [0.2.0-develop.46](https://git.lumeweb.com/LumeWeb/libweb/compare/v0.2.0-develop.45...v0.2.0-develop.46) (2023-09-04) # [0.2.0-develop.46](https://git.lumeweb.com/LumeWeb/libweb/compare/v0.2.0-develop.45...v0.2.0-develop.46) (2023-09-04)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@lumeweb/libweb", "name": "@lumeweb/libweb",
"version": "0.2.0-develop.46", "version": "0.2.0-develop.47",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/libweb", "name": "@lumeweb/libweb",
"version": "0.2.0-develop.46", "version": "0.2.0-develop.47",
"dependencies": { "dependencies": {
"@lumeweb/community-portals": "^0.1.0-develop.6", "@lumeweb/community-portals": "^0.1.0-develop.6",
"@lumeweb/libportal": "0.2.0-develop.23", "@lumeweb/libportal": "0.2.0-develop.23",

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/libweb", "name": "@lumeweb/libweb",
"version": "0.2.0-develop.46", "version": "0.2.0-develop.47",
"main": "lib/index.js", "main": "lib/index.js",
"type": "module", "type": "module",
"repository": { "repository": {

View File

@ -114,7 +114,7 @@ export function encodeRegistryValue(
cid.hash, cid.hash,
cid.size, cid.size,
CID_TYPES.RESOLVER, CID_TYPES.RESOLVER,
CID_HASH_TYPES.BLAKE3, hashType,
true, true,
); );
@ -122,10 +122,7 @@ export function encodeRegistryValue(
return [new Uint8Array(), err]; return [new Uint8Array(), err];
} }
return [ return [concatBytes(Uint8Array.from([type]), ret as Uint8Array), null];
concatBytes(Uint8Array.from([REGISTRY_TYPES.CID]), ret as Uint8Array),
null,
];
} }
export function decodeRegistryValue(hash: Uint8Array): ErrTuple<CID> { export function decodeRegistryValue(hash: Uint8Array): ErrTuple<CID> {