vite-plugin-rpx 0.11.27 → 0.11.28

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/dist/index.js +1 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -23580,7 +23580,7 @@ function safeRelativePath(pathname) {
23580
23580
  if (decoded.includes("\x00") || decoded.includes("\\"))
23581
23581
  return null;
23582
23582
  const normalized = path2.posix.normalize(`/${decoded}`);
23583
- if (normalized.includes(".."))
23583
+ if (normalized.split("/").includes(".."))
23584
23584
  return null;
23585
23585
  return normalized.replace(/^\/+/, "");
23586
23586
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vite-plugin-rpx",
3
3
  "type": "module",
4
- "version": "0.11.27",
4
+ "version": "0.11.28",
5
5
  "description": "A modern and smart reverse proxy. Vite plugin.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",
@@ -47,7 +47,7 @@
47
47
  "typecheck": "bunx tsc --noEmit"
48
48
  },
49
49
  "dependencies": {
50
- "@stacksjs/rpx": "0.11.27",
50
+ "@stacksjs/rpx": "0.11.28",
51
51
  "@stacksjs/tlsx": "^0.13.9"
52
52
  },
53
53
  "simple-git-hooks": {