appstage 0.2.15 → 0.2.16
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/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/controllers/files.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -78,7 +78,7 @@ function matches(x, matcher) {
|
|
|
78
78
|
return false;
|
|
79
79
|
}
|
|
80
80
|
const defaultExtensions = ["html", "htm"];
|
|
81
|
-
const defaultPath = (req) => req.
|
|
81
|
+
const defaultPath = (req) => req.path;
|
|
82
82
|
const defaultLanguages = getLanguageList;
|
|
83
83
|
/**
|
|
84
84
|
* Serves files from the specified directory path in a locale-aware
|
package/dist/index.mjs
CHANGED
|
@@ -52,7 +52,7 @@ function matches(x, matcher) {
|
|
|
52
52
|
return false;
|
|
53
53
|
}
|
|
54
54
|
const defaultExtensions = ["html", "htm"];
|
|
55
|
-
const defaultPath = (req) => req.
|
|
55
|
+
const defaultPath = (req) => req.path;
|
|
56
56
|
const defaultLanguages = getLanguageList;
|
|
57
57
|
/**
|
|
58
58
|
* Serves files from the specified directory path in a locale-aware
|
package/package.json
CHANGED
package/src/controllers/files.ts
CHANGED
|
@@ -72,7 +72,7 @@ export type FilesParams = {
|
|
|
72
72
|
};
|
|
73
73
|
|
|
74
74
|
const defaultExtensions = ["html", "htm"];
|
|
75
|
-
const defaultPath = (req: Request) => req.
|
|
75
|
+
const defaultPath = (req: Request) => req.path;
|
|
76
76
|
const defaultLanguages = getLanguageList;
|
|
77
77
|
|
|
78
78
|
/**
|