Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@activepieces/piece-sftp

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@activepieces/piece-sftp - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

src/lib/actions/create-folder.d.ts

36

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc