Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@logux/client

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@logux/client - npm Package Compare versions

Comparing version 0.9.0 to 0.9.1

3

CHANGELOG.md
# 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 @@ */

20

log/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc