npm package diff

Package: @forge/sandbox-runtime

Versions: 4.18.2-next.1 - 4.18.2-next.2

Modified: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;
         }
@@ -243,9 +243,9 @@
         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()));

Modified:package/package.json

Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@forge/sandbox-runtime",
-  "version": "4.18.2-next.1",
+  "version": "4.18.2-next.2",
   "description": "A Node.js runtime for Atlassian app functions",
   "author": "Atlassian",
   "license": "UNLICENSED",
   "main": "out/index.js",
@@ -12,9 +12,9 @@
     "compile": "tsc -b -v",
     "test": "jest"
   },
   "devDependencies": {
-    "@forge/bundler": "4.17.5-next.0",
+    "@forge/bundler": "4.17.5-next.1",
     "@types/jest": "^29.5.12",
     "@types/node": "14.18.63",
     "@types/node-fetch": "^2.6.11",
     "@types/ws": "^7.4.7",

Modified:package/out/sandbox-isolate/api/fetch/index.d.ts.map

Index: package/out/sandbox-isolate/api/fetch/index.d.ts.map
===================================================================
--- package/out/sandbox-isolate/api/fetch/index.d.ts.map
+++ package/out/sandbox-isolate/api/fetch/index.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sandbox-isolate/api/fetch/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAc,EAAc,WAAW,EAAY,MAAM,YAAY,CAAC;AACtE,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,OAAO,EACL,iBAAiB,EAOjB,gBAAgB,EAEjB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AASlF,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAO9C,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,GAAG,mBAAmB,GAAG,YAAY,CAAC;IAChG,YAAY,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9G,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,mCAAmC,iCAAiC,CAAC;AAClF,eAAO,MAAM,0BAA0B,gBAAgB,CAAC;AAOxD,qBAAa,mBAAoB,YAAW,aAAa;IAE9C,OAAO,EAAE,iBAAiB;IACjC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,gB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AE,YAAW,qBAAqB,CAAC,mBAAmB,CAAC;IAC3G,MAAM,CACX,OAAO,EAAE,iBAAiB,EAC1B,MAAM,EAAE,iBAAiB,EACzB,gBAAgB,EAAE,gBAAgB,GACjC,mBAAmB;CAGvB"}
\ No newline at end of file

Modified:package/CHANGELOG.md

Index: package/CHANGELOG.md
===================================================================
--- package/CHANGELOG.md
+++ package/CHANGELOG.md
@@ -1,6 +1,12 @@
 # @forge/sandbox-runtime
 
+## 4.18.2-next.2
+
+### Patch Changes
+
+- c9077a2: Rename function getEnvironment to getEnvironmentConfig
+
 ## 4.18.2-next.1
 
 ### Patch Changes

Modified:package/out/sandbox-isolate/api/fetch/index.d.ts

Index: package/out/sandbox-isolate/api/fetch/index.d.ts
===================================================================
--- package/out/sandbox-isolate/api/fetch/index.d.ts
+++ package/out/sandbox-isolate/api/fetch/index.d.ts
@@ -29,9 +29,9 @@
     private isProductSupportedByProxy;
     private getProxyParams;
     private setupProductAuthHeader;
     private buildProductUrl;
-    private getEnvironment;
+    private getEnvironmentConfig;
     wrappedFetch(ctx?: WrappedFetchContext): wrap.FetchFunction;
 }
 export declare class IsolateSafeFetchProvider<T extends RequestScoped> implements RequestScopedProvider<IsolateSafeFetchAPI> {
     create(request: InvocationRequest, logger: IsolateSafeLogger, metricsCollector: MetricsCollector): IsolateSafeFetchAPI;