@eggjs/logrotator 5.0.2-beta.2 → 5.0.2-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 (2) hide show
  1. package/README.zh-CN.md +1 -1
  2. package/package.json +31 -11
package/README.zh-CN.md CHANGED
@@ -58,7 +58,7 @@ logrotator 默认在每日0点按照时间切割,会将 app.loggers 下所有
58
58
 
59
59
  ```js
60
60
  // app/schedule/custom.js
61
- module.exports = app => {
61
+ module.exports = (app) => {
62
62
  const rotator = getRotator(app);
63
63
  return {
64
64
  // https://github.com/eggjs/egg-schedule
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/logrotator",
3
- "version": "5.0.2-beta.2",
3
+ "version": "5.0.2-beta.22",
4
4
  "description": "logrotator for egg",
5
5
  "keywords": [
6
6
  "egg",
@@ -48,28 +48,48 @@
48
48
  "./package.json": "./package.json"
49
49
  },
50
50
  "publishConfig": {
51
- "access": "public"
51
+ "access": "public",
52
+ "exports": {
53
+ ".": "./dist/index.js",
54
+ "./agent": "./dist/agent.js",
55
+ "./app": "./dist/app.js",
56
+ "./app/extend/agent": "./dist/app/extend/agent.js",
57
+ "./app/extend/application": "./dist/app/extend/application.js",
58
+ "./app/schedule/clean_log": "./dist/app/schedule/clean_log.js",
59
+ "./app/schedule/rotate_by_file": "./dist/app/schedule/rotate_by_file.js",
60
+ "./app/schedule/rotate_by_hour": "./dist/app/schedule/rotate_by_hour.js",
61
+ "./app/schedule/rotate_by_size": "./dist/app/schedule/rotate_by_size.js",
62
+ "./boot": "./dist/boot.js",
63
+ "./config/config.default": "./dist/config/config.default.js",
64
+ "./lib/day_rotator": "./dist/lib/day_rotator.js",
65
+ "./lib/hour_rotator": "./dist/lib/hour_rotator.js",
66
+ "./lib/rotator": "./dist/lib/rotator.js",
67
+ "./lib/size_rotator": "./dist/lib/size_rotator.js",
68
+ "./lib/utils": "./dist/lib/utils.js",
69
+ "./types": "./dist/types.js",
70
+ "./package.json": "./package.json"
71
+ }
72
+ },
73
+ "scripts": {
74
+ "typecheck": "tsgo --noEmit"
52
75
  },
53
76
  "dependencies": {
54
77
  "moment": "^2.30.1",
55
78
  "utility": "^2.5.0"
56
79
  },
57
80
  "devDependencies": {
81
+ "@eggjs/mock": "7.0.2-beta.22",
82
+ "@eggjs/schedule": "6.0.2-beta.22",
58
83
  "@types/node": "^24.10.2",
84
+ "egg": "4.1.2-beta.22",
59
85
  "egg-logger": "^3.5.0",
60
86
  "glob": "^11.0.0",
61
- "typescript": "^5.9.3",
62
- "@eggjs/mock": "7.0.2-beta.2",
63
- "@eggjs/schedule": "6.0.2-beta.2",
64
- "egg": "4.1.2-beta.2"
87
+ "typescript": "^5.9.3"
65
88
  },
66
89
  "peerDependencies": {
67
- "egg": "4.1.2-beta.2"
90
+ "egg": "4.1.2-beta.22"
68
91
  },
69
92
  "engines": {
70
93
  "node": ">= 22.18.0"
71
- },
72
- "scripts": {
73
- "typecheck": "tsgo --noEmit"
74
94
  }
75
- }
95
+ }