Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot 3923cfcd87 chore(release): 0.1.0-develop.75 [skip ci]
# [0.1.0-develop.75](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.74...v0.1.0-develop.75) (2023-11-18)

### Bug Fixes

* base64urlpad requires a "U" prefix ([e760149](e760149699))
2023-11-18 13:02:56 +00:00
Derrick Hammer 7f5cb50ece
Merge remote-tracking branch 'origin/develop' into develop 2023-11-18 08:02:15 -05:00
Derrick Hammer e760149699
fix: base64urlpad requires a "U" prefix 2023-11-18 08:02:11 -05:00
4 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.75](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.74...v0.1.0-develop.75) (2023-11-18)
### Bug Fixes
* base64urlpad requires a "U" prefix ([e760149](https://git.lumeweb.com/LumeWeb/libs5/commit/e76014969923fdbceb2c63a90351d3e8d2521d1c))
# [0.1.0-develop.74](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.73...v0.1.0-develop.74) (2023-11-18)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/libs5",
"version": "0.1.0-develop.74",
"version": "0.1.0-develop.75",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/libs5",
"version": "0.1.0-develop.74",
"version": "0.1.0-develop.75",
"dependencies": {
"@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1",

View File

@ -1,6 +1,6 @@
{
"name": "@lumeweb/libs5",
"version": "0.1.0-develop.74",
"version": "0.1.0-develop.75",
"type": "module",
"main": "lib/index.js",
"repository": {

View File

@ -19,7 +19,7 @@ export default abstract class Multibase {
}
bytes = base32.decode(str);
} else if (data[0] === "u") {
let str = data;
let str = data[0].toUpperCase() + data.substring(1);
while (str.length % 4 !== 0) {
str += "=";
}