@zhin.js/http 1.0.6 → 1.0.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/CHANGELOG.md ADDED
@@ -0,0 +1,56 @@
1
+ # @zhin.js/http
2
+
3
+ ## 1.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 547028f: fix: 优化包结构,优化客户端支持
8
+ - Updated dependencies [547028f]
9
+ - @zhin.js/core@1.0.14
10
+
11
+ ## 1.0.6
12
+
13
+ ### Patch Changes
14
+
15
+ - c490260: fix: 更新脚手架结构,优化包依赖
16
+ - Updated dependencies [c490260]
17
+ - @zhin.js/core@1.0.9
18
+
19
+ ## 1.0.5
20
+
21
+ ### Patch Changes
22
+
23
+ - 551c4d2: fix: 插件支持配置文件读取,优化 test 用例
24
+ - Updated dependencies [551c4d2]
25
+ - @zhin.js/core@1.0.8
26
+
27
+ ## 1.0.4
28
+
29
+ ### Patch Changes
30
+
31
+ - c2d9047: fix: 优化中间件逻辑
32
+ - Updated dependencies [c2d9047]
33
+ - Updated dependencies [c2d9047]
34
+ - @zhin.js/core@1.0.6
35
+
36
+ ## 1.0.3
37
+
38
+ ### Patch Changes
39
+
40
+ - f347667: fix: runtime error
41
+ - Updated dependencies [f347667]
42
+ - @zhin.js/core@1.0.5
43
+
44
+ ## 1.0.2
45
+
46
+ ### Patch Changes
47
+
48
+ - d291005: fix: 更新 cli,更新 http
49
+
50
+ ## 1.0.1
51
+
52
+ ### Patch Changes
53
+
54
+ - efdd58a: fix: init
55
+ - Updated dependencies [efdd58a]
56
+ - @zhin.js/core@1.0.1
package/lib/index.d.ts CHANGED
@@ -1,12 +1,32 @@
1
+ import { Schema } from "@zhin.js/schema";
1
2
  import { Server } from "http";
2
3
  import Koa from "koa";
3
4
  import { Router } from "./router.js";
4
5
  export * from "./router.js";
5
- declare module "@zhin.js/types" {
6
- interface GlobalContext {
7
- koa: Koa;
8
- router: Router;
9
- server: Server;
6
+ declare module "zhin.js" {
7
+ namespace Plugin {
8
+ interface Contexts {
9
+ koa: Koa;
10
+ router: Router;
11
+ server: Server;
12
+ }
10
13
  }
11
14
  }
15
+ export declare const httpSchema: Schema<{
16
+ port?: number | undefined;
17
+ username?: string | undefined;
18
+ password?: string | undefined;
19
+ base?: string | undefined;
20
+ }, {
21
+ port?: number | undefined;
22
+ username?: string | undefined;
23
+ password?: string | undefined;
24
+ base?: string | undefined;
25
+ }>;
26
+ export interface HttpConfig {
27
+ port?: number;
28
+ username?: string;
29
+ password?: string;
30
+ base?: string;
31
+ }
12
32
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../app/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,MAAM,EAAE,MAAM,MAAM,CAAC;AAE5C,OAAO,GAAG,MAAM,KAAK,CAAC;AAGtB,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAIrC,cAAc,aAAa,CAAC;AAE5B,OAAO,QAAQ,gBAAgB,CAAC;IAC9B,UAAU,aAAa;QACrB,GAAG,EAAE,GAAG,CAAC;QACT,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;KAChB;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAgB,MAAM,EAAE,MAAM,MAAM,CAAC;AAE5C,OAAO,GAAG,MAAM,KAAK,CAAC;AAGtB,OAAO,EAAE,MAAM,EAAgB,MAAM,aAAa,CAAC;AAEnD,cAAc,aAAa,CAAC;AAE5B,OAAO,QAAQ,SAAS,CAAC;IACvB,UAAU,MAAM,CAAC;QACf,UAAU,QAAQ;YAChB,GAAG,EAAE,GAAG,CAAC;YACT,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,EAAE,MAAM,CAAC;SAChB;KACF;CACF;AAGD,eAAO,MAAM,UAAU;;;;;;;;;;EAWrB,CAAC;AAEH,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}