@server/next 0.27.7 → 0.27.8

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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -860,7 +860,7 @@ function pathPattern(pattern, path2) {
860
860
  path2 = path2.replace(/\/$/, "") || "/";
861
861
  if (pattern === path2) return {};
862
862
  const params = {};
863
- const pathParts = path2.split("/").slice(1);
863
+ const pathParts = path2.split("/").slice(1).map((u) => decodeURIComponent(u));
864
864
  const pattParts = pattern.split("/").slice(1);
865
865
  let allSame = true;
866
866
  for (let i = 0; i < Math.max(pathParts.length, pattParts.length); i++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@server/next",
3
- "version": "0.27.7",
3
+ "version": "0.27.8",
4
4
  "description": "A fully-fledged web server with routing, file uploads, sessions, static files, schema validation, websockets, testing, etc.",
5
5
  "homepage": "https://server-js.com/",
6
6
  "repository": "https://github.com/franciscop/server-next.git",