@eggjs/core 7.0.0-beta.34 → 7.0.0-beta.36

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.
@@ -1,16 +1,21 @@
1
- import type { EggCore, Context } from './egg.ts';
1
+ import { Context, EggCore } from "./egg.js";
2
+
3
+ //#region src/base_context_class.d.ts
4
+
2
5
  /**
3
- * BaseContextClass is a base class that can be extended,
4
- * it's instantiated in context level,
5
- * {@link Helper}, {@link Service} is extending it.
6
- */
7
- export declare class BaseContextClass {
8
- ctx: Context;
9
- app: EggCore;
10
- config: Record<string, any>;
11
- service: Record<string, any>;
12
- /**
13
- * @since 1.0.0
14
- */
15
- constructor(ctx: Context);
6
+ * BaseContextClass is a base class that can be extended,
7
+ * it's instantiated in context level,
8
+ * {@link Helper}, {@link Service} is extending it.
9
+ */
10
+ declare class BaseContextClass {
11
+ ctx: Context;
12
+ app: EggCore;
13
+ config: Record<string, any>;
14
+ service: Record<string, any>;
15
+ /**
16
+ * @since 1.0.0
17
+ */
18
+ constructor(ctx: Context);
16
19
  }
20
+ //#endregion
21
+ export { BaseContextClass };
@@ -1,37 +1,40 @@
1
+ //#region src/base_context_class.ts
1
2
  /**
2
- * BaseContextClass is a base class that can be extended,
3
- * it's instantiated in context level,
4
- * {@link Helper}, {@link Service} is extending it.
5
- */
6
- export class BaseContextClass {
7
- ctx;
8
- app;
9
- config;
10
- service;
11
- /**
12
- * @since 1.0.0
13
- */
14
- constructor(ctx) {
15
- /**
16
- * @member {Context} BaseContextClass#ctx
17
- * @since 1.0.0
18
- */
19
- this.ctx = ctx;
20
- /**
21
- * @member {Application} BaseContextClass#app
22
- * @since 1.0.0
23
- */
24
- this.app = ctx.app;
25
- /**
26
- * @member {Config} BaseContextClass#config
27
- * @since 1.0.0
28
- */
29
- this.config = ctx.app.config;
30
- /**
31
- * @member {Service} BaseContextClass#service
32
- * @since 1.0.0
33
- */
34
- this.service = ctx.service;
35
- }
36
- }
37
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZV9jb250ZXh0X2NsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2Jhc2VfY29udGV4dF9jbGFzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQTs7OztHQUlHO0FBQ0gsTUFBTSxPQUFPLGdCQUFnQjtJQUMzQixHQUFHLENBQVU7SUFDYixHQUFHLENBQVU7SUFDYixNQUFNLENBQXNCO0lBQzVCLE9BQU8sQ0FBc0I7SUFFN0I7O09BRUc7SUFDSCxZQUFZLEdBQVk7UUFDdEI7OztXQUdHO1FBQ0gsSUFBSSxDQUFDLEdBQUcsR0FBRyxHQUFHLENBQUM7UUFDZjs7O1dBR0c7UUFDSCxJQUFJLENBQUMsR0FBRyxHQUFHLEdBQUcsQ0FBQyxHQUFHLENBQUM7UUFDbkI7OztXQUdHO1FBQ0gsSUFBSSxDQUFDLE1BQU0sR0FBRyxHQUFHLENBQUMsR0FBRyxDQUFDLE1BQU0sQ0FBQztRQUM3Qjs7O1dBR0c7UUFDSCxJQUFJLENBQUMsT0FBTyxHQUFHLEdBQUcsQ0FBQyxPQUFPLENBQUM7SUFDN0IsQ0FBQztDQUNGIn0=
3
+ * BaseContextClass is a base class that can be extended,
4
+ * it's instantiated in context level,
5
+ * {@link Helper}, {@link Service} is extending it.
6
+ */
7
+ var BaseContextClass = class {
8
+ ctx;
9
+ app;
10
+ config;
11
+ service;
12
+ /**
13
+ * @since 1.0.0
14
+ */
15
+ constructor(ctx) {
16
+ /**
17
+ * @member {Context} BaseContextClass#ctx
18
+ * @since 1.0.0
19
+ */
20
+ this.ctx = ctx;
21
+ /**
22
+ * @member {Application} BaseContextClass#app
23
+ * @since 1.0.0
24
+ */
25
+ this.app = ctx.app;
26
+ /**
27
+ * @member {Config} BaseContextClass#config
28
+ * @since 1.0.0
29
+ */
30
+ this.config = ctx.app.config;
31
+ /**
32
+ * @member {Service} BaseContextClass#service
33
+ * @since 1.0.0
34
+ */
35
+ this.service = ctx.service;
36
+ }
37
+ };
38
+
39
+ //#endregion
40
+ export { BaseContextClass };