@adobe/helix-google-support 2.0.17 → 2.0.18

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,10 @@
1
+ ## [2.0.18](https://github.com/adobe/helix-google-support/compare/v2.0.17...v2.0.18) (2022-10-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * enable shared drive support ([#88](https://github.com/adobe/helix-google-support/issues/88)) ([1f47c41](https://github.com/adobe/helix-google-support/commit/1f47c411cb79aceb52a7350486784fd6f9f3b4c6))
7
+
1
8
  ## [2.0.17](https://github.com/adobe/helix-google-support/compare/v2.0.16...v2.0.17) (2022-10-15)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-google-support",
3
- "version": "2.0.17",
3
+ "version": "2.0.18",
4
4
  "description": "Helix Google Support",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -45,7 +45,7 @@
45
45
  "husky": "8.0.1",
46
46
  "junit-report-builder": "3.0.1",
47
47
  "lint-staged": "13.0.3",
48
- "mocha": "10.0.0",
48
+ "mocha": "10.1.0",
49
49
  "mocha-multi-reporters": "1.5.1",
50
50
  "nock": "13.2.9",
51
51
  "semantic-release": "19.0.5"
@@ -335,6 +335,7 @@ export class GoogleClient {
335
335
  'mimeType',
336
336
  'modifiedTime',
337
337
  ].join(','),
338
+ supportsAllDrives: true,
338
339
  }));
339
340
 
340
341
  const root = roots[fileId];
@@ -408,6 +409,7 @@ export class GoogleClient {
408
409
  'mimeType',
409
410
  'modifiedTime',
410
411
  ].join(','),
412
+ supportsAllDrives: true,
411
413
  }));
412
414
  item = addFields({
413
415
  id: parentId,
@@ -450,6 +452,7 @@ export class GoogleClient {
450
452
  const res = await this.drive.files.get({
451
453
  fileId,
452
454
  alt: 'media',
455
+ supportsAllDrives: true,
453
456
  }, { responseType: 'arraybuffer' });
454
457
  return Buffer.from(res.data);
455
458
  } catch (e) {