@hile/http 1.0.17 → 1.0.19
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/README.md +2 -0
- package/SKILL.md +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -195,6 +195,8 @@ export const httpService = defineService(async (shutdown) => {
|
|
|
195
195
|
|
|
196
196
|
## API
|
|
197
197
|
|
|
198
|
+
本包导出:`Http`、`defineController`、`Loader`,以及类型 `HttpProps`、`LoaderCompileOptions`、`LoaderFromOptions`、`ControllerRegisterProps`、`ControllerFunction`。
|
|
199
|
+
|
|
198
200
|
### Http
|
|
199
201
|
|
|
200
202
|
| 方法 | 说明 |
|
package/SKILL.md
CHANGED
|
@@ -37,6 +37,7 @@ description: Code generation and usage rules for @hile/http HTTP service framewo
|
|
|
37
37
|
|
|
38
38
|
```typescript
|
|
39
39
|
import { Context, Middleware } from 'koa'
|
|
40
|
+
// HTTPMethod 来自依赖 find-my-way,本包未再导出;可用字符串字面量 'GET' 等,或从 'find-my-way' 引入类型
|
|
40
41
|
import { HTTPMethod } from 'find-my-way'
|
|
41
42
|
|
|
42
43
|
// Http 配置(port 必填,其余可选)
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export * from './controller';
|
|
2
|
+
export * from './http';
|
|
3
|
+
export * from './loader';
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from './controller';
|
|
2
|
+
export * from './http';
|
|
3
|
+
export * from './loader';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hile/http",
|
|
3
3
|
"description": "Hile http - HTTP service framework",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.19",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"scripts": {
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"koa": "^3.1.2",
|
|
29
29
|
"koa-compose": "^4.1.0"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "a6eab4e7803f0df7d4bca9a0bdeca76692dbc883"
|
|
32
32
|
}
|