fix(core): update
This commit is contained in:
parent
d124e5807c
commit
8825ca7c09
@ -119,6 +119,6 @@ jobs:
|
||||
run: |
|
||||
npmci node install stable
|
||||
npmci npm install
|
||||
pnpm install -g @gitzone/tsdoc
|
||||
pnpm install -g @git.zone/tsdoc
|
||||
npmci command tsdoc
|
||||
continue-on-error: true
|
||||
|
18
package.json
18
package.json
@ -9,20 +9,20 @@
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"test": "(tstest test/)",
|
||||
"build": "(tsbuild)",
|
||||
"buildDocs": "tsdoc"
|
||||
"build": "(tsbuild)"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gitzone/tsbuild": "^2.1.66",
|
||||
"@gitzone/tsrun": "^1.2.44",
|
||||
"@gitzone/tstest": "^1.0.77",
|
||||
"@git.zone/tsbuild": "^2.1.72",
|
||||
"@git.zone/tsrun": "^1.2.46",
|
||||
"@git.zone/tstest": "^1.0.86",
|
||||
"@push.rocks/tapbundle": "^5.0.15",
|
||||
"@types/node": "^20.5.1"
|
||||
"@types/node": "^20.11.17"
|
||||
},
|
||||
"dependencies": {
|
||||
"@push.rocks/smartcrypto": "^2.0.2",
|
||||
"@types/jsonwebtoken": "^9.0.2",
|
||||
"jsonwebtoken": "^9.0.1"
|
||||
"@push.rocks/smartcrypto": "^2.0.4",
|
||||
"@tsclass/tsclass": "^4.0.51",
|
||||
"@types/jsonwebtoken": "^9.0.5",
|
||||
"jsonwebtoken": "^9.0.2"
|
||||
},
|
||||
"files": [
|
||||
"ts/**/*",
|
||||
|
1940
pnpm-lock.yaml
generated
1940
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/smartjwt',
|
||||
version: '2.0.3',
|
||||
version: '2.0.4',
|
||||
description: 'a package for handling jwt'
|
||||
}
|
||||
|
@ -1,10 +1,5 @@
|
||||
import * as plugins from './smartjwt.plugins.js';
|
||||
|
||||
export interface ISmartJWTJSONKeypair {
|
||||
privatePem: string;
|
||||
publicPem: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A class to create and validate JWTs and their keys
|
||||
*/
|
||||
@ -51,7 +46,7 @@ export class SmartJwt<T extends object = any> {
|
||||
/**
|
||||
* gets the currently set kaypair as json
|
||||
*/
|
||||
public getKeyPairAsJson(): ISmartJWTJSONKeypair {
|
||||
public getKeyPairAsJson(): plugins.tsclass.network.IJwtKeypair {
|
||||
return {
|
||||
privatePem: this.privateKey.toPemString(),
|
||||
publicPem: this.publicKey.toPemString(),
|
||||
@ -61,7 +56,7 @@ export class SmartJwt<T extends object = any> {
|
||||
/**
|
||||
* sets the currently set keypair as json
|
||||
*/
|
||||
public setKeyPairAsJson(jsonKeyPair: ISmartJWTJSONKeypair) {
|
||||
public setKeyPairAsJson(jsonKeyPair: plugins.tsclass.network.IJwtKeypair) {
|
||||
this.privateKey = plugins.smartcrypto.PrivateKey.fromPemString(jsonKeyPair.privatePem);
|
||||
this.publicKey = plugins.smartcrypto.PublicKey.fromPemString(jsonKeyPair.publicPem);
|
||||
}
|
||||
|
@ -6,3 +6,10 @@ export { smartcrypto };
|
||||
// thirdparty scope
|
||||
import jsonwebtoken from 'jsonwebtoken';
|
||||
export { jsonwebtoken };
|
||||
|
||||
// @tsclass scope
|
||||
import * as tsclass from '@tsclass/tsclass';
|
||||
|
||||
export {
|
||||
tsclass
|
||||
};
|
||||
|
@ -3,8 +3,8 @@
|
||||
"experimentalDecorators": true,
|
||||
"useDefineForClassFields": false,
|
||||
"target": "ES2022",
|
||||
"module": "ES2022",
|
||||
"moduleResolution": "nodenext",
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"esModuleInterop": true,
|
||||
"verbatimModuleSyntax": true
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user