ssh2-sftp-client 7.2.1 → 7.2.2

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.
package/README.md CHANGED
@@ -61,9 +61,9 @@ an SFTP client for node.js, a wrapper around [SSH2](https://github.com/mscdex/ss
61
61
 
62
62
  Documentation on the methods and available options in the underlying modules can be found on the [SSH2](https://github.com/mscdex/ssh2) project pages.
63
63
 
64
- Current stable release is **v7.2.1**.
64
+ Current stable release is **v7.2.2**.
65
65
 
66
- Code has been tested against Node versions 14.18.2, 16.13.1 and 17.2.0
66
+ Code has been tested against Node versions 14.18.3, 16.13.2 and 17.4.0
67
67
 
68
68
  Node versions < 10.x are not supported.
69
69
 
@@ -1361,3 +1361,4 @@ Thanks to the following for their contributions -
1361
1361
  - **Emma Milner:** Contributed fix for put() bug
1362
1362
  - **Witni Davis:** Contributed PR to fix put() RCE when using 'finish' rather than 'close' to resolve promise
1363
1363
  - **Maik Marschner:** Contributed fix for connect() not returning sftp object. Also included test to check for this regression in future.
1364
+ - **cakemasher:** Contributed fix for removeTempListeners().
package/README.org CHANGED
@@ -9,9 +9,9 @@ convenience abstraction as well as a Promise based API.
9
9
  Documentation on the methods and available options in the underlying modules can
10
10
  be found on the [[https://github.com/mscdex/ssh2][SSH2]] project pages.
11
11
 
12
- Current stable release is *v7.2.1*.
12
+ Current stable release is *v7.2.2*.
13
13
 
14
- Code has been tested against Node versions 14.18.2, 16.13.1 and 17.2.0
14
+ Code has been tested against Node versions 14.18.3, 16.13.2 and 17.4.0
15
15
 
16
16
  Node versions < 10.x are not supported.
17
17
 
@@ -1784,3 +1784,5 @@ Thanks to the following for their contributions -
1784
1784
  'close' to resolve promise
1785
1785
  - Maik Marschner :: Contributed fix for connect() not returning sftp object.
1786
1786
  Also included test to check for this regression in future.
1787
+ - cakemasher :: Contributed fix for removeTempListeners().
1788
+
package/package.json CHANGED
@@ -1,17 +1,13 @@
1
1
  {
2
2
  "name": "ssh2-sftp-client",
3
- "version": "7.2.1",
3
+ "version": "7.2.2",
4
4
  "description": "ssh2 sftp client for node",
5
5
  "main": "src/index.js",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/theophilusx/ssh2-sftp-client"
9
9
  },
10
- "keywords": [
11
- "sftp",
12
- "nodejs",
13
- "promises"
14
- ],
10
+ "keywords": ["sftp", "nodejs", "promises"],
15
11
  "scripts": {
16
12
  "test": "mocha",
17
13
  "coverage": "nyc npm run test",
@@ -32,20 +28,20 @@
32
28
  "dependencies": {
33
29
  "concat-stream": "^2.0.0",
34
30
  "promise-retry": "^2.0.1",
35
- "ssh2": "^1.5.0"
31
+ "ssh2": "^1.6.0"
36
32
  },
37
33
  "devDependencies": {
38
34
  "chai": "^4.3.4",
39
35
  "chai-as-promised": "^7.1.1",
40
36
  "chai-subset": "^1.6.0",
41
37
  "checksum": "^1.0.0",
42
- "dotenv": "^10.0.0",
38
+ "dotenv": "^15.0.0",
43
39
  "eslint": "^8.5.0",
44
40
  "eslint-config-prettier": "^8.3.0",
45
41
  "eslint-plugin-mocha": "^10.0.3",
46
42
  "eslint-plugin-node": "^11.1.0",
47
43
  "eslint-plugin-promise": "^6.0.0",
48
- "eslint-plugin-unicorn": "^39.0.0",
44
+ "eslint-plugin-unicorn": "^40.1.0",
49
45
  "mocha": "^9.1.2",
50
46
  "moment": "^2.29.1",
51
47
  "nyc": "^15.1.0",
package/src/utils.js CHANGED
@@ -148,7 +148,7 @@ function removeTempListeners(obj, name) {
148
148
  obj.tempListeners[name].forEach(([e, fn]) => {
149
149
  obj.client.removeListener(e, fn);
150
150
  });
151
- obj.tempListeners = [];
151
+ obj.tempListeners[name] = [];
152
152
  }
153
153
  }
154
154