Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/postgresql/actions/delete-rows/delete-rows.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
name: "Delete Row(s)",
key: "postgresql-delete-rows",
description: "Deletes a row or rows from a table. [See the documentation](https://node-postgres.com/features/queries)",
version: "2.0.6",
version: "2.0.7",
type: "action",
props: {
postgresql,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
name: "Execute SQL Query",
key: "postgresql-execute-custom-query",
description: "Execute a custom PostgreSQL query. See [our docs](https://pipedream.com/docs/databases/working-with-sql) to learn more about working with SQL in Pipedream.",
version: "3.0.1",
version: "3.0.2",
type: "action",
props: {
postgresql,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
name: "Find Row With Custom Query",
key: "postgresql-find-row-custom-query",
description: "Finds a row in a table via a custom query. [See the documentation](https://node-postgres.com/features/queries)",
version: "2.0.6",
version: "2.0.7",
type: "action",
props: {
postgresql,
Expand Down
2 changes: 1 addition & 1 deletion components/postgresql/actions/find-row/find-row.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
name: "Find Row",
key: "postgresql-find-row",
description: "Finds a row in a table via a lookup column. [See the documentation](https://node-postgres.com/features/queries)",
version: "2.0.6",
version: "2.0.7",
type: "action",
props: {
postgresql,
Expand Down
2 changes: 1 addition & 1 deletion components/postgresql/actions/insert-row/insert-row.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
name: "Insert Row",
key: "postgresql-insert-row",
description: "Adds a new row. [See the documentation](https://node-postgres.com/features/queries)",
version: "2.0.6",
version: "2.0.7",
type: "action",
props: {
postgresql,
Expand Down
2 changes: 1 addition & 1 deletion components/postgresql/actions/update-row/update-row.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
name: "Update Row",
key: "postgresql-update-row",
description: "Updates an existing row. [See the documentation](https://node-postgres.com/features/queries)",
version: "2.0.6",
version: "2.0.7",
type: "action",
props: {
postgresql,
Expand Down
2 changes: 1 addition & 1 deletion components/postgresql/actions/upsert-row/upsert-row.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Upsert Row",
key: "postgresql-upsert-row",
description: "Adds a new row or updates an existing row. [See the documentation](https://node-postgres.com/features/queries)",
version: "2.0.6",
version: "2.0.7",
type: "action",
props: {
postgresql,
Expand Down
2 changes: 1 addition & 1 deletion components/postgresql/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/postgresql",
"version": "2.2.1",
"version": "2.2.2",
"description": "Pipedream PostgreSQL Components",
"main": "postgresql.app.mjs",
"keywords": [
Expand Down
5 changes: 4 additions & 1 deletion components/postgresql/postgresql.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,12 @@ export default {
...(cert && {
cert,
}),
rejectUnauthorized: mode !== "skip_verification",
};

if (mode === "verify_identity") {
ssl.rejectUnauthorized = true;
}
Comment on lines +98 to +100
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this wouldn't allow setting rejectUnauthorized to false, which someone may want to do to connect without CA verification to a server that requires SSL. (It looks like the pg package sets rejectUnauthorized to true by default for SSL connections.)

Maybe set ssl.rejectUnauthorized if mode is not null, and omit it otherwise? For example:

      if (mode) {
        ssl.rejectUnauthorized = mode === "verify_identity";
      }


return Object.keys(ssl).length > 0
? ssl
: undefined;
Expand Down
2 changes: 1 addition & 1 deletion components/postgresql/sources/new-column/new-column.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "New Column",
key: "postgresql-new-column",
description: "Emit new event when a new column is added to a table. [See the documentation](https://node-postgres.com/features/queries)",
version: "2.0.6",
version: "2.0.7",
type: "source",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "New or Updated Row",
key: "postgresql-new-or-updated-row",
description: "Emit new event when a row is added or modified. [See the documentation](https://node-postgres.com/features/queries)",
version: "2.0.6",
version: "2.0.7",
type: "source",
dedupe: "unique",
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "New Row Custom Query",
key: "postgresql-new-row-custom-query",
description: "Emit new event when new rows are returned from a custom query that you provide. [See the documentation](https://node-postgres.com/features/queries)",
version: "2.0.6",
version: "2.0.7",
type: "source",
dedupe: "unique",
props: {
Expand Down
2 changes: 1 addition & 1 deletion components/postgresql/sources/new-row/new-row.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "New Row",
key: "postgresql-new-row",
description: "Emit new event when a new row is added to a table. [See the documentation](https://node-postgres.com/features/queries)",
version: "3.0.6",
version: "3.0.7",
type: "source",
dedupe: "unique",
props: {
Expand Down
2 changes: 1 addition & 1 deletion components/postgresql/sources/new-table/new-table.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "New Table",
key: "postgresql-new-table",
description: "Emit new event when a new table is added to the database. [See the documentation](https://node-postgres.com/features/queries)",
version: "2.0.6",
version: "2.0.7",
type: "source",
props: {
...common.props,
Expand Down
35 changes: 23 additions & 12 deletions pnpm-lock.yaml

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

Loading