Compare commits
3 Commits
v0.2.0-dev
...
v0.2.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | cfe89058c3 | |
Derrick Hammer | c657964cba | |
Derrick Hammer | 8451974d6e |
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue