@eggjs/logrotator 5.0.0-beta.15 → 5.0.0-beta.17

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.
@@ -4,10 +4,5 @@ import { LogRotator } from "../../lib/rotator.js";
4
4
  declare const _default: {
5
5
  LogRotator: typeof LogRotator;
6
6
  };
7
- declare module 'egg' {
8
- interface Agent {
9
- LogRotator: typeof LogRotator;
10
- }
11
- }
12
7
  //#endregion
13
8
  export { _default as default };
@@ -4,10 +4,5 @@ import { LogRotator } from "../../lib/rotator.js";
4
4
  declare const _default: {
5
5
  LogRotator: typeof LogRotator;
6
6
  };
7
- declare module 'egg' {
8
- interface Application {
9
- LogRotator: typeof LogRotator;
10
- }
11
- }
12
7
  //#endregion
13
8
  export { _default as default };
@@ -1,8 +1,4 @@
1
1
  //#region src/config/config.default.d.ts
2
- /**
3
- * logrotator options
4
- * @member Config#logrotator
5
- */
6
2
  interface LogrotatorConfig {
7
3
  /**
8
4
  * Disable rotate by day
@@ -62,10 +58,5 @@ interface LogrotatorConfig {
62
58
  declare const _default: {
63
59
  logrotator: LogrotatorConfig;
64
60
  };
65
- declare module 'egg' {
66
- interface EggAppConfig {
67
- logrotator: LogrotatorConfig;
68
- }
69
- }
70
61
  //#endregion
71
62
  export { LogrotatorConfig, _default as default };
@@ -0,0 +1,19 @@
1
+ import { LogRotator } from "./lib/rotator.js";
2
+ import { LogrotatorConfig } from "./config/config.default.js";
3
+
4
+ //#region src/types.d.ts
5
+ declare module 'egg' {
6
+ interface EggAppConfig {
7
+ /**
8
+ * logrotator options
9
+ * @member Config#logrotator
10
+ */
11
+ logrotator: LogrotatorConfig;
12
+ }
13
+ interface Agent {
14
+ LogRotator: typeof LogRotator;
15
+ }
16
+ interface Application {
17
+ LogRotator: typeof LogRotator;
18
+ }
19
+ }
package/dist/types.js ADDED
@@ -0,0 +1 @@
1
+ export { };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/logrotator",
3
- "version": "5.0.0-beta.15",
3
+ "version": "5.0.0-beta.17",
4
4
  "description": "logrotator for egg",
5
5
  "eggPlugin": {
6
6
  "name": "logrotator",
@@ -17,7 +17,7 @@
17
17
  ],
18
18
  "repository": {
19
19
  "type": "git",
20
- "url": "git@github.com:eggjs/egg.git",
20
+ "url": "git://github.com/eggjs/egg.git",
21
21
  "directory": "plugins/logrotator"
22
22
  },
23
23
  "bugs": {
@@ -47,6 +47,7 @@
47
47
  "./lib/rotator": "./dist/lib/rotator.js",
48
48
  "./lib/size_rotator": "./dist/lib/size_rotator.js",
49
49
  "./lib/utils": "./dist/lib/utils.js",
50
+ "./types": "./dist/types.js",
50
51
  "./package.json": "./package.json"
51
52
  },
52
53
  "publishConfig": {
@@ -57,7 +58,7 @@
57
58
  "utility": "^2.5.0"
58
59
  },
59
60
  "peerDependencies": {
60
- "egg": "4.1.0-beta.15"
61
+ "egg": "4.1.0-beta.17"
61
62
  },
62
63
  "devDependencies": {
63
64
  "@types/node": "24.5.2",
@@ -66,9 +67,9 @@
66
67
  "tsdown": "^0.15.4",
67
68
  "typescript": "5.9.2",
68
69
  "vitest": "4.0.0-beta.13",
69
- "@eggjs/mock": "7.0.0-beta.15",
70
- "@eggjs/schedule": "6.0.0-beta.15",
71
- "@eggjs/tsconfig": "3.1.0-beta.15"
70
+ "@eggjs/schedule": "6.0.0-beta.17",
71
+ "@eggjs/tsconfig": "3.1.0-beta.17",
72
+ "@eggjs/mock": "7.0.0-beta.17"
72
73
  },
73
74
  "files": [
74
75
  "dist"