Socket
Socket
Sign inDemoInstall

node-ssh

Package Overview
Dependencies
12
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 11.1.0 to 11.1.1

5

CHANGELOG.md

@@ -0,1 +1,6 @@

#### 11.1.1
- Minor doc fixup. #340 (Thanks @smali-kazmi)
- Automatically close stdin for executed programs even when no stdin is provided. #341 (Thanks @wmertens)
#### 11.1.0

@@ -2,0 +7,0 @@

26

lib/cjs/index.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.NodeSSH = exports.SSHError = void 0;
const fs_1 = __importDefault(require("fs"));

@@ -280,4 +293,5 @@ const path_1 = __importDefault(require("path"));

channel.write(options.stdin);
channel.end();
}
// Close stdout:
channel.end();
let code = null;

@@ -284,0 +298,0 @@ let signal = null;

{
"name": "node-ssh",
"version": "11.1.0",
"version": "11.1.1",
"description": "SS2 with Promises",

@@ -50,4 +50,4 @@ "main": "lib/cjs/index.js",

"ssh2-streams": "^0.4.10",
"ts-node": "^8.8.2",
"typescript": "^3.8.3"
"ts-node": "^9.0.0",
"typescript": "^4.0.3"
},

@@ -54,0 +54,0 @@ "dependencies": {

@@ -31,3 +31,3 @@ Node-SSH - SSH2 with Promises

// Local, Remote
ssh.putFile('/home/steel/Lab/localPath', '/home/steel/Lab/remotePath').then(function() {
ssh.putFile('/home/steel/Lab/localPath/fileName', '/home/steel/Lab/remotePath/fileName').then(function() {
console.log("The File thing is done")

@@ -39,3 +39,3 @@ }, function(error) {

// Array<Shape('local' => string, 'remote' => string)>
ssh.putFiles([{ local: '/home/steel/Lab/localPath', remote: '/home/steel/Lab/remotePath' }]).then(function() {
ssh.putFiles([{ local: '/home/steel/Lab/localPath/fileName', remote: '/home/steel/Lab/remotePath/fileName' }]).then(function() {
console.log("The File thing is done")

@@ -42,0 +42,0 @@ }, function(error) {

Sorry, the diff of this file is not supported yet

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