koatty_router 2.1.6 → 2.1.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.
- package/.turbo/turbo-build.log +20 -55
- package/CHANGELOG.md +21 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.js +3 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -12
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +7 -7
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> koatty_router@2.1.
|
|
3
|
+
> koatty_router@2.1.8 build /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-router
|
|
4
4
|
> pnpm run build:js && pnpm run build:dts && pnpm run build:doc && pnpm run build:cp
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
> koatty_router@2.1.
|
|
7
|
+
> koatty_router@2.1.8 build:js /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-router
|
|
8
8
|
> tsup
|
|
9
9
|
|
|
10
10
|
[34mCLI[39m Building entry: src/index.ts
|
|
11
11
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
12
12
|
[34mCLI[39m tsup v8.5.1
|
|
13
|
-
[34mCLI[39m Using tsup config: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-router/tsup.config.ts
|
|
13
|
+
[34mCLI[39m Using tsup config: /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-router/tsup.config.ts
|
|
14
14
|
[34mCLI[39m Target: node18
|
|
15
15
|
[34mCLI[39m Cleaning output folder
|
|
16
16
|
[34mCJS[39m Build start
|
|
17
17
|
[34mESM[39m Build start
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
24
|
-
|
|
25
|
-
> koatty_router@2.1.
|
|
18
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m141.83 KB[39m
|
|
19
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m376.26 KB[39m
|
|
20
|
+
[32mESM[39m ⚡️ Build success in 686ms
|
|
21
|
+
[32mCJS[39m [1mdist/index.js [22m[32m147.84 KB[39m
|
|
22
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m376.58 KB[39m
|
|
23
|
+
[32mCJS[39m ⚡️ Build success in 686ms
|
|
24
|
+
|
|
25
|
+
> koatty_router@2.1.8 build:dts /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-router
|
|
26
26
|
> bash ../../scripts/build-dts.sh
|
|
27
27
|
|
|
28
28
|
🔨 Building type declarations for koatty-router...
|
|
@@ -32,59 +32,24 @@
|
|
|
32
32
|
✓ koatty_container type declarations ready
|
|
33
33
|
✓ koatty_core type declarations ready
|
|
34
34
|
✓ koatty_exception type declarations ready
|
|
35
|
+
✓ koatty_graphql type declarations ready
|
|
35
36
|
✓ koatty_lib type declarations ready
|
|
36
37
|
✓ koatty_logger type declarations ready
|
|
37
38
|
✓ koatty_proto type declarations ready
|
|
38
39
|
✓ koatty_validation type declarations ready
|
|
39
|
-
⏳ Waiting for: koatty_graphql (0s)
|
|
40
|
-
✗ koatty_graphql: missing .d.ts
|
|
41
|
-
⏳ Waiting for: koatty_graphql (5s)
|
|
42
|
-
✗ koatty_graphql: missing .d.ts
|
|
43
|
-
⏳ Waiting for: koatty_graphql (10s)
|
|
44
|
-
✗ koatty_graphql: missing .d.ts
|
|
45
|
-
⏳ Waiting for: koatty_graphql (15s)
|
|
46
|
-
✗ koatty_graphql: missing .d.ts
|
|
47
|
-
⏳ Waiting for: koatty_graphql (20s)
|
|
48
|
-
✗ koatty_graphql: missing .d.ts
|
|
49
|
-
⏳ Waiting for: koatty_graphql (25s)
|
|
50
|
-
✗ koatty_graphql: missing .d.ts
|
|
51
|
-
⏳ Waiting for: koatty_graphql (30s)
|
|
52
|
-
✗ koatty_graphql: missing .d.ts
|
|
53
|
-
⏳ Waiting for: koatty_graphql (35s)
|
|
54
|
-
✗ koatty_graphql: missing .d.ts
|
|
55
|
-
⏳ Waiting for: koatty_graphql (40s)
|
|
56
|
-
✗ koatty_graphql: missing .d.ts
|
|
57
|
-
⏳ Waiting for: koatty_graphql (45s)
|
|
58
|
-
✗ koatty_graphql: missing .d.ts
|
|
59
|
-
⏳ Waiting for: koatty_graphql (50s)
|
|
60
|
-
✗ koatty_graphql: missing .d.ts
|
|
61
|
-
⏳ Waiting for: koatty_graphql (55s)
|
|
62
|
-
✗ koatty_graphql: missing .d.ts
|
|
63
|
-
|
|
64
|
-
⚠️ Timeout waiting for dependencies: koatty_graphql
|
|
65
|
-
Maximum wait time: 60000ms
|
|
66
|
-
Continuing build anyway - dependencies may be building in parallel
|
|
67
|
-
📝 Running TypeScript compiler...
|
|
68
|
-
[1G[0K[96msrc/router/graphql.ts[0m:[93m19[0m:[93m29[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'koatty_graphql'. '/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-graphql/dist/index.js' implicitly has an 'any' type.
|
|
69
|
-
Try `npm i --save-dev @types/koatty_graphql` if it exists or add a new declaration (.d.ts) file containing `declare module 'koatty_graphql';`
|
|
70
|
-
|
|
71
|
-
[7m19[0m import { buildSchema } from "koatty_graphql";
|
|
72
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~[0m
|
|
73
|
-
|
|
74
40
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
[1G[0K⠙[1G[0K
|
|
78
|
-
📦 Running API Extractor...
|
|
41
|
+
✅ All dependencies ready (waited 1ms)
|
|
42
|
+
📝 Running TypeScript compiler...
|
|
43
|
+
[1G[0K⠙[1G[0K[1G[0K⠙[1G[0K📦 Running API Extractor...
|
|
79
44
|
[1G[0K
|
|
80
45
|
[1mapi-extractor 7.55.2 [36m - https://api-extractor.com/[39m
|
|
81
46
|
[22m
|
|
82
47
|
Using configuration from ./api-extractor.json
|
|
83
48
|
Analysis will use the bundled TypeScript version 5.8.2
|
|
84
49
|
*** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
|
|
85
|
-
[36mWriting: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-router/temp/koatty_router.api.json[39m
|
|
86
|
-
[36mWriting package typings: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-router/dist/index.d.ts[39m
|
|
87
|
-
[33mWarning: src/RouterComponent.ts:
|
|
50
|
+
[36mWriting: /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-router/temp/koatty_router.api.json[39m
|
|
51
|
+
[36mWriting package typings: /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-router/dist/index.d.ts[39m
|
|
52
|
+
[33mWarning: src/RouterComponent.ts:161:38 - (tsdoc-characters-after-block-tag) The token "@OnEvent" looks like a TSDoc tag but contains an invalid character "("; if it is not a tag, use a backslash to escape the "@"[39m
|
|
88
53
|
[33mWarning: src/params/mapping.ts:33:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration[39m
|
|
89
54
|
[33mWarning: src/params/mapping.ts:34:4 - (tsdoc-undefined-tag) The TSDoc tag "@interface" is not defined in this configuration[39m
|
|
90
55
|
[33mWarning: src/params/mapping.ts:47:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration[39m
|
|
@@ -172,7 +137,7 @@ Analysis will use the bundled TypeScript version 5.8.2
|
|
|
172
137
|
API Extractor completed successfully
|
|
173
138
|
[1G[0K⠙[1G[0K✅ Type declarations built successfully
|
|
174
139
|
|
|
175
|
-
> koatty_router@2.1.
|
|
140
|
+
> koatty_router@2.1.8 build:doc /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-router
|
|
176
141
|
> api-documenter markdown --input temp --output docs/api
|
|
177
142
|
|
|
178
143
|
|
|
@@ -215,7 +180,7 @@ Unsupported block tag: @interface
|
|
|
215
180
|
Unsupported block tag: @RequestBody
|
|
216
181
|
Unsupported block tag: @RequestParam
|
|
217
182
|
|
|
218
|
-
> koatty_router@2.1.
|
|
183
|
+
> koatty_router@2.1.8 build:cp /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-router
|
|
219
184
|
> node ../../scripts/postBuild.js
|
|
220
185
|
|
|
221
186
|
📦 postBuild: koatty-router
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.1.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- koatty_lib@1.4.8
|
|
9
|
+
- koatty_container@2.0.6
|
|
10
|
+
- koatty_core@2.1.7
|
|
11
|
+
- koatty_exception@2.1.7
|
|
12
|
+
- koatty_graphql@1.1.8
|
|
13
|
+
- koatty_logger@2.8.4
|
|
14
|
+
- koatty_proto@1.3.8
|
|
15
|
+
- koatty_validation@2.0.6
|
|
16
|
+
|
|
17
|
+
## 2.1.7
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
- koatty_graphql@1.1.7
|
|
23
|
+
|
|
3
24
|
## 2.1.6
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @Author: richen
|
|
3
|
-
* @Date: 2026-02
|
|
3
|
+
* @Date: 2026-03-02 23:05:43
|
|
4
4
|
* @License: BSD (3-Clause)
|
|
5
5
|
* @Copyright (c) - <richenlin(at)gmail.com>
|
|
6
6
|
* @HomePage: https://koatty.org/
|
|
@@ -387,7 +387,6 @@ export declare class RouterComponent implements IComponent {
|
|
|
387
387
|
*
|
|
388
388
|
* @param app - Koatty application instance
|
|
389
389
|
*/
|
|
390
|
-
run(app: KoattyApplication): Promise<void>;
|
|
391
390
|
/**
|
|
392
391
|
* Cleanup router resources on app stop
|
|
393
392
|
*
|
package/dist/index.js
CHANGED
|
@@ -54,7 +54,7 @@ var onFinished__default = /*#__PURE__*/_interopDefault(onFinished);
|
|
|
54
54
|
|
|
55
55
|
/*!
|
|
56
56
|
* @Author: richen
|
|
57
|
-
* @Date: 2026-02
|
|
57
|
+
* @Date: 2026-03-02 15:05:34
|
|
58
58
|
* @License: BSD (3-Clause)
|
|
59
59
|
* @Copyright (c) - <richenlin(at)gmail.com>
|
|
60
60
|
* @HomePage: https://koatty.org/
|
|
@@ -4289,6 +4289,8 @@ exports.RouterComponent = class RouterComponent {
|
|
|
4289
4289
|
this.factory = factory;
|
|
4290
4290
|
koatty_logger.DefaultLogger.Log("Koatty", "", "\u2713 Router initialized");
|
|
4291
4291
|
}
|
|
4292
|
+
app.use(payload(app.config("payload", "router")));
|
|
4293
|
+
koatty_logger.DefaultLogger.Log("Koatty", "", "\u2713 Payload middleware registered");
|
|
4292
4294
|
await this.loadRoutes(app);
|
|
4293
4295
|
}
|
|
4294
4296
|
/**
|
|
@@ -4321,9 +4323,6 @@ exports.RouterComponent = class RouterComponent {
|
|
|
4321
4323
|
}
|
|
4322
4324
|
koatty_logger.DefaultLogger.Log("Koatty", "", "\u2713 Routes loaded");
|
|
4323
4325
|
}
|
|
4324
|
-
async run(app) {
|
|
4325
|
-
app.use(payload(app.config("payload", "router")));
|
|
4326
|
-
}
|
|
4327
4326
|
/**
|
|
4328
4327
|
* Cleanup router resources on app stop
|
|
4329
4328
|
*
|
|
@@ -4346,14 +4345,6 @@ _ts_decorate([
|
|
|
4346
4345
|
]),
|
|
4347
4346
|
_ts_metadata("design:returntype", Promise)
|
|
4348
4347
|
], exports.RouterComponent.prototype, "initRouter", null);
|
|
4349
|
-
_ts_decorate([
|
|
4350
|
-
koatty_core.OnEvent(koatty_core.AppEvent.appReady),
|
|
4351
|
-
_ts_metadata("design:type", Function),
|
|
4352
|
-
_ts_metadata("design:paramtypes", [
|
|
4353
|
-
typeof koatty_core.KoattyApplication === "undefined" ? Object : koatty_core.KoattyApplication
|
|
4354
|
-
]),
|
|
4355
|
-
_ts_metadata("design:returntype", Promise)
|
|
4356
|
-
], exports.RouterComponent.prototype, "run", null);
|
|
4357
4348
|
_ts_decorate([
|
|
4358
4349
|
koatty_core.OnEvent(koatty_core.AppEvent.appStop),
|
|
4359
4350
|
_ts_metadata("design:type", Function),
|