@stacksjs/tunnel 0.70.37 → 0.70.42

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.
@@ -0,0 +1,22 @@
1
+ /// <reference path="./shims.d.ts" />
2
+ import type { TunnelClient } from 'localtunnels';
3
+ export declare function localTunnel(options?: TunnelOptions | { port: number }): Promise<LocalTunnel>;
4
+ export declare interface TunnelOptions {
5
+ port: number
6
+ server?: string
7
+ subdomain?: string
8
+ verbose?: boolean
9
+ timeout?: number
10
+ maxReconnectAttempts?: number
11
+ onConnect?: (info: { url: string, subdomain: string }) => void
12
+ onRequest?: (req: { method: string, url: string }) => void
13
+ onResponse?: (res: { status: number, size: number, duration?: number }) => void
14
+ onError?: (error: Error) => void
15
+ onReconnecting?: (info: { attempt: number, delay: number }) => void
16
+ }
17
+ export declare interface LocalTunnel {
18
+ url: string
19
+ subdomain: string
20
+ client: TunnelClient
21
+ close: () => Promise<void>
22
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/tunnel",
3
3
  "type": "module",
4
- "version": "0.70.37",
4
+ "version": "0.70.42",
5
5
  "description": "Local development tunnel.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": [