@adobe/helix-onedrive-support 12.0.20 → 12.0.22
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 +14 -0
- package/package.json +9 -9
- package/src/OneDrive.js +21 -3
- package/src/OneDriveAuth.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [12.0.22](https://github.com/adobe/helix-onedrive-support/compare/v12.0.21...v12.0.22) (2025-07-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update external fixes ([#665](https://github.com/adobe/helix-onedrive-support/issues/665)) ([ca3411d](https://github.com/adobe/helix-onedrive-support/commit/ca3411d2f5ebc9cdcdaa6bd2bf678005bf25f216))
|
|
7
|
+
|
|
8
|
+
## [12.0.21](https://github.com/adobe/helix-onedrive-support/compare/v12.0.20...v12.0.21) (2025-06-26)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* log JSON for call to graph API ([#664](https://github.com/adobe/helix-onedrive-support/issues/664)) ([3d0a44b](https://github.com/adobe/helix-onedrive-support/commit/3d0a44bf8ade5be3acd2d4dd1be590ff60ffc3fe))
|
|
14
|
+
|
|
1
15
|
## [12.0.20](https://github.com/adobe/helix-onedrive-support/compare/v12.0.19...v12.0.20) (2025-06-24)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-onedrive-support",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.22",
|
|
4
4
|
"description": "Helix OneDrive Support",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -30,19 +30,19 @@
|
|
|
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.6.
|
|
33
|
+
"@azure/msal-node": "3.6.2",
|
|
34
34
|
"jose": "6.0.11"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@adobe/eslint-config-helix": "3.0.
|
|
38
|
-
"@aws-sdk/client-s3": "3.
|
|
39
|
-
"@eslint/config-helpers": "0.
|
|
37
|
+
"@adobe/eslint-config-helix": "3.0.6",
|
|
38
|
+
"@aws-sdk/client-s3": "3.840.0",
|
|
39
|
+
"@eslint/config-helpers": "0.3.0",
|
|
40
40
|
"@semantic-release/changelog": "6.0.3",
|
|
41
41
|
"@semantic-release/git": "10.0.1",
|
|
42
42
|
"ajv": "8.17.1",
|
|
43
43
|
"c8": "10.1.3",
|
|
44
44
|
"chalk-template": "1.1.0",
|
|
45
|
-
"dotenv": "16.
|
|
45
|
+
"dotenv": "16.6.1",
|
|
46
46
|
"eslint": "9.4.0",
|
|
47
47
|
"husky": "9.1.7",
|
|
48
48
|
"install": "0.13.0",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"jsdoc-tsimport-plugin": "1.0.5",
|
|
51
51
|
"junit-report-builder": "5.1.1",
|
|
52
52
|
"lint-staged": "16.1.2",
|
|
53
|
-
"mocha": "11.7.
|
|
53
|
+
"mocha": "11.7.1",
|
|
54
54
|
"mocha-multi-reporters": "1.5.1",
|
|
55
|
-
"mocha-suppress-logs": "0.
|
|
55
|
+
"mocha-suppress-logs": "0.6.0",
|
|
56
56
|
"nock": "13.5.6",
|
|
57
57
|
"npm": "11.4.2",
|
|
58
|
-
"semantic-release": "24.2.
|
|
58
|
+
"semantic-release": "24.2.6"
|
|
59
59
|
},
|
|
60
60
|
"lint-staged": {
|
|
61
61
|
"*.js": "eslint"
|
package/src/OneDrive.js
CHANGED
|
@@ -159,7 +159,7 @@ export class OneDrive {
|
|
|
159
159
|
}
|
|
160
160
|
opts.headers.authorization = `Bearer ${accessToken}`;
|
|
161
161
|
|
|
162
|
-
const { log, auth: {
|
|
162
|
+
const { log, auth: { details, tenant } } = this;
|
|
163
163
|
const url = `https://graph.microsoft.com/v1.0${relUrl}`;
|
|
164
164
|
const method = opts.method || 'GET';
|
|
165
165
|
const start = Date.now();
|
|
@@ -168,9 +168,27 @@ export class OneDrive {
|
|
|
168
168
|
try {
|
|
169
169
|
const { fetch } = this.fetchContext;
|
|
170
170
|
resp = await fetch(url, opts);
|
|
171
|
-
log.info(
|
|
171
|
+
log.info('%j', {
|
|
172
|
+
onedrive: {
|
|
173
|
+
...details,
|
|
174
|
+
tenant,
|
|
175
|
+
method,
|
|
176
|
+
url: relUrl,
|
|
177
|
+
status: resp.status,
|
|
178
|
+
duration: Date.now() - start,
|
|
179
|
+
},
|
|
180
|
+
});
|
|
172
181
|
} catch (e) {
|
|
173
|
-
log.info(
|
|
182
|
+
log.info('%j', {
|
|
183
|
+
onedrive: {
|
|
184
|
+
...details,
|
|
185
|
+
tenant,
|
|
186
|
+
method,
|
|
187
|
+
url: relUrl,
|
|
188
|
+
error: e.message,
|
|
189
|
+
duration: Date.now() - start,
|
|
190
|
+
},
|
|
191
|
+
});
|
|
174
192
|
throw StatusCodeError.fromError(e);
|
|
175
193
|
}
|
|
176
194
|
|
package/src/OneDriveAuth.js
CHANGED
|
@@ -92,7 +92,8 @@ export class OneDriveAuth {
|
|
|
92
92
|
this.scopes = opts.scopes || DEFAULT_SCOPES;
|
|
93
93
|
this.onCode = opts.onCode;
|
|
94
94
|
this.acquireMethod = opts.acquireMethod || '';
|
|
95
|
-
this.
|
|
95
|
+
this.details = opts.logFields || {};
|
|
96
|
+
this.logFields = Object.entries(this.details)
|
|
96
97
|
.map(([key, value]) => `[${key}:${value}]`).join(' ');
|
|
97
98
|
|
|
98
99
|
const validAcquireMethods = Array.from(Object.values(AcquireMethod));
|