npm package diff
Package: @forge/cli-shared
Versions: 5.5.0-next.12 - 5.3.1-next.0-experimental-204139e
File: package/out/service/feature-flag-service.d.ts
Index: package/out/service/feature-flag-service.d.ts
===================================================================
--- package/out/service/feature-flag-service.d.ts
+++ package/out/service/feature-flag-service.d.ts
@@ -1,8 +1,8 @@
import { LDClient, LDContext, LDOptions } from 'launchdarkly-node-client-sdk';
import { CredentialGetter } from '../auth';
import { ConfigSectionReader } from '../config';
-import { getEnvironmentConfig } from '../graphql';
+import { getEnvironment } from '../graphql';
import { CLIDetails } from '../shared';
import { Logger } from '../ui';
declare type FeatureFlagType = {
'forge-cli-test-flag': 'apple' | 'banana' | 'orange' | 'watermelon';
@@ -15,8 +15,9 @@
export declare type FeatureFlag = keyof FeatureFlagType;
export declare abstract class FeatureFlagReader {
abstract readFlag<F extends FeatureFlag>(flag: F): Promise<FeatureFlagType[F] | null>;
isAtlasProductSupported(): Promise<boolean>;
+ isCloudflareTunnelEnabled(): Promise<boolean>;
shouldDisplayErrorsForHarmonizedApps(): Promise<boolean>;
shouldAllowAIModules(): Promise<boolean>;
}
declare type ILaunchDarkly = Pick<LDClient, 'variation' | 'waitUntilReady'>;
@@ -30,9 +31,9 @@
private readonly getEnvironmentFn;
private readonly initializeLD;
constructor(logger: Logger, cliDetails: Pick<CLIDetails, 'version'> | undefined, credentialStore: CredentialGetter, appConfigReader: ConfigSectionReader<{
id: string;
- }>, getEnvironmentFn?: typeof getEnvironmentConfig, initializeLD?: LaunchDarklyInitialize);
+ }>, getEnvironmentFn?: typeof getEnvironment, initializeLD?: LaunchDarklyInitialize);
private appID;
private context;
private client;
readFlag<F extends FeatureFlag>(flag: F): Promise<FeatureFlagType[F] | null>;