@hapi/nes 12.0.4 → 12.0.5

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.
Files changed (2) hide show
  1. package/lib/client.js +4 -0
  2. package/package.json +7 -1
package/lib/client.js CHANGED
@@ -392,6 +392,10 @@
392
392
  return;
393
393
  }
394
394
 
395
+ if (this._reconnectionTimer) {
396
+ return;
397
+ }
398
+
395
399
  if (reconnection.retries < 1) {
396
400
  return this._disconnect(ignore, true); // Clear _reconnection state
397
401
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hapi/nes",
3
3
  "description": "WebSocket adapter plugin for hapi routes",
4
- "version": "12.0.4",
4
+ "version": "12.0.5",
5
5
  "repository": "git://github.com/hapijs/nes",
6
6
  "engines": {
7
7
  "node": ">=12.0.0"
@@ -15,6 +15,11 @@
15
15
  "plugin",
16
16
  "websocket"
17
17
  ],
18
+ "eslintConfig": {
19
+ "extends": [
20
+ "plugin:@hapi/module"
21
+ ]
22
+ },
18
23
  "dependencies": {
19
24
  "@hapi/boom": "9.x.x",
20
25
  "@hapi/bounce": "2.x.x",
@@ -28,6 +33,7 @@
28
33
  },
29
34
  "devDependencies": {
30
35
  "@hapi/code": "8.x.x",
36
+ "@hapi/eslint-plugin": "^5.0.0",
31
37
  "@hapi/hapi": "20.x.x",
32
38
  "@hapi/lab": "24.x.x"
33
39
  },