@zhin.js/http 1.0.4 → 1.0.6
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/app/index.ts +732 -0
- package/lib/index.d.ts +5 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +237 -105
- package/lib/index.js.map +1 -1
- package/lib/router.d.ts.map +1 -1
- package/lib/router.js.map +1 -1
- package/package.json +7 -3
- package/CHANGELOG.md +0 -32
- package/src/index.ts +0 -556
- package/tsconfig.json +0 -23
- /package/{src → app}/router.ts +0 -0
package/lib/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Server } from
|
|
2
|
-
import Koa from
|
|
3
|
-
import { Router } from
|
|
4
|
-
export * from
|
|
5
|
-
declare module
|
|
1
|
+
import { Server } from "http";
|
|
2
|
+
import Koa from "koa";
|
|
3
|
+
import { Router } from "./router.js";
|
|
4
|
+
export * from "./router.js";
|
|
5
|
+
declare module "@zhin.js/types" {
|
|
6
6
|
interface GlobalContext {
|
|
7
7
|
koa: Koa;
|
|
8
8
|
router: Router;
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../
|
|
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"}
|