npm package diff
Package: @forge/sandbox-runtime
Versions: 4.18.0-experimental-10722bc - 4.18.4-next.1
File: package/out/sandbox-isolate/api/fetch/index.js
Index: package/out/sandbox-isolate/api/fetch/index.js
===================================================================
--- package/out/sandbox-isolate/api/fetch/index.js
+++ package/out/sandbox-isolate/api/fetch/index.js
@@ -190,9 +190,9 @@
if (ctx.product !== undefined) {
middleware.push((0, updateRestUrl_1.default)(ctx.product, this.request.getCloudId(), this.request.getWorkspaceId()));
}
};
- getEnvironment = () => {
+ getEnvironmentConfig = () => {
const baseUrl = process.env.ATLASSIAN_API_BASE_URL || '';
if (baseUrl.includes('.dev.')) {
return Environment.DEV;
}
@@ -236,16 +236,16 @@
contextAri: this.request.getContextAri(),
appId: this.request.getAppId(),
environmentId: this.request.getEnvironmentId(),
appVersion: this.request.getAppVersion()
- }, this.request.isFeatureFlagEnabled(runtime_1.XEN_RUNTIME_USE_CONTEXT_ARI_IN_QUEUE_PATHS)));
+ }));
}
middleware.push((0, redirectMiddleware_1.default)());
if (!ctx.product && this.request.isFeatureFlagEnabled(runtime_1.XEN_RUNTIME_EGRESS_DISCLOSURE_ENABLED)) {
const egressAllowList = this.request.getEgressAllowList() ?? [];
middleware.push((0, egress_filter_1.egressFilterMiddleware)(egressAllowList, this.request.isFeatureFlagEnabled(runtime_1.XEN_RUNTIME_SHOULD_BLOCK_EXTERNAL_FETCH), this.logger));
}
- if (!proxyParams && this.getEnvironment() === Environment.PROD) {
+ if (!proxyParams && this.getEnvironmentConfig() === Environment.PROD) {
middleware.push((0, blockPrivateIPMiddleware_1.default)());
}
if (ctx.product) {
middleware.push((0, tracing_1.default)(this.request.getTracing()));