Compare commits

..

No commits in common. "v0.2.0-develop.13" and "v0.2.0-develop.12" have entirely different histories.

4 changed files with 4 additions and 12 deletions

View File

@ -1,10 +1,3 @@
# [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.13",
"version": "0.2.0-develop.12",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/libportal",
"version": "0.2.0-develop.13",
"version": "0.2.0-develop.12",
"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.13",
"version": "0.2.0-develop.12",
"main": "lib/index.js",
"module": "lib/index.mjs",
"types": "lib/index.d.ts",

View File

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