egg 4.1.0-beta.20 → 4.1.0-beta.22

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.
Files changed (123) hide show
  1. package/dist/agent.d.ts +3 -17
  2. package/dist/agent.js +7 -11
  3. package/dist/app/extend/context.d.ts +180 -12
  4. package/dist/app/extend/context.js +259 -3
  5. package/dist/app/extend/helper.d.ts +37 -12
  6. package/dist/app/extend/helper.js +43 -5
  7. package/dist/app/extend/request.d.ts +132 -12
  8. package/dist/app/extend/request.js +265 -4
  9. package/dist/app/extend/response.d.ts +25 -2
  10. package/dist/app/extend/response.js +34 -3
  11. package/dist/app/middleware/body_parser.d.ts +2 -2
  12. package/dist/app/middleware/body_parser.js +3 -7
  13. package/dist/app/middleware/meta.d.ts +10 -12
  14. package/dist/app/middleware/meta.js +19 -13
  15. package/dist/app/middleware/notfound.d.ts +7 -12
  16. package/dist/app/middleware/notfound.js +28 -25
  17. package/dist/app/middleware/override_method.d.ts +2 -2
  18. package/dist/app/middleware/override_method.js +3 -7
  19. package/dist/app/middleware/site_file.d.ts +9 -12
  20. package/dist/app/middleware/site_file.js +52 -37
  21. package/dist/config/config.default.d.ts +2 -16
  22. package/dist/config/config.default.js +375 -282
  23. package/dist/config/config.local.d.ts +5 -7
  24. package/dist/config/config.local.js +9 -6
  25. package/dist/config/config.unittest.d.ts +5 -7
  26. package/dist/config/config.unittest.js +8 -9
  27. package/dist/config/plugin.d.ts +120 -122
  28. package/dist/config/plugin.js +121 -53
  29. package/dist/index.d.ts +66 -13
  30. package/dist/index.js +70 -30
  31. package/dist/lib/agent.d.ts +19 -12
  32. package/dist/lib/agent.js +48 -22
  33. package/dist/lib/application.d.ts +56 -12
  34. package/dist/lib/application.js +261 -23
  35. package/dist/lib/core/base_context_class.d.ts +18 -12
  36. package/dist/lib/core/base_context_class.js +17 -4
  37. package/dist/lib/core/base_context_logger.d.ts +36 -12
  38. package/dist/lib/core/base_context_logger.js +60 -3
  39. package/dist/lib/core/base_hook_class.d.ts +11 -12
  40. package/dist/lib/core/base_hook_class.js +22 -3
  41. package/dist/lib/core/context_httpclient.d.ts +17 -12
  42. package/dist/lib/core/context_httpclient.js +26 -3
  43. package/dist/lib/core/httpclient.d.ts +14 -12
  44. package/dist/lib/core/httpclient.js +39 -3
  45. package/dist/lib/core/logger.d.ts +3 -17
  46. package/dist/lib/core/logger.js +37 -3
  47. package/dist/lib/core/messenger/IMessenger.d.ts +50 -2
  48. package/dist/lib/core/messenger/IMessenger.js +2 -1
  49. package/dist/lib/core/messenger/base.d.ts +8 -13
  50. package/dist/lib/core/messenger/base.js +28 -17
  51. package/dist/lib/core/messenger/index.d.ts +7 -12
  52. package/dist/lib/core/messenger/index.js +10 -17
  53. package/dist/lib/core/messenger/ipc.d.ts +55 -68
  54. package/dist/lib/core/messenger/ipc.js +151 -17
  55. package/dist/lib/core/messenger/local.d.ts +56 -69
  56. package/dist/lib/core/messenger/local.js +128 -17
  57. package/dist/lib/core/utils.d.ts +2 -5
  58. package/dist/lib/core/utils.js +70 -3
  59. package/dist/lib/egg.d.ts +285 -12
  60. package/dist/lib/egg.js +581 -17
  61. package/dist/lib/error/CookieLimitExceedError.d.ts +5 -2
  62. package/dist/lib/error/CookieLimitExceedError.js +12 -3
  63. package/dist/lib/error/MessageUnhandledRejectionError.d.ts +5 -2
  64. package/dist/lib/error/MessageUnhandledRejectionError.js +12 -3
  65. package/dist/lib/error/index.d.ts +2 -4
  66. package/dist/lib/error/index.js +3 -5
  67. package/dist/lib/loader/AgentWorkerLoader.d.ts +12 -3
  68. package/dist/lib/loader/AgentWorkerLoader.js +20 -4
  69. package/dist/lib/loader/AppWorkerLoader.d.ts +17 -3
  70. package/dist/lib/loader/AppWorkerLoader.js +39 -4
  71. package/dist/lib/loader/EggApplicationLoader.d.ts +4 -2
  72. package/dist/lib/loader/EggApplicationLoader.js +4 -3
  73. package/dist/lib/loader/index.d.ts +3 -5
  74. package/dist/lib/loader/index.js +4 -6
  75. package/dist/lib/start.d.ts +24 -12
  76. package/dist/lib/start.js +46 -27
  77. package/dist/lib/types.d.ts +281 -12
  78. package/dist/lib/types.js +31 -4
  79. package/dist/lib/types.plugin.d.ts +12 -1
  80. package/dist/lib/types.plugin.js +14 -3
  81. package/dist/lib/utils.d.ts +2 -5
  82. package/dist/lib/utils.js +14 -3
  83. package/dist/urllib.d.ts +1 -1
  84. package/dist/urllib.js +2 -3
  85. package/package.json +23 -23
  86. package/dist/AgentWorkerLoader-DG_hAClt.d.ts +0 -17
  87. package/dist/AgentWorkerLoader-D_hceBRW.js +0 -24
  88. package/dist/AppWorkerLoader-CAtxJvGl.js +0 -37
  89. package/dist/AppWorkerLoader-CT875rYM.d.ts +0 -22
  90. package/dist/CookieLimitExceedError-CAW0HYJw.d.ts +0 -8
  91. package/dist/CookieLimitExceedError-DLGakbeu.js +0 -15
  92. package/dist/EggApplicationLoader-CMe1VQt1.js +0 -7
  93. package/dist/EggApplicationLoader-PnIvd5oV.d.ts +0 -8
  94. package/dist/IMessenger-C9g6ypSI.d.ts +0 -54
  95. package/dist/MessageUnhandledRejectionError-Lq5fWw24.d.ts +0 -8
  96. package/dist/MessageUnhandledRejectionError-oD_E1Ewl.js +0 -15
  97. package/dist/agent-BfFWeJj4.js +0 -55
  98. package/dist/application-DVwFQSa9.js +0 -208
  99. package/dist/base-KLVtlzUD.d.ts +0 -12
  100. package/dist/base_context_class-Xc1OZql9.js +0 -19
  101. package/dist/base_context_logger-CZU59PGA.js +0 -58
  102. package/dist/base_hook_class-D0Gu2p8r.js +0 -26
  103. package/dist/base_hook_class-R8A8gm1s.d.ts +0 -1109
  104. package/dist/context-D1Wg7CXs.js +0 -244
  105. package/dist/context_httpclient-BpRMdJhf.js +0 -29
  106. package/dist/egg-DVo5e_lr.js +0 -800
  107. package/dist/error-BYo_LRnd.js +0 -1
  108. package/dist/helper-B3PKMPXq.js +0 -47
  109. package/dist/httpclient-C1QPc_R7.js +0 -36
  110. package/dist/index-CUPkUUOR.d.ts +0 -1
  111. package/dist/index-CkgLZdB4.d.ts +0 -1
  112. package/dist/loader-3myZ-rpm.js +0 -1
  113. package/dist/logger-C4tIcO3S.js +0 -31
  114. package/dist/request-Cy_1DlaX.js +0 -225
  115. package/dist/response-CDeQ9Sx2.js +0 -36
  116. package/dist/response-DlNYDj00.d.ts +0 -29
  117. package/dist/src-BuOjXSrB.js +0 -3
  118. package/dist/start-4E84z796.js +0 -35
  119. package/dist/types-dKSyDnVp.js +0 -32
  120. package/dist/types.plugin-B2v0K0I8.js +0 -14
  121. package/dist/types.plugin-C3D5I7VD.d.ts +0 -12
  122. package/dist/utils-B1Rjsoi9.js +0 -48
  123. package/dist/utils-BDoYg6z6.js +0 -14
