create-skweb 3.5.0 โ†’ 3.7.0

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,16 @@
1
-
2
- > create-skweb@3.5.0 prebuild
3
- > tsc --outDir dist --rootDir src
4
-
5
- โ ™
6
- > create-skweb@3.5.0 build
7
- > rollup -c rollup.config.mjs && node scripts/inject-shebang.mjs && chmod +x dist/cli.js
8
-
9
- โ ™
10
- src/index.ts โ†’ dist/index.js...
11
- (!) [plugin typescript] @rollup/plugin-typescript: outputToFilesystem option is defaulting to true.
12
- created dist/index.js in 376ms
13
- 
14
- src/cli.ts โ†’ dist/cli.js...
15
- created dist/cli.js in 239ms
16
- [inject-shebang] Shebang added to /Users/stayknight/projects/skweb-mono/tools/create-skweb/dist/cli.js
17
- โ ™
1
+
2
+ > create-skweb@3.7.0 prebuild
3
+ > tsc --outDir dist --rootDir src
4
+
5
+
6
+ > create-skweb@3.7.0 build
7
+ > rollup -c rollup.config.mjs && node scripts/inject-shebang.mjs && chmod +x dist/cli.js
8
+
9
+ 
10
+ src/index.ts โ†’ dist/index.js...
11
+ (!) [plugin typescript] @rollup/plugin-typescript: outputToFilesystem option is defaulting to true.
12
+ created dist/index.js in 387ms
13
+ 
14
+ src/cli.ts โ†’ dist/cli.js...
15
+ created dist/cli.js in 193ms
16
+ [inject-shebang] Shebang added to /Users/stayknight/projects/skweb-mono/tools/create-skweb/dist/cli.js
@@ -1,14 +1,14 @@
1
1
 
2
- > create-skweb@3.2.0 test
2
+ > create-skweb@3.5.0 test
3
3
  > mocha test/**/*.mjs
4
4
 
5
5
 
6
6
 
7
7
  create-skweb
8
8
  createProject()
9
- โœ” should create TypeScript project from template
10
- โœ” should create MJS project from template
11
- โœ” should create CJS project from template
9
+ 1) should create TypeScript project from template
10
+ 2) should create MJS project from template
11
+ 3) should create CJS project from template
12
12
  โœ” should reject non-empty destination directory
13
13
  โœ” should include winston in all templates
14
14
  โœ” should include @dotenvx/dotenvx in all templates
@@ -23,47 +23,64 @@
23
23
  โœ” should not throw
24
24
  printSuccess()
25
25
 
26
- โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
27
- โ•‘ ้กน็›ฎๅˆ›ๅปบๆˆๅŠŸ๏ผ โ•‘
28
- โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
29
-
30
- ้กน็›ฎๅ็งฐ: my-app
31
- ้กน็›ฎ่ทฏๅพ„: /tmp/my-app/my-app
26
+ ้กน็›ฎๅˆ›ๅปบๆˆๅŠŸ๏ผ
32
27
 
33
- ๆŽฅไธ‹ๆฅๅฏไปฅๆ‰ง่กŒ:
28
+ ๅ็งฐ: my-app
29
+ ่ทฏๅพ„: /tmp/my-app/my-app
34
30
 
31
+ ๆŽฅไธ‹ๆฅๆ‰ง่กŒ:
35
32
  cd my-app
36
-
37
- # ๅคๅˆถ็Žฏๅขƒๅ˜้‡ๆจกๆฟๅนถๆŒ‰้œ€ไฟฎๆ”น
38
33
  cp .env.example .env
34
+ npm run web:dev
39
35
 
40
- # ๅผ€ๅ‘ๆจกๅผ่ฟ่กŒ
41
- npm run start:dev
36
+ โœ” should not throw
42
37
 
43
- # ็”Ÿไบงๆจกๅผ่ฟ่กŒ (้œ€่ฆๅ…ˆๆž„ๅปบ)
44
- npm run build
45
- npm run start
46
38
 
47
- # ๆŸฅ็œ‹ๆ—ฅๅฟ—
48
- npm run logs
39
+ 7 passing (131ms)
40
+ 3 failing
49
41
 
50
- # ๅœๆญขๆœๅŠก
51
- npm run stop
42
+ 1) create-skweb
43
+ createProject()
44
+ should create TypeScript project from template:
52
45
 
53
- # ้‡ๅฏๆœๅŠก
54
- npm run restart
46
+ AssertionError: expected false to be true
47
+ + expected - actual
55
48
 
