phecda-server 7.1.1 → 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.1",
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",
@@ -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
  ]