@activepieces/piece-sftp
Advanced tools
Comparing version 0.2.4 to 0.2.5
{ | ||
"name": "@activepieces/piece-sftp", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"dependencies": { | ||
"@sinclair/typebox": "0.26.8", | ||
"axios": "^1.6.3", | ||
"@anthropic-ai/sdk": "0.27.3", | ||
"@sinclair/typebox": "0.33.18", | ||
"axios": "1.7.7", | ||
"axios-retry": "4.4.1", | ||
"dayjs": "1.11.9", | ||
"is-base64": "1.1.0", | ||
"lodash": "4.17.21", | ||
"deepmerge": "4.3.1", | ||
"mime-types": "2.1.35", | ||
"nanoid": "3.3.6", | ||
"openai": "4.67.1", | ||
"replicate": "0.34.1", | ||
"semver": "7.6.0", | ||
"ssh2-sftp-client": "9.1.0", | ||
"@activepieces/pieces-common": "0.2.9", | ||
"@activepieces/pieces-framework": "0.7.24", | ||
"@activepieces/shared": "0.10.93", | ||
"tslib": "1.14.1" | ||
"@activepieces/pieces-common": "0.2.28", | ||
"@activepieces/pieces-framework": "0.7.39", | ||
"@activepieces/shared": "0.10.126", | ||
"tslib": "2.6.2" | ||
}, | ||
"overrides": { | ||
"@tryfabric/martian": { | ||
"@notionhq/client": "$@notionhq/client" | ||
}, | ||
"vite": { | ||
"rollup": "npm:@rollup/wasm-node" | ||
} | ||
}, | ||
"resolutions": { | ||
"rollup": "npm:@rollup/wasm-node" | ||
}, | ||
"main": "./src/index.js", | ||
"type": "commonjs" | ||
"type": "commonjs", | ||
"types": "./src/index.d.ts" | ||
} |
@@ -9,4 +9,10 @@ "use strict"; | ||
const create_file_1 = require("./lib/actions/create-file"); | ||
const upload_file_1 = require("./lib/actions/upload-file"); | ||
const read_file_1 = require("./lib/actions/read-file"); | ||
const new_modified_file_1 = require("./lib/triggers/new-modified-file"); | ||
const delete_folder_1 = require("./lib/actions/delete-folder"); | ||
const delete_file_1 = require("./lib/actions/delete-file"); | ||
const list_1 = require("./lib/actions/list"); | ||
const create_folder_1 = require("./lib/actions/create-folder"); | ||
const rename_file_or_folder_1 = require("./lib/actions/rename-file-or-folder"); | ||
exports.sftpAuth = pieces_framework_1.PieceAuth.CustomAuth({ | ||
@@ -37,3 +43,3 @@ description: 'Enter the authentication details', | ||
}, | ||
validate: ({ auth }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { | ||
validate: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) { | ||
const { host, port, username, password } = auth; | ||
@@ -71,7 +77,22 @@ const sftp = new ssh2_sftp_client_1.default(); | ||
categories: [shared_1.PieceCategory.CORE, shared_1.PieceCategory.DEVELOPER_TOOLS], | ||
authors: ["Abdallah-Alwarawreh", "kishanprmr", "AbdulTheActivePiecer", "khaledmashaly", "abuaboud"], | ||
authors: [ | ||
'Abdallah-Alwarawreh', | ||
'kishanprmr', | ||
'AbdulTheActivePiecer', | ||
'khaledmashaly', | ||
'abuaboud', | ||
], | ||
auth: exports.sftpAuth, | ||
actions: [create_file_1.createFile, read_file_1.readFileContent], | ||
actions: [ | ||
create_file_1.createFile, | ||
upload_file_1.uploadFileAction, | ||
read_file_1.readFileContent, | ||
delete_file_1.deleteFileAction, | ||
create_folder_1.createFolderAction, | ||
delete_folder_1.deleteFolderAction, | ||
list_1.listFolderContentsAction, | ||
rename_file_or_folder_1.renameFileOrFolderAction, | ||
], | ||
triggers: [new_modified_file_1.newOrModifiedFile], | ||
}); | ||
//# sourceMappingURL=index.js.map |
@@ -12,3 +12,3 @@ "use strict"; | ||
displayName: 'Read File Content', | ||
description: 'Read the content of a file', | ||
description: 'Read the content of a file.', | ||
props: { | ||
@@ -21,4 +21,4 @@ filePath: pieces_framework_1.Property.ShortText({ | ||
run(context) { | ||
var _a; | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
var _a; | ||
const { host, port, username, password } = context.auth; | ||
@@ -25,0 +25,0 @@ const filePath = context.propsValue['filePath']; |
@@ -13,4 +13,4 @@ "use strict"; | ||
strategy: pieces_common_1.DedupeStrategy.TIMEBASED, | ||
items: ({ auth, propsValue, lastFetchEpochMS }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { | ||
var _a; | ||
items: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, propsValue, lastFetchEpochMS }) { | ||
var _b; | ||
const host = auth.host; | ||
@@ -31,3 +31,3 @@ const port = auth.port; | ||
files = files.filter((file) => (0, dayjs_1.default)(file.modifyTime).valueOf() > lastFetchEpochMS); | ||
if (((_a = propsValue.ignoreHiddenFiles) !== null && _a !== void 0 ? _a : false) === true) | ||
if (((_b = propsValue.ignoreHiddenFiles) !== null && _b !== void 0 ? _b : false) === true) | ||
files = files.filter((file) => !file.name.startsWith('.')); | ||
@@ -34,0 +34,0 @@ return files.map((file) => ({ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
47585
32
726
16
+ Added@anthropic-ai/sdk@0.27.3
+ Addedaxios-retry@4.4.1
+ Addeddeepmerge@4.3.1
+ Addedmime-types@2.1.35
+ Addedopenai@4.67.1
+ Addedreplicate@0.34.1
+ Added@activepieces/pieces-common@0.2.28(transitive)
+ Added@activepieces/pieces-framework@0.7.39(transitive)
+ Added@activepieces/shared@0.10.1230.10.126(transitive)
+ Added@anthropic-ai/sdk@0.27.3(transitive)
+ Added@sinclair/typebox@0.33.18(transitive)
+ Added@types/node@18.19.68(transitive)
+ Added@types/node-fetch@2.6.12(transitive)
+ Addedabort-controller@3.0.0(transitive)
+ Addedagentkeepalive@4.5.0(transitive)
+ Addedaxios@1.7.7(transitive)
+ Addedaxios-retry@4.4.1(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbuffer@6.0.3(transitive)
+ Addeddeepmerge@4.3.1(transitive)
+ Addedevent-target-shim@5.0.1(transitive)
+ Addedevents@3.3.0(transitive)
+ Addedform-data-encoder@1.7.2(transitive)
+ Addedformdata-node@4.4.1(transitive)
+ Addedhumanize-ms@1.2.1(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedis-retry-allowed@2.2.0(transitive)
+ Addedms@2.1.3(transitive)
+ Addednode-domexception@1.0.0(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedopenai@4.67.1(transitive)
+ Addedprocess@0.11.10(transitive)
+ Addedreadable-stream@4.5.2(transitive)
+ Addedreplicate@0.34.1(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedtslib@2.6.2(transitive)
+ Addedundici-types@5.26.5(transitive)
+ Addedweb-streams-polyfill@4.0.0-beta.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
- Removedis-base64@1.1.0
- Removedlodash@4.17.21
- Removed@activepieces/pieces-common@0.2.9(transitive)
- Removed@activepieces/pieces-framework@0.7.190.7.24(transitive)
- Removed@activepieces/shared@0.10.800.10.810.10.93(transitive)
- Removed@sinclair/typebox@0.26.8(transitive)
- Removedaxios@1.7.9(transitive)
- Removedis-base64@1.1.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedtslib@1.14.12.6.1(transitive)
Updated@sinclair/typebox@0.33.18
Updatedaxios@1.7.7
Updatedtslib@2.6.2