Socket
Socket
Sign inDemoInstall

node-scp

Package Overview
Dependencies
7
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.13 to 0.0.14

4

lib/index.js

@@ -295,3 +295,3 @@ "use strict";

if (!(f.type === 'd')) return [3 /*break*/, 7];
newSrc = utils.joinRemote(remoteInfo.path, f.name);
newSrc = remoteInfo.path + this.remotePathSep + f.name;
newDst = path_1.join(localInfo.path, f.name);

@@ -304,3 +304,3 @@ return [4 /*yield*/, this.downloadDir(newSrc, newDst)];

if (!(f.type === '-')) return [3 /*break*/, 9];
src = utils.joinRemote(remoteInfo.path, f.name);
src = remoteInfo.path + this.remotePathSep + f.name;
dst = path_1.join(localInfo.path, f.name);

@@ -307,0 +307,0 @@ return [4 /*yield*/, this.downloadFile(src, dst)];

@@ -523,3 +523,3 @@ "use strict";

root = _a.sent();
return [2 /*return*/, joinRemote(client, root, aPath.substring(3))];
return [2 /*return*/, root + client.remotePathSep + aPath.substring(3)];
case 2:

@@ -530,3 +530,3 @@ if (!aPath.startsWith('.')) return [3 /*break*/, 4];

root = _a.sent();
return [2 /*return*/, joinRemote(client, root, aPath.substring(2))];
return [2 /*return*/, root + client.remotePathSep + aPath.substring(2)];
case 4: return [2 /*return*/, aPath];

@@ -533,0 +533,0 @@ case 5:

@@ -5,3 +5,3 @@ {

"description": "Lightweight, fast and secure SCP function for NodeJS",
"version": "0.0.13",
"version": "0.0.14",
"main": "lib/index.js",

@@ -8,0 +8,0 @@ "types": "lib/index.d.ts",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc