@eggjs/koa-static-cache 7.0.2-beta.2 → 7.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.md +4 -4
  2. package/package.json +14 -10
package/README.md CHANGED
@@ -42,7 +42,7 @@ const { staticCache } = require('@eggjs/koa-static-cache');
42
42
  app.use(
43
43
  staticCache(path.join(__dirname, 'public'), {
44
44
  maxAge: 365 * 24 * 60 * 60,
45
- })
45
+ }),
46
46
  );
47
47
  ```
48
48
 
@@ -115,8 +115,8 @@ app.use(
115
115
  {
116
116
  maxAge: 60 * 60 * 24 * 365,
117
117
  },
118
- files
119
- )
118
+ files,
119
+ ),
120
120
  );
121
121
 
122
122
  files['/package.json'].maxAge = 60 * 60 * 24 * 30;
@@ -135,7 +135,7 @@ app.use(
135
135
  dir: '/public',
136
136
  dynamic: true,
137
137
  files,
138
- })
138
+ }),
139
139
  );
140
140
  ```
141
141
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/koa-static-cache",
3
- "version": "7.0.2-beta.2",
3
+ "version": "7.0.2-beta.22",
4
4
  "description": "Static cache middleware for koa",
5
5
  "keywords": [
6
6
  "cache",
@@ -33,7 +33,14 @@
33
33
  "./package.json": "./package.json"
34
34
  },
35
35
  "publishConfig": {
36
- "access": "public"
36
+ "access": "public",
37
+ "exports": {
38
+ ".": "./dist/index.js",
39
+ "./package.json": "./package.json"
40
+ }
41
+ },
42
+ "scripts": {
43
+ "typecheck": "tsgo --noEmit"
37
44
  },
38
45
  "dependencies": {
39
46
  "@eggjs/compressible": "^3.0.0",
@@ -42,19 +49,16 @@
42
49
  "utility": "^2.5.0"
43
50
  },
44
51
  "devDependencies": {
52
+ "@eggjs/koa": "3.1.2-beta.22",
53
+ "@eggjs/supertest": "9.0.2-beta.22",
54
+ "@eggjs/tsconfig": "3.1.2-beta.22",
45
55
  "@types/fs-readdir-recursive": "^1.1.3",
46
56
  "@types/mime-types": "^3.0.0",
47
57
  "@types/node": "^24.10.2",
48
58
  "typescript": "^5.9.3",
49
- "ylru": "^2.0.0",
50
- "@eggjs/koa": "3.1.2-beta.2",
51
- "@eggjs/tsconfig": "3.1.2-beta.2",
52
- "@eggjs/supertest": "9.0.2-beta.2"
59
+ "ylru": "^2.0.0"
53
60
  },
54
61
  "engines": {
55
62
  "node": ">=22.18.0"
56
- },
57
- "scripts": {
58
- "typecheck": "tsgo --noEmit"
59
63
  }
60
- }
64
+ }