@adobe/helix-onedrive-support 10.7.0 → 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 CHANGED
@@ -1,3 +1,17 @@
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
+
8
+ ## [10.7.1](https://github.com/adobe/helix-onedrive-support/compare/v10.7.0...v10.7.1) (2023-09-16)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update dependency @adobe/helix-shared-tokencache to v1.3.8 ([48dc4d4](https://github.com/adobe/helix-onedrive-support/commit/48dc4d4afa0d2063184728d32c5f08f6ebe49968))
14
+
1
15
  # [10.7.0](https://github.com/adobe/helix-onedrive-support/compare/v10.6.5...v10.7.0) (2023-09-14)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-onedrive-support",
3
- "version": "10.7.0",
3
+ "version": "10.7.2",
4
4
  "description": "Helix OneDrive Support",
5
5
  "main": "src/index.js",
6
6
  "exports": {
@@ -28,7 +28,7 @@
28
28
  "homepage": "https://github.com/adobe/helix-onedrive-support#readme",
29
29
  "dependencies": {
30
30
  "@adobe/fetch": "4.1.0",
31
- "@adobe/helix-shared-tokencache": "1.3.7",
31
+ "@adobe/helix-shared-tokencache": "1.3.8",
32
32
  "@azure/msal-node": "2.1.0",
33
33
  "jose": "4.14.6"
34
34
  },
@@ -36,7 +36,7 @@
36
36
  "@adobe/eslint-config-helix": "2.0.3",
37
37
  "@semantic-release/changelog": "6.0.3",
38
38
  "@semantic-release/git": "10.0.1",
39
- "@aws-sdk/client-s3": "3.409.0",
39
+ "@aws-sdk/client-s3": "3.414.0",
40
40
  "ajv": "8.12.0",
41
41
  "c8": "8.0.1",
42
42
  "codecov": "3.8.3",
@@ -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": "21.1.1"
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
  }
@@ -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;