@stacksjs/rpx 0.5.0 → 0.6.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/dist/start.d.ts CHANGED
@@ -6,7 +6,7 @@ declare function isPortInUse(port: number, hostname: string, verbose?: boolean):
6
6
  declare function findAvailablePort(startPort: number, hostname: string, verbose?: boolean): Promise<number>;
7
7
  declare function testConnection(hostname: string, port: number, verbose?: boolean): Promise<void>;
8
8
  export declare function startServer(options: SingleReverseProxyConfig): Promise<void>;
9
- declare function createProxyServer(from: string, to: string, fromPort: number, listenPort: number, hostname: string, sourceUrl: Pick<URL, 'hostname' | 'host'>, ssl: SSLConfig | null, verbose?: boolean): Promise<void>;
9
+ declare function createProxyServer(from: string, to: string, fromPort: number, listenPort: number, hostname: string, sourceUrl: Pick<URL, 'hostname' | 'host'>, ssl: SSLConfig | null, verbose?: boolean, cleanUrls?: boolean): Promise<void>;
10
10
  export declare function setupReverseProxy(options: ProxySetupOptions): Promise<void>;
11
11
  export declare function startHttpRedirectServer(verbose?: boolean): void;
12
12
  export declare function startProxy(options: ReverseProxyOption): void;
package/dist/types.d.ts CHANGED
@@ -4,6 +4,7 @@ export type { TlsConfig, TlsOption }
4
4
  export declare interface BaseReverseProxyConfig {
5
5
  from: string
6
6
  to: string
7
+ cleanUrls: boolean
7
8
  }
8
9
  export declare type BaseReverseProxyOptions = Partial<BaseReverseProxyConfig>
9
10
 
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ReverseProxyOption } from './types';
1
+ import type { ReverseProxyConfigs, ReverseProxyOption } from './types';
2
2
 
3
3
  export declare function debugLog(category: string, message: string, verbose?: boolean): void;
4
4
  export declare function extractHostname(options: ReverseProxyOption | ReverseProxyOptions): string[];
@@ -6,4 +6,8 @@ declare interface RootCA {
6
6
  certificate: string
7
7
  privateKey: string
8
8
  }
9
- export declare function isValidRootCA(value: unknown): value is RootCA;
9
+ export declare function isValidRootCA(value: unknown): value is RootCA;
10
+ export declare function getPrimaryDomain(options?: ReverseProxyOption | ReverseProxyOptions): string;
11
+ export declare function isMultiProxyConfig(options: ReverseProxyConfigs): options is MultiReverseProxyConfig;
12
+ export declare function isMultiProxyOptions(options: ReverseProxyOption | ReverseProxyOptions): options is MultiReverseProxyConfig;
13
+ export declare function isSingleProxyOptions(options: ReverseProxyOption | ReverseProxyOptions): options is SingleReverseProxyConfig;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/rpx",
3
3
  "type": "module",
4
- "version": "0.5.0",
4
+ "version": "0.6.0",
5
5
  "description": "A modern reverse proxy.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",