@kumiai/hub-tunnel 0.10.3 → 0.12.0

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/transport.js +1 -1
  2. package/package.json +11 -11
package/lib/transport.js CHANGED
@@ -128,7 +128,7 @@ const DEFAULT_INBOX_CAPACITY = 1024;
128
128
  clearIdleTimer();
129
129
  const elapsed = Date.now() - lastActivity;
130
130
  const remaining = idleTimeoutMs - elapsed;
131
- const delay = remaining > 0 ? remaining : 0;
131
+ const delay = Math.max(remaining, 0);
132
132
  idleTimer = setTimeout(()=>{
133
133
  idleTimer = undefined;
134
134
  if (torndown) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumiai/hub-tunnel",
3
- "version": "0.10.3",
3
+ "version": "0.12.0",
4
4
  "description": "Peer-to-peer Enkaku transport tunneled through a hub relay",
5
5
  "keywords": [
6
6
  "enkaku",
@@ -26,19 +26,19 @@
26
26
  "lib/*"
27
27
  ],
28
28
  "dependencies": {
29
- "@enkaku/transport": "^0.21.3",
30
- "@kumiai/hub-protocol": "^0.10.1",
31
- "@sozai/async": "^0.4.0",
32
- "@sozai/codec": "^0.4.2",
33
- "@sozai/event": "^0.1.5",
29
+ "@enkaku/transport": "^0.22.2",
30
+ "@kumiai/hub-protocol": "^0.12.0",
31
+ "@sozai/async": "^0.4.1",
32
+ "@sozai/codec": "^0.4.3",
33
+ "@sozai/event": "^0.1.6",
34
34
  "@sozai/schema": "^0.1.6"
35
35
  },
36
36
  "devDependencies": {
37
- "@enkaku/client": "^0.21.3",
38
- "@enkaku/protocol": "^0.21.4",
39
- "@enkaku/server": "^0.21.3",
40
- "@kokuin/token": "^0.5.0",
41
- "@kumiai/hub-conformance": "^0.10.1"
37
+ "@enkaku/client": "^0.22.2",
38
+ "@enkaku/protocol": "^0.22.2",
39
+ "@enkaku/server": "^0.22.2",
40
+ "@kokuin/token": "^0.6.2",
41
+ "@kumiai/hub-conformance": "^0.12.0"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public"