@adobe/helix-onedrive-support 11.3.37 → 11.4.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [11.4.0](https://github.com/adobe/helix-onedrive-support/compare/v11.3.38...v11.4.0) (2024-07-02)
2
+
3
+
4
+ ### Features
5
+
6
+ * allow to set user agent ([070167d](https://github.com/adobe/helix-onedrive-support/commit/070167dd77b1c793f0afb1031edfce5cc8b23a92))
7
+
8
+ ## [11.3.38](https://github.com/adobe/helix-onedrive-support/compare/v11.3.37...v11.3.38) (2024-06-29)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update dependency @adobe/helix-shared-tokencache to v1.4.16 ([895388a](https://github.com/adobe/helix-onedrive-support/commit/895388a1916031400e0a0095ceb124eb57b6d43e))
14
+
1
15
  ## [11.3.37](https://github.com/adobe/helix-onedrive-support/compare/v11.3.36...v11.3.37) (2024-06-26)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-onedrive-support",
3
- "version": "11.3.37",
3
+ "version": "11.4.0",
4
4
  "description": "Helix OneDrive Support",
5
5
  "main": "src/index.js",
6
6
  "exports": {
@@ -29,13 +29,13 @@
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.15",
32
+ "@adobe/helix-shared-tokencache": "1.4.16",
33
33
  "@azure/msal-node": "2.9.2",
34
- "jose": "5.4.1"
34
+ "jose": "5.6.2"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@adobe/eslint-config-helix": "2.0.6",
38
- "@aws-sdk/client-s3": "3.600.0",
38
+ "@aws-sdk/client-s3": "3.606.0",
39
39
  "@semantic-release/changelog": "6.0.3",
40
40
  "@semantic-release/git": "10.0.1",
41
41
  "ajv": "8.16.0",
@@ -51,7 +51,7 @@
51
51
  "jsdoc-tsimport-plugin": "1.0.5",
52
52
  "junit-report-builder": "3.2.1",
53
53
  "lint-staged": "15.2.7",
54
- "mocha": "10.4.0",
54
+ "mocha": "10.5.2",
55
55
  "mocha-multi-reporters": "1.5.1",
56
56
  "mocha-suppress-logs": "0.5.1",
57
57
  "nock": "13.5.4",
package/src/OneDrive.d.ts CHANGED
@@ -29,6 +29,12 @@ export declare interface OneDriveOptions {
29
29
  * Note that the cache is only used, if the `noShareLinkCache` flag is `falsy`
30
30
  */
31
31
  shareLinkCache?: Map<string, DriveItem>,
32
+
33
+ /**
34
+ * user agent to include by default in the requests
35
+ * @example "NONISV|Contoso|GovernanceCheck/1.0"
36
+ */
37
+ userAgent: string;
32
38
  }
33
39
 
34
40
  export declare interface GraphResult {
package/src/OneDrive.js CHANGED
@@ -87,7 +87,9 @@ export class OneDrive {
87
87
  * @param {OneDriveOptions} opts Options
88
88
  */
89
89
  constructor(opts) {
90
- this.fetchContext = keepAliveNoCache({ userAgent: 'adobe-fetch' });
90
+ this.fetchContext = keepAliveNoCache({
91
+ userAgent: opts.userAgent || 'adobe-fetch',
92
+ });
91
93
 
92
94
  if (!opts.auth) {
93
95
  throw new Error('Missing auth.');