@adobe/helix-onedrive-support 10.7.1 → 10.7.2
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 +7 -0
- package/package.json +2 -2
- package/src/OneDrive.js +1 -1
- package/src/StatusCodeError.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [10.7.2](https://github.com/adobe/helix-onedrive-support/compare/v10.7.1...v10.7.2) (2023-09-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* propagate ratelimit on errors ([#440](https://github.com/adobe/helix-onedrive-support/issues/440)) ([1adb124](https://github.com/adobe/helix-onedrive-support/commit/1adb124d301da573e17e0ae04e1f5ccfdfa118e3))
|
|
7
|
+
|
|
1
8
|
## [10.7.1](https://github.com/adobe/helix-onedrive-support/compare/v10.7.0...v10.7.1) (2023-09-16)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-onedrive-support",
|
|
3
|
-
"version": "10.7.
|
|
3
|
+
"version": "10.7.2",
|
|
4
4
|
"description": "Helix OneDrive Support",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"mocha-multi-reporters": "1.5.1",
|
|
55
55
|
"nock": "13.3.3",
|
|
56
56
|
"npm": "10.1.0",
|
|
57
|
-
"semantic-release": "
|
|
57
|
+
"semantic-release": "22.0.0"
|
|
58
58
|
},
|
|
59
59
|
"lint-staged": {
|
|
60
60
|
"*.js": "eslint"
|
package/src/OneDrive.js
CHANGED
|
@@ -158,7 +158,7 @@ export class OneDrive {
|
|
|
158
158
|
// try to parse json
|
|
159
159
|
err = StatusCodeError.fromErrorResponse(JSON.parse(text), resp.status, rateLimit);
|
|
160
160
|
} catch {
|
|
161
|
-
err = new StatusCodeError(text, resp.status);
|
|
161
|
+
err = new StatusCodeError(text, resp.status, null, rateLimit);
|
|
162
162
|
}
|
|
163
163
|
throw err;
|
|
164
164
|
}
|
package/src/StatusCodeError.js
CHANGED
|
@@ -59,7 +59,7 @@ export class StatusCodeError extends Error {
|
|
|
59
59
|
* @param {object} details underlying error
|
|
60
60
|
* @param {RateLimit} rateLimit rate limit or null
|
|
61
61
|
*/
|
|
62
|
-
constructor(msg, statusCode, details, rateLimit) {
|
|
62
|
+
constructor(msg, statusCode, details = null, rateLimit = null) {
|
|
63
63
|
super(msg?.value ?? msg);
|
|
64
64
|
this.statusCode = statusCode;
|
|
65
65
|
this.details = details;
|