@logux/client
Advanced tools
Comparing version 0.9.0 to 0.9.1
# Change Log | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
## 0.9.1 | ||
* Improve log messages for subscribing. | ||
## 0.9 | ||
@@ -5,0 +8,0 @@ * Use Logux Core 0.6 and WebSocket Protocol 4. |
@@ -93,2 +93,7 @@ import { Unsubscribe } from 'nanoevents' | ||
* | ||
* ```js | ||
* await client.waitFor('synchronized') | ||
* hideLoader() | ||
* ``` | ||
* | ||
* @param state State name | ||
@@ -95,0 +100,0 @@ */ |
@@ -85,3 +85,3 @@ import { parseId } from '@logux/core/parse-id' | ||
if (action.type === 'logux/subscribe') { | ||
message = 'subscribed to channel ' + bold(action.channel) | ||
message = 'subscribing to ' + bold(action.channel) + ' channel' | ||
if (Object.keys(action).length === 2) { | ||
@@ -101,5 +101,17 @@ showLog(message) | ||
if (sent[action.id]) { | ||
showLog('action ' + bold(sent[action.id].type) + ' was processed', { | ||
Action: sent[action.id] | ||
}) | ||
let processed = sent[action.id] | ||
let details = { | ||
'Processed Action': processed | ||
} | ||
if (processed.type === 'logux/subscribe') { | ||
showLog( | ||
'subscribed to ' + bold(processed.channel) + ' was channel', | ||
details | ||
) | ||
} else { | ||
showLog( | ||
'action ' + bold(processed.type) + ' was processed', | ||
details | ||
) | ||
} | ||
delete sent[action.id] | ||
@@ -106,0 +118,0 @@ } else { |
{ | ||
"name": "@logux/client", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"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
110803
3429