vite-plugin-rpx 0.11.31 → 0.11.33

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 +7 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -24107,6 +24107,11 @@ var init_host_routes = () => {};
24107
24107
  // ../rpx/src/sni.ts
24108
24108
  import * as fsp from "node:fs/promises";
24109
24109
  import * as path4 from "node:path";
24110
+ function withLowMemoryTls(tls) {
24111
+ if (Array.isArray(tls))
24112
+ return tls.map((entry) => ({ ...entry, lowMemoryMode: true }));
24113
+ return { ...tls, lowMemoryMode: true };
24114
+ }
24110
24115
  function serverNameFromCertFilename(filename) {
24111
24116
  if (!filename.endsWith(".crt"))
24112
24117
  return null;
@@ -26980,7 +26985,7 @@ function createSharedProxyServer(opts) {
26980
26985
  hostname: "0.0.0.0",
26981
26986
  reusePort: shouldReusePort(),
26982
26987
  ...sslConfig ? {
26983
- tls: Array.isArray(sslConfig) ? sslConfig.map((entry) => ({
26988
+ tls: withLowMemoryTls(Array.isArray(sslConfig) ? sslConfig.map((entry) => ({
26984
26989
  serverName: entry.serverName,
26985
26990
  key: entry.key,
26986
26991
  cert: entry.cert
@@ -26990,7 +26995,7 @@ function createSharedProxyServer(opts) {
26990
26995
  ca: sslConfig.ca,
26991
26996
  requestCert: false,
26992
26997
  rejectUnauthorized: false
26993
- }
26998
+ })
26994
26999
  } : {},
26995
27000
  fetch(req, server) {
26996
27001
  return sharedFetchHandler(req, server);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vite-plugin-rpx",
3
3
  "type": "module",
4
- "version": "0.11.31",
4
+ "version": "0.11.33",
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.31",
50
+ "@stacksjs/rpx": "0.11.33",
51
51
  "@stacksjs/tlsx": "^0.13.13"
52
52
  },
53
53
  "simple-git-hooks": {