bdy 1.22.31-dev → 1.22.32-stage

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.22.31-dev",
4
+ "version": "1.22.32-stage",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -185,6 +185,12 @@ class ServerSsh extends events_1.default {
185
185
  }
186
186
  try {
187
187
  const proc = (0, child_process_1.spawn)(command, opts);
188
+ if (proc.stdin) {
189
+ stream.pipe(proc.stdin);
190
+ proc.stdin.on('error', () => {
191
+ // ignore EPIPE on stdin close
192
+ });
193
+ }
188
194
  if (proc.stdout) {
189
195
  proc.stdout.on('data', (data) => {
190
196
  stream.write(data);
@@ -252,7 +258,7 @@ class ServerSsh extends events_1.default {
252
258
  session.on('end', () => closeSession());
253
259
  session.on('eof', () => {
254
260
  // @ts-ignore fix for sftp channel not ending properly https://github.com/mscdex/ssh2/pull/1111
255
- if (session._channel) {
261
+ if (sftp && session._channel) {
256
262
  try {
257
263
  // @ts-ignore
258
264
  session._channel.end();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.22.31-dev",
4
+ "version": "1.22.32-stage",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {