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 +1 -1
- package/cjs/ReadStream.cjs +1 -1
- package/cjs/Service.cjs +1 -1
- package/cjs/index.cjs +1 -1
- package/cjs/utils/fs.cjs +2 -2
- package/cjs/utils/fs.d.cts +1 -1
- package/cjs/utils/hash.cjs +1 -1
- package/cjs/utils/http.cjs +1 -1
- package/cjs/utils/path.cjs +1 -1
- package/cjs/utils/type.cjs +1 -1
- package/esm/ReadStream.js +1 -1
- package/esm/Service.js +1 -1
- package/esm/index.js +1 -1
- package/esm/utils/fs.d.ts +1 -1
- package/esm/utils/fs.js +2 -2
- package/esm/utils/hash.js +1 -1
- package/esm/utils/http.js +1 -1
- package/esm/utils/path.js +1 -1
- package/esm/utils/type.js +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
package/cjs/ReadStream.cjs
CHANGED
package/cjs/Service.cjs
CHANGED
package/cjs/index.cjs
CHANGED
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
|
+
* @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
|
|
18
|
+
* @param fs The file system to use.
|
|
19
19
|
* @param path The file path.
|
|
20
20
|
*/
|
|
21
21
|
function stat(fs, path) {
|
package/cjs/utils/fs.d.cts
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
|
|
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/cjs/utils/hash.cjs
CHANGED
package/cjs/utils/http.cjs
CHANGED
package/cjs/utils/path.cjs
CHANGED
package/cjs/utils/type.cjs
CHANGED
package/esm/ReadStream.js
CHANGED
package/esm/Service.js
CHANGED
package/esm/index.js
CHANGED
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
|
|
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
|
+
* @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
|
|
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
package/esm/utils/http.js
CHANGED
package/esm/utils/path.js
CHANGED
package/esm/utils/type.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koa-files",
|
|
3
|
-
"version": "4.1.
|
|
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.
|
|
51
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
52
52
|
"@types/etag": "^1.8.4",
|
|
53
|
-
"@types/koa": "^3.0.
|
|
54
|
-
"@types/node": "^24.
|
|
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.
|
|
57
|
-
"koa": "^3.
|
|
58
|
-
"prettier": "^3.
|
|
59
|
-
"rimraf": "^6.
|
|
60
|
-
"rollup": "^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": {
|