phecda-server 7.1.0 → 7.1.2

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/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, "type" | "query" | "set" | "key" | "use" | "on" | "accept" | "auth" | "withCredentials" | "retry" | "ok" | "redirects" | "timeout" | "buffer" | "serialize" | "parse" | "ca" | "pfx" | "cert"> & {
18
+ declare function TestHttp(app: Server | any, { moduleMap, meta }: Awaited<ReturnType<typeof Factory>>, isAgent?: boolean): Promise<supertest.SuperTestWithHost<Test> & Pick<supertest.Request, "use" | "on" | "set" | "query" | "type" | "accept" | "auth" | "withCredentials" | "retry" | "ok" | "redirects" | "timeout" | "buffer" | "serialize" | "parse" | "ca" | "key" | "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, "type" | "query" | "set" | "key" | "use" | "on" | "accept" | "auth" | "withCredentials" | "retry" | "ok" | "redirects" | "timeout" | "buffer" | "serialize" | "parse" | "ca" | "pfx" | "cert"> & {
18
+ declare function TestHttp(app: Server | any, { moduleMap, meta }: Awaited<ReturnType<typeof Factory>>, isAgent?: boolean): Promise<supertest.SuperTestWithHost<Test> & Pick<supertest.Request, "use" | "on" | "set" | "query" | "type" | "accept" | "auth" | "withCredentials" | "retry" | "ok" | "redirects" | "timeout" | "buffer" | "serialize" | "parse" | "ca" | "key" | "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.0",
3
+ "version": "7.1.2",
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.4.0"
162
+ "phecda-core": "4.5.0"
163
163
  },
164
164
  "devDependencies": {
165
165
  "@koa/router": "^12.0.1",
@@ -20,15 +20,16 @@ export default ['Addon', 'Arg', 'Assign', 'BadGatewayException', 'BadRequestExce
20
20
  'Watcher', 'WorkerException',
21
21
  'addAddon', 'addDecoToClass',
22
22
  'addFilter', 'addGuard', 'addPipe', 'emitter',
23
- 'getMergedMeta',
24
- 'getMeta', 'getMetaKey', 'getMetaParams', 'getOwnMeta', 'getOwnMetaKey', 'getOwnMetaParams',
23
+ 'getMergedMeta','getMeta', 'getMetaKey', 'getMetaParams', 'getOwnMeta', 'getOwnMetaKey', 'getOwnMetaParams',
25
24
  'getTag',
26
25
  'isPhecda', 'log', 'phecdaNamespace', 'runMiddleware',
27
26
  'setInject',
28
27
  'setLogger',
29
28
  'setMeta',
30
29
  'useS', 'wait', 'OneFile', 'ManyFiles',
31
- 'Rule','Required','Optional','Doc','DocGenerator'
30
+ 'Rule','Required','Optional','Doc','DocGenerator',
31
+ 'pick','omit','partial',
32
+ 'functionToClass','objectToClass'
32
33
 
33
34
 
34
35
  ]