@stacksjs/rpx 0.4.1 → 0.5.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/config.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- import type { ReverseProxyConfigs } from './types';
1
+ import type { ReverseProxyConfig } from './types';
2
2
 
3
- export declare const config: ReverseProxyConfigs;
3
+ export declare const defaultConfig: ReverseProxyConfig;
4
+ export declare const config: ReverseProxyConfig;
package/dist/hosts.d.ts CHANGED
@@ -1,5 +1,6 @@
1
+ declare const execAsync: unknown;
1
2
  export declare const hostsFilePath: string;
2
- declare function sudoWrite(operation: 'append' | 'write', content: string): Promise<void>;
3
+ declare function execSudo(command: string): Promise<void>;
3
4
  export declare function addHosts(hosts: string[], verbose?: boolean): Promise<void>;
4
5
  export declare function removeHosts(hosts: string[], verbose?: boolean): Promise<void>;
5
6
  export declare function checkHosts(hosts: string[], verbose?: boolean): Promise<boolean[]>;
package/dist/https.d.ts CHANGED
@@ -1,9 +1,11 @@
1
- import type { ReverseProxyConfigs, TlsConfig } from './types';
1
+ import type { ReverseProxyConfigs, ReverseProxyOption, ReverseProxyOptions, TlsConfig } from './types';
2
2
 
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;
3
+ export declare function resolveSSLPaths(options: ReverseProxyConfigs, defaultConfig: typeof config): TlsConfig;
4
+ export declare function generateWildcardPatterns(domain: string): string[];
5
+ export declare function generateSSLPaths(options?: ReverseProxyOptions): void;
6
+ export declare function getAllDomains(options: ReverseProxyOption | ReverseProxyOptions): Set<string>;
7
+ export declare function loadSSLConfig(options: ReverseProxyOption): Promise<SSLConfig | null>;
8
+ export declare function generateCertificate(options: ReverseProxyOptions): Promise<void>;
9
+ export declare function getSSLConfig(): void;
10
+ export declare function checkExistingCertificates(options?: ReverseProxyOptions): Promise<SSLConfig | null>;
11
+ export declare function httpsConfig(options: ReverseProxyOption | ReverseProxyOptions, verbose?: boolean): TlsConfig;