@forge/api 2.9.1-next.2 → 2.9.2-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @forge/api
2
2
 
3
+ ## 2.9.2-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - ca8551dd: Fix proxy fetch not respecting requestInit options
8
+
9
+ ## 2.9.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 73b929a: Export routeFromAbsolute
14
+ - 8d0dc10: Use a single global to pass information from the runtime
15
+ - 7a4fa35: Support internet egress calls in the new runtime
16
+
3
17
  ## 2.9.1-next.2
4
18
 
5
19
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/api/fetch.ts"],"names":[],"mappings":";AAAA,OAAc,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAoB,MAAM,YAAY,CAAC;AACzF,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;AAK9B,aAAK,aAAa,GAAG,CAAC,GAAG,EAAE,WAAW,GAAG,GAAG,EAAE,OAAO,EAAE,WAAW,GAAG,SAAS,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;AAErG,eAAO,MAAM,gBAAgB,aACjB,KAAK,GAAG,MAAM,GAAG,SAAS,UAC5B,MAAM,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,KACvD,aAiBF,CAAC;AAuBF,wBAAgB,iBAAiB,IAAI,QAAQ,CAoB5C;AAED,wBAAgB,oBAAoB,IAAI,QAAQ,GAAG,IAAI,CAOtD"}
1
+ {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/api/fetch.ts"],"names":[],"mappings":";AAAA,OAAc,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAW,MAAM,YAAY,CAAC;AAChF,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;AAK9B,aAAK,aAAa,GAAG,CAAC,GAAG,EAAE,WAAW,GAAG,GAAG,EAAE,OAAO,EAAE,WAAW,GAAG,SAAS,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;AAErG,eAAO,MAAM,gBAAgB,aACjB,KAAK,GAAG,MAAM,GAAG,SAAS,UAC5B,MAAM,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,KACvD,aAWF,CAAC;AAuBF,wBAAgB,iBAAiB,IAAI,QAAQ,CAoB5C;AAED,wBAAgB,oBAAoB,IAAI,QAAQ,GAAG,IAAI,CAOtD"}
package/out/api/fetch.js CHANGED
@@ -11,10 +11,9 @@ const createProxyFetch = (provider, remote) => {
11
11
  return (url, options) => {
12
12
  const { proxy } = (0, runtime_1.getRuntime)();
13
13
  const request = new node_fetch_1.Request(url, options);
14
- const headers = new node_fetch_1.Headers(request.headers);
15
- headers.set('Forge-Proxy-Target-Relative', request.url);
16
- headers.set('Forge-Proxy-Authorization', `Bearer ${proxy.token}`);
17
- const proxyRequest = new node_fetch_1.Request(`${proxy.url}/fpp/provider/${provider}/remote/${remote}`, Object.assign(Object.assign({}, request), { headers }));
14
+ const proxyRequest = new node_fetch_1.Request(`${proxy.url}/fpp/provider/${provider}/remote/${remote}`, request);
15
+ proxyRequest.headers.set('Forge-Proxy-Target-Relative', request.url);
16
+ proxyRequest.headers.set('Forge-Proxy-Authorization', `Bearer ${proxy.token}`);
18
17
  return (0, node_fetch_1.default)(proxyRequest);
19
18
  };
20
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/api",
3
- "version": "2.9.1-next.2",
3
+ "version": "2.9.2-next.0",
4
4
  "description": "Forge API methods",
5
5
  "author": "Atlassian",
6
6
  "license": "UNLICENSED",