@remix-run/static-middleware 0.4.4 → 0.4.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/dist/lib/static.d.ts +1 -1
- package/package.json +9 -9
- package/src/lib/static.ts +1 -1
package/dist/lib/static.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { type FileResponseOptions } from '@remix-run/response/file';
|
|
|
8
8
|
*/
|
|
9
9
|
export type AcceptRangesFunction = (file: File) => boolean;
|
|
10
10
|
/**
|
|
11
|
-
* Options for the
|
|
11
|
+
* Options for the {@link staticFiles} middleware in addition to {@link FileResponseOptions}.
|
|
12
12
|
*/
|
|
13
13
|
export interface StaticFilesOptions extends Omit<FileResponseOptions, 'acceptRanges'> {
|
|
14
14
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remix-run/static-middleware",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "Middleware for serving static files from the filesystem",
|
|
5
5
|
"author": "Michael Jackson <mjijackson@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "^24.6.0",
|
|
30
30
|
"@typescript/native-preview": "7.0.0-dev.20251125.1",
|
|
31
|
-
"@remix-run/fetch-router": "0.
|
|
32
|
-
"@remix-run/form-data-middleware": "0.
|
|
31
|
+
"@remix-run/fetch-router": "0.18.0",
|
|
32
|
+
"@remix-run/form-data-middleware": "0.2.0",
|
|
33
|
+
"@remix-run/method-override-middleware": "0.1.5",
|
|
33
34
|
"@remix-run/mime": "0.4.0",
|
|
34
|
-
"@remix-run/response": "0.3.2"
|
|
35
|
-
"@remix-run/method-override-middleware": "0.1.4"
|
|
35
|
+
"@remix-run/response": "0.3.2"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@remix-run/fetch-router": "^0.
|
|
38
|
+
"@remix-run/fetch-router": "^0.18.0",
|
|
39
39
|
"@remix-run/fs": "^0.4.2",
|
|
40
40
|
"@remix-run/html-template": "^0.3.0",
|
|
41
|
-
"@remix-run/
|
|
42
|
-
"@remix-run/
|
|
41
|
+
"@remix-run/response": "^0.3.2",
|
|
42
|
+
"@remix-run/mime": "^0.4.0"
|
|
43
43
|
},
|
|
44
44
|
"keywords": [
|
|
45
45
|
"fetch",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsgo -p tsconfig.build.json",
|
|
53
53
|
"clean": "git clean -fdX",
|
|
54
|
-
"test": "node --
|
|
54
|
+
"test": "node --test",
|
|
55
55
|
"typecheck": "tsgo --noEmit"
|
|
56
56
|
}
|
|
57
57
|
}
|
package/src/lib/static.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { generateDirectoryListing } from './directory-listing.ts'
|
|
|
15
15
|
export type AcceptRangesFunction = (file: File) => boolean
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* Options for the
|
|
18
|
+
* Options for the {@link staticFiles} middleware in addition to {@link FileResponseOptions}.
|
|
19
19
|
*/
|
|
20
20
|
export interface StaticFilesOptions extends Omit<FileResponseOptions, 'acceptRanges'> {
|
|
21
21
|
/**
|