npm package diff
Package: @forge/cli-shared
Versions: 5.5.0-next.12 - 5.3.1-next.0-experimental-204139e
File: package/out/graphql/gateway.js
Index: package/out/graphql/gateway.js
===================================================================
--- package/out/graphql/gateway.js
+++ package/out/graphql/gateway.js
@@ -1,7 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.isFedrampEnv = exports.getEnvironmentConfig = exports.CDNEnvironments = exports.Environments = exports.getGraphqlGateway = exports.DEFAULT_GRAPHQL_GATEWAY = void 0;
+exports.isFedrampEnv = exports.getEnvironment = exports.CDNEnvironments = exports.getGraphqlGateway = exports.DEFAULT_GRAPHQL_GATEWAY = void 0;
exports.DEFAULT_GRAPHQL_GATEWAY = 'https://api.atlassian.com/graphql';
const getGraphqlGateway = () => {
return process.env.FORGE_GRAPHQL_GATEWAY || exports.DEFAULT_GRAPHQL_GATEWAY;
};
@@ -12,18 +12,18 @@
Environments["STG"] = "staging";
Environments["PROD"] = "prod";
Environments["FEDRAMP_MODERATE_STAGING"] = "fedm_staging";
Environments["FEDRAMP_MODERATE_PROD"] = "fedm_prod";
-})(Environments = exports.Environments || (exports.Environments = {}));
+})(Environments || (Environments = {}));
var CDNEnvironments;
(function (CDNEnvironments) {
CDNEnvironments["DEV"] = "dev";
CDNEnvironments["STG"] = "stg";
CDNEnvironments["PROD"] = "prod";
CDNEnvironments["FEDRAMP_MODERATE_STAGING"] = "fedm_staging";
CDNEnvironments["FEDRAMP_MODERATE_PROD"] = "fedm_prod";
})(CDNEnvironments = exports.CDNEnvironments || (exports.CDNEnvironments = {}));
-const getEnvironmentConfig = (envOptions = Environments) => {
+const getEnvironment = (envOptions = Environments) => {
const graphqlGateway = (0, exports.getGraphqlGateway)();
if (graphqlGateway.includes('.dev.')) {
return envOptions.DEV;
}
@@ -37,11 +37,11 @@
return envOptions.FEDRAMP_MODERATE_PROD;
}
return envOptions.PROD;
};
-exports.getEnvironmentConfig = getEnvironmentConfig;
+exports.getEnvironment = getEnvironment;
const isFedrampEnv = () => {
- const currentEnvironment = (0, exports.getEnvironmentConfig)();
+ const currentEnvironment = (0, exports.getEnvironment)();
return (currentEnvironment === Environments.FEDRAMP_MODERATE_STAGING ||
currentEnvironment === Environments.FEDRAMP_MODERATE_PROD);
};
exports.isFedrampEnv = isFedrampEnv;