@stacksjs/rpx 0.7.1 → 0.8.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/README.md +13 -3
- package/dist/bin/cli.js +1 -2
- package/dist/{chunk-xt6fyy5z.js → chunk-kbhf94ag.js} +229 -229
- package/dist/https.d.ts +2 -1
- package/dist/src/index.js +1 -2
- package/dist/types.d.ts +8 -5
- package/dist/utils.d.ts +2 -1
- package/package.json +13 -8
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 @@
|
|
|
1
|
-
|
|
2
|
-
import{A,B as N,C as e,c as r,d as g,e as l,f as P,g as y,h as C,i as m,j as v,k as R,l as S,m as c,n as u,o as b,p as O,q as d,r as h,s as B,t as L,u as M,v as U,w as T,x as k,y as H,z as j}from"../chunk-xt6fyy5z.js";var f=e;export{H as startServer,N as startProxy,e as startProxies,A as startHttpRedirectServer,j as setupReverseProxy,b as resolveSSLPaths,c as removeHosts,B as loadSSLConfig,P as isValidRootCA,v as isSingleProxyOptions,m as isMultiProxyOptions,C as isMultiProxyConfig,T as httpsConfig,R as hostsFilePath,M as getSSLConfig,y as getPrimaryDomain,h as getAllDomains,O as generateWildcardPatterns,d as generateSSLPaths,L as generateCertificate,l as extractHostname,f as default,g as debugLog,r as config,k as cleanup,u as checkHosts,U as checkExistingCertificates,S as addHosts};
|
|
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};
|
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>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/rpx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.1",
|
|
5
5
|
"description": "A modern and smart reverse proxy.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"compile:windows-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-windows-x64 --outfile bin/rpx-windows-x64.exe",
|
|
46
46
|
"compile:darwin-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-x64 --outfile bin/rpx-darwin-x64",
|
|
47
47
|
"compile:darwin-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-arm64 --outfile bin/rpx-darwin-arm64",
|
|
48
|
-
"lint": "bunx eslint .",
|
|
49
|
-
"lint:fix": "bunx eslint . --fix",
|
|
48
|
+
"lint": "bunx --bun eslint --flag unstable_ts_config .",
|
|
49
|
+
"lint:fix": "bunx --bun eslint --flag unstable_ts_config . --fix",
|
|
50
50
|
"fresh": "bunx rimraf node_modules/ bun.lock && bun i",
|
|
51
51
|
"changelog": "bunx changelogen --output CHANGELOG.md",
|
|
52
52
|
"prepublishOnly": "bun --bun run build && bun run compile:all",
|
|
@@ -57,23 +57,28 @@
|
|
|
57
57
|
"build:docs": "bun --bun vitepress build docs",
|
|
58
58
|
"preview:docs": "bun --bun vitepress preview docs"
|
|
59
59
|
},
|
|
60
|
-
"dependencies": {
|
|
61
|
-
"@stacksjs/tlsx": "^0.8.5"
|
|
62
|
-
},
|
|
63
60
|
"devDependencies": {
|
|
61
|
+
"@iconify-json/carbon": "^1.2.5",
|
|
62
|
+
"@shikijs/vitepress-twoslash": "^1.24.2",
|
|
64
63
|
"@stacksjs/cli": "^0.68.2",
|
|
65
|
-
"@stacksjs/eslint-config": "^3.
|
|
64
|
+
"@stacksjs/eslint-config": "^3.12.0-beta.4",
|
|
66
65
|
"@stacksjs/storage": "^0.68.2",
|
|
66
|
+
"@stacksjs/tlsx": "^0.8.5",
|
|
67
67
|
"@types/bun": "^1.1.14",
|
|
68
|
+
"@vite-pwa/vitepress": "^0.5.3",
|
|
68
69
|
"bun-config": "^0.3.2",
|
|
69
70
|
"bun-plugin-dtsx": "^0.21.9",
|
|
70
71
|
"typescript": "^5.7.2",
|
|
72
|
+
"unocss": "0.61.0",
|
|
73
|
+
"unplugin-icons": "^0.22.0",
|
|
74
|
+
"unplugin-vue-components": "^0.28.0",
|
|
75
|
+
"vite-plugin-pwa": "^0.21.1",
|
|
71
76
|
"vitepress": "^1.5.0"
|
|
72
77
|
},
|
|
73
78
|
"simple-git-hooks": {
|
|
74
79
|
"pre-commit": "bunx lint-staged"
|
|
75
80
|
},
|
|
76
81
|
"lint-staged": {
|
|
77
|
-
"*.{js,ts}": "bunx eslint . --fix"
|
|
82
|
+
"*.{js,ts}": "bunx eslint --flag unstable_ts_config . --fix"
|
|
78
83
|
}
|
|
79
84
|
}
|