@stacksjs/rpx 0.3.1 → 0.4.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 +39 -5
- package/dist/cli.js +1006 -639
- package/dist/config.d.ts +2 -2
- package/dist/hosts.d.ts +3 -3
- package/dist/https.d.ts +8 -3
- package/dist/index.d.ts +7 -1
- package/dist/index.js +1402 -1024
- package/dist/start.d.ts +7 -6
- package/dist/types.d.ts +50 -7
- package/dist/utils.d.ts +4 -4
- package/package.json +6 -6
package/dist/config.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ReverseProxyConfigs } from './types';
|
|
2
2
|
|
|
3
|
-
export declare const config:
|
|
3
|
+
export declare const config: ReverseProxyConfigs;
|
package/dist/hosts.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const hostsFilePath: string;
|
|
2
2
|
declare function sudoWrite(operation: 'append' | 'write', content: string): Promise<void>;
|
|
3
|
-
export declare function addHosts(hosts: string[]): Promise<void>;
|
|
4
|
-
export declare function removeHosts(hosts: string[]): Promise<void>;
|
|
5
|
-
export declare function checkHosts(hosts: string[]): Promise<boolean[]>;
|
|
3
|
+
export declare function addHosts(hosts: string[], verbose?: boolean): Promise<void>;
|
|
4
|
+
export declare function removeHosts(hosts: string[], verbose?: boolean): Promise<void>;
|
|
5
|
+
export declare function checkHosts(hosts: string[], verbose?: boolean): Promise<boolean[]>;
|
package/dist/https.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import type { TlsConfig } from '
|
|
1
|
+
import type { ReverseProxyConfigs, TlsConfig } from './types';
|
|
2
2
|
|
|
3
|
-
export declare function
|
|
4
|
-
|
|
3
|
+
export declare function isMultiProxyConfig(options: ReverseProxyConfigs): options is MultiReverseProxyConfig;
|
|
4
|
+
declare function generateWildcardPatterns(domain: string): string[];
|
|
5
|
+
declare function generateBaseConfig(options: ReverseProxyConfigs, verbose?: boolean): TlsConfig;
|
|
6
|
+
declare function generateRootCAConfig(verbose: boolean): TlsConfig;
|
|
7
|
+
export declare function httpsConfig(options: ReverseProxyConfigs): TlsConfig;
|
|
8
|
+
export declare function generateCertificate(options: ReverseProxyConfigs): Promise<void>;
|
|
9
|
+
export declare function getSSLConfig(): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
import { startProxies } from './start';
|
|
2
|
+
|
|
3
|
+
|
|
1
4
|
export { config } from './config'
|
|
5
|
+
|
|
2
6
|
export * from './hosts'
|
|
3
7
|
export * from './https'
|
|
4
8
|
export * from './start'
|
|
5
9
|
export * from './types'
|
|
6
|
-
export * from './utils'
|
|
10
|
+
export * from './utils'
|
|
11
|
+
|
|
12
|
+
export default startProxies;
|