@adobe/helix-google-support 2.0.90 → 2.1.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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [2.1.1](https://github.com/adobe/helix-google-support/compare/v2.1.0...v2.1.1) (2023-06-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependency @adobe/helix-onedrive-support to v10.1.1 ([0b5e077](https://github.com/adobe/helix-google-support/commit/0b5e0770e7873fc2084c3a78392b7db19c379df6))
7
+
8
+ # [2.1.0](https://github.com/adobe/helix-google-support/compare/v2.0.90...v2.1.0) (2023-06-07)
9
+
10
+
11
+ ### Features
12
+
13
+ * add size information in getItemsFromPath ([#201](https://github.com/adobe/helix-google-support/issues/201)) ([5f0722c](https://github.com/adobe/helix-google-support/commit/5f0722cb91d04642064a655d4f0444e68daea5b1))
14
+
1
15
  ## [2.0.90](https://github.com/adobe/helix-google-support/compare/v2.0.89...v2.0.90) (2023-06-05)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-google-support",
3
- "version": "2.0.90",
3
+ "version": "2.1.1",
4
4
  "description": "Helix Google Support",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -30,17 +30,17 @@
30
30
  "reporter-options": "configFile=.mocha-multi.json"
31
31
  },
32
32
  "dependencies": {
33
- "@adobe/helix-onedrive-support": "10.1.0",
33
+ "@adobe/helix-onedrive-support": "10.1.1",
34
34
  "googleapis": "118.0.0",
35
35
  "lru-cache": "9.1.2"
36
36
  },
37
37
  "devDependencies": {
38
- "@adobe/helix-shared-tokencache": "1.2.5",
38
+ "@adobe/helix-shared-tokencache": "1.2.6",
39
39
  "@adobe/eslint-config-helix": "2.0.2",
40
40
  "@semantic-release/changelog": "6.0.3",
41
41
  "@semantic-release/git": "10.0.1",
42
42
  "c8": "7.14.0",
43
- "eslint": "8.42.0",
43
+ "eslint": "8.43.0",
44
44
  "eslint-plugin-header": "3.1.1",
45
45
  "eslint-plugin-import": "2.27.5",
46
46
  "husky": "8.0.3",
@@ -49,7 +49,7 @@
49
49
  "mocha": "10.2.0",
50
50
  "mocha-multi-reporters": "1.5.1",
51
51
  "nock": "13.3.1",
52
- "semantic-release": "21.0.3"
52
+ "semantic-release": "21.0.5"
53
53
  },
54
54
  "lint-staged": {
55
55
  "*.js": "eslint",
@@ -30,7 +30,7 @@ let lru = new LRUCache({ max: 1000, ttl: 60000 });
30
30
  */
31
31
 
32
32
  /**
33
- * Adds the last modified property and mimeType if defined in item
33
+ * Adds the last modified property and mimeType and size if defined in item
34
34
  * @param {DriveItemInfo} itemInfo
35
35
  * @param item
36
36
  * @returns {DriveItemInfo}
@@ -44,6 +44,10 @@ function addFields(itemInfo, item) {
44
44
  // eslint-disable-next-line no-param-reassign
45
45
  itemInfo.mimeType = item.mimeType;
46
46
  }
47
+ if (item.size) {
48
+ // eslint-disable-next-line no-param-reassign
49
+ itemInfo.size = item.size;
50
+ }
47
51
  return itemInfo;
48
52
  }
49
53
 
@@ -188,7 +192,7 @@ export class GoogleClient {
188
192
  'and trashed=false',
189
193
  mimeTypeFilter,
190
194
  ].join(' '),
191
- fields: 'nextPageToken, files(id, name, mimeType, modifiedTime)',
195
+ fields: 'nextPageToken, files(id, name, mimeType, modifiedTime, size)',
192
196
  includeItemsFromAllDrives: true,
193
197
  supportsAllDrives: true,
194
198
  pageSize: 1000,