@stacksjs/tunnel 0.70.86 → 0.70.88
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/package.json +1 -1
- package/dist/index.d.ts +0 -29
- package/dist/index.js +0 -2
- package/dist/tunnel.d.ts +0 -22
package/package.json
CHANGED
package/dist/index.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/// <reference path="./shims.d.ts" />
|
|
2
|
-
import { localTunnel } from './tunnel';
|
|
3
|
-
import type { LocalTunnel, TunnelOptions } from './tunnel';
|
|
4
|
-
export type { LocalTunnel, TunnelOptions };
|
|
5
|
-
export declare function createLocalTunnel(port: number): Promise<string>;
|
|
6
|
-
/**
|
|
7
|
-
* Deploy a tunnel server to AWS EC2.
|
|
8
|
-
* Only needed for custom domains — localtunnel.dev is the shared default.
|
|
9
|
-
*/
|
|
10
|
-
export declare function deployTunnelServer(config: {
|
|
11
|
-
domain: string
|
|
12
|
-
region?: string
|
|
13
|
-
instanceType?: string
|
|
14
|
-
prefix?: string
|
|
15
|
-
enableSsl?: boolean
|
|
16
|
-
porkbunApiKey?: string
|
|
17
|
-
porkbunSecretKey?: string
|
|
18
|
-
verbose?: boolean
|
|
19
|
-
}): Promise<void>;
|
|
20
|
-
/**
|
|
21
|
-
* Destroy a previously deployed tunnel server from AWS.
|
|
22
|
-
*/
|
|
23
|
-
export declare function destroyTunnelServer(config: {
|
|
24
|
-
domain?: string
|
|
25
|
-
region?: string
|
|
26
|
-
prefix?: string
|
|
27
|
-
verbose?: boolean
|
|
28
|
-
}): Promise<void>;
|
|
29
|
-
export { localTunnel };
|
package/dist/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var q=import.meta.require;import{startLocalTunnel as E}from"localtunnels";async function z(j){let b=j||{port:3000},B={port:b.port||3000,...b.server?{server:b.server}:{},...b.subdomain?{subdomain:b.subdomain}:{},...b.verbose!==void 0?{verbose:b.verbose}:{},...b.timeout?{timeout:b.timeout}:{},...b.maxReconnectAttempts?{maxReconnectAttempts:b.maxReconnectAttempts}:{},...b.onConnect?{onConnect:b.onConnect}:{},...b.onRequest?{onRequest:b.onRequest}:{},...b.onResponse?{onResponse:b.onResponse}:{},...b.onError?{onError:b.onError}:{},...b.onReconnecting?{onReconnecting:b.onReconnecting}:{}},k=await E(B);return{url:k.getTunnelUrl(),subdomain:k.getSubdomain(),client:k,close:()=>k.disconnect()}}async function M(j){return(await z({port:j})).url}async function N(j){let{deployTunnelInfrastructure:b}=await import("localtunnels/cloud");return b(j)}async function P(j){let{destroyTunnelInfrastructure:b}=await import("localtunnels/cloud");return b(j)}export{z as localTunnel,P as destroyTunnelServer,N as deployTunnelServer,M as createLocalTunnel};
|
package/dist/tunnel.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
}
|