Skip to content

Commit

Permalink
Gmail - Update verify-client-id (#13959)
Browse files Browse the repository at this point in the history
* update verify-client-id

* update platform version

* pnpm-lock.yaml
  • Loading branch information
michelle0927 authored Sep 16, 2024
1 parent 8f91060 commit c032fcf
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 59 deletions.
4 changes: 2 additions & 2 deletions components/gmail/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/gmail",
"version": "0.1.4",
"version": "0.1.5",
"description": "Pipedream Gmail Components",
"main": "gmail.app.mjs",
"keywords": [
Expand All @@ -16,7 +16,7 @@
"@google-cloud/local-auth": "^2.1.0",
"@google-cloud/pubsub": "^4.7.0",
"@googleapis/gmail": "^0.3.4",
"@pipedream/platform": "^3.0.0",
"@pipedream/platform": "^3.0.3",
"google-auth-library": "^8.7.0",
"googleapis": "^105.0.0",
"html-to-text": "^8.2.1",
Expand Down
4 changes: 1 addition & 3 deletions components/gmail/sources/common/verify-client-id.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import { PD_OFFICIAL_GMAIL_OAUTH_CLIENT_ID } from "@pipedream/platform";
export default {
methods: {
async checkClientId() {
return (
this.gmail.$auth.oauth_client_id !== PD_OFFICIAL_GMAIL_OAUTH_CLIENT_ID
);
return !this.gmail.$auth.oauth_client_id.includes(PD_OFFICIAL_GMAIL_OAUTH_CLIENT_ID);
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
name: "New Email Received",
description: "Emit new event when a new email is received.",
type: "source",
version: "0.1.1",
version: "0.1.2",
dedupe: "unique",
props: {
gmail,
Expand Down
117 changes: 64 additions & 53 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c032fcf

Please sign in to comment.