vite-plugin-rpx 0.11.26 → 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.
- package/dist/index.js +2 -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
|
}
|
|
@@ -26665,7 +26665,7 @@ async function startProxies(options) {
|
|
|
26665
26665
|
const httpsPort = mergedOptions.httpsPort ?? 443;
|
|
26666
26666
|
const httpPort = mergedOptions.httpPort ?? 80;
|
|
26667
26667
|
const originGuard = mergedOptions.originGuard ? createOriginGuard(mergedOptions.originGuard) : null;
|
|
26668
|
-
const useSharedHttps = !!sslConfig && (proxyOptions.length > 1 || singlePortMode);
|
|
26668
|
+
const useSharedHttps = !!sslConfig && (proxyOptions.length > 1 || singlePortMode || productionTlsConfig.length > 0);
|
|
26669
26669
|
const useSharedHttp = !sslConfig && singlePortMode && proxyOptions.length > 0;
|
|
26670
26670
|
if (useSharedHttps && sslConfig) {
|
|
26671
26671
|
debugLog("proxies", `Creating shared HTTPS server for ${proxyOptions.length} domains on port ${httpsPort}`, verbose);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-rpx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.11.
|
|
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.
|
|
50
|
+
"@stacksjs/rpx": "0.11.28",
|
|
51
51
|
"@stacksjs/tlsx": "^0.13.9"
|
|
52
52
|
},
|
|
53
53
|
"simple-git-hooks": {
|