@stacksjs/rpx 0.5.1 → 0.6.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/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/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@stacksjs/rpx",
3
3
  "type": "module",
4
- "version": "0.5.1",
4
+ "version": "0.6.1",
5
5
  "description": "A modern reverse proxy.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",
8
- "homepage": "https://github.com/stacksjs/rpx#readme",
8
+ "homepage": "https://github.com/stacksjs/rpx",
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/stacksjs/rpx.git"
@@ -56,9 +56,9 @@
56
56
  "release": "bun run changelog && bunx bumpp package.json --all",
57
57
  "test": "bun test",
58
58
  "typecheck": "bunx tsc --noEmit",
59
- "dev:docs": "vitepress dev docs",
60
- "build:docs": "vitepress build docs",
61
- "preview:docs": "vitepress preview docs"
59
+ "dev:docs": "bun --bun vitepress dev docs",
60
+ "build:docs": "bun --bun vitepress build docs",
61
+ "preview:docs": "bun --bun vitepress preview docs"
62
62
  },
63
63
  "dependencies": {
64
64
  "@stacksjs/tlsx": "^0.8.3"