@logux/client
Advanced tools
Comparing version 0.8.1 to 0.8.2
# Change Log | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
## 0.8.2 | ||
* Remove support of old servers. | ||
## 0.8.1 | ||
@@ -5,0 +8,0 @@ * Fix node ID generation in `Client#changeUser()`. |
@@ -10,3 +10,3 @@ import { createNanoEvents } from 'nanoevents' | ||
let ALLOWED_META = ['id', 'time', 'channels'] | ||
let ALLOWED_META = ['id', 'time', 'subprotocol'] | ||
@@ -204,8 +204,9 @@ function tabPing (c) { | ||
for (let i in meta) { | ||
if (ALLOWED_META.includes(i)) { | ||
if (i === 'subprotocol') { | ||
if (meta.subprotocol !== this.options.subprotocol) { | ||
filtered.subprotocol = meta.subprotocol | ||
} | ||
} else if (ALLOWED_META.includes(i)) { | ||
filtered[i] = meta[i] | ||
} | ||
if (meta.subprotocol && meta.subprotocol !== this.options.subprotocol) { | ||
filtered.subprotocol = meta.subprotocol | ||
} | ||
} | ||
@@ -212,0 +213,0 @@ return [action, filtered] |
{ | ||
"name": "@logux/client", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "Logux base components to build web client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
105983
3193