@tsed/adapters 6.101.0 → 6.102.3
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 +13 -13
- package/readme.md +28 -32
- package/tsconfig.compile.esm.json +1 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/adapters",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.102.3",
|
|
4
4
|
"description": "Database adapters for Ts.ED",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -27,21 +27,21 @@
|
|
|
27
27
|
"uuid": "8.3.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@tsed/ajv": "6.
|
|
31
|
-
"@tsed/common": "6.
|
|
32
|
-
"@tsed/core": "6.
|
|
33
|
-
"@tsed/di": "6.
|
|
34
|
-
"@tsed/json-mapper": "6.
|
|
35
|
-
"@tsed/schema": "6.
|
|
30
|
+
"@tsed/ajv": "6.102.3",
|
|
31
|
+
"@tsed/common": "6.102.3",
|
|
32
|
+
"@tsed/core": "6.102.3",
|
|
33
|
+
"@tsed/di": "6.102.3",
|
|
34
|
+
"@tsed/json-mapper": "6.102.3",
|
|
35
|
+
"@tsed/schema": "6.102.3",
|
|
36
36
|
"@types/fs-extra": "9.0.6"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@tsed/ajv": "^6.
|
|
40
|
-
"@tsed/common": "^6.
|
|
41
|
-
"@tsed/core": "^6.
|
|
42
|
-
"@tsed/di": "^6.
|
|
43
|
-
"@tsed/json-mapper": "^6.
|
|
44
|
-
"@tsed/schema": "^6.
|
|
39
|
+
"@tsed/ajv": "^6.102.3",
|
|
40
|
+
"@tsed/common": "^6.102.3",
|
|
41
|
+
"@tsed/core": "^6.102.3",
|
|
42
|
+
"@tsed/di": "^6.102.3",
|
|
43
|
+
"@tsed/json-mapper": "^6.102.3",
|
|
44
|
+
"@tsed/schema": "^6.102.3",
|
|
45
45
|
"change-case": "^4.1.2",
|
|
46
46
|
"lodash": "^4.17.21"
|
|
47
47
|
},
|
package/readme.md
CHANGED
|
@@ -32,12 +32,13 @@ A package of Ts.ED framework. See website: https://tsed.io/tutorials/adapters
|
|
|
32
32
|
## Feature
|
|
33
33
|
|
|
34
34
|
Currently, `@tsed/adapters` allows you:
|
|
35
|
-
|
|
36
|
-
- Create
|
|
35
|
+
|
|
36
|
+
- Create
|
|
37
37
|
|
|
38
38
|
## Installation
|
|
39
39
|
|
|
40
40
|
To begin, install the TypeORM module for TS.ED:
|
|
41
|
+
|
|
41
42
|
```bash
|
|
42
43
|
npm install --save @tsed/oidc-provider
|
|
43
44
|
npm install --save oidc-provider
|
|
@@ -54,35 +55,32 @@ import {MemoryAdapter} from "../adapters/MemoryAdapter";
|
|
|
54
55
|
export const rootDir = __dirname;
|
|
55
56
|
|
|
56
57
|
@Configuration({
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
58
|
+
oidc: {
|
|
59
|
+
jwksPath: `${rootDir}/../keys/jwks.json`, // don't forget add this path to .gitignore
|
|
60
|
+
Adapter: MemoryAdapter,
|
|
61
|
+
Accounts: Accounts,
|
|
62
|
+
// Clients: Clients,
|
|
63
|
+
clients: [
|
|
64
|
+
{
|
|
65
|
+
client_id: "client_id",
|
|
66
|
+
client_secret: "client_secret",
|
|
67
|
+
redirect_uris: ["https://host.fr/"]
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
options: {
|
|
71
|
+
// Oidc-provider options See https://github.com/panva/node-oidc-provider/blob/master/docs/README.md
|
|
72
|
+
formats: {
|
|
73
|
+
AccessToken: "jwt"
|
|
74
|
+
},
|
|
75
|
+
features: {
|
|
76
|
+
encryption: {enabled: true},
|
|
77
|
+
introspection: {enabled: true},
|
|
78
|
+
revocation: {enabled: true}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
82
|
})
|
|
83
|
-
export class Server {
|
|
84
|
-
|
|
85
|
-
}
|
|
83
|
+
export class Server {}
|
|
86
84
|
```
|
|
87
85
|
|
|
88
86
|
## Contributors
|
|
@@ -91,14 +89,12 @@ Please read [contributing guidelines here](https://tsed.io/CONTRIBUTING.html)
|
|
|
91
89
|
|
|
92
90
|
<a href="https://github.com/tsedio/ts-express-decorators/graphs/contributors"><img src="https://opencollective.com/tsed/contributors.svg?width=890" /></a>
|
|
93
91
|
|
|
94
|
-
|
|
95
92
|
## Backers
|
|
96
93
|
|
|
97
94
|
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/tsed#backer)]
|
|
98
95
|
|
|
99
96
|
<a href="https://opencollective.com/tsed#backers" target="_blank"><img src="https://opencollective.com/tsed/backers.svg?width=890"></a>
|
|
100
97
|
|
|
101
|
-
|
|
102
98
|
## Sponsors
|
|
103
99
|
|
|
104
100
|
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/tsed#sponsor)]
|
|
@@ -8,16 +8,5 @@
|
|
|
8
8
|
"declaration": true,
|
|
9
9
|
"declarationDir": "./lib/types"
|
|
10
10
|
},
|
|
11
|
-
"exclude": [
|
|
12
|
-
"node_modules",
|
|
13
|
-
"test",
|
|
14
|
-
"lib",
|
|
15
|
-
"benchmark",
|
|
16
|
-
"coverage",
|
|
17
|
-
"spec",
|
|
18
|
-
"**/*.benchmark.ts",
|
|
19
|
-
"**/*.spec.ts",
|
|
20
|
-
"keys",
|
|
21
|
-
"jest.config.js"
|
|
22
|
-
]
|
|
11
|
+
"exclude": ["node_modules", "test", "lib", "benchmark", "coverage", "spec", "**/*.benchmark.ts", "**/*.spec.ts", "keys", "jest.config.js"]
|
|
23
12
|
}
|