Compare commits
No commits in common. "v0.2.0-develop.43" and "v0.2.0-develop.42" have entirely different histories.
v0.2.0-dev
...
v0.2.0-dev
|
@ -1,10 +1,3 @@
|
|||
# [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)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* if we have a Uint8Array but invalid CID_HASH_TYPES, return error ([07a451c](https://git.lumeweb.com/LumeWeb/libweb/commit/07a451ce5ecff302bef201b5f40e916e4420c278))
|
||||
|
||||
# [0.2.0-develop.42](https://git.lumeweb.com/LumeWeb/libweb/compare/v0.2.0-develop.41...v0.2.0-develop.42) (2023-09-04)
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lumeweb/libweb",
|
||||
"version": "0.2.0-develop.43",
|
||||
"version": "0.2.0-develop.42",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/libweb",
|
||||
"version": "0.2.0-develop.43",
|
||||
"version": "0.2.0-develop.42",
|
||||
"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.42",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"repository": {
|
||||
|
|
|
@ -74,12 +74,6 @@ export function encodeRegistryCid(
|
|||
hashType = CID_HASH_TYPES.ED25519,
|
||||
raw: boolean = false,
|
||||
): ErrTuple<string | Uint8Array> {
|
||||
if (hash instanceof Uint8Array) {
|
||||
if (!Object.values(CID_HASH_TYPES).includes(hash[0])) {
|
||||
return ["", "invalid hash type"];
|
||||
}
|
||||
}
|
||||
|
||||
return encodeCid(hash, size, type, hashType, raw);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue