@adobe/helix-onedrive-support 12.1.6 → 12.2.0

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.
@@ -10,7 +10,7 @@ jobs:
10
10
  name: Test
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
- - uses: actions/checkout@v5
13
+ - uses: actions/checkout@v6
14
14
  - name: Use Node.js 20.x
15
15
  uses: actions/setup-node@v6
16
16
  with:
@@ -38,7 +38,7 @@ jobs:
38
38
  pull-requests: write
39
39
  id-token: write # needed for npm trusted publishers with OIDC
40
40
  steps:
41
- - uses: actions/checkout@v5
41
+ - uses: actions/checkout@v6
42
42
  - name: Use Node.js 24.x
43
43
  uses: actions/setup-node@v6
44
44
  with:
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [12.2.0](https://github.com/adobe/helix-onedrive-support/compare/v12.1.7...v12.2.0) (2026-01-22)
2
+
3
+
4
+ ### Features
5
+
6
+ * **auth:** propragate MSAL error if an existing account failed to auth ([#714](https://github.com/adobe/helix-onedrive-support/issues/714)) ([4821134](https://github.com/adobe/helix-onedrive-support/commit/4821134101a4b3de151db84f35e3635166b83955))
7
+
8
+ ## [12.1.7](https://github.com/adobe/helix-onedrive-support/compare/v12.1.6...v12.1.7) (2025-12-22)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update external fixes ([#706](https://github.com/adobe/helix-onedrive-support/issues/706)) ([e69711e](https://github.com/adobe/helix-onedrive-support/commit/e69711e02835587706d950c752dc5e9d1f4124e6))
14
+
1
15
  ## [12.1.6](https://github.com/adobe/helix-onedrive-support/compare/v12.1.5...v12.1.6) (2025-12-18)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-onedrive-support",
3
- "version": "12.1.6",
3
+ "version": "12.2.0",
4
4
  "description": "Helix OneDrive Support",
5
5
  "main": "src/index.js",
6
6
  "exports": {
@@ -30,12 +30,12 @@
30
30
  "@adobe/fetch": "^4.1.10",
31
31
  "@adobe/helix-shared-string": "^2.1.0",
32
32
  "@adobe/helix-shared-tokencache": "^1.4.19",
33
- "@azure/msal-node": "3.8.3",
34
- "jose": "6.1.2"
33
+ "@azure/msal-node": "3.8.4",
34
+ "jose": "6.1.3"
35
35
  },
36
36
  "devDependencies": {
37
- "@adobe/eslint-config-helix": "3.0.15",
38
- "@aws-sdk/client-s3": "3.940.0",
37
+ "@adobe/eslint-config-helix": "3.0.16",
38
+ "@aws-sdk/client-s3": "3.962.0",
39
39
  "@eslint/config-helpers": "0.5.0",
40
40
  "@semantic-release/changelog": "6.0.3",
41
41
  "@semantic-release/git": "10.0.1",
@@ -54,7 +54,7 @@
54
54
  "mocha-multi-reporters": "1.5.1",
55
55
  "mocha-suppress-logs": "0.6.0",
56
56
  "nock": "13.5.6",
57
- "npm": "11.6.4",
57
+ "npm": "11.7.0",
58
58
  "semantic-release": "25.0.2"
59
59
  },
60
60
  "lint-staged": {
@@ -129,7 +129,7 @@ export class OneDriveAuth {
129
129
  /**
130
130
  * Gets the client application, creating it if necessary.
131
131
  *
132
- * @returns {import("@azure/msal-node").ClientApplication} client application
132
+ * @returns {Promise<import("@azure/msal-node").ClientApplication>} client application
133
133
  */
134
134
  async getApp() {
135
135
  if (!this._app) {
@@ -313,6 +313,7 @@ export class OneDriveAuth {
313
313
  */
314
314
  async doAuthenticate(silentOnly) {
315
315
  const { log } = this;
316
+ let msalError = null;
316
317
 
317
318
  const app = await this.getApp();
318
319
  let accounts = await app.getTokenCache().getAllAccounts();
@@ -323,6 +324,7 @@ export class OneDriveAuth {
323
324
  return await app.acquireTokenSilent({ account });
324
325
  } catch (e) {
325
326
  this.handleAcquireError(account, e);
327
+ msalError = e;
326
328
  }
327
329
 
328
330
  // try again with fresh mem cache
@@ -340,6 +342,7 @@ export class OneDriveAuth {
340
342
  });
341
343
  } catch (e) {
342
344
  this.handleAcquireError(account, e, true);
345
+ msalError = e;
343
346
  this.cachePlugin.clear();
344
347
  }
345
348
  }
@@ -373,7 +376,7 @@ export class OneDriveAuth {
373
376
  }
374
377
 
375
378
  const message = 'Unable to acquire token silently and no other acquire method supplied';
376
- throw new StatusCodeError(message, 401, { code: 'silentAcquireFailed', message });
379
+ throw new StatusCodeError(message, 401, { code: 'silentAcquireFailed', message, msalError });
377
380
  }
378
381
 
379
382
  /**