56
- ้กน็›ฎ็‰นๆ€ง:
57
- โœ… TypeScript/MJS/CJS ๆ”ฏๆŒ
58
- โœ… @dotenvx/dotenvx ็Žฏๅขƒๅ˜้‡็ฎก็†
59
- โœ… PM2 ่ฟ›็จ‹็ฎก็†
60
- โœ… SKWeb Express ้›†ๆˆ
61
- โœ… Keycloak/JWKS ้‰ดๆƒ (ๅฏ้€‰)
62
- โœ… ESLint ไปฃ็ ๆฃ€ๆŸฅ
63
- โœ… Mocha ๆต‹่ฏ•ๆก†ๆžถ
49
+ -false
50
+ +true
51
+
52
+ at Context.<anonymous> (file:///Users/stayknight/projects/skweb-mono/tools/create-skweb/test/index.mjs:38:68)
64
53
 
65
- โœ” should not throw
54
+ 2) create-skweb
55
+ createProject()
56
+ should create MJS project from template:
57
+
58
+ AssertionError: expected false to be true
59
+ + expected - actual
60
+
61
+ -false
62
+ +true
63
+
64
+ at Context.<anonymous> (file:///Users/stayknight/projects/skweb-mono/tools/create-skweb/test/index.mjs:51:68)
65
+
66
+ 3) create-skweb
67
+ createProject()
68
+ should create CJS project from template:
69
+
70
+ AssertionError: expected false to be true
71
+ + expected - actual
72
+
73
+ -false
74
+ +true
75
+
76
+ at Context.<anonymous> (file:///Users/stayknight/projects/skweb-mono/tools/create-skweb/test/index.mjs:63:68)
66
77
 
67
78
 
68
- 10 passing (179ms)
69
79
 
80
+ npm error Lifecycle script `test` failed with error:
81
+ npm error code 3
82
+ npm error path /Users/stayknight/projects/skweb-mono/tools/create-skweb
83
+ npm error workspace create-skweb@3.5.0
84
+ npm error location /Users/stayknight/projects/skweb-mono/tools/create-skweb
85
+ npm error command failed
86
+ npm error command sh -c mocha test/**/*.mjs
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # create-skweb
2
2
 
3
+ ## 3.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 39b301f: feat(skweb-express-jwt): ้‡ๆž„ jwks ๆจกๅผ๏ผŒๅˆ ้™ค verifyAsync/getKey/createJwksClient
8
+
9
+ - ๅˆ ้™ค `verifyAsync()`๏ผšjwks ๆจกๅผไธ‹็”จไธๅˆฐ๏ผŒ่ฏท็”จ `midware` ๅš่ฏทๆฑ‚็บง้ชŒ่ฏ
10
+ - ๅˆ ้™ค `getKey()` / `createJwksClient()` / `this.jwksClient`๏ผšไธๅ†็ผ“ๅญ˜็‹ฌ็ซ‹ jwks ๅฎขๆˆท็ซฏ
11
+ - `createMidware()` ๆ”น็”จ `jwksRsa.expressJwtSecret` ๆ ‡ๅ‡†ๅฎž็Žฐ๏ผˆไน‹ๅ‰ๆ˜ฏๆ‰‹ๅ†™ kid ๆๅ–้€ป่พ‘๏ผ‰
12
+ - `verify()` ้”™่ฏฏๆถˆๆฏๆ›ดๆ–ฐ๏ผšๆ็คบ็”จๆˆทๆ”น็”จ `midware` ่€Œไธๆ˜ฏ `verifyAsync`
13
+ - ่ฟ™ๆ˜ฏ breaking change๏ผš่ฐƒ็”จๆ–นๅฆ‚ๆžœ็”จไบ† `verifyAsync()`๏ผŒ่ฏท่ฟ็งปๅˆฐ `midware`
14
+
15
+ ไพ่ต–ๅ‡็บง๏ผš
16
+
17
+ - `skweb-express@2.2.0` ๅผ•็”จ `skweb-express-jwt@^4.0.0`
18
+ - `create-skweb@3.6.0` ๆจกๆฟๅŒๆญฅๅˆฐ `skweb-express@^2.2.0` ๅ’Œ `skweb-express-jwt@^4.0.0`
19
+
3
20
  ## 3.5.0
4
21
 
5
22
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-skweb",
3
- "version": "3.5.0",
3
+ "version": "3.7.0",
4
4
  "description": "Create a new SKWeb project with TypeScript, CJS, or MJS support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -24,8 +24,8 @@
24
24
  "@dotenvx/dotenvx": "^1.75.1",
25
25
  "axios": "^1.7.7",
26
26
  "http-errors": "^2.0.1",
27
- "skweb-express": "^2.1.0",
28
- "skweb-express-jwt": "^3.0.0",
27
+ "skweb-express": "^2.2.0",
28
+ "skweb-express-jwt": "^4.0.0",
29
29
  "skweb-express-logger": "^2.0.0",
30
30
  "skweb-sequelize": "^2.0.1",
31
31
  "skweb-redis": "^2.0.0",
@@ -24,8 +24,8 @@
24
24
  "@dotenvx/dotenvx": "^1.75.1",
25
25
  "axios": "^1.7.7",
26
26
  "http-errors": "^2.0.1",
27
- "skweb-express": "^2.1.0",
28
- "skweb-express-jwt": "^3.0.0",
27
+ "skweb-express": "^2.2.0",
28
+ "skweb-express-jwt": "^4.0.0",
29
29
  "skweb-express-logger": "^2.0.0",
30
30
  "skweb-sequelize": "^2.0.1",
31
31
  "skweb-redis": "^2.0.0",
@@ -26,8 +26,8 @@
26
26
  "@dotenvx/dotenvx": "^1.75.1",
27
27
  "axios": "^1.7.7",
28
28
  "http-errors": "^2.0.1",
29
- "skweb-express": "^2.1.0",
30
- "skweb-express-jwt": "^3.0.0",
29
+ "skweb-express": "^2.2.0",
30
+ "skweb-express-jwt": "^4.0.0",
31
31
  "skweb-express-logger": "^2.0.0",
32
32
  "skweb-sequelize": "^2.0.1",
33
33
  "skweb-redis": "^2.0.0",