@pipedream/google_drive 0.8.5 → 0.8.6

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.
@@ -13,7 +13,7 @@ export default {
13
13
  key: "google_drive-create-folder",
14
14
  name: "Create Folder",
15
15
  description: "Create a new empty folder. [See the documentation](https://developers.google.com/drive/api/v3/reference/files/create) for more information",
16
- version: "0.1.7",
16
+ version: "0.1.8",
17
17
  type: "action",
18
18
  props: {
19
19
  googleDrive,
@@ -78,9 +78,17 @@ export default {
78
78
  } else {
79
79
  q += ` and '${driveId}' in parents`;
80
80
  }
81
- const folders = (await this.googleDrive.listFilesInPage(null, getListFilesOpts(drive, {
81
+
82
+ const opts = getListFilesOpts(driveId, {
83
+ // Used for querying 'shared with me' folders that the user does not have direct access to
84
+ // within a shared drive (e.g., when the user can't select the driveId of the shared drive).
85
+ corpora: "user",
86
+ includeItemsFromAllDrives: true,
87
+ supportsAllDrives: true,
82
88
  q,
83
- }))).files;
89
+ });
90
+
91
+ const folders = (await this.googleDrive.listFilesInPage(null, opts)).files;
84
92
 
85
93
  if (folders.length) {
86
94
  $.export("$summary", "Found existing folder, therefore not creating folder. Returning found folder.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/google_drive",
3
- "version": "0.8.5",
3
+ "version": "0.8.6",
4
4
  "description": "Pipedream Google_drive Components",
5
5
  "main": "google_drive.app.mjs",
6
6
  "keywords": [