create-skweb 3.3.7 → 3.3.8

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.
@@ -1,17 +1,17 @@
1
1
 
2
- > create-skweb@3.3.7 prebuild
2
+ > create-skweb@3.3.8 prebuild
3
3
  > tsc --outDir dist --rootDir src
4
4
 
5
5
  ⠙
6
- > create-skweb@3.3.7 build
6
+ > create-skweb@3.3.8 build
7
7
  > rollup -c rollup.config.mjs && node scripts/inject-shebang.mjs && chmod +x dist/cli.js
8
8
 
9
9
  ⠙
10
10
  src/index.ts → dist/index.js...
11
11
  (!) [plugin typescript] @rollup/plugin-typescript: outputToFilesystem option is defaulting to true.
12
- created dist/index.js in 347ms
12
+ created dist/index.js in 349ms
13
13
  
14
14
  src/cli.ts → dist/cli.js...
15
- created dist/cli.js in 176ms
15
+ created dist/cli.js in 172ms
16
16
  [inject-shebang] Shebang added to /Users/stayknight/projects/skweb-mono/tools/create-skweb/dist/cli.js
17
17
  ⠙
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # create-skweb
2
2
 
3
+ ## 3.3.8
4
+
5
+ ### Patch Changes
6
+
7
+ - user 控制器添加 jwt 认证和 swagger security 定义,支持 static/jwks 两种认证类型
8
+
3
9
  ## 3.3.7
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-skweb",
3
- "version": "3.3.7",
3
+ "version": "3.3.8",
4
4
  "description": "Create a new SKWeb project with TypeScript, CJS, or MJS support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -7,8 +7,13 @@ const { SysUser } = require('../models/SysUser.js')
7
7
  * get:
8
8
  * summary: 获取用户列表
9
9
  * tags: [Users]
