Compare commits
3 Commits
v0.2.0-dev
...
v0.2.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 343bc2eae0 | |
Derrick Hammer | 9820f7ac0f | |
Derrick Hammer | 880a70f153 |
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
|
@ -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> {
|
||||||
|
|
Loading…
Reference in New Issue