npm package diff
Package: @forge/sandbox-tunnel
Versions: 4.2.3-next.0-experimental-10722bc - 4.3.1-next.13
File: package/out/index.js
Index: package/out/index.js
===================================================================
--- package/out/index.js
+++ package/out/index.js
@@ -25,20 +25,18 @@
const assertiveAppConfigReader = (0, cli_shared_1.assertiveAppConfigProvider)(appConfigReader);
const userRepository = new cli_shared_1.UserRepositoryImpl(createGraphQLClient, ui);
const credentialsGetter = (0, cli_shared_1.getCredentialStore)(ui, userRepository);
const authenticator = new cli_shared_1.PersonalTokenAuthenticator(credentialsGetter);
-const featureFlagService = new cli_shared_1.FeatureFlagService(ui, cliDetails, credentialsGetter, appConfigReader);
const graphQLClient = createGraphQLClient(authenticator);
const functionHost = new tunnel_1.LocalFunctionHost(configFile, ui, sandbox_runtime_1.snapshot, sandbox_runtime_1.initializeSandbox);
const localInvocationService = new tunnel_1.LocalInvocationService(configFile, ui, inspector);
const tunnelInteractor = new tunnel_1.TunnelInteractor(ui);
-const startTunnelCommand = new tunnel_1.StartTunnelCommand(assertiveAppConfigReader, new tunnel_1.LocalDevelopmentServer(localInvocationService, ui, configFile, fileReader), new tunnel_1.TunnelServiceFacade(featureFlagService, ui), new tunnel_1.RegisterTunnelServiceImpl(new tunnel_1.TunnelGraphqlClient(graphQLClient), featureFlagService), functionHost, inspector, ui, configFile);
+const startTunnelCommand = new tunnel_1.StartTunnelCommand(assertiveAppConfigReader, new tunnel_1.LocalDevelopmentServer(localInvocationService, ui, configFile, fileReader), new tunnel_1.CloudflareCreateTunnelService(ui), new tunnel_1.RegisterTunnelServiceImpl(new tunnel_1.TunnelGraphqlClient(graphQLClient)), functionHost, inspector, ui, configFile);
const runTunnel = async () => {
try {
const tunnel = await startTunnelCommand.execute({
host: process.env.FORGE_DEV_TUNNEL ? 'localhost' : 'host.docker.internal',
- environmentKey: process.env.ENVIRONMENT_KEY || 'default',
- ngrokConfig: process.env.NGROK_CONFIG
+ environmentKey: process.env.ENVIRONMENT_KEY || 'default'
});
const monitor = await tunnelInteractor.watchApp(tunnel);
const manifestFileWatcher = tunnelInteractor.watchAndWarnOnManifestChanges('manifest.yml');
await tunnelInteractor.handleUserExitEvent(tunnel.stopFunction, monitor, manifestFileWatcher);