@forge/migrations 0.1.10-next.0 → 0.1.10-next.1-experimental-3fb944e

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,24 @@
1
1
  # @forge/migrations
2
2
 
3
+ ## 0.1.10-next.1-experimental-3fb944e
4
+
5
+ ### Patch Changes
6
+
7
+ - 4acdb01: Support migrations API on Node runtime
8
+ - Updated dependencies [4acdb01]
9
+ - Updated dependencies [8577200]
10
+ - Updated dependencies [0195732]
11
+ - @forge/api@2.13.0-next.1-experimental-3fb944e
12
+
13
+ ## 0.1.10-next.1
14
+
15
+ ### Patch Changes
16
+
17
+ - 4acdb01c: Support migrations API on Node runtime
18
+ - Updated dependencies [4acdb01c]
19
+ - Updated dependencies [0195732c]
20
+ - @forge/api@2.13.0-next.1
21
+
3
22
  ## 0.1.10-next.0
4
23
 
5
24
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/migration/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAGzC,wBAAsB,eAAe,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,CAazE;AAED,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,WAAW,CAAC,CAQnF;AAED,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAEpE"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/migration/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA8B,MAAM,YAAY,CAAC;AAGrE,wBAAsB,eAAe,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,CAazE;AAED,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,WAAW,CAAC,CAQnF;AAED,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAEpE"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.invokeGETApi = exports.invokePOSTApi = exports.getResponseBody = void 0;
4
+ const api_1 = require("@forge/api");
4
5
  const errors_1 = require("./errors");
5
6
  async function getResponseBody(response) {
6
7
  if (response.status !== 200) {
@@ -18,7 +19,7 @@ async function getResponseBody(response) {
18
19
  }
19
20
  exports.getResponseBody = getResponseBody;
20
21
  async function invokePOSTApi(url, payload) {
21
- return global.api.asApp().__requestAtlassian(url, {
22
+ return (0, api_1.createRequestStargateAsApp)()(url, {
22
23
  method: 'POST',
23
24
  headers: {
24
25
  'content-type': 'application/json'
@@ -28,6 +29,6 @@ async function invokePOSTApi(url, payload) {
28
29
  }
29
30
  exports.invokePOSTApi = invokePOSTApi;
30
31
  async function invokeGETApi(url) {
31
- return global.api.asApp().__requestAtlassian(url);
32
+ return (0, api_1.createRequestStargateAsApp)()(url);
32
33
  }
33
34
  exports.invokeGETApi = invokeGETApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/migrations",
3
- "version": "0.1.10-next.0",
3
+ "version": "0.1.10-next.1-experimental-3fb944e",
4
4
  "description": "App migration methods for Forge app",
5
5
  "main": "out/index.js",
6
6
  "scripts": {
@@ -18,6 +18,6 @@
18
18
  "node-fetch": "2.6.7"
19
19
  },
20
20
  "dependencies": {
21
- "@forge/api": "2.13.0-next.0"
21
+ "@forge/api": "2.13.0-next.1-experimental-3fb944e"
22
22
  }
23
23
  }