appstage 0.2.25 → 0.2.26

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.path;
81
+ const defaultPath = (req) => decodeURIComponent(req.path);
82
82
  /**
83
83
  * Serves files from the specified directory path or paths in a locale-aware
84
84
  * fashion after applying optional transforms.
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.path;
55
+ const defaultPath = (req) => decodeURIComponent(req.path);
56
56
  /**
57
57
  * Serves files from the specified directory path or paths in a locale-aware
58
58
  * fashion after applying optional transforms.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appstage",
3
- "version": "0.2.25",
3
+ "version": "0.2.26",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -82,7 +82,7 @@ export type FilesParams = {
82
82
  };
83
83
 
84
84
  const defaultExtensions = ["html", "htm"];
85
- const defaultPath = (req: Request) => req.path;
85
+ const defaultPath = (req: Request) => decodeURIComponent(req.path);
86
86
 
87
87
  /**
88
88
  * Serves files from the specified directory path or paths in a locale-aware