From e1db386ff9b0fc145c67dc13ada3e969d59cc51f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Natan=20FOURI=C3=89?= <59120131+Natizyskunk@users.noreply.github.com> Date: Fri, 14 May 2021 17:38:57 +0200 Subject: [PATCH 1/5] Fix error "No such file" when using SFTP extension on vscode > v1.55.2. --- lib/sftp.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/sftp.js b/lib/sftp.js index 4f814c97..b75c68bf 100644 --- a/lib/sftp.js +++ b/lib/sftp.js @@ -2728,6 +2728,8 @@ function ReadStream(sftp, path, options) { // For backwards compat do not emit close on destroy. options.emitClose = false; + // Fix error No such file. + options.autoDestroy = false; ReadableStream.call(this, options); @@ -2926,6 +2928,8 @@ function WriteStream(sftp, path, options) { // For backwards compat do not emit close on destroy. options.emitClose = false; + // Fix error No such file. + options.autoDestroy = false; WritableStream.call(this, options); From 0def4f285c6b2a3455faf9c988a89dd876b9ff36 Mon Sep 17 00:00:00 2001 From: nfourie-axess Date: Sat, 15 May 2021 20:45:52 +0200 Subject: [PATCH 2/5] updating version tu modded v0.4.11 --- lib/node-fs-compat.js | 2 +- package.json | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/node-fs-compat.js b/lib/node-fs-compat.js index cdd71c0c..14781d5c 100644 --- a/lib/node-fs-compat.js +++ b/lib/node-fs-compat.js @@ -49,7 +49,7 @@ exports.ERR_INTERNAL_ASSERTION = class ERR_INTERNAL_ASSERTION extends Error { var suffix = 'This is caused by either a bug in ssh2-streams ' + 'or incorrect usage of ssh2-streams internals.\n' + 'Please open an issue with this stack trace at ' - + 'https://github.com/mscdex/ssh2-streams/issues\n'; + + 'https://github.com/Natizyskunk/ssh2-streams/issues\n'; this.message = (message === undefined ? suffix : `${message}\n${suffix}`); } diff --git a/package.json b/package.json index e56879b5..5bdeb695 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,8 @@ { "name": "ssh2-streams", - "version": "0.4.10", + "version": "0.4.11", "author": "Brian White ", + "modder": "Natizyskunk ", "description": "SSH2 and SFTP(v3) client/server protocol streams for node.js", "main": "./index", "engines": { @@ -28,11 +29,11 @@ "licenses": [ { "type": "MIT", - "url": "http://github.com/mscdex/ssh2-streams/raw/master/LICENSE" + "url": "http://github.com/Natizyskunk/ssh2-streams/raw/master/LICENSE" } ], "repository": { "type": "git", - "url": "http://github.com/mscdex/ssh2-streams.git" + "url": "http://github.com/Natizyskunk/ssh2-streams.git" } } From ca9b05393e29a41262819a493f78222cb6107b78 Mon Sep 17 00:00:00 2001 From: nfourie-axess Date: Sat, 15 May 2021 20:54:42 +0200 Subject: [PATCH 3/5] updating readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9f9650cf..e932279a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Description SSH2 and SFTP(v3) client/server protocol streams for [node.js](http://nodejs.org/). -[![Build Status](https://travis-ci.org/mscdex/ssh2-streams.svg?branch=master)](https://travis-ci.org/mscdex/ssh2-streams) +[![Build Status](https://travis-ci.org/Natizyskunk/ssh2-streams.svg?branch=master)](https://travis-ci.org/mscdex/ssh2-streams) Requirements @@ -15,7 +15,7 @@ Requirements Install ======= - npm install ssh2-streams + npm install https://github.com/Natizyskunk/ssh2-streams.git API From a7e7d712de96dcca3ec8f1ba52d19a8aeca15ebd Mon Sep 17 00:00:00 2001 From: nfourie-axess Date: Wed, 19 May 2021 23:39:32 +0200 Subject: [PATCH 4/5] revert old url, only keepinf the fix. --- README.md | 4 ++-- lib/node-fs-compat.js | 2 +- package.json | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e932279a..a9ccf718 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Description SSH2 and SFTP(v3) client/server protocol streams for [node.js](http://nodejs.org/). -[![Build Status](https://travis-ci.org/Natizyskunk/ssh2-streams.svg?branch=master)](https://travis-ci.org/mscdex/ssh2-streams) +[![Build Status](https://travis-ci.org/mscdex/ssh2-streams.svg?branch=master)](https://travis-ci.org/mscdex/ssh2-streams) Requirements @@ -15,7 +15,7 @@ Requirements Install ======= - npm install https://github.com/Natizyskunk/ssh2-streams.git + npm install https://github.com/mscdex/ssh2-streams.git API diff --git a/lib/node-fs-compat.js b/lib/node-fs-compat.js index 14781d5c..cdd71c0c 100644 --- a/lib/node-fs-compat.js +++ b/lib/node-fs-compat.js @@ -49,7 +49,7 @@ exports.ERR_INTERNAL_ASSERTION = class ERR_INTERNAL_ASSERTION extends Error { var suffix = 'This is caused by either a bug in ssh2-streams ' + 'or incorrect usage of ssh2-streams internals.\n' + 'Please open an issue with this stack trace at ' - + 'https://github.com/Natizyskunk/ssh2-streams/issues\n'; + + 'https://github.com/mscdex/ssh2-streams/issues\n'; this.message = (message === undefined ? suffix : `${message}\n${suffix}`); } diff --git a/package.json b/package.json index 5bdeb695..1e398078 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,6 @@ "name": "ssh2-streams", "version": "0.4.11", "author": "Brian White ", - "modder": "Natizyskunk ", "description": "SSH2 and SFTP(v3) client/server protocol streams for node.js", "main": "./index", "engines": { @@ -29,11 +28,11 @@ "licenses": [ { "type": "MIT", - "url": "http://github.com/Natizyskunk/ssh2-streams/raw/master/LICENSE" + "url": "http://github.com/mscdex/ssh2-streams/raw/master/LICENSE" } ], "repository": { "type": "git", - "url": "http://github.com/Natizyskunk/ssh2-streams.git" + "url": "http://github.com/mscdex/ssh2-streams.git" } } From a7bdd3276536ef09ee8ad62b6d373edf2f0cb227 Mon Sep 17 00:00:00 2001 From: nfourie-axess Date: Wed, 19 May 2021 23:40:28 +0200 Subject: [PATCH 5/5] revert old url, only keepinf the fix. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a9ccf718..9f9650cf 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Requirements Install ======= - npm install https://github.com/mscdex/ssh2-streams.git + npm install ssh2-streams API