Compare commits

..

3 Commits

Author SHA1 Message Date
semantic-release-bot e84915ec08 chore(release): 0.2.0-develop.1 [skip ci]
# [0.2.0-develop.1](https://git.lumeweb.com/LumeWeb/libportal/compare/v0.1.2...v0.2.0-develop.1) (2023-06-21)

### Features

* allow using existing jwt ([3784858](3784858600))
2023-06-21 09:36:54 +00:00
Derrick Hammer 7f305a33a1
ci: ensure npm runs before git so version changes are committed 2023-06-21 05:35:52 -04:00
Derrick Hammer 3784858600
feat: allow using existing jwt 2023-06-21 05:34:55 -04:00
4 changed files with 10 additions and 6 deletions

View File

@ -8,6 +8,7 @@
"changelogFile": "docs/CHANGELOG.md"
}
],
"@semantic-release/npm",
"@semantic-release/git",
{
"assets": [
@ -15,8 +16,7 @@
"docs/CHANGELOG.md",
"npm-shrinkwrap.json"
]
},
"@semantic-release/npm"
}
],
"branches": [
"master",

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/libportal",
"version": "0.0.0-development",
"version": "0.2.0-develop.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/libportal",
"version": "0.0.0-development",
"version": "0.2.0-develop.1",
"dependencies": {
"@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1",

View File

@ -1,6 +1,6 @@
{
"name": "@lumeweb/libportal",
"version": "0.1.0",
"version": "0.2.0-develop.1",
"main": "lib/index.js",
"module": "lib/index.mjs",
"types": "lib/index.d.ts",
@ -27,7 +27,6 @@
"semantic-release": "^21.0.5"
},
"readme": "ERROR: No README data found!",
"_id": "@lumeweb/libportal@0.1.0",
"scripts": {
"prepare": "presetter bootstrap",
"build": "presetter run build",

View File

@ -39,6 +39,7 @@ export interface ClientOptions {
email?: string;
password?: string;
privateKey?: Uint8Array;
jwt?: string;
}
interface FetchOptions {
@ -62,6 +63,10 @@ export class Client {
throw new Error("Portal url is required");
}
if (options.jwt) {
this.jwtSessionKey = options.jwt;
}
this._options = options;
}