npm package diff

Package: @forge/cli

Versions: 11.3.1-next.8-experimental-98585b7 - 11.3.1

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

Index: package/out/command-line/controller/install-controller.js
===================================================================
--- package/out/command-line/controller/install-controller.js
+++ package/out/command-line/controller/install-controller.js
@@ -16,18 +16,16 @@
     installAppSiteCommand;
     installationService;
     installView;
     supportedProductsService;
-    statsigService;
-    constructor(appConfigProvider, configFile, ui, installAppSiteCommand, installationService, installView, supportedProductsService, statsigService) {
+    constructor(appConfigProvider, configFile, ui, installAppSiteCommand, installationService, installView, supportedProductsService) {
         this.appConfigProvider = appConfigProvider;
         this.configFile = configFile;
         this.ui = ui;
         this.installAppSiteCommand = installAppSiteCommand;
         this.installationService = installationService;
         this.installView = installView;
         this.supportedProductsService = supportedProductsService;
-        this.statsigService = statsigService;
     }
     async securityPrompt(site) {
         this.ui.info(cli_shared_1.Text.install.security.banner(site.host));
         let isTrustedApp = true;
@@ -218,20 +216,10 @@
         if (!scopesConfirmationResult)
             return;
         const successfulProducts = [];
         const failedProducts = [];
-        const isInstallationsWarningsEnabled = await this.statsigService.enableInstallationWarnings();
         for (const product of products) {
             try {
-                if (isInstallationsWarningsEnabled) {
-                    if (await this.shouldPreventDevAppInstall(site, product, environmentType)) {
-                        this.ui.warn(cli_shared_1.Text.install.devAppInstallWarning);
-                        if (!nonInteractive) {
-                            if (!(await this.ui.confirm(cli_shared_1.Text.install.devAppInstallConfirm)))
-                                return;
-                        }
-                    }
-                }
                 const isAlreadyUpdated = await this.installOrUpgrade(upgrade, environment, environmentType, site, product, id, text, validLicense, overrides);
                 if (isAlreadyUpdated) {
                     this.ui.info(cli_shared_1.Text.upgrade.alreadyUpdated.banner(environment, (0, cli_shared_1.productDisplayName)(product), site.host));
                 }
@@ -257,34 +245,8 @@
         if (failedProducts.length) {
             throw new cli_shared_1.PartialInstallationError(cli_shared_1.Text.error.partialInstallation(failedProducts));
         }
     }
-    getEntitlementOfferingName(entitlementOffering) {
-        if (!entitlementOffering)
-            return false;
-        if ('currentEdition' in entitlementOffering) {
-            return entitlementOffering.currentEdition?.toLowerCase();
-        }
-        else if ('offering' in entitlementOffering) {
-            return entitlementOffering.offering?.name?.toLowerCase();
-        }
-        return undefined;
-    }
-    async shouldPreventDevAppInstall(site, product, environmentType) {
-        try {
-            const entitlementOffering = await this.installationService.getEntitlementOfferingProduct(site, product);
-            const entitlementOfferingName = this.getEntitlementOfferingName(entitlementOffering);
-            if (!entitlementOfferingName)
-                return false;
-            const isProduction = environmentType === cli_shared_1.AppEnvironmentType.Production;
-            const isEntitlementOfferingString = typeof entitlementOffering === 'string';
-            const isFreeOrDeveloperOffering = entitlementOfferingName?.includes('free') || entitlementOfferingName?.includes('developer');
-            return !isProduction && !isEntitlementOfferingString && !isFreeOrDeveloperOffering;
-        }
-        catch (error) {
-            return false;
-        }
-    }
     extractManifestData = (manifestEgressEntries, permissions) => {
         const manifestEgressAddresses = (0, cli_shared_1.flatMap)(manifestEgressEntries, ({ domains }) => domains ?? []);
         const manifestScopes = new Set(permissions?.scopes ?? []);
         return { manifestEgressAddresses, manifestScopes };