npm package diff
Package: @forge/cli
Versions: 12.0.0-next.9 - 12.0.0-next.15
File: package/out/service/tunnel-service.d.ts
Index: package/out/service/tunnel-service.d.ts
===================================================================
--- package/out/service/tunnel-service.d.ts
+++ package/out/service/tunnel-service.d.ts
@@ -1,13 +1,9 @@
-import { spawn } from 'cross-spawn';
-import { PersonalApiCredentials, PersonalApiCredentialsValidated, TunnelOptions, UI, UserError } from '@forge/cli-shared';
+import { PersonalApiCredentialsValidated, TunnelOptions, UI, UserError } from '@forge/cli-shared';
import { StartTunnelCommand, TunnelInteractor } from '@forge/tunnel';
import { CachedConfigService } from './cached-config-service';
-import { DockerService } from './docker-service';
import { ConfigFilePortFindingService } from './port-finding-service';
import { TunnelAnalyticsService } from './tunnel-analytics-service';
-export declare const CONTAINER_NAME: string;
-export declare const IMAGE_NAME: string;
export declare type TunnelService = {
run(tunnelOptions: TunnelOptions, creds: PersonalApiCredentialsValidated, debugEnabled: boolean, onError?: (err: Error) => Promise<void>): Promise<void>;
};
export declare class FunctionHandlersMustBeDefinedInDebugMode extends UserError {
@@ -32,37 +28,6 @@
private readonly analyticsService;
constructor(ui: UI, startTunnelCommand: StartTunnelCommand, tunnelInteractor: TunnelInteractor, configFilePortFindingService: ConfigFilePortFindingService, cachedConfigService: CachedConfigService, analyticsService: TunnelAnalyticsService);
run(tunnelOptions: TunnelOptions, creds: PersonalApiCredentialsValidated, debugEnabled: boolean, onError?: (err: Error) => Promise<void>): Promise<void>;
}
-interface EnvironmentVariable {
- key: string;
- value: string;
-}
-declare abstract class SandboxTunnelServiceBase extends TunnelServiceBase {
- protected readonly configFilePortFindingService: ConfigFilePortFindingService;
- protected readonly cachedConfigService: CachedConfigService;
- constructor(configFilePortFindingService: ConfigFilePortFindingService, cachedConfigService: CachedConfigService);
- getTunnelProcessEnvironment(tunnelOptions: TunnelOptions, debugEnabled: boolean, { email, token }: PersonalApiCredentials, port: number, cspReporterPort: number | undefined, resourcePorts: Record<string, number>): Promise<EnvironmentVariable[]>;
- private getInspectorPortEnvironment;
- private getCspReporterPortEnvironment;
- private getResourcePortEnvironment;
- private getUserEnvironmentVariables;
-}
-export declare class LocalTunnelService extends SandboxTunnelServiceBase {
- run(tunnelOptions: TunnelOptions, creds: PersonalApiCredentialsValidated, debugEnabled: boolean, onError?: (err: Error) => Promise<void>): Promise<void>;
- private formatEnvForLocalTunnel;
-}
-export declare class DockerTunnelService extends SandboxTunnelServiceBase {
- private readonly dockerService;
- private readonly analyticsService;
- constructor(configFilePortFindingService: ConfigFilePortFindingService, cachedConfigService: CachedConfigService, dockerService: DockerService, analyticsService: TunnelAnalyticsService);
- run(tunnelOptions: TunnelOptions, creds: PersonalApiCredentialsValidated, debugEnabled: boolean): Promise<void>;
- bootstrapDocker(): Promise<ReturnType<typeof spawn> | undefined>;
- private validateDockerVersion;
- private getDockerPortOptions;
- private formatEnvForDocker;
- private getInteractiveOptions;
- private getVolumeOptions;
- private getCommonOptions;
-}
export {};
//# sourceMappingURL=tunnel-service.d.ts.map
\ No newline at end of file