@pipedream/google_drive 1.6.0 → 1.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/google_drive",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Pipedream Google_drive Components",
5
5
  "main": "google_drive.app.mjs",
6
6
  "keywords": [
@@ -16,6 +16,7 @@
16
16
  "google-docs-mustaches": "^1.2.2",
17
17
  "got": "13.0.0",
18
18
  "lodash": "^4.17.23",
19
+ "md5": "^2.3.0",
19
20
  "mime-db": "^1.51.0",
20
21
  "uuid": "^8.3.2"
21
22
  },
@@ -7,13 +7,14 @@ import {
7
7
  } from "../../common/constants.mjs";
8
8
  import commonDedupeChanges from "../common-dedupe-changes.mjs";
9
9
  import { stashFile } from "../../common/utils.mjs";
10
+ import md5 from "md5";
10
11
 
11
12
  export default {
12
13
  ...common,
13
14
  key: "google_drive-changes-to-files-in-drive",
14
15
  name: "Changes to Files in Drive",
15
16
  description: "Emit new event when a change is made to one of the specified files. [See the documentation](https://developers.google.com/drive/api/v3/reference/changes/watch)",
16
- version: "0.0.6",
17
+ version: "0.0.7",
17
18
  type: "source",
18
19
  dedupe: "unique",
19
20
  props: {
@@ -94,7 +95,7 @@ export default {
94
95
  : fileName || "Untitled";
95
96
 
96
97
  return {
97
- id: `${fileId}-${ts}`,
98
+ id: md5(`${fileId}-${ts}`),
98
99
  summary,
99
100
  ts,
100
101
  };
@@ -17,6 +17,7 @@ import {
17
17
  } from "../../common/constants.mjs";
18
18
  import commonDedupeChanges from "../common-dedupe-changes.mjs";
19
19
  import { stashFile } from "../../common/utils.mjs";
20
+ import md5 from "md5";
20
21
 
21
22
  /**
22
23
  * This source uses the Google Drive API's
@@ -28,7 +29,7 @@ export default {
28
29
  key: "google_drive-changes-to-specific-files-shared-drive",
29
30
  name: "Changes to Specific Files (Shared Drive)",
30
31
  description: "Watches for changes to specific files in a shared drive, emitting an event when a change is made to one of those files",
31
- version: "0.3.6",
32
+ version: "0.3.7",
32
33
  type: "source",
33
34
  // Dedupe events based on the "x-goog-message-number" header for the target channel:
34
35
  // https://developers.google.com/drive/api/v3/push#making-watch-requests
@@ -99,7 +100,7 @@ export default {
99
100
  : fileName || "Untitled";
100
101
 
101
102
  return {
102
- id: `${fileId}-${ts}`,
103
+ id: md5(`${fileId}-${ts}`),
103
104
  summary,
104
105
  ts,
105
106
  };
@@ -10,6 +10,7 @@
10
10
 
11
11
  import { GOOGLE_DRIVE_NOTIFICATION_CHANGE } from "../../common/constants.mjs";
12
12
  import common from "../common-webhook.mjs";
13
+ import md5 from "md5";
13
14
 
14
15
  export default {
15
16
  ...common,
@@ -17,7 +18,7 @@ export default {
17
18
  name: "New or Modified Comments (Instant)",
18
19
  description:
19
20
  "Emit new event when a comment is created or modified in the selected file",
20
- version: "1.0.15",
21
+ version: "1.0.16",
21
22
  type: "source",
22
23
  // Dedupe events based on the "x-goog-message-number" header for the target channel:
23
24
  // https://developers.google.com/drive/api/v3/push#making-watch-requests
@@ -81,7 +82,7 @@ export default {
81
82
  const eventId = headers && headers["x-goog-message-number"];
82
83
 
83
84
  return {
84
- id: `${commentId}-${eventId || ts}`,
85
+ id: md5(`${commentId}-${eventId || ts}`),
85
86
  summary,
86
87
  ts,
87
88
  };
@@ -1,12 +1,13 @@
1
1
  import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
2
2
  import googleDrive from "../../google_drive.app.mjs";
3
3
  import sampleEmit from "./test-event.mjs";
4
+ import md5 from "md5";
4
5
 
5
6
  export default {
6
7
  key: "google_drive-new-or-modified-comments-polling",
7
8
  name: "New or Modified Comments (Polling)",
8
9
  description: "Emit new event when a comment is created or modified in the selected file",
9
- version: "0.0.5",
10
+ version: "0.0.6",
10
11
  type: "source",
11
12
  dedupe: "unique",
12
13
  props: {
@@ -75,7 +76,7 @@ export default {
75
76
  const ts = Date.parse(tsString);
76
77
 
77
78
  return {
78
- id: `${commentId}-${ts}`,
79
+ id: md5(`${commentId}-${ts}`),
79
80
  summary,
80
81
  ts,
81
82
  };
@@ -17,6 +17,7 @@ import commonDedupeChanges from "../common-dedupe-changes.mjs";
17
17
  import common from "../common-webhook.mjs";
18
18
  import { stashFile } from "../../common/utils.mjs";
19
19
  import sampleEmit from "./test-event.mjs";
20
+ import md5 from "md5";
20
21
 
21
22
  const { googleDrive } = common.props;
22
23
 
@@ -25,7 +26,7 @@ export default {
25
26
  key: "google_drive-new-or-modified-files",
26
27
  name: "New or Modified Files (Instant)",
27
28
  description: "Emit new event when a file in the selected Drive is created, modified or trashed.",
28
- version: "0.4.6",
29
+ version: "0.4.7",
29
30
  type: "source",
30
31
  // Dedupe events based on the "x-goog-message-number" header for the target channel:
31
32
  // https://developers.google.com/drive/api/v3/push#making-watch-requests
@@ -122,7 +123,7 @@ export default {
122
123
  const eventId = headers && headers["x-goog-message-number"];
123
124
 
124
125
  return {
125
- id: `${fileId}-${eventId || ts}`,
126
+ id: md5(`${fileId}-${eventId || ts}`),
126
127
  summary,
127
128
  ts,
128
129
  };
@@ -3,12 +3,13 @@ import googleDrive from "../../google_drive.app.mjs";
3
3
  import { getListFilesOpts } from "../../common/utils.mjs";
4
4
  import sampleEmit from "./test-event.mjs";
5
5
  import { GOOGLE_DRIVE_FOLDER_MIME_TYPE } from "../../common/constants.mjs";
6
+ import md5 from "md5";
6
7
 
7
8
  export default {
8
9
  key: "google_drive-new-or-modified-files-polling",
9
10
  name: "New or Modified Files (Polling)",
10
11
  description: "Emit new event when a file in the selected Drive is created, modified or trashed. [See the documentation](https://developers.google.com/drive/api/v3/reference/changes/list)",
11
- version: "0.0.6",
12
+ version: "0.0.7",
12
13
  type: "source",
13
14
  dedupe: "unique",
14
15
  props: {
@@ -166,7 +167,7 @@ export default {
166
167
  const ts = Date.parse(tsString);
167
168
 
168
169
  return {
169
- id: `${fileId}-${ts}`,
170
+ id: md5(`${fileId}-${ts}`),
170
171
  summary,
171
172
  ts,
172
173
  };
@@ -14,13 +14,14 @@ import {
14
14
  GOOGLE_DRIVE_NOTIFICATION_UPDATE,
15
15
  } from "../../common/constants.mjs";
16
16
  import common from "../common-webhook.mjs";
17
+ import md5 from "md5";
17
18
 
18
19
  export default {
19
20
  ...common,
20
21
  key: "google_drive-new-or-modified-folders",
21
22
  name: "New or Modified Folders (Instant)",
22
23
  description: "Emit new event when a folder is created or modified in the selected Drive",
23
- version: "0.2.9",
24
+ version: "0.2.10",
24
25
  type: "source",
25
26
  // Dedupe events based on the "x-goog-message-number" header for the target channel:
26
27
  // https://developers.google.com/drive/api/v3/push#making-watch-requests
@@ -102,7 +103,7 @@ export default {
102
103
  name: summary,
103
104
  } = data;
104
105
  return {
105
- id: `${fileId}-${ts}`,
106
+ id: md5(`${fileId}-${ts}`),
106
107
  summary,
107
108
  ts,
108
109
  };
@@ -6,12 +6,13 @@ import {
6
6
  } from "../../common/utils.mjs";
7
7
  import { GOOGLE_DRIVE_FOLDER_MIME_TYPE } from "../../common/constants.mjs";
8
8
  import sampleEmit from "./test-event.mjs";
9
+ import md5 from "md5";
9
10
 
10
11
  export default {
11
12
  key: "google_drive-new-or-modified-folders-polling",
12
13
  name: "New or Modified Folders (Polling)",
13
14
  description: "Emit new event when a folder is created or modified in the selected Drive",
14
- version: "0.0.5",
15
+ version: "0.0.6",
15
16
  type: "source",
16
17
  dedupe: "unique",
17
18
  props: {
@@ -170,7 +171,7 @@ export default {
170
171
  const ts = Date.parse(tsString);
171
172
 
172
173
  return {
173
- id: `${fileId}-${ts}`,
174
+ id: md5(`${fileId}-${ts}`),
174
175
  summary,
175
176
  ts,
176
177
  };