@forge/api 2.20.0-next.4 → 2.20.0-next.6
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.20.0-next.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- cd1dbce: Throw an error instead of silently failing on failed set calls
|
|
8
|
+
|
|
9
|
+
## 2.20.0-next.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 5007b9f: Bumping dependencies via Renovate:
|
|
14
|
+
|
|
15
|
+
- nock
|
|
16
|
+
|
|
3
17
|
## 2.20.0-next.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confluence-versioned-storage.d.ts","sourceRoot":"","sources":["../../src/properties/confluence-versioned-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAGhE,qBAAa,0BAA2B,SAAQ,oBAAoB;cAClD,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"confluence-versioned-storage.d.ts","sourceRoot":"","sources":["../../src/properties/confluence-versioned-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAGhE,qBAAa,0BAA2B,SAAQ,oBAAoB;cAClD,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;YA0BtD,iBAAiB;CAUhC"}
|
|
@@ -17,7 +17,10 @@ class ConfluenceVersionedStorage extends product_scoped_storage_1.ProductScopedS
|
|
|
17
17
|
number: updatedVersionNumber
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
await this.apiClient(this.storageApiPath(key), this.buildSetRequestOptions(requestBody, requestMethod));
|
|
20
|
+
const response = await this.apiClient(this.storageApiPath(key), this.buildSetRequestOptions(requestBody, requestMethod));
|
|
21
|
+
if (!response.ok) {
|
|
22
|
+
throw storage_1.APIError.forStatus(response.status);
|
|
23
|
+
}
|
|
21
24
|
}
|
|
22
25
|
async getUpdatedVersion(versionResponse) {
|
|
23
26
|
if (!versionResponse.ok) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/api",
|
|
3
|
-
"version": "2.20.0-next.
|
|
3
|
+
"version": "2.20.0-next.6",
|
|
4
4
|
"description": "Forge API methods",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"compile": "tsc -b -v"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@forge/runtime": "5.1.4-next.
|
|
15
|
+
"@forge/runtime": "5.1.4-next.2",
|
|
16
16
|
"@types/node": "14.18.63",
|
|
17
17
|
"expect-type": "^0.17.3",
|
|
18
18
|
"jest-matcher-specific-error": "^1.0.0",
|
|
19
|
-
"nock": "13.3.
|
|
19
|
+
"nock": "13.3.7"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@forge/auth": "0.0.5",
|