@@ -1,3 +1,12 @@
1
- import { MessageUnhandledRejectionError } from "../../MessageUnhandledRejectionError-oD_E1Ewl.js";
2
-
3
- export { MessageUnhandledRejectionError };
1
+ export class MessageUnhandledRejectionError extends Error {
2
+ event;
3
+ args;
4
+ constructor(err, event, ...args) {
5
+ super(`event: ${String(event)}, error: ${err.message}`, { cause: err });
6
+ this.name = this.constructor.name;
7
+ this.event = event;
8
+ this.args = args;
9
+ Error.captureStackTrace(this, this.constructor);
10
+ }
11
+ }
12
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWVzc2FnZVVuaGFuZGxlZFJlamVjdGlvbkVycm9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9lcnJvci9NZXNzYWdlVW5oYW5kbGVkUmVqZWN0aW9uRXJyb3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLDhCQUErQixTQUFRLEtBQUs7SUFDdkQsS0FBSyxDQUFrQjtJQUN2QixJQUFJLENBQVE7SUFFWixZQUFZLEdBQVUsRUFBRSxLQUFzQixFQUFFLEdBQUcsSUFBVztRQUM1RCxLQUFLLENBQUMsVUFBVSxNQUFNLENBQUMsS0FBSyxDQUFDLFlBQVksR0FBRyxDQUFDLE9BQU8sRUFBRSxFQUFFLEVBQUUsS0FBSyxFQUFFLEdBQUcsRUFBRSxDQUFDLENBQUM7UUFDeEUsSUFBSSxDQUFDLElBQUksR0FBRyxJQUFJLENBQUMsV0FBVyxDQUFDLElBQUksQ0FBQztRQUNsQyxJQUFJLENBQUMsS0FBSyxHQUFHLEtBQUssQ0FBQztRQUNuQixJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQztRQUNqQixLQUFLLENBQUMsaUJBQWlCLENBQUMsSUFBSSxFQUFFLElBQUksQ0FBQyxXQUFXLENBQUMsQ0FBQztJQUNsRCxDQUFDO0NBQ0YifQ==
@@ -1,4 +1,2 @@
1
- import { CookieLimitExceedError } from "../../CookieLimitExceedError-CAW0HYJw.js";
2
- import { MessageUnhandledRejectionError } from "../../MessageUnhandledRejectionError-Lq5fWw24.js";
3
- import "../../index-CkgLZdB4.js";
4
- export { CookieLimitExceedError, MessageUnhandledRejectionError };
1
+ export * from './CookieLimitExceedError.ts';
2
+ export * from './MessageUnhandledRejectionError.ts';
@@ -1,5 +1,3 @@
1
- import { CookieLimitExceedError } from "../../CookieLimitExceedError-DLGakbeu.js";
2
- import { MessageUnhandledRejectionError } from "../../MessageUnhandledRejectionError-oD_E1Ewl.js";
3
- import "../../error-BYo_LRnd.js";
4
-
5
- export { CookieLimitExceedError, MessageUnhandledRejectionError };
1
+ export * from "./CookieLimitExceedError.js";
2
+ export * from "./MessageUnhandledRejectionError.js";
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL2Vycm9yL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsNkJBQTZCLENBQUM7QUFDNUMsY0FBYyxxQ0FBcUMsQ0FBQyJ9
@@ -1,3 +1,12 @@
1
- import "../../EggApplicationLoader-PnIvd5oV.js";
2
- import { AgentWorkerLoader } from "../../AgentWorkerLoader-DG_hAClt.js";
3
- export { AgentWorkerLoader };
1
+ import { EggApplicationLoader } from './EggApplicationLoader.ts';
2
+ /**
3
+ * Agent worker process loader
4
+ * @see https://github.com/eggjs/egg-core/blob/master/src/loader/egg_loader.ts
5
+ */
6
+ export declare class AgentWorkerLoader extends EggApplicationLoader {
7
+ /**
8
+ * loadPlugin first, then loadConfig
9
+ */
10
+ loadConfig(): Promise<void>;
11
+ load(): Promise<void>;
12
+ }
@@ -1,4 +1,20 @@
1
- import "../../EggApplicationLoader-CMe1VQt1.js";
2
- import { AgentWorkerLoader } from "../../AgentWorkerLoader-D_hceBRW.js";
3
-
4
- export { AgentWorkerLoader };
1
+ import { EggApplicationLoader } from "./EggApplicationLoader.js";
2
+ /**
3
+ * Agent worker process loader
4
+ * @see https://github.com/eggjs/egg-core/blob/master/src/loader/egg_loader.ts
5
+ */
6
+ export class AgentWorkerLoader extends EggApplicationLoader {
7
+ /**
8
+ * loadPlugin first, then loadConfig
9
+ */
10
+ async loadConfig() {
11
+ await this.loadPlugin();
12
+ await super.loadConfig();
13
+ }
14
+ async load() {
15
+ await this.loadAgentExtend();
16
+ await this.loadContextExtend();
17
+ await this.loadCustomAgent();
18
+ }
19
+ }
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQWdlbnRXb3JrZXJMb2FkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL2xvYWRlci9BZ2VudFdvcmtlckxvYWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUVqRTs7O0dBR0c7QUFDSCxNQUFNLE9BQU8saUJBQWtCLFNBQVEsb0JBQW9CO0lBQ3pEOztPQUVHO0lBQ0gsS0FBSyxDQUFDLFVBQVU7UUFDZCxNQUFNLElBQUksQ0FBQyxVQUFVLEVBQUUsQ0FBQztRQUN4QixNQUFNLEtBQUssQ0FBQyxVQUFVLEVBQUUsQ0FBQztJQUMzQixDQUFDO0lBRUQsS0FBSyxDQUFDLElBQUk7UUFDUixNQUFNLElBQUksQ0FBQyxlQUFlLEVBQUUsQ0FBQztRQUM3QixNQUFNLElBQUksQ0FBQyxpQkFBaUIsRUFBRSxDQUFDO1FBQy9CLE1BQU0sSUFBSSxDQUFDLGVBQWUsRUFBRSxDQUFDO0lBQy9CLENBQUM7Q0FDRiJ9
@@ -1,3 +1,17 @@
1
- import "../../EggApplicationLoader-PnIvd5oV.js";
2
- import { AppWorkerLoader } from "../../AppWorkerLoader-CT875rYM.js";
3
- export { AppWorkerLoader };
1
+ import { EggApplicationLoader } from './EggApplicationLoader.ts';
2
+ /**
3
+ * App worker process Loader, will load plugins
4
+ * @see https://github.com/eggjs/egg-core/blob/master/src/loader/egg_loader.ts
5
+ */
6
+ export declare class AppWorkerLoader extends EggApplicationLoader {
7
+ /**
8
+ * loadPlugin first, then loadConfig
9
+ * @since 1.0.0
10
+ */
11
+ loadConfig(): Promise<void>;
12
+ /**
13
+ * Load all directories in convention
14
+ * @since 1.0.0
15
+ */
16
+ load(): Promise<void>;
17
+ }
@@ -1,4 +1,39 @@
1
- import "../../EggApplicationLoader-CMe1VQt1.js";
2
- import { AppWorkerLoader } from "../../AppWorkerLoader-CAtxJvGl.js";
3
-
4
- export { AppWorkerLoader };
1
+ import { EggApplicationLoader } from "./EggApplicationLoader.js";
2
+ /**
3
+ * App worker process Loader, will load plugins
4
+ * @see https://github.com/eggjs/egg-core/blob/master/src/loader/egg_loader.ts
5
+ */
6
+ export class AppWorkerLoader extends EggApplicationLoader {
7
+ /**
8
+ * loadPlugin first, then loadConfig
9
+ * @since 1.0.0
10
+ */
11
+ async loadConfig() {
12
+ await this.loadPlugin();
13
+ await super.loadConfig();
14
+ }
15
+ /**
16
+ * Load all directories in convention
17
+ * @since 1.0.0
18
+ */
19
+ async load() {
20
+ // app > plugin > core
21
+ await this.loadApplicationExtend();
22
+ await this.loadRequestExtend();
23
+ await this.loadResponseExtend();
24
+ await this.loadContextExtend();
25
+ await this.loadHelperExtend();
26
+ await this.loadCustomLoader();
27
+ // app > plugin
28
+ await this.loadCustomApp();
29
+ // app > plugin
30
+ await this.loadService();
31
+ // app > plugin > core
32
+ await this.loadMiddleware();
33
+ // app
34
+ await this.loadController();
35
+ // app
36
+ await this.loadRouter(); // Depend on controllers
37
+ }
38
+ }
39
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXBwV29ya2VyTG9hZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9sb2FkZXIvQXBwV29ya2VyTG9hZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBRWpFOzs7R0FHRztBQUNILE1BQU0sT0FBTyxlQUFnQixTQUFRLG9CQUFvQjtJQUN2RDs7O09BR0c7SUFDSCxLQUFLLENBQUMsVUFBVTtRQUNkLE1BQU0sSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDO1FBQ3hCLE1BQU0sS0FBSyxDQUFDLFVBQVUsRUFBRSxDQUFDO0lBQzNCLENBQUM7SUFFRDs7O09BR0c7SUFDSCxLQUFLLENBQUMsSUFBSTtRQUNSLHNCQUFzQjtRQUN0QixNQUFNLElBQUksQ0FBQyxxQkFBcUIsRUFBRSxDQUFDO1FBQ25DLE1BQU0sSUFBSSxDQUFDLGlCQUFpQixFQUFFLENBQUM7UUFDL0IsTUFBTSxJQUFJLENBQUMsa0JBQWtCLEVBQUUsQ0FBQztRQUNoQyxNQUFNLElBQUksQ0FBQyxpQkFBaUIsRUFBRSxDQUFDO1FBQy9CLE1BQU0sSUFBSSxDQUFDLGdCQUFnQixFQUFFLENBQUM7UUFFOUIsTUFBTSxJQUFJLENBQUMsZ0JBQWdCLEVBQUUsQ0FBQztRQUU5QixlQUFlO1FBQ2YsTUFBTSxJQUFJLENBQUMsYUFBYSxFQUFFLENBQUM7UUFDM0IsZUFBZTtRQUNmLE1BQU0sSUFBSSxDQUFDLFdBQVcsRUFBRSxDQUFDO1FBQ3pCLHNCQUFzQjtRQUN0QixNQUFNLElBQUksQ0FBQyxjQUFjLEVBQUUsQ0FBQztRQUM1QixNQUFNO1FBQ04sTUFBTSxJQUFJLENBQUMsY0FBYyxFQUFFLENBQUM7UUFDNUIsTUFBTTtRQUNOLE1BQU0sSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDLENBQUMsd0JBQXdCO0lBQ25ELENBQUM7Q0FDRiJ9
@@ -1,2 +1,4 @@
1
- import { EggApplicationLoader } from "../../EggApplicationLoader-PnIvd5oV.js";
2
- export { EggApplicationLoader };
1
+ import { EggLoader } from '@eggjs/core';
2
+ export declare abstract class EggApplicationLoader extends EggLoader {
3
+ abstract load(): Promise<void>;
4
+ }
@@ -1,3 +1,4 @@
1
- import { EggApplicationLoader } from "../../EggApplicationLoader-CMe1VQt1.js";
2
-
3
- export { EggApplicationLoader };
1
+ import { EggLoader } from '@eggjs/core';
2
+ export class EggApplicationLoader extends EggLoader {
3
+ }
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRWdnQXBwbGljYXRpb25Mb2FkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL2xvYWRlci9FZ2dBcHBsaWNhdGlvbkxvYWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBRXhDLE1BQU0sT0FBZ0Isb0JBQXFCLFNBQVEsU0FBUztDQUUzRCJ9
@@ -1,5 +1,3 @@
1
- import { EggApplicationLoader } from "../../EggApplicationLoader-PnIvd5oV.js";
2
- import { AppWorkerLoader } from "../../AppWorkerLoader-CT875rYM.js";
3
- import { AgentWorkerLoader } from "../../AgentWorkerLoader-DG_hAClt.js";
4
- import "../../index-CUPkUUOR.js";
5
- export { AgentWorkerLoader, AppWorkerLoader, EggApplicationLoader };
1
+ export { EggApplicationLoader } from './EggApplicationLoader.ts';
2
+ export * from './AppWorkerLoader.ts';
3
+ export * from './AgentWorkerLoader.ts';
@@ -1,6 +1,4 @@
1
- import { EggApplicationLoader } from "../../EggApplicationLoader-CMe1VQt1.js";
2
- import { AppWorkerLoader } from "../../AppWorkerLoader-CAtxJvGl.js";
3
- import { AgentWorkerLoader } from "../../AgentWorkerLoader-D_hceBRW.js";
4
- import "../../loader-3myZ-rpm.js";
5
-
6
- export { AgentWorkerLoader, AppWorkerLoader, EggApplicationLoader };
1
+ export { EggApplicationLoader } from "./EggApplicationLoader.js";
2
+ export * from "./AppWorkerLoader.js";
3
+ export * from "./AgentWorkerLoader.js";
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL2xvYWRlci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUNqRSxjQUFjLHNCQUFzQixDQUFDO0FBQ3JDLGNBQWMsd0JBQXdCLENBQUMifQ==
@@ -1,12 +1,24 @@
1
- import "../EggApplicationLoader-PnIvd5oV.js";
2
- import "../AppWorkerLoader-CT875rYM.js";
3
- import "../AgentWorkerLoader-DG_hAClt.js";
4
- import "../index-CUPkUUOR.js";
5
- import { SingleModeAgent, SingleModeApplication, StartEggOptions, startEgg } from "../base_hook_class-R8A8gm1s.js";
6
- import "../response-DlNYDj00.js";
7
- import "../types.plugin-C3D5I7VD.js";
8
- import "../IMessenger-C9g6ypSI.js";
9
- import "../CookieLimitExceedError-CAW0HYJw.js";
10
- import "../MessageUnhandledRejectionError-Lq5fWw24.js";
11
- import "../index-CkgLZdB4.js";
12
- export { SingleModeAgent, SingleModeApplication, StartEggOptions, startEgg };
1
+ import { Agent } from './agent.ts';
2
+ import { Application } from './application.ts';
3
+ import { type EggPlugin } from './types.ts';
4
+ export interface StartEggOptions {
5
+ /** specify framework that can be absolute path or npm package */
6
+ framework?: string;
7
+ /** directory of application, default to `process.cwd()` */
8
+ baseDir?: string;
9
+ /** ignore single process mode warning */
10
+ ignoreWarning?: boolean;
11
+ mode?: 'single';
12
+ env?: string;
13
+ plugins?: EggPlugin;
14
+ }
15
+ export interface SingleModeApplication extends Application {
16
+ agent: SingleModeAgent;
17
+ }
18
+ export interface SingleModeAgent extends Agent {
19
+ app: SingleModeApplication;
20
+ }
21
+ /**
22
+ * Start egg with single process
23
+ */
24
+ export declare function startEgg(options?: StartEggOptions): Promise<SingleModeApplication>;
package/dist/lib/start.js CHANGED
@@ -1,27 +1,46 @@
1
- import "../base_hook_class-D0Gu2p8r.js";
2
- import "../base_context_logger-CZU59PGA.js";
3
- import "../base_context_class-Xc1OZql9.js";
4
- import "../context-D1Wg7CXs.js";
5
- import "../response-CDeQ9Sx2.js";
6
- import "../request-Cy_1DlaX.js";
7
- import "../CookieLimitExceedError-DLGakbeu.js";
8
- import "../MessageUnhandledRejectionError-oD_E1Ewl.js";
9
- import "../error-BYo_LRnd.js";
10
- import "../egg-DVo5e_lr.js";
11
- import "../context_httpclient-BpRMdJhf.js";
12
- import "../httpclient-C1QPc_R7.js";
13
- import "../logger-C4tIcO3S.js";
14
- import "../utils-B1Rjsoi9.js";
15
- import "../utils-BDoYg6z6.js";
16
- import "../EggApplicationLoader-CMe1VQt1.js";
17
- import "../AppWorkerLoader-CAtxJvGl.js";
18
- import "../AgentWorkerLoader-D_hceBRW.js";
19
- import "../loader-3myZ-rpm.js";
20
- import "../agent-BfFWeJj4.js";
21
- import "../helper-B3PKMPXq.js";
22
- import "../application-DVwFQSa9.js";
23
- import "../types.plugin-B2v0K0I8.js";
24
- import "../types-dKSyDnVp.js";
25
- import { startEgg } from "../start-4E84z796.js";
26
-
27
- export { startEgg };
1
+ import path from 'node:path';
2
+ import { readJSON } from 'utility';
3
+ import { importModule } from '@eggjs/utils';
4
+ import { Agent } from "./agent.js";
5
+ import { Application } from "./application.js";
6
+ import {} from "./types.js";
7
+ /**
8
+ * Start egg with single process
9
+ */
10
+ export async function startEgg(options = {}) {
11
+ options.baseDir = options.baseDir ?? process.cwd();
12
+ options.mode = 'single';
13
+ // get agent from options.framework and package.egg.framework
14
+ if (!options.framework) {
15
+ try {
16
+ const pkg = await readJSON(path.join(options.baseDir, 'package.json'));
17
+ options.framework = pkg.egg.framework;
18
+ }
19
+ catch {
20
+ // ignore
21
+ }
22
+ }
23
+ let AgentClass = Agent;
24
+ let ApplicationClass = Application;
25
+ if (options.framework) {
26
+ const framework = await importModule(options.framework, {
27
+ paths: [options.baseDir],
28
+ });
29
+ AgentClass = framework.Agent;
30
+ ApplicationClass = framework.Application;
31
+ }
32
+ const agent = new AgentClass({
33
+ ...options,
34
+ });
35
+ await agent.ready();
36
+ const application = new ApplicationClass({
37
+ ...options,
38
+ });
39
+ application.agent = agent;
40
+ agent.application = application;
41
+ await application.ready();
42
+ // emit egg-ready message in agent and application
43
+ application.messenger.broadcast('egg-ready');
44
+ return application;
45
+ }
46
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhcnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbGliL3N0YXJ0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sSUFBSSxNQUFNLFdBQVcsQ0FBQztBQUU3QixPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBQ25DLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFFNUMsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLFlBQVksQ0FBQztBQUNuQyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDL0MsT0FBTyxFQUFrQixNQUFNLFlBQVksQ0FBQztBQXNCNUM7O0dBRUc7QUFDSCxNQUFNLENBQUMsS0FBSyxVQUFVLFFBQVEsQ0FBQyxVQUEyQixFQUFFO0lBQzFELE9BQU8sQ0FBQyxPQUFPLEdBQUcsT0FBTyxDQUFDLE9BQU8sSUFBSSxPQUFPLENBQUMsR0FBRyxFQUFFLENBQUM7SUFDbkQsT0FBTyxDQUFDLElBQUksR0FBRyxRQUFRLENBQUM7SUFFeEIsNkRBQTZEO0lBQzdELElBQUksQ0FBQyxPQUFPLENBQUMsU0FBUyxFQUFFLENBQUM7UUFDdkIsSUFBSSxDQUFDO1lBQ0gsTUFBTSxHQUFHLEdBQUcsTUFBTSxRQUFRLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsT0FBTyxFQUFFLGNBQWMsQ0FBQyxDQUFDLENBQUM7WUFDdkUsT0FBTyxDQUFDLFNBQVMsR0FBRyxHQUFHLENBQUMsR0FBRyxDQUFDLFNBQVMsQ0FBQztRQUN4QyxDQUFDO1FBQUMsTUFBTSxDQUFDO1lBQ1AsU0FBUztRQUNYLENBQUM7SUFDSCxDQUFDO0lBQ0QsSUFBSSxVQUFVLEdBQUcsS0FBSyxDQUFDO0lBQ3ZCLElBQUksZ0JBQWdCLEdBQUcsV0FBVyxDQUFDO0lBQ25DLElBQUksT0FBTyxDQUFDLFNBQVMsRUFBRSxDQUFDO1FBQ3RCLE1BQU0sU0FBUyxHQUFHLE1BQU0sWUFBWSxDQUFDLE9BQU8sQ0FBQyxTQUFTLEVBQUU7WUFDdEQsS0FBSyxFQUFFLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQztTQUN6QixDQUFDLENBQUM7UUFDSCxVQUFVLEdBQUcsU0FBUyxDQUFDLEtBQUssQ0FBQztRQUM3QixnQkFBZ0IsR0FBRyxTQUFTLENBQUMsV0FBVyxDQUFDO0lBQzNDLENBQUM7SUFFRCxNQUFNLEtBQUssR0FBRyxJQUFJLFVBQVUsQ0FBQztRQUMzQixHQUFHLE9BQU87S0FDWCxDQUFvQixDQUFDO0lBQ3RCLE1BQU0sS0FBSyxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQ3BCLE1BQU0sV0FBVyxHQUFHLElBQUksZ0JBQWdCLENBQUM7UUFDdkMsR0FBRyxPQUFPO0tBQ1gsQ0FBMEIsQ0FBQztJQUM1QixXQUFXLENBQUMsS0FBSyxHQUFHLEtBQUssQ0FBQztJQUMxQixLQUFLLENBQUMsV0FBVyxHQUFHLFdBQVcsQ0FBQztJQUNoQyxNQUFNLFdBQVcsQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUUxQixrREFBa0Q7SUFDbEQsV0FBVyxDQUFDLFNBQVMsQ0FBQyxTQUFTLENBQUMsV0FBVyxDQUFDLENBQUM7SUFDN0MsT0FBTyxXQUFXLENBQUM7QUFDckIsQ0FBQyJ9
@@ -1,12 +1,281 @@
1
- import "../EggApplicationLoader-PnIvd5oV.js";
2
- import "../AppWorkerLoader-CT875rYM.js";
3
- import "../AgentWorkerLoader-DG_hAClt.js";
4
- import "../index-CUPkUUOR.js";
5
- import { ClientErrorResponse, CustomLoaderConfig, EggAppConfig, EggAppInfo, EggConfigFactory, EggEnvType, EggLoggerConfig, EggPlugin, EggPluginItem, HttpClientConfig, IEggPluginItem, PartialDeep, PartialEggConfig, PowerPartial, RequestObjectBody, defineConfig, defineConfigFactory } from "../base_hook_class-R8A8gm1s.js";
6
- import "../response-DlNYDj00.js";
7
- import "../types.plugin-C3D5I7VD.js";
8
- import "../IMessenger-C9g6ypSI.js";
9
- import "../CookieLimitExceedError-CAW0HYJw.js";
10
- import "../MessageUnhandledRejectionError-Lq5fWw24.js";
11
- import "../index-CkgLZdB4.js";
12
- export { ClientErrorResponse, CustomLoaderConfig, EggAppConfig, EggAppInfo, EggConfigFactory, EggEnvType, EggLoggerConfig, EggPlugin, EggPluginItem, HttpClientConfig, IEggPluginItem, PartialDeep, PartialEggConfig, PowerPartial, RequestObjectBody, defineConfig, defineConfigFactory };
1
+ import type { Socket } from 'node:net';
2
+ import type { RequestOptions as HttpClientRequestOptions } from 'urllib';
3
+ import type { EggLoggerOptions, EggLoggersOptions } from 'egg-logger';
4
+ import type { FileLoaderOptions, EggAppConfig as EggCoreAppConfig, EggAppInfo } from '@eggjs/core';
5
+ import type { PartialDeep } from 'type-fest';
6
+ import type { Context } from './egg.ts';
7
+ import type { Application } from './application.ts';
8
+ import type { MetaMiddlewareOptions } from '../app/middleware/meta.ts';
9
+ import type { NotFoundMiddlewareOptions } from '../app/middleware/notfound.ts';
10
+ import type { SiteFileMiddlewareOptions } from '../app/middleware/site_file.ts';
11
+ import './types.plugin.ts';
12
+ export type { EggAppInfo, PartialDeep };
13
+ type IgnoreItem = string | RegExp | ((ctx: Context) => boolean);
14
+ type IgnoreOrMatch = IgnoreItem | IgnoreItem[];
15
+ export interface ClientErrorResponse {
16
+ body: string | Buffer;
17
+ status: number;
18
+ headers: {
19
+ [key: string]: string;
20
+ };
21
+ }
22
+ /** egg env type */
23
+ export type EggEnvType = 'local' | 'unittest' | 'prod' | string;
24
+ /** logger config of egg */
25
+ export interface EggLoggerConfig extends Omit<EggLoggersOptions, 'type'> {
26
+ /** custom config of coreLogger */
27
+ coreLogger?: Partial<EggLoggerOptions>;
28
+ /** allow debug log at prod, defaults to `false` */
29
+ allowDebugAtProd?: boolean;
30
+ /** disable logger console after app ready. defaults to `false` on local and unittest env, others is `true`. */
31
+ disableConsoleAfterReady?: boolean;
32
+ /** [deprecated] Defaults to `true`. */
33
+ enablePerformanceTimer?: boolean;
34
+ /** using the app logger instead of EggContextLogger, defaults to `false` */
35
+ enableFastContextLogger?: boolean;
36
+ }
37
+ /** Custom Loader Configuration */
38
+ export interface CustomLoaderConfig extends Omit<FileLoaderOptions, 'inject' | 'target'> {
39
+ /**
40
+ * an object you wanner load to, value can only be 'ctx' or 'app'. default to app
41
+ */
42
+ inject?: 'ctx' | 'app';
43
+ /**
44
+ * whether need to load files in plugins or framework, default to false
45
+ */
46
+ loadunit?: boolean;
47
+ }
48
+ export interface HttpClientConfig {
49
+ /** Request timeout */
50
+ timeout?: number;
51
+ /** Default request args for httpclient */
52
+ request?: HttpClientRequestOptions;
53
+ /**
54
+ * @deprecated keep compatible with egg 3.x, no more used
55
+ */
56
+ useHttpClientNext?: boolean;
57
+ /**
58
+ * Allow http2
59
+ */
60
+ allowH2?: boolean;
61
+ }
62
+ /**
63
+ * Powerful Partial, Support adding ? modifier to a mapped property in deep level
64
+ * @example
65
+ * import { PowerPartial, EggAppConfig } from 'egg';
66
+ *
67
+ * // { view: { defaultEngines: string } } => { view?: { defaultEngines?: string } }
68
+ * type EggConfig = PowerPartial<EggAppConfig>
69
+ *
70
+ * @deprecated use `PartialDeep` instead
71
+ */
72
+ export type PowerPartial<T> = PartialDeep<T>;
73
+ /**
74
+ * Partial EggAppConfig
75
+ */
76
+ export type PartialEggConfig = PartialDeep<EggAppConfig>;
77
+ /**
78
+ * Configuration factory function return type
79
+ */
80
+ export type EggConfigFactory = (appInfo: EggAppInfo) => PartialEggConfig;
81
+ /**
82
+ * Define configuration with type safety
83
+ * @example
84
+ * ```ts
85
+ * import { defineConfig } from 'egg';
86
+ *
87
+ * export default defineConfig({
88
+ * keys: 'my-keys',
89
+ * middleware: []
90
+ * });
91
+ * ```
92
+ */
93
+ export declare function defineConfig(config: PartialEggConfig): PartialEggConfig;
94
+ /**
95
+ * Define configuration factory function with type safety
96
+ * @example
97
+ * ```ts
98
+ * export default defineConfigFactory((appInfo): PartialEggConfig => ({
99
+ * keys: appInfo.name + '_keys',
100
+ * middleware: []
101
+ * }));
102
+ * ```
103
+ */
104
+ export declare function defineConfigFactory(configFactory: EggConfigFactory): EggConfigFactory;
105
+ export interface EggAppConfig extends EggCoreAppConfig {
106
+ workerStartTimeout: number;
107
+ baseDir: string;
108
+ middleware: string[];
109
+ coreMiddleware: string[];
110
+ /**
111
+ * The option of `bodyParser` middleware
112
+ *
113
+ * @member Config#bodyParser
114
+ * @property {Boolean} enable - enable bodyParser or not, default to true
115
+ * @property {String | RegExp | Function | Array} ignore - won't parse request body when url path hit ignore pattern, can not set `ignore` when `match` presented
116
+ * @property {String | RegExp | Function | Array} match - will parse request body only when url path hit match pattern
117
+ * @property {String} encoding - body encoding config, default utf8
118
+ * @property {String} formLimit - form body size limit, default 1mb
119
+ * @property {String} jsonLimit - json body size limit, default 1mb
120
+ * @property {String} textLimit - json body size limit, default 1mb
121
+ * @property {Boolean} strict - json body strict mode, if set strict value true, then only receive object and array json body
122
+ * @property {Number} queryString.arrayLimit - from item array length limit, default 100
123
+ * @property {Number} queryString.depth - json value deep length, default 5
124
+ * @property {Number} queryString.parameterLimit - parameter number limit, default 1000
125
+ * @property {String[]} enableTypes - parser will only parse when request type hits enableTypes, default is ['json', 'form']
126
+ * @property {Object} extendTypes - support extend types
127
+ * @property {String} onProtoPoisoning - Defines what action must take when parsing a JSON object with `__proto__`. Possible values are `'error'`, `'remove'` and `'ignore'`. Default is `'error'`, it will return `400` response when `Prototype-Poisoning` happen.
128
+ */
129
+ bodyParser: {
130
+ enable: boolean;
131
+ encoding: string;
132
+ formLimit: string;
133
+ jsonLimit: string;
134
+ textLimit: string;
135
+ strict: boolean;
136
+ queryString: {
137
+ arrayLimit: number;
138
+ depth: number;
139
+ parameterLimit: number;
140
+ };
141
+ ignore?: IgnoreOrMatch;
142
+ match?: IgnoreOrMatch;
143
+ enableTypes?: string[];
144
+ extendTypes?: {
145
+ json: string[];
146
+ form: string[];
147
+ text: string[];
148
+ };
149
+ /** Default is `'error'`, it will return `400` response when `Prototype-Poisoning` happen. */
150
+ onProtoPoisoning: 'error' | 'remove' | 'ignore';
151
+ onerror(err: any, ctx: Context): void;
152
+ };
153
+ /**
154
+ * logger options
155
+ * @member Config#logger
156
+ * @property {String} dir - directory of log files
157
+ * @property {String} encoding - log file encoding, defaults to utf8
158
+ * @property {String} level - default log level, could be: DEBUG, INFO, WARN, ERROR or NONE, defaults to INFO in production
159
+ * @property {String} consoleLevel - log level of stdout, defaults to `INFO` in local serverEnv, defaults to `WARN` in unittest, others is `NONE`
160
+ * @property {Boolean} disableConsoleAfterReady - disable logger console after app ready. defaults to `false` on local and unittest env, others is `true`.
161
+ * @property {Boolean} outputJSON - log as JSON or not, defaults to `false`
162
+ * @property {Boolean} buffer - if enabled, flush logs to disk at a certain frequency to improve performance, defaults to true
163
+ * @property {String} errorLogName - file name of errorLogger
164
+ * @property {String} coreLogName - file name of coreLogger
165
+ * @property {String} agentLogName - file name of agent worker log
166
+ * @property {Object} coreLogger - custom config of coreLogger
167
+ * @property {Boolean} allowDebugAtProd - allow debug log at prod, defaults to false
168
+ * @property {Boolean} enableFastContextLogger - using the app logger instead of EggContextLogger, defaults to false
169
+ */
170
+ logger: EggLoggerConfig;
171
+ /** custom logger of egg */
172
+ customLogger: {
173
+ [key: string]: EggLoggerOptions;
174
+ };
175
+ /** Configuration of httpclient in egg. */
176
+ httpclient: HttpClientConfig;
177
+ /**
178
+ * customLoader config
179
+ */
180
+ /**
181
+ * It will ignore special keys when dumpConfig
182
+ */
183
+ dump: {
184
+ ignore: Set<string | RegExp>;
185
+ timing: {
186
+ slowBootActionMinDuration: number;
187
+ };
188
+ };
189
+ /**
190
+ * The environment of egg
191
+ */
192
+ env: EggEnvType;
193
+ /**
194
+ * The current HOME directory
195
+ */
196
+ HOME: string;
197
+ hostHeaders: string;
198
+ /**
199
+ * Detect request' ip from specified headers, not case-sensitive. Only worked when config.proxy set to true.
200
+ */
201
+ ipHeaders: string;
202
+ protocolHeaders: string;
203
+ maxProxyCount: number;
204
+ maxIpsCount: number;
205
+ proxy: boolean;
206
+ cookies: {
207
+ sameSite?: string;
208
+ httpOnly?: boolean;
209
+ };
210
+ /**
211
+ * The key that signing cookies. It can contain multiple keys separated by `.`
212
+ * @requires Cookie secret key to sign and encrypt, see https://eggjs.org/core/cookie-and-session#cookie-secret-key
213
+ */
214
+ keys: string;
215
+ /**
216
+ * The name of the application
217
+ */
218
+ name: string;
219
+ /**
220
+ * package.json
221
+ */
222
+ pkg: Record<string, any>;
223
+ rundir: string;
224
+ siteFile: SiteFileMiddlewareOptions;
225
+ meta: MetaMiddlewareOptions;
226
+ notfound: NotFoundMiddlewareOptions;
227
+ overrideMethod: {
228
+ enable: boolean;
229
+ allowedMethods: string[];
230
+ };
231
+ onClientError?(err: Error, socket: Socket, app: Application): ClientErrorResponse | Promise<ClientErrorResponse>;
232
+ /**
233
+ * server timeout in milliseconds, default to 0 (no timeout).
234
+ *
235
+ * for special request, just use `ctx.req.setTimeout(ms)`
236
+ *
237
+ * @see https://nodejs.org/api/http.html#http_server_timeout
238
+ */
239
+ serverTimeout: number | null;
240
+ cluster: {
241
+ listen: {
242
+ path: string;
243
+ port: number;
244
+ hostname: string;
245
+ };
246
+ };
247
+ clusterClient: {
248
+ maxWaitTime: number;
249
+ responseTimeout: number;
250
+ };
251
+ [prop: string]: any;
252
+ }
253
+ export type RequestObjectBody = Record<string, any>;
254
+ /**
255
+ * plugin config item interface
256
+ */
257
+ export interface IEggPluginItem {
258
+ env?: EggEnvType[];
259
+ path?: string;
260
+ package?: string;
261
+ enable?: boolean;
262
+ }
263
+ export type EggPluginItem = IEggPluginItem | boolean;
264
+ /**
265
+ * build-in plugin list
266
+ */
267
+ export interface EggPlugin {
268
+ [key: string]: EggPluginItem | undefined;
269
+ onerror?: EggPluginItem;
270
+ session?: EggPluginItem;
271
+ i18n?: EggPluginItem;
272
+ watcher?: EggPluginItem;
273
+ multipart?: EggPluginItem;
274
+ security?: EggPluginItem;
275
+ development?: EggPluginItem;
276
+ logrotator?: EggPluginItem;
277
+ schedule?: EggPluginItem;
278
+ static?: EggPluginItem;
279
+ jsonp?: EggPluginItem;
280
+ view?: EggPluginItem;
281
+ }
package/dist/lib/types.js CHANGED
@@ -1,4 +1,31 @@
1
- import "../types.plugin-B2v0K0I8.js";
2
- import { defineConfig, defineConfigFactory } from "../types-dKSyDnVp.js";
3
-
4
- export { defineConfig, defineConfigFactory };
1
+ // import plugins types
2
+ import "./types.plugin.js";
3
+ /**
4
+ * Define configuration with type safety
5
+ * @example
6
+ * ```ts
7
+ * import { defineConfig } from 'egg';
8
+ *
9
+ * export default defineConfig({
10
+ * keys: 'my-keys',
11
+ * middleware: []
12
+ * });
13
+ * ```
14
+ */
15
+ export function defineConfig(config) {
16
+ return config;
17
+ }
18
+ /**
19
+ * Define configuration factory function with type safety
20
+ * @example
21
+ * ```ts
22
+ * export default defineConfigFactory((appInfo): PartialEggConfig => ({
23
+ * keys: appInfo.name + '_keys',
24
+ * middleware: []
25
+ * }));
26
+ * ```
27
+ */
28
+ export function defineConfigFactory(configFactory) {
29
+ return configFactory;
30
+ }
31
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbGliL3R5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWFBLHVCQUF1QjtBQUN2QixPQUFPLG1CQUFtQixDQUFDO0FBK0UzQjs7Ozs7Ozs7Ozs7R0FXRztBQUNILE1BQU0sVUFBVSxZQUFZLENBQUMsTUFBd0I7SUFDbkQsT0FBTyxNQUFNLENBQUM7QUFDaEIsQ0FBQztBQUVEOzs7Ozs7Ozs7R0FTRztBQUNILE1BQU0sVUFBVSxtQkFBbUIsQ0FBQyxhQUErQjtJQUNqRSxPQUFPLGFBQWEsQ0FBQztBQUN2QixDQUFDIn0=
@@ -1 +1,12 @@
1
- import "../types.plugin-C3D5I7VD.js";
1
+ import '@eggjs/development/types';
2
+ import '@eggjs/i18n/types';
3
+ import '@eggjs/jsonp/types';
4
+ import '@eggjs/logrotator/types';
5
+ import '@eggjs/multipart/types';
6
+ import '@eggjs/onerror/types';
7
+ import '@eggjs/schedule/types';
8
+ import '@eggjs/security/types';
9
+ import '@eggjs/session/types';
10
+ import '@eggjs/static/types';
11
+ import '@eggjs/view/types';
12
+ import '@eggjs/watcher/types';