@stacksjs/rpx 0.7.1 → 0.8.0
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/README.md +13 -3
- package/dist/bin/cli.js +1 -1
- package/dist/{chunk-xt6fyy5z.js → chunk-dfsxt9xp.js} +229 -229
- package/dist/https.d.ts +2 -1
- package/dist/src/index.js +1 -1
- package/dist/types.d.ts +8 -5
- package/dist/utils.d.ts +2 -1
- package/package.json +1 -1
package/dist/https.d.ts
CHANGED
|
@@ -8,4 +8,5 @@ export declare function loadSSLConfig(options: ReverseProxyOption): Promise<SSLC
|
|
|
8
8
|
export declare function generateCertificate(options: ReverseProxyOptions): Promise<void>;
|
|
9
9
|
export declare function getSSLConfig(): void;
|
|
10
10
|
export declare function checkExistingCertificates(options?: ReverseProxyOptions): Promise<SSLConfig | null>;
|
|
11
|
-
export declare function httpsConfig(options: ReverseProxyOption | ReverseProxyOptions, verbose?: boolean): TlsConfig;
|
|
11
|
+
export declare function httpsConfig(options: ReverseProxyOption | ReverseProxyOptions, verbose?: boolean): TlsConfig;
|
|
12
|
+
export declare function cleanupCertificates(domain: string, verbose?: boolean): Promise<void>;
|
package/dist/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{A,B as
|
|
2
|
+
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-dfsxt9xp.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/types.d.ts
CHANGED
|
@@ -8,15 +8,18 @@ export declare interface BaseReverseProxyConfig {
|
|
|
8
8
|
}
|
|
9
9
|
export declare type BaseReverseProxyOptions = Partial<BaseReverseProxyConfig>
|
|
10
10
|
|
|
11
|
-
export interface
|
|
12
|
-
domains
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
export interface CleanupConfig {
|
|
12
|
+
domains: string[]
|
|
13
|
+
hosts: boolean
|
|
14
|
+
certs: boolean
|
|
15
|
+
verbose: boolean
|
|
15
16
|
}
|
|
16
17
|
|
|
18
|
+
export type CleanupOptions = Partial<CleanupConfig>
|
|
19
|
+
|
|
17
20
|
export interface SharedProxyConfig {
|
|
18
21
|
https: boolean | TlsOption
|
|
19
|
-
|
|
22
|
+
cleanup: boolean | CleanupOptions
|
|
20
23
|
vitePluginUsage: boolean
|
|
21
24
|
verbose: boolean
|
|
22
25
|
_cachedSSLConfig?: SSLConfig | null
|
package/dist/utils.d.ts
CHANGED
|
@@ -10,4 +10,5 @@ export declare function isValidRootCA(value: unknown): value is RootCA;
|
|
|
10
10
|
export declare function getPrimaryDomain(options?: ReverseProxyOption | ReverseProxyOptions): string;
|
|
11
11
|
export declare function isMultiProxyConfig(options: ReverseProxyConfigs): options is MultiReverseProxyConfig;
|
|
12
12
|
export declare function isMultiProxyOptions(options: ReverseProxyOption | ReverseProxyOptions): options is MultiReverseProxyConfig;
|
|
13
|
-
export declare function isSingleProxyOptions(options: ReverseProxyOption | ReverseProxyOptions): options is SingleReverseProxyConfig;
|
|
13
|
+
export declare function isSingleProxyOptions(options: ReverseProxyOption | ReverseProxyOptions): options is SingleReverseProxyConfig;
|
|
14
|
+
export declare function safeDeleteFile(filePath: string, verbose?: boolean): Promise<void>;
|