@adobe/helix-google-support 1.5.0 → 1.5.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 +7 -0
- package/package.json +2 -2
- package/src/GoogleClient.d.ts +3 -3
- package/src/GoogleClient.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.5.1](https://github.com/adobe/helix-google-support/compare/v1.5.0...v1.5.1) (2022-07-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update dependency lru-cache to v7.13.1 ([e01766b](https://github.com/adobe/helix-google-support/commit/e01766b4d9db6a409aa8de680d7eabeee234309d))
|
|
7
|
+
|
|
1
8
|
# [1.5.0](https://github.com/adobe/helix-google-support/compare/v1.4.19...v1.5.0) (2022-07-12)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-google-support",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Helix Google Support",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@adobe/helix-onedrive-support": "8.1.1",
|
|
35
35
|
"googleapis": "105.0.0",
|
|
36
|
-
"lru-cache": "7.
|
|
36
|
+
"lru-cache": "7.13.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@adobe/eslint-config-helix": "1.3.2",
|
package/src/GoogleClient.d.ts
CHANGED
|
@@ -95,7 +95,7 @@ declare class GoogleClient {
|
|
|
95
95
|
* @param {string} parentId
|
|
96
96
|
* @param {string} path
|
|
97
97
|
* @param {string} [type] optional file mimetype filter.
|
|
98
|
-
* @return {DriveItemInfo[]}
|
|
98
|
+
* @return {Promise<DriveItemInfo[]>}
|
|
99
99
|
*/
|
|
100
100
|
getDriveItemsFromSegments(parentId:string, path:string, type?:string):Promise<DriveItemInfo[]>;
|
|
101
101
|
|
|
@@ -121,7 +121,7 @@ declare class GoogleClient {
|
|
|
121
121
|
/**
|
|
122
122
|
* Returns an (uncached) file directly via the google api
|
|
123
123
|
* @param {string} fileId
|
|
124
|
-
* @returns {string} file data
|
|
124
|
+
* @returns {Promise<string>} file data
|
|
125
125
|
*/
|
|
126
126
|
getFile(fileId:string):Promise<string>;
|
|
127
127
|
|
|
@@ -140,7 +140,7 @@ declare class GoogleClient {
|
|
|
140
140
|
/**
|
|
141
141
|
* Returns an (uncached) document directly via the google docs api
|
|
142
142
|
* @param {string} documentId
|
|
143
|
-
* @returns {object} document
|
|
143
|
+
* @returns {Promise<object>} document
|
|
144
144
|
*/
|
|
145
145
|
getDocument(documentId:string):Promise<object>;
|
|
146
146
|
|
package/src/GoogleClient.js
CHANGED
|
@@ -301,7 +301,7 @@ export class GoogleClient {
|
|
|
301
301
|
* @param {string} parentId
|
|
302
302
|
* @param {string} path
|
|
303
303
|
* @param {string} [type] optional file mimetype
|
|
304
|
-
* @return {DriveItemInfo[]}
|
|
304
|
+
* @return {Promise<DriveItemInfo[]>}
|
|
305
305
|
*/
|
|
306
306
|
async getItemsFromPath(parentId, path, type) {
|
|
307
307
|
const segs = createPathSegments(path);
|
|
@@ -443,7 +443,7 @@ export class GoogleClient {
|
|
|
443
443
|
/**
|
|
444
444
|
* Returns an (uncached) file directly via the google api
|
|
445
445
|
* @param {string} fileId
|
|
446
|
-
* @returns {string} file data
|
|
446
|
+
* @returns {Promise<string>} file data
|
|
447
447
|
*/
|
|
448
448
|
async getFile(fileId) {
|
|
449
449
|
try {
|
|
@@ -495,7 +495,7 @@ export class GoogleClient {
|
|
|
495
495
|
/**
|
|
496
496
|
* Returns an (uncached) document directly via the google docs api
|
|
497
497
|
* @param {string} documentId
|
|
498
|
-
* @returns {object} document
|
|
498
|
+
* @returns {Promise<object>} document
|
|
499
499
|
*/
|
|
500
500
|
async getDocument(documentId) {
|
|
501
501
|
const docs = google.docs({
|