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.
- package/.turbo/turbo-build.log +16 -17
- package/.turbo/turbo-test.log +51 -34
- package/CHANGELOG.md +17 -0
- package/package.json +1 -1
- package/templates/cjs/package.json +2 -2
- package/templates/mjs/package.json +2 -2
- package/templates/ts/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
> create-skweb@3.
|
|
3
|
-
> tsc --outDir dist --rootDir src
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
> create-skweb@3.
|
|
7
|
-
> rollup -c rollup.config.mjs && node scripts/inject-shebang.mjs && chmod +x dist/cli.js
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
[1msrc/index.ts[22m โ [1mdist/index.js[22m...[39m
|
|
11
|
-
[1m[33m(!) [plugin typescript] @rollup/plugin-typescript: outputToFilesystem option is defaulting to true.[39m[22m
|
|
12
|
-
[32mcreated [1mdist/index.js[22m in [
|
|
13
|
-
[36m
|
|
14
|
-
[1msrc/cli.ts[22m โ [1mdist/cli.js[22m...[39m
|
|
15
|
-
[32mcreated [1mdist/cli.js[22m in [
|
|
16
|
-
[inject-shebang] Shebang added to /Users/stayknight/projects/skweb-mono/tools/create-skweb/dist/cli.js
|
|
17
|
-
โ [1G[0K
|
|
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
|
+
[36m
|
|
10
|
+
[1msrc/index.ts[22m โ [1mdist/index.js[22m...[39m
|
|
11
|
+
[1m[33m(!) [plugin typescript] @rollup/plugin-typescript: outputToFilesystem option is defaulting to true.[39m[22m
|
|
12
|
+
[32mcreated [1mdist/index.js[22m in [1m387ms[22m[39m
|
|
13
|
+
[36m
|
|
14
|
+
[1msrc/cli.ts[22m โ [1mdist/cli.js[22m...[39m
|
|
15
|
+
[32mcreated [1mdist/cli.js[22m in [1m193ms[22m[39m
|
|
16
|
+
[inject-shebang] Shebang added to /Users/stayknight/projects/skweb-mono/tools/create-skweb/dist/cli.js
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
> create-skweb@3.
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
39
|
+
7 passing (131ms)
|
|
40
|
+
3 failing
|
|
49
41
|
|
|
50
|
-
|
|
51
|
-
|
|
42
|
+
1) create-skweb
|
|
43
|
+
createProject()
|
|
44
|
+
should create TypeScript project from template:
|
|
52
45
|
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
AssertionError: expected false to be true
|
|
47
|
+
+ expected - actual
|
|
55
48
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
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
|
@@ -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.
|
|
28
|
-
"skweb-express-jwt": "^
|
|
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.
|
|
28
|
-
"skweb-express-jwt": "^
|
|
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.
|
|
30
|
-
"skweb-express-jwt": "^
|
|
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",
|