Compare commits

..

2 Commits

Author SHA1 Message Date
semantic-release-bot 5445337ba3 chore(release): 0.2.0-develop.13 [skip ci]
# [0.2.0-develop.13](https://git.lumeweb.com/LumeWeb/libportal/compare/v0.2.0-develop.12...v0.2.0-develop.13) (2023-07-18)

### Bug Fixes

* switch to using utf8ToBytes ([37fd754](37fd7543af))
2023-07-18 13:37:03 +00:00
Derrick Hammer 37fd7543af
fix: switch to using utf8ToBytes 2023-07-18 09:34:26 -04:00
4 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,10 @@
# [0.2.0-develop.13](https://git.lumeweb.com/LumeWeb/libportal/compare/v0.2.0-develop.12...v0.2.0-develop.13) (2023-07-18)
### Bug Fixes
* switch to using utf8ToBytes ([37fd754](https://git.lumeweb.com/LumeWeb/libportal/commit/37fd7543afe5f06e3193e24cb2c3390c848faadb))
# [0.2.0-develop.12](https://git.lumeweb.com/LumeWeb/libportal/compare/v0.2.0-develop.11...v0.2.0-develop.12) (2023-07-08)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/libportal",
"version": "0.2.0-develop.12",
"version": "0.2.0-develop.13",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/libportal",
"version": "0.2.0-develop.12",
"version": "0.2.0-develop.13",
"dependencies": {
"@lumeweb/node-library-preset": "git+https://git.lumeweb.com/LumeWeb/node-library-preset.git",
"@noble/curves": "^1.1.0",

View File

@ -1,6 +1,6 @@
{
"name": "@lumeweb/libportal",
"version": "0.2.0-develop.12",
"version": "0.2.0-develop.13",
"main": "lib/index.js",
"module": "lib/index.mjs",
"types": "lib/index.d.ts",

View File

@ -26,6 +26,7 @@ import {
PubkeyChallengeResponse,
} from "./responses/auth.js";
import isNode from "detect-node";
import { utf8ToBytes } from "@noble/curves/abstract/utils";
type NodeReadableStreamType = typeof import("stream").Readable;
@ -148,7 +149,7 @@ export class Client {
);
const signature = ed.sign(
new TextEncoder().encode(challenge.challenge),
utf8ToBytes(challenge.challenge),
this._options.privateKey,
);