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 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.originalUrl.split("?")[0];
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.originalUrl.split("?")[0];
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appstage",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -72,7 +72,7 @@ export type FilesParams = {
72
72
  };
73
73
 
74
74
  const defaultExtensions = ["html", "htm"];
75
- const defaultPath = (req: Request) => req.originalUrl.split("?")[0];
75
+ const defaultPath = (req: Request) => req.path;
76
76
  const defaultLanguages = getLanguageList;
77
77
 
78
78
  /**