From f6e04d200b36bfe61a626bb09dc3bb68b17ab21f Mon Sep 17 00:00:00 2001 From: Jorge Cortes Date: Tue, 17 Dec 2024 16:31:09 -0500 Subject: [PATCH] [BUG] SFTP: behavior has not changed according to user --- components/sftp/package.json | 2 +- .../watch-remote-directory/watch-remote-directory.mjs | 10 ++++------ components/sftp_password_based_auth/package.json | 2 +- .../watch-remote-directory/watch-remote-directory.mjs | 2 +- pnpm-lock.yaml | 10 ++++------ 5 files changed, 11 insertions(+), 15 deletions(-) diff --git a/components/sftp/package.json b/components/sftp/package.json index 135bce7b847bd..bc942c6d6a189 100644 --- a/components/sftp/package.json +++ b/components/sftp/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/sftp", - "version": "0.4.0", + "version": "0.4.1", "description": "Pipedream SFTP Components", "main": "sftp.app.mjs", "keywords": [ diff --git a/components/sftp/sources/watch-remote-directory/watch-remote-directory.mjs b/components/sftp/sources/watch-remote-directory/watch-remote-directory.mjs index 15222cdd85127..39dc455220b12 100644 --- a/components/sftp/sources/watch-remote-directory/watch-remote-directory.mjs +++ b/components/sftp/sources/watch-remote-directory/watch-remote-directory.mjs @@ -6,7 +6,7 @@ export default { key: "sftp-watch-remote-directory", name: "New Remote Directory Watcher", description: "Emit new events when files get created, changed or deleted from a remote directory. [See the docs](https://github.com/theophilusx/ssh2-sftp-client#orgfac43d1)", - version: "0.1.0", + version: "0.1.1", type: "source", dedupe: "unique", props: { @@ -122,11 +122,9 @@ export default { } }, getEventId(event) { - const uniqueIdentifier = - createHash("md5") - .update(event.path + event.modifyTime) - .digest("hex"); - return `${event.event}|${event.path}|${event.size}|${event.modifyTime}|${uniqueIdentifier}`; + return createHash("md5") + .update(event.path + event.modifyTime) + .digest("hex"); }, emitEvents(events) { // sort events by modification time in ascending order diff --git a/components/sftp_password_based_auth/package.json b/components/sftp_password_based_auth/package.json index db8a9199c6bd6..4163b0e582487 100644 --- a/components/sftp_password_based_auth/package.json +++ b/components/sftp_password_based_auth/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/sftp_password_based_auth", - "version": "0.4.0", + "version": "0.4.1", "description": "Pipedream SFTP Components", "main": "sftp_password_based_auth.app.mjs", "keywords": [ diff --git a/components/sftp_password_based_auth/sources/watch-remote-directory/watch-remote-directory.mjs b/components/sftp_password_based_auth/sources/watch-remote-directory/watch-remote-directory.mjs index c4eb43eab4478..66bb691289834 100644 --- a/components/sftp_password_based_auth/sources/watch-remote-directory/watch-remote-directory.mjs +++ b/components/sftp_password_based_auth/sources/watch-remote-directory/watch-remote-directory.mjs @@ -9,6 +9,6 @@ export default { key: "sftp_password_based_auth-watch-remote-directory", name: "New Remote Directory Watcher (Password Auth)", description: "Emit new events when files get created, changed or deleted from a remote directory. [See the docs](https://github.com/theophilusx/ssh2-sftp-client#orgfac43d1)", - version: "0.1.0", + version: "0.1.1", type: "source", }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 39ba56f95f156..0c302d942aa41 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24525,22 +24525,22 @@ packages: superagent@3.8.1: resolution: {integrity: sha512-VMBFLYgFuRdfeNQSMLbxGSLfmXL/xc+OO+BZp41Za/NRDBet/BNbkRJrYzCUu0u4GU0i/ml2dtT8b9qgkw9z6Q==} engines: {node: '>= 4.0'} - deprecated: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at . + deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net superagent@4.1.0: resolution: {integrity: sha512-FT3QLMasz0YyCd4uIi5HNe+3t/onxMyEho7C3PSqmti3Twgy2rXT4fmkTz6wRL6bTF4uzPcfkUCa8u4JWHw8Ag==} engines: {node: '>= 6.0'} - deprecated: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at . + deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net superagent@5.3.1: resolution: {integrity: sha512-wjJ/MoTid2/RuGCOFtlacyGNxN9QLMgcpYLDQlWFIhhdJ93kNscFonGvrpAHSCVjRVj++DGCglocF7Aej1KHvQ==} engines: {node: '>= 7.0.0'} - deprecated: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at . + deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net superagent@7.1.6: resolution: {integrity: sha512-gZkVCQR1gy/oUXr+kxJMLDjla434KmSOKbx5iGD30Ql+AkJQ/YlPKECJy2nhqOsHLjGHzoDTXNSjhnvWhzKk7g==} engines: {node: '>=6.4.0 <13 || >=14'} - deprecated: Please downgrade to v7.1.5 if you need IE/ActiveXObject support OR upgrade to v8.0.0 as we no longer support IE and published an incorrect patch version (see https://github.com/visionmedia/superagent/issues/1731) + deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net supports-color@2.0.0: resolution: {integrity: sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==} @@ -30698,8 +30698,6 @@ snapshots: '@putout/operator-filesystem': 5.0.0(putout@36.13.1(eslint@8.57.1)(typescript@5.6.3)) '@putout/operator-json': 2.2.0 putout: 36.13.1(eslint@8.57.1)(typescript@5.6.3) - transitivePeerDependencies: - - supports-color '@putout/operator-regexp@1.0.0(putout@36.13.1(eslint@8.57.1)(typescript@5.6.3))': dependencies: