@hile/http 1.0.18 → 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.
Files changed (3) hide show
  1. package/README.md +2 -0
  2. package/SKILL.md +1 -0
  3. 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/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.18",
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": "ad7db972b208847df73c3c9f67824c13db292283"
31
+ "gitHead": "a6eab4e7803f0df7d4bca9a0bdeca76692dbc883"
32
32
  }