10
+ * {{#if_eq auth "static"}}
10
11
  * security:
11
12
  * - bearerAuth: []
13
+ * {{else}}
14
+ * security:
15
+ * - oidcAuth: []
16
+ * {{/if_eq}}
12
17
  * parameters:
13
18
  * - in: query
14
19
  * name: page
@@ -45,8 +50,13 @@ const userList = {
45
50
  * get:
46
51
  * summary: 获取单个用户
47
52
  * tags: [Users]
53
+ * {{#if_eq auth "static"}}
48
54
  * security:
49
55
  * - bearerAuth: []
56
+ * {{else}}
57
+ * security:
58
+ * - oidcAuth: []
59
+ * {{/if_eq}}
50
60
  * parameters:
51
61
  * - in: path
52
62
  * name: id
@@ -83,8 +93,13 @@ const userGet = {
83
93
  * post:
84
94
  * summary: 创建用户
85
95
  * tags: [Users]
96
+ * {{#if_eq auth "static"}}
86
97
  * security:
87
98
  * - bearerAuth: []
99
+ * {{else}}
100
+ * security:
101
+ * - oidcAuth: []
102
+ * {{/if_eq}}
88
103
  * requestBody:
89
104
  * required: true
90
105
  * content:
@@ -126,8 +141,13 @@ const userCreate = {
126
141
  * put:
127
142
  * summary: 更新用户
128
143
  * tags: [Users]
144
+ * {{#if_eq auth "static"}}
129
145
  * security:
130
146
  * - bearerAuth: []
147
+ * {{else}}
148
+ * security:
149
+ * - oidcAuth: []
150
+ * {{/if_eq}}
131
151
  * parameters:
132
152
  * - in: path
133
153
  * name: id
@@ -185,8 +205,13 @@ const userUpdate = {
185
205
  * delete:
186
206
  * summary: 删除用户
187
207
  * tags: [Users]
208
+ * {{#if_eq auth "static"}}
188
209
  * security:
189
210
  * - bearerAuth: []
211
+ * {{else}}
212
+ * security:
213
+ * - oidcAuth: []
214
+ * {{/if_eq}}
190
215
  * parameters:
191
216
  * - in: path
192
217
  * name: id
@@ -7,8 +7,13 @@ import { SysUser } from '../models/SysUser.js'
7
7
  * get:
8
8
  * summary: 获取用户列表
9
9
  * tags: [Users]
10
+ * {{#if_eq auth "static"}}
10
11
  * security:
11
12
  * - bearerAuth: []
13
+ * {{else}}
14
+ * security:
15
+ * - oidcAuth: []
16
+ * {{/if_eq}}
12
17
  * parameters:
13
18
  * - in: query
14
19
  * name: page
@@ -45,8 +50,13 @@ const userList = {
45
50
  * get:
46
51
  * summary: 获取单个用户
47
52
  * tags: [Users]
53
+ * {{#if_eq auth "static"}}
48
54
  * security:
49
55
  * - bearerAuth: []
56
+ * {{else}}
57
+ * security:
58
+ * - oidcAuth: []
59
+ * {{/if_eq}}
50
60
  * parameters:
51
61
  * - in: path
52
62
  * name: id
@@ -83,8 +93,13 @@ const userGet = {
83
93
  * post:
84
94
  * summary: 创建用户
85
95
  * tags: [Users]
96
+ * {{#if_eq auth "static"}}
86
97
  * security:
87
98
  * - bearerAuth: []
99
+ * {{else}}
100
+ * security:
101
+ * - oidcAuth: []
102
+ * {{/if_eq}}
88
103
  * requestBody:
89
104
  * required: true
90
105
  * content:
@@ -126,8 +141,13 @@ const userCreate = {
126
141
  * put:
127
142
  * summary: 更新用户
128
143
  * tags: [Users]
144
+ * {{#if_eq auth "static"}}
129
145
  * security:
130
146
  * - bearerAuth: []
147
+ * {{else}}
148
+ * security:
149
+ * - oidcAuth: []
150
+ * {{/if_eq}}
131
151
  * parameters:
132
152
  * - in: path
133
153
  * name: id
@@ -185,8 +205,13 @@ const userUpdate = {
185
205
  * delete:
186
206
  * summary: 删除用户
187
207
  * tags: [Users]
208
+ * {{#if_eq auth "static"}}
188
209
  * security:
189
210
  * - bearerAuth: []
211
+ * {{else}}
212
+ * security:
213
+ * - oidcAuth: []
214
+ * {{/if_eq}}
190
215
  * parameters:
191
216
  * - in: path
192
217
  * name: id
@@ -7,8 +7,13 @@ import { SysUser } from '../models/SysUser.js'
7
7
  * get:
8
8
  * summary: 获取用户列表
9
9
  * tags: [Users]
10
+ * {{#if_eq auth "static"}}
10
11
  * security:
11
12
  * - bearerAuth: []
13
+ * {{else}}
14
+ * security:
15
+ * - oidcAuth: []
16
+ * {{/if_eq}}
12
17
  * parameters:
13
18
  * - in: query
14
19
  * name: page
@@ -45,8 +50,13 @@ const userList = {
45
50
  * get:
46
51
  * summary: 获取单个用户
47
52
  * tags: [Users]
53
+ * {{#if_eq auth "static"}}
48
54
  * security:
49
55
  * - bearerAuth: []
56
+ * {{else}}
57
+ * security:
58
+ * - oidcAuth: []
59
+ * {{/if_eq}}
50
60
  * parameters:
51
61
  * - in: path
52
62
  * name: id
@@ -83,8 +93,13 @@ const userGet = {
83
93
  * post:
84
94
  * summary: 创建用户
85
95
  * tags: [Users]
96
+ * {{#if_eq auth "static"}}
86
97
  * security:
87
98
  * - bearerAuth: []
99
+ * {{else}}
100
+ * security:
101
+ * - oidcAuth: []
102
+ * {{/if_eq}}
88
103
  * requestBody:
89
104
  * required: true
90
105
  * content:
@@ -126,8 +141,13 @@ const userCreate = {
126
141
  * put:
127
142
  * summary: 更新用户
128
143
  * tags: [Users]
144
+ * {{#if_eq auth "static"}}
129
145
  * security:
130
146
  * - bearerAuth: []
147
+ * {{else}}
148
+ * security:
149
+ * - oidcAuth: []
150
+ * {{/if_eq}}
131
151
  * parameters:
132
152
  * - in: path
133
153
  * name: id
@@ -185,8 +205,13 @@ const userUpdate = {
185
205
  * delete:
186
206
  * summary: 删除用户
187
207
  * tags: [Users]
208
+ * {{#if_eq auth "static"}}
188
209
  * security:
189
210
  * - bearerAuth: []
211
+ * {{else}}
212
+ * security:
213
+ * - oidcAuth: []
214
+ * {{/if_eq}}
190
215
  * parameters:
191
216
  * - in: path
192
217
  * name: id