koa-files 4.1.4 → 4.1.5

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.
package/README.md CHANGED
@@ -68,7 +68,7 @@ export function server(root: string, options?: Options): Middleware;
68
68
  ##### `fs`
69
69
 
70
70
  - Defaults to `node:fs`.
71
- - The file system to used.
71
+ - The file system to use.
72
72
 
73
73
  ##### `defer`
74
74
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package koa-files
3
3
  * @license MIT
4
- * @version 4.1.4
4
+ * @version 4.1.5
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A static files serving middleware for koa.
7
7
  * @see https://github.com/nuintun/koa-files#readme
package/cjs/Service.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package koa-files
3
3
  * @license MIT
4
- * @version 4.1.4
4
+ * @version 4.1.5
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A static files serving middleware for koa.
7
7
  * @see https://github.com/nuintun/koa-files#readme
package/cjs/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package koa-files
3
3
  * @license MIT
4
- * @version 4.1.4
4
+ * @version 4.1.5
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A static files serving middleware for koa.
7
7
  * @see https://github.com/nuintun/koa-files#readme
package/cjs/utils/fs.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package koa-files
3
3
  * @license MIT
4
- * @version 4.1.4
4
+ * @version 4.1.5
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A static files serving middleware for koa.
7
7
  * @see https://github.com/nuintun/koa-files#readme
@@ -15,7 +15,7 @@
15
15
  /**
16
16
  * @function stat
17
17
  * @description Get file stats.
18
- * @param fs The file system to used.
18
+ * @param fs The file system to use.
19
19
  * @param path The file path.
20
20
  */
21
21
  function stat(fs, path) {
@@ -11,7 +11,7 @@ export interface FileSystem {
11
11
  /**
12
12
  * @function stat
13
13
  * @description Get file stats.
14
- * @param fs The file system to used.
14
+ * @param fs The file system to use.
15
15
  * @param path The file path.
16
16
  */
17
17
  export declare function stat(fs: FileSystem, path: string): Promise<Stats | null>;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package koa-files
3
3
  * @license MIT
4
- * @version 4.1.4
4
+ * @version 4.1.5
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A static files serving middleware for koa.
7
7
  * @see https://github.com/nuintun/koa-files#readme
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package koa-files
3
3
  * @license MIT
4
- * @version 4.1.4
4
+ * @version 4.1.5
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A static files serving middleware for koa.
7
7
  * @see https://github.com/nuintun/koa-files#readme
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package koa-files
3
3
  * @license MIT
4
- * @version 4.1.4
4
+ * @version 4.1.5
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A static files serving middleware for koa.
7
7
  * @see https://github.com/nuintun/koa-files#readme
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package koa-files
3
3
  * @license MIT
4
- * @version 4.1.4
4
+ * @version 4.1.5
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A static files serving middleware for koa.
7
7
  * @see https://github.com/nuintun/koa-files#readme
package/esm/ReadStream.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package koa-files
3
3
  * @license MIT
4
- * @version 4.1.4
4
+ * @version 4.1.5
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A static files serving middleware for koa.
7
7
  * @see https://github.com/nuintun/koa-files#readme
package/esm/Service.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package koa-files
3
3
  * @license MIT
4
- * @version 4.1.4
4
+ * @version 4.1.5
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A static files serving middleware for koa.
7
7
  * @see https://github.com/nuintun/koa-files#readme
package/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package koa-files
3
3
  * @license MIT
4
- * @version 4.1.4
4
+ * @version 4.1.5
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A static files serving middleware for koa.
7
7
  * @see https://github.com/nuintun/koa-files#readme
package/esm/utils/fs.d.ts CHANGED
@@ -11,7 +11,7 @@ export interface FileSystem {
11
11
  /**
12
12
  * @function stat
13
13
  * @description Get file stats.
14
- * @param fs The file system to used.
14
+ * @param fs The file system to use.
15
15
  * @param path The file path.
16
16
  */
17
17
  export declare function stat(fs: FileSystem, path: string): Promise<Stats | null>;
package/esm/utils/fs.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package koa-files
3
3
  * @license MIT
4
- * @version 4.1.4
4
+ * @version 4.1.5
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A static files serving middleware for koa.
7
7
  * @see https://github.com/nuintun/koa-files#readme
@@ -13,7 +13,7 @@
13
13
  /**
14
14
  * @function stat
15
15
  * @description Get file stats.
16
- * @param fs The file system to used.
16
+ * @param fs The file system to use.
17
17
  * @param path The file path.
18
18
  */
19
19
  function stat(fs, path) {
package/esm/utils/hash.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package koa-files
3
3
  * @license MIT
4
- * @version 4.1.4
4
+ * @version 4.1.5
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A static files serving middleware for koa.
7
7
  * @see https://github.com/nuintun/koa-files#readme
package/esm/utils/http.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package koa-files
3
3
  * @license MIT
4
- * @version 4.1.4
4
+ * @version 4.1.5
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A static files serving middleware for koa.
7
7
  * @see https://github.com/nuintun/koa-files#readme
package/esm/utils/path.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package koa-files
3
3
  * @license MIT
4
- * @version 4.1.4
4
+ * @version 4.1.5
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A static files serving middleware for koa.
7
7
  * @see https://github.com/nuintun/koa-files#readme
package/esm/utils/type.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package koa-files
3
3
  * @license MIT
4
- * @version 4.1.4
4
+ * @version 4.1.5
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A static files serving middleware for koa.
7
7
  * @see https://github.com/nuintun/koa-files#readme
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koa-files",
3
- "version": "4.1.4",
3
+ "version": "4.1.5",
4
4
  "description": "A static files serving middleware for koa.",
5
5
  "type": "module",
6
6
  "main": "cjs/index.cjs",
@@ -48,16 +48,16 @@
48
48
  "tslib": "^2.8.1"
49
49
  },
50
50
  "devDependencies": {
51
- "@rollup/plugin-typescript": "^12.1.4",
51
+ "@rollup/plugin-typescript": "^12.3.0",
52
52
  "@types/etag": "^1.8.4",
53
- "@types/koa": "^3.0.0",
54
- "@types/node": "^24.7.2",
53
+ "@types/koa": "^3.0.1",
54
+ "@types/node": "^24.10.1",
55
55
  "@types/range-parser": "^1.2.7",
56
- "dts-paths": "^1.1.13",
57
- "koa": "^3.0.1",
58
- "prettier": "^3.6.2",
59
- "rimraf": "^6.0.1",
60
- "rollup": "^4.52.4",
56
+ "dts-paths": "^1.1.15",
57
+ "koa": "^3.1.1",
58
+ "prettier": "^3.7.3",
59
+ "rimraf": "^6.1.2",
60
+ "rollup": "^4.53.3",
61
61
  "typescript": "^5.9.3"
62
62
  },
63
63
  "peerDependencies": {