phecda-server 7.1.2 → 7.1.3
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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/test.d.mts +1 -1
- package/dist/test.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -285,7 +285,7 @@ declare function runMiddleware(ctx: HttpCtx, middleware: (req: any, res: any, ne
|
|
|
285
285
|
|
|
286
286
|
declare class ServerBase extends Base {
|
|
287
287
|
emitter: Emitter;
|
|
288
|
-
log(msg: unknown, level?: LogLevel): void;
|
|
288
|
+
protected log(msg: unknown, level?: LogLevel): void;
|
|
289
289
|
}
|
|
290
290
|
declare class HttpBase<Ctx extends HttpCtx = HttpCtx> extends ServerBase {
|
|
291
291
|
context: Ctx;
|
package/dist/index.d.ts
CHANGED
|
@@ -285,7 +285,7 @@ declare function runMiddleware(ctx: HttpCtx, middleware: (req: any, res: any, ne
|
|
|
285
285
|
|
|
286
286
|
declare class ServerBase extends Base {
|
|
287
287
|
emitter: Emitter;
|
|
288
|
-
log(msg: unknown, level?: LogLevel): void;
|
|
288
|
+
protected log(msg: unknown, level?: LogLevel): void;
|
|
289
289
|
}
|
|
290
290
|
declare class HttpBase<Ctx extends HttpCtx = HttpCtx> extends ServerBase {
|
|
291
291
|
context: Ctx;
|
package/dist/test.d.mts
CHANGED
|
@@ -15,7 +15,7 @@ declare function TestFactory<T extends Construct[]>(...Modules: T): Promise<{
|
|
|
15
15
|
type SuperTestRequest<T> = {
|
|
16
16
|
[K in keyof T]: T[K] extends (...args: infer R) => any ? (...args: R) => Test : never;
|
|
17
17
|
};
|
|
18
|
-
declare function TestHttp(app: Server | any, { moduleMap, meta }: Awaited<ReturnType<typeof Factory>>, isAgent?: boolean): Promise<supertest.SuperTestWithHost<Test> & Pick<supertest.Request, "
|
|
18
|
+
declare function TestHttp(app: Server | any, { moduleMap, meta }: Awaited<ReturnType<typeof Factory>>, isAgent?: boolean): Promise<supertest.SuperTestWithHost<Test> & Pick<supertest.Request, "type" | "query" | "set" | "key" | "use" | "on" | "accept" | "auth" | "withCredentials" | "retry" | "ok" | "redirects" | "timeout" | "buffer" | "serialize" | "parse" | "ca" | "pfx" | "cert"> & {
|
|
19
19
|
module: <T extends Construct>(Module: T) => SuperTestRequest<PickFunc<InstanceType<T>>>;
|
|
20
20
|
}>;
|
|
21
21
|
|
package/dist/test.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare function TestFactory<T extends Construct[]>(...Modules: T): Promise<{
|
|
|
15
15
|
type SuperTestRequest<T> = {
|
|
16
16
|
[K in keyof T]: T[K] extends (...args: infer R) => any ? (...args: R) => Test : never;
|
|
17
17
|
};
|
|
18
|
-
declare function TestHttp(app: Server | any, { moduleMap, meta }: Awaited<ReturnType<typeof Factory>>, isAgent?: boolean): Promise<supertest.SuperTestWithHost<Test> & Pick<supertest.Request, "
|
|
18
|
+
declare function TestHttp(app: Server | any, { moduleMap, meta }: Awaited<ReturnType<typeof Factory>>, isAgent?: boolean): Promise<supertest.SuperTestWithHost<Test> & Pick<supertest.Request, "type" | "query" | "set" | "key" | "use" | "on" | "accept" | "auth" | "withCredentials" | "retry" | "ok" | "redirects" | "timeout" | "buffer" | "serialize" | "parse" | "ca" | "pfx" | "cert"> & {
|
|
19
19
|
module: <T extends Construct>(Module: T) => SuperTestRequest<PickFunc<InstanceType<T>>>;
|
|
20
20
|
}>;
|
|
21
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "phecda-server",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.3",
|
|
4
4
|
"description": "server framework that provide IOC/type-reuse/http&rpc-adaptor",
|
|
5
5
|
"author": "fgsreally",
|
|
6
6
|
"license": "MIT",
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"picocolors": "^1.0.0",
|
|
160
160
|
"reflect-metadata": "^0.1.13",
|
|
161
161
|
"ts-mixer": "^6.0.4",
|
|
162
|
-
"phecda-core": "4.5.
|
|
162
|
+
"phecda-core": "4.5.1"
|
|
163
163
|
},
|
|
164
164
|
"devDependencies": {
|
|
165
165
|
"@koa/router": "^12.0.1",
|