@adobe/helix-onedrive-support 12.1.7 → 12.2.1
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/.github/workflows/main.yaml +2 -2
- package/CHANGELOG.md +14 -0
- package/package.json +6 -6
- package/src/OneDriveAuth.js +5 -2
|
@@ -10,7 +10,7 @@ jobs:
|
|
|
10
10
|
name: Test
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
steps:
|
|
13
|
-
- uses: actions/checkout@
|
|
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@
|
|
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.1](https://github.com/adobe/helix-onedrive-support/compare/v12.2.0...v12.2.1) (2026-02-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update external fixes ([#717](https://github.com/adobe/helix-onedrive-support/issues/717)) ([04b50a0](https://github.com/adobe/helix-onedrive-support/commit/04b50a060d637e7bbb7680bb677d37f7ffc0d4ce))
|
|
7
|
+
|
|
8
|
+
# [12.2.0](https://github.com/adobe/helix-onedrive-support/compare/v12.1.7...v12.2.0) (2026-01-22)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **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))
|
|
14
|
+
|
|
1
15
|
## [12.1.7](https://github.com/adobe/helix-onedrive-support/compare/v12.1.6...v12.1.7) (2025-12-22)
|
|
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
|
|
3
|
+
"version": "12.2.1",
|
|
4
4
|
"description": "Helix OneDrive Support",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -30,13 +30,13 @@
|
|
|
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.
|
|
33
|
+
"@azure/msal-node": "3.8.6",
|
|
34
34
|
"jose": "6.1.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@adobe/eslint-config-helix": "3.0.
|
|
38
|
-
"@aws-sdk/client-s3": "3.
|
|
39
|
-
"@eslint/config-helpers": "0.5.
|
|
37
|
+
"@adobe/eslint-config-helix": "3.0.17",
|
|
38
|
+
"@aws-sdk/client-s3": "3.971.0",
|
|
39
|
+
"@eslint/config-helpers": "0.5.1",
|
|
40
40
|
"@semantic-release/changelog": "6.0.3",
|
|
41
41
|
"@semantic-release/git": "10.0.1",
|
|
42
42
|
"ajv": "8.17.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.
|
|
57
|
+
"npm": "11.7.0",
|
|
58
58
|
"semantic-release": "25.0.2"
|
|
59
59
|
},
|
|
60
60
|
"lint-staged": {
|
package/src/OneDriveAuth.js
CHANGED
|
@@ -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
|
/**
|