@stacksjs/rpx 0.1.1 → 0.3.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 +3 -6
- package/dist/cli.js +432 -176
- package/dist/hosts.d.ts +5 -0
- package/dist/https.d.ts +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +451 -190
- package/dist/start.d.ts +1 -1
- package/dist/types.d.ts +2 -1
- package/package.json +2 -2
package/dist/start.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ProxySetupOptions, ReverseProxyOption, ReverseProxyOptions, SSLConfig } from './types';
|
|
2
2
|
|
|
3
3
|
declare const activeServers: Set<http.Server | https.Server>;
|
|
4
|
-
declare function cleanup(): void
|
|
4
|
+
export declare function cleanup(): Promise<void>;
|
|
5
5
|
declare function loadSSLConfig(options: ReverseProxyOption): Promise<SSLConfig | null>;
|
|
6
6
|
declare function isPortInUse(port: number, hostname: string, verbose?: boolean): Promise<boolean>;
|
|
7
7
|
declare function findAvailablePort(startPort: number, hostname: string, verbose?: boolean): Promise<number>;
|
package/dist/types.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ export type { TlsConfig };
|
|
|
4
4
|
export declare interface ReverseProxyConfig {
|
|
5
5
|
from: string
|
|
6
6
|
to: string
|
|
7
|
-
https: TlsConfig
|
|
7
|
+
https: boolean | TlsConfig
|
|
8
|
+
etcHostsCleanup: boolean
|
|
8
9
|
verbose: boolean
|
|
9
10
|
}
|
|
10
11
|
export declare type ReverseProxyOption = Partial<ReverseProxyConfig>
|
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.3.0",
|
|
5
5
|
"description": "A modern reverse proxy.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"preview:docs": "vitepress preview docs"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@stacksjs/tlsx": "^0.
|
|
64
|
+
"@stacksjs/tlsx": "^0.6.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@stacksjs/cli": "^0.68.2",
|