npm package diff

Package: @forge/cli

Versions: 12.0.0-next.9 - 12.0.0-next.15

File: package/out/command-line/controller/tunnel-controller.js

Index: package/out/command-line/controller/tunnel-controller.js
===================================================================
--- package/out/command-line/controller/tunnel-controller.js
+++ package/out/command-line/controller/tunnel-controller.js
@@ -1,29 +1,24 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
 exports.TunnelController = void 0;
 const cli_shared_1 = require("@forge/cli-shared");
-const docker_service_1 = require("../../service/docker-service");
 const tunnel_service_1 = require("../../service/tunnel-service");
 class TunnelController {
-    analyticsService;
     nodeTunnelService;
-    dockerTunnelService;
     tunnelView;
     configFile;
     credentialStore;
-    constructor(analyticsService, nodeTunnelService, dockerTunnelService, tunnelView, configFile, credentialStore) {
-        this.analyticsService = analyticsService;
+    constructor(nodeTunnelService, tunnelView, configFile, credentialStore) {
         this.nodeTunnelService = nodeTunnelService;
-        this.dockerTunnelService = dockerTunnelService;
         this.tunnelView = tunnelView;
         this.configFile = configFile;
         this.credentialStore = credentialStore;
     }
     async run(tunnelOptions, ui) {
         const options = await this.validateTunnelCommandOptions(tunnelOptions);
         const creds = await this.credentialStore.getCredentials();
-        this.tunnelView.dockerPreamble(tunnelOptions.environment);
+        this.tunnelView.preamble(tunnelOptions.environment);
         const { modules } = await this.configFile.readConfig();
         if (modules) {
             const uiKit1Modules = (0, cli_shared_1.findUIKit1Modules)(modules);
             if (uiKit1Modules.length > 0) {
@@ -51,22 +46,7 @@
             options.debugStartingPort = port;
         }
         return options;
     }
-    async runDockerTunnel(tunnelOptions, creds, debugEnabled) {
-        try {
-            const imageDownloadChildProcess = await this.dockerTunnelService.bootstrapDocker();
-            if (imageDownloadChildProcess) {
-                await this.tunnelView.reportDownloadProgress(imageDownloadChildProcess, this.analyticsService.getImageDownloadReporters(creds));
-            }
-        }
-        catch (err) {
-            if (err.code === docker_service_1.DockerErrorCode.NOT_INSTALLED) {
-                this.analyticsService.reportDockerVersion(creds, null);
-                throw err;
-            }
-        }
-        await this.dockerTunnelService.run(tunnelOptions, creds, debugEnabled);
-    }
 }
 exports.TunnelController = TunnelController;
 //# sourceMappingURL=tunnel-controller.js.map
\ No newline at end of file