Compare commits
No commits in common. "v0.2.0-develop.47" and "v0.2.0-develop.46" have entirely different histories.
v0.2.0-dev
...
v0.2.0-dev
|
@ -1,10 +1,3 @@
|
|||
# [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)
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lumeweb/libweb",
|
||||
"version": "0.2.0-develop.47",
|
||||
"version": "0.2.0-develop.46",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/libweb",
|
||||
"version": "0.2.0-develop.47",
|
||||
"version": "0.2.0-develop.46",
|
||||
"dependencies": {
|
||||
"@lumeweb/community-portals": "^0.1.0-develop.6",
|
||||
"@lumeweb/libportal": "0.2.0-develop.23",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/libweb",
|
||||
"version": "0.2.0-develop.47",
|
||||
"version": "0.2.0-develop.46",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"repository": {
|
||||
|
|
|
@ -114,7 +114,7 @@ export function encodeRegistryValue(
|
|||
cid.hash,
|
||||
cid.size,
|
||||
CID_TYPES.RESOLVER,
|
||||
hashType,
|
||||
CID_HASH_TYPES.BLAKE3,
|
||||
true,
|
||||
);
|
||||
|
||||
|
@ -122,7 +122,10 @@ export function encodeRegistryValue(
|
|||
return [new Uint8Array(), err];
|
||||
}
|
||||
|
||||
return [concatBytes(Uint8Array.from([type]), ret as Uint8Array), null];
|
||||
return [
|
||||
concatBytes(Uint8Array.from([REGISTRY_TYPES.CID]), ret as Uint8Array),
|
||||
null,
|
||||
];
|
||||
}
|
||||
|
||||
export function decodeRegistryValue(hash: Uint8Array): ErrTuple<CID> {
|
||||
|
|
Loading…
Reference in New Issue