npm package diff
Package: @forge/tunnel
Versions: 5.3.3-next.0-experimental-10722bc - 5.5.0-next.13
File: package/out/services/create-tunnel-service.d.ts
Index: package/out/services/create-tunnel-service.d.ts
===================================================================
--- package/out/services/create-tunnel-service.d.ts
+++ package/out/services/create-tunnel-service.d.ts
@@ -1,49 +1,25 @@
/// <reference types="node" resolution-mode="require"/>
import { URL } from 'url';
-import { BaseError, FeatureFlagService, Logger } from '@forge/cli-shared';
-export declare type NgrokTunnelConfig = {
- tunnelConfigPath: string | undefined;
-};
+import { BaseError, Logger } from '@forge/cli-shared';
export declare type CloudflareTunnelConfig = {
token: string | null | undefined;
id: string | null | undefined;
tunnelUrl: string | null | undefined;
};
export declare type TunnelConfig = {
port: number;
-} & NgrokTunnelConfig & CloudflareTunnelConfig;
+} & CloudflareTunnelConfig;
export interface CreateTunnelService {
- establishTunnel({ port, tunnelConfigPath, token, id, tunnelUrl }: TunnelConfig): Promise<URL>;
+ establishTunnel({ port, token, id, tunnelUrl }: TunnelConfig): Promise<URL>;
closeTunnel(): Promise<void>;
}
-export declare const USER_NGROK_ERRORS: string[];
-export declare class NgrokError extends BaseError {
- constructor(message?: string);
- isUserError(): boolean;
-}
export declare class CloudflareError extends BaseError {
}
-export declare class TunnelServiceFacade implements CreateTunnelService {
- private readonly featureFlagService;
- private readonly logger;
- private instance;
- constructor(featureFlagService: FeatureFlagService, logger: Logger);
- private getInstance;
- establishTunnel({ port, tunnelConfigPath, id, token, tunnelUrl }: TunnelConfig): Promise<URL>;
- closeTunnel(): Promise<void>;
-}
export declare class CloudflareCreateTunnelService implements CreateTunnelService {
private readonly logger;
private stopFunction;
constructor(logger: Logger);
establishTunnel({ port, id, token, tunnelUrl }: TunnelConfig): Promise<URL>;
closeTunnel(): Promise<void>;
}
-export declare class NgrokCreateTunnelService implements CreateTunnelService {
- private readonly logger;
- private endpoint;
- constructor(logger: Logger);
- establishTunnel({ port, tunnelConfigPath }: TunnelConfig): Promise<URL>;
- closeTunnel(): Promise<void>;
-}
//# sourceMappingURL=create-tunnel-service.d.ts.map
\ No newline at end of file