vite-plugin-rpx 0.11.41 → 0.11.42
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 +6 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -23148,7 +23148,7 @@ function poolFor(hostPort, maxPerHost) {
|
|
|
23148
23148
|
const idx = hostPort.lastIndexOf(":");
|
|
23149
23149
|
const host = idx === -1 ? hostPort : hostPort.slice(0, idx);
|
|
23150
23150
|
const port = idx === -1 ? 80 : Number(hostPort.slice(idx + 1));
|
|
23151
|
-
pool = new UpstreamPool(host, port, maxPerHost, hostPort);
|
|
23151
|
+
pool = new UpstreamPool(host, port, maxPerHost ?? maxTotalConns(), hostPort);
|
|
23152
23152
|
pools.set(hostPort, pool);
|
|
23153
23153
|
}
|
|
23154
23154
|
return pool;
|
|
@@ -23249,7 +23249,7 @@ async function proxyViaPool(reqOpts) {
|
|
|
23249
23249
|
payload.set(head);
|
|
23250
23250
|
payload.set(bodyBytes, head.length);
|
|
23251
23251
|
}
|
|
23252
|
-
const pool = poolFor(hostPort, reqOpts.maxPerHost
|
|
23252
|
+
const pool = poolFor(hostPort, reqOpts.maxPerHost);
|
|
23253
23253
|
for (let attempt = 0;; attempt++) {
|
|
23254
23254
|
if (attempt > 0)
|
|
23255
23255
|
await new Promise((resolve14) => {
|
|
@@ -24178,6 +24178,7 @@ async function readPair(serverName, certPath, keyPath, verbose) {
|
|
|
24178
24178
|
}
|
|
24179
24179
|
async function buildSniTlsConfig(cfg, verbose) {
|
|
24180
24180
|
const bySrvName = new Map;
|
|
24181
|
+
const discoveredServerNames = cfg.certsDirServerNames ? new Set(cfg.certsDirServerNames) : undefined;
|
|
24181
24182
|
if (cfg.certsDir) {
|
|
24182
24183
|
let names = [];
|
|
24183
24184
|
try {
|
|
@@ -24189,6 +24190,8 @@ async function buildSniTlsConfig(cfg, verbose) {
|
|
|
24189
24190
|
const serverName = serverNameFromCertFilename(name);
|
|
24190
24191
|
if (!serverName)
|
|
24191
24192
|
continue;
|
|
24193
|
+
if (discoveredServerNames && !discoveredServerNames.has(serverName))
|
|
24194
|
+
continue;
|
|
24192
24195
|
const base = name.slice(0, -".crt".length);
|
|
24193
24196
|
bySrvName.set(serverName, {
|
|
24194
24197
|
certPath: path4.join(cfg.certsDir, name),
|
|
@@ -26199,7 +26202,7 @@ init_utils();
|
|
|
26199
26202
|
var package_default = {
|
|
26200
26203
|
name: "@stacksjs/rpx",
|
|
26201
26204
|
type: "module",
|
|
26202
|
-
version: "0.11.
|
|
26205
|
+
version: "0.11.42",
|
|
26203
26206
|
description: "A modern and smart reverse proxy.",
|
|
26204
26207
|
author: "Chris Breuer <chris@stacksjs.org>",
|
|
26205
26208
|
license: "MIT",
|
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.42",
|
|
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.42",
|
|
51
51
|
"@stacksjs/tlsx": "^0.13.13"
|
|
52
52
|
},
|
|
53
53
|
"simple-git-hooks": {
|