@forge/cli
13.3.013.4.0-next.1-experimental-0b00ed8
out/command-line/dependency-injection.js~
out/command-line/dependency-injection.jsModified+2−3
Index: package/out/command-line/dependency-injection.js
===================================================================
--- package/out/command-line/dependency-injection.js
+++ package/out/command-line/dependency-injection.js
@@ -1,9 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDependencies = void 0;
const tslib_1 = require("tslib");
-const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
const bundler_1 = require("@forge/bundler");
const cli_shared_1 = require("@forge/cli-shared");
const tunnel_1 = require("@forge/tunnel");
const tunnel_2 = require("@forge/tunnel");
@@ -158,9 +157,9 @@
const deleteEnvironmentCommand = new delete_environment_1.DeleteEnvironmentCommand(environmentClient, assertiveAppConfigReader);
const migrationKeysClient = new graphql_client_2.GraphqlClient(graphQLClient);
const migrationKeysService = new migration_keys_service_1.MigrationKeysService(migrationKeysClient, assertiveAppConfigReader);
const appEnvironmentClient = new cli_shared_1.AppEnvironmentsGraphqlClient(graphQLClient);
- const globalEdgeFetchClient = { fetch: node_fetch_1.default };
+ const globalEdgeFetchClient = { fetch };
const globalEdgeClient = new cli_shared_1.GlobalEdgeHttpClient(globalEdgeFetchClient);
const logsClient = new cli_shared_1.LogsGraphQLClient(graphQLClient);
const viewAppLogsCommand = new cli_shared_1.ViewAppLogsCommand(assertiveAppConfigReader, appEnvironmentClient, globalEdgeClient, logsClient, statsigService);
const appOauthClientGraphql = new cli_shared_1.AppOauthClientGraphqlClient(graphQLClient);
@@ -174,9 +173,9 @@
const installAppSiteCommand = new install_app_site_1.InstallAppSiteCommand(assertiveAppConfigReader, installationsClient);
const uninstallAppCommand = new uninstall_app_1.UninstallAppCommand(assertiveAppConfigReader, installationsClient);
const deployMonitorClient = new deploy_1.DeployMonitorGraphqlClient(graphQLClient);
const webTriggerGraphqlClient = new graphql_client_7.WebTriggerGraphQLClient(graphQLClient);
- const archiverFactory = () => (0, deploy_1.makeArchiver)(ui);
+ const archiverFactory = (options) => (0, deploy_1.makeArchiver)({ logger: ui, ...options });
const uploaderArtifactClient = new deploy_1.ArtifactGraphQLClient(graphQLClient);
const triggerDeployClient = new deploy_1.TriggerDeployGraphQLClient(graphQLClient);
const archiveUploader = new deploy_1.AppArchiveUploader(assertiveAppConfigReader, uploaderArtifactClient, fileUploader, ui, archiverFactory, fileReader, process.cwd(), new resources_uploader_service_1.ResourcesUploaderService(fileReader));
const deployer = new deploy_1.ArtifactDeployer(assertiveAppConfigReader, triggerDeployClient, deployMonitorClient, cli_shared_1.pause, ui);