node-pm2-events
Advanced tools
Comparing version 1.2.35 to 1.2.36
{ | ||
"name": "node-pm2-events", | ||
"version": "1.2.35", | ||
"version": "1.2.36", | ||
"description": "EventBus for local and decentralized instances of the both for individual nodejs applications and as parts of pm2", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -65,3 +65,3 @@ ## 🇺🇦Decentralized instances events | ||
[![initialize](https://img.shields.io/badge/eventbus-transport_initialize-blue)](https://github.com/rosbitskyy/node-pm2-events/blob/main/main-srv-test.js) | ||
[![initialize](https://img.shields.io/badge/eventbus-transport_initialize-blue)](https://github.com/rosbitskyy/node-pm2-events/blob/main/tests/) | ||
@@ -129,3 +129,3 @@ ```javascript | ||
[![filterByProcessName](https://img.shields.io/badge/eventbus-websocket_messagesHandler-blue)](https://github.com/rosbitskyy/node-pm2-events/blob/main/main-srv-test.js) | ||
[![filterByProcessName](https://img.shields.io/badge/eventbus-websocket_messagesHandler-blue)](https://github.com/rosbitskyy/node-pm2-events/blob/main/tests/) | ||
```javascript | ||
@@ -160,3 +160,3 @@ // override: handle messages from clients sockets | ||
[![handshakes](https://img.shields.io/badge/eventbus-transport_handshakes-blue)](https://github.com/rosbitskyy/node-pm2-events/blob/main/main-srv-test.js) | ||
[![handshakes](https://img.shields.io/badge/eventbus-transport_handshakes-blue)](https://github.com/rosbitskyy/node-pm2-events/blob/main/tests/eventbus-transport-become-primary.js) | ||
@@ -169,3 +169,3 @@ ```javascript | ||
[![onMasterChange](https://img.shields.io/badge/eventbus-transport_onMasterChange-blue)](https://github.com/rosbitskyy/node-pm2-events/blob/main/main-srv-test.js) | ||
[![onMasterChange](https://img.shields.io/badge/eventbus-transport_onPrimaryChange-blue)](https://github.com/rosbitskyy/node-pm2-events/blob/main/tests/eventbus-transport-become-primary.js) | ||
@@ -208,3 +208,3 @@ ```javascript | ||
[![filterByProcessName](https://img.shields.io/badge/eventbus-transport_filterByProcessName-blue)](https://github.com/rosbitskyy/node-pm2-events/blob/main/main-srv-test.js) | ||
[![filterByProcessName](https://img.shields.io/badge/eventbus-transport_filterByProcessName-blue)](https://github.com/rosbitskyy/node-pm2-events/blob/main/tests/) | ||
@@ -211,0 +211,0 @@ In the case of using the same Redis server for different projects |
@@ -34,3 +34,2 @@ /* | ||
*/ | ||
// by default - internal send event | ||
#messagesHandler = (message, session, connection) => | ||
@@ -68,3 +67,3 @@ this.EventBus.send('websocketHandler', {message, session, connection}); | ||
stringify = (v) => { | ||
return {}.constructor === v.constructor || [].constructor === v.constructor ? JSON.stringify(v) : v; | ||
return JSON.stringify(v); | ||
} | ||
@@ -82,2 +81,3 @@ | ||
} catch (e) { | ||
console.error(e) | ||
} | ||
@@ -100,2 +100,3 @@ } | ||
} catch (e) { | ||
console.error(e) | ||
} | ||
@@ -102,0 +103,0 @@ } |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
809
2
37941
15