@adobe/helix-onedrive-support 11.5.0 → 11.5.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
+ ## [11.5.2](https://github.com/adobe/helix-onedrive-support/compare/v11.5.1...v11.5.2) (2024-07-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependency @adobe/helix-shared-tokencache to v1.4.18 ([#556](https://github.com/adobe/helix-onedrive-support/issues/556)) ([2ef6288](https://github.com/adobe/helix-onedrive-support/commit/2ef628826936416a5ade1b1abf33e591e74e8c97))
7
+
8
+ ## [11.5.1](https://github.com/adobe/helix-onedrive-support/compare/v11.5.0...v11.5.1) (2024-07-09)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * cachePlugin might be undefined ([#557](https://github.com/adobe/helix-onedrive-support/issues/557)) ([2a1d94f](https://github.com/adobe/helix-onedrive-support/commit/2a1d94f3c572d98eca24ae4472e6ae5f262c2541))
14
+
1
15
  # [11.5.0](https://github.com/adobe/helix-onedrive-support/compare/v11.4.1...v11.5.0) (2024-07-09)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-onedrive-support",
3
- "version": "11.5.0",
3
+ "version": "11.5.2",
4
4
  "description": "Helix OneDrive Support",
5
5
  "main": "src/index.js",
6
6
  "exports": {
@@ -29,7 +29,7 @@
29
29
  "homepage": "https://github.com/adobe/helix-onedrive-support#readme",
30
30
  "dependencies": {
31
31
  "@adobe/fetch": "4.1.8",
32
- "@adobe/helix-shared-tokencache": "1.4.17",
32
+ "@adobe/helix-shared-tokencache": "1.4.18",
33
33
  "@azure/msal-node": "2.10.0",
34
34
  "jose": "5.6.3"
35
35
  },
@@ -134,7 +134,7 @@ export class OneDriveAuth {
134
134
  if (!this._app) {
135
135
  const { log, cachePlugin } = this;
136
136
 
137
- const metadata = await cachePlugin.getPluginMetadata();
137
+ const metadata = await cachePlugin?.getPluginMetadata();
138
138
  if (metadata?.useClientCredentials) {
139
139
  this.pluginUseClientCredentials = true;
140
140
  }
@@ -302,7 +302,7 @@ export class OneDriveAuth {
302
302
  const { log } = this;
303
303
  const msg = `Error while reacquiring token from cache${forced ? ' (forced)' : ''}.`;
304
304
 
305
- log.warn(`${msg}\nUsername: ${account.username}\nAuth-Location: ${this.cachePlugin.location}\nMessage: ${e.message}`);
305
+ log.warn(`${msg}\nUsername: ${account.username}\nAuth-Location: ${this.cachePlugin?.location}\nMessage: ${e.message}`);
306
306
  }
307
307
 
308
308
  /**