@denodeio/seshat 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -10
- package/build/dist/src/index.d.ts +0 -30
- package/build/dist/src/signer.d.ts +0 -14
- package/readme.md +0 -1
package/package.json
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@denodeio/seshat",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.21",
|
|
5
5
|
"description": "Common functions library for denode ecosystem.",
|
|
6
6
|
"main": "build/index.js",
|
|
7
7
|
"files": [
|
|
8
8
|
"./build/"
|
|
9
9
|
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc && rollup -c --bundleConfigAsCjs",
|
|
12
|
+
"_clear": "rm -r build",
|
|
13
|
+
"ts-build": "tsc",
|
|
14
|
+
"rollup-build": "rollup -c",
|
|
15
|
+
"lint": "eslint . --ext .ts",
|
|
16
|
+
"lintfix": "eslint --fix --ignore-path .gitignore --ext .ts ."
|
|
17
|
+
},
|
|
10
18
|
"keywords": [],
|
|
11
19
|
"author": "",
|
|
12
20
|
"license": "UNLICENSED",
|
|
@@ -31,13 +39,5 @@
|
|
|
31
39
|
},
|
|
32
40
|
"peerDependencies": {
|
|
33
41
|
"jsonwebtoken": "^9.0.2"
|
|
34
|
-
},
|
|
35
|
-
"scripts": {
|
|
36
|
-
"build": "tsc && rollup -c --bundleConfigAsCjs",
|
|
37
|
-
"_clear": "rm -r build",
|
|
38
|
-
"ts-build": "tsc",
|
|
39
|
-
"rollup-build": "rollup -c",
|
|
40
|
-
"lint": "eslint . --ext .ts",
|
|
41
|
-
"lintfix": "eslint --fix --ignore-path .gitignore --ext .ts ."
|
|
42
42
|
}
|
|
43
|
-
}
|
|
43
|
+
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
type JwsSignature = {
|
|
3
|
-
protected: string;
|
|
4
|
-
header: {
|
|
5
|
-
kid: string;
|
|
6
|
-
};
|
|
7
|
-
signature: string;
|
|
8
|
-
};
|
|
9
|
-
type JwsPayload = {
|
|
10
|
-
payload: string;
|
|
11
|
-
signatures: JwsSignature[];
|
|
12
|
-
};
|
|
13
|
-
type Keychain = {
|
|
14
|
-
algorithm: string;
|
|
15
|
-
value: Buffer;
|
|
16
|
-
};
|
|
17
|
-
type JwtPayload<T> = {
|
|
18
|
-
iss: string;
|
|
19
|
-
exp: number;
|
|
20
|
-
jti: string;
|
|
21
|
-
event: {
|
|
22
|
-
name: string;
|
|
23
|
-
record: T;
|
|
24
|
-
};
|
|
25
|
-
iat: number;
|
|
26
|
-
};
|
|
27
|
-
export * from "./signer";
|
|
28
|
-
export declare const sessionVerifier: (options: any) => (req: any, res: any, next: any) => void;
|
|
29
|
-
export declare const managementSigner: (options: any) => (req: any, res: any, next: any) => void;
|
|
30
|
-
export declare const validateJws: <T>(key: Keychain, input: JwsPayload) => JwtPayload<T> | undefined;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
type SignJwsResponse = {
|
|
2
|
-
payload: string;
|
|
3
|
-
signatures: {
|
|
4
|
-
protected: string;
|
|
5
|
-
header: {
|
|
6
|
-
kid: string;
|
|
7
|
-
};
|
|
8
|
-
signature: string;
|
|
9
|
-
}[];
|
|
10
|
-
};
|
|
11
|
-
export declare function signJws(payload: string, options: any): SignJwsResponse;
|
|
12
|
-
export declare function signPayload(payload: any, options: any): string;
|
|
13
|
-
export declare function signData(payload: object, options: any): SignJwsResponse;
|
|
14
|
-
export {};
|
package/readme.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
library
|