@stacksjs/rpx 0.8.1 → 0.9.1

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/src/index.js CHANGED
@@ -1 +1 @@
1
- import{A as Q,B as R,C as S,D as T,E as o,c as r,d as j,e as k,f as n,g as q,h as v,i as w,j as y,k as z,l as A,m as B,n as C,o as D,p as E,q as F,r as G,s as H,t as I,u as J,v as K,w as L,x as M,y as N,z as O}from"../chunk-kbhf94ag.js";var i=o;export{Q as startServer,T as startProxy,o as startProxies,S as startHttpRedirectServer,R as setupReverseProxy,z as safeDeleteFile,E as resolveSSLPaths,C as removeHosts,I as loadSSLConfig,n as isValidRootCA,y as isSingleProxyOptions,w as isMultiProxyOptions,v as isMultiProxyConfig,M as httpsConfig,A as hostsFilePath,K as getSSLConfig,q as getPrimaryDomain,H as getAllDomains,F as generateWildcardPatterns,G as generateSSLPaths,J as generateCertificate,k as extractHostname,i as default,j as debugLog,r as config,N as cleanupCertificates,O as cleanup,D as checkHosts,L as checkExistingCertificates,B as addHosts};
1
+ import{A as R,B as S,C as T,D as o,b as r,c as j,d as k,e as n,f as q,g as v,h as w,i as y,j as z,k as A,l as B,m as C,n as D,o as E,p as F,q as G,r as H,s as I,t as J,u as K,v as L,w as M,x as N,y as O,z as Q}from"../chunk-wn28gp4d.js";import"../chunk-en36kajt.js";import"../chunk-2y0c08hn.js";import"../chunk-e794mmrn.js";var i=o;export{Q as startServer,T as startProxy,o as startProxies,S as startHttpRedirectServer,R as setupReverseProxy,z as safeDeleteFile,E as resolveSSLPaths,C as removeHosts,I as loadSSLConfig,n as isValidRootCA,y as isSingleProxyOptions,w as isMultiProxyOptions,v as isMultiProxyConfig,M as httpsConfig,A as hostsFilePath,K as getSSLConfig,q as getPrimaryDomain,H as getAllDomains,F as generateWildcardPatterns,G as generateSSLPaths,J as generateCertificate,k as extractHostname,i as default,j as debugLog,r as config,N as cleanupCertificates,O as cleanup,D as checkHosts,L as checkExistingCertificates,B as addHosts};
package/dist/start.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { CleanupOptions, ProxySetupOptions, ReverseProxyOption, ReverseProxyOptions, SSLConfig, SingleReverseProxyConfig } from './types';
1
+ import type { CleanupOptions, ProxySetupOptions, ReverseProxyOption, ReverseProxyOptions, SingleReverseProxyConfig } from './types';
2
2
 
3
3
  declare const activeServers: Set<http.Server | https.Server>;
4
4
  export declare function cleanup(options?: CleanupOptions): Promise<void>;
@@ -6,7 +6,6 @@ declare function isPortInUse(port: number, hostname: string, verbose?: boolean):
6
6
  declare function findAvailablePort(startPort: number, hostname: string, verbose?: boolean): Promise<number>;
7
7
  declare function testConnection(hostname: string, port: number, verbose?: boolean): Promise<void>;
8
8
  export declare function startServer(options: SingleReverseProxyConfig): Promise<void>;
9
- declare function createProxyServer(from: string, to: string, fromPort: number, listenPort: number, hostname: string, sourceUrl: Pick<URL, 'hostname' | 'host'>, ssl: SSLConfig | null, vitePluginUsage?: boolean, verbose?: boolean, cleanUrls?: boolean): Promise<void>;
10
9
  export declare function setupReverseProxy(options: ProxySetupOptions): Promise<void>;
11
10
  export declare function startHttpRedirectServer(verbose?: boolean): void;
12
11
  export declare function startProxy(options: ReverseProxyOption): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/rpx",
3
3
  "type": "module",
4
- "version": "0.8.1",
4
+ "version": "0.9.1",
5
5
  "description": "A modern and smart reverse proxy.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",
@@ -60,14 +60,14 @@
60
60
  "devDependencies": {
61
61
  "@iconify-json/carbon": "^1.2.5",
62
62
  "@shikijs/vitepress-twoslash": "^1.24.2",
63
- "@stacksjs/cli": "^0.68.2",
64
63
  "@stacksjs/eslint-config": "^3.12.0-beta.4",
65
- "@stacksjs/storage": "^0.68.2",
66
- "@stacksjs/tlsx": "^0.8.5",
64
+ "@stacksjs/tlsx": "^0.9.0",
67
65
  "@types/bun": "^1.1.14",
68
66
  "@vite-pwa/vitepress": "^0.5.3",
69
67
  "bun-config": "^0.3.2",
70
68
  "bun-plugin-dtsx": "^0.21.9",
69
+ "cac": "^6.7.14",
70
+ "consola": "^3.2.3",
71
71
  "typescript": "^5.7.2",
72
72
  "unocss": "0.61.0",
73
73
  "unplugin-icons": "^0.22.0",