Compare commits

...

3 Commits

4 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,5 @@
# [0.2.0-develop.44](https://git.lumeweb.com/LumeWeb/libweb/compare/v0.2.0-develop.43...v0.2.0-develop.44) (2023-09-04)
# [0.2.0-develop.43](https://git.lumeweb.com/LumeWeb/libweb/compare/v0.2.0-develop.42...v0.2.0-develop.43) (2023-09-04)

4
npm-shrinkwrap.json generated
View File

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

View File

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

View File

@ -75,8 +75,8 @@ export function encodeRegistryCid(
raw: boolean = false,
): ErrTuple<string | Uint8Array> {
if (hash instanceof Uint8Array) {
if (!Object.values(CID_HASH_TYPES).includes(hash[0])) {
return ["", "invalid hash type"];
if (Object.values(CID_HASH_TYPES).includes(hash[0])) {
hash = hash.slice(1);
}
}