New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-event-socket

Package Overview
Dependencies
Maintainers
0
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-event-socket - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0-beta.1

20

dist/index.js

@@ -38,3 +38,3 @@ import f from "react";

1015: "The connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can't be verified)."
}, j = {
}, $ = {
1: "open",

@@ -44,3 +44,3 @@ 0: "connecting",

2: "closing"
}, O = (s) => {
}, j = (s) => {
try {

@@ -52,3 +52,3 @@ return JSON.stringify(s);

return !1;
}, x = (s) => Object.keys(s.getState()).reduce((e, t) => {
}, O = (s) => Object.keys(s.getState()).reduce((e, t) => {
const n = t, o = `set${l(t)}`, i = (c) => {

@@ -58,3 +58,3 @@ s.setState({ [n]: c });

return { ...e, [o]: i };
}, {}), M = (s) => Object.keys(s.getState()).reduce((e, t) => {
}, {}), x = (s) => Object.keys(s.getState()).reduce((e, t) => {
const n = t, o = `use${l(t)}`;

@@ -69,4 +69,4 @@ return { ...e, [o]: () => s((i) => i[n]) };

{}
), t = C()(() => ({ ...e })), n = x(t);
return [M(t), n];
), t = C()(() => ({ ...e })), n = O(t);
return [x(t), n];
};

@@ -92,3 +92,5 @@ class E {

for (let o = 0; o < n.length; o++) {
const { eventName: i, predicate: c } = n[o], r = JSON.parse(e.data);
const { eventName: i, predicate: c } = n[o];
this.verbose && console.info(`${i} - ${e}`);
const r = JSON.parse(e.data);
if (!c(r)) continue;

@@ -115,3 +117,3 @@ const h = this.getData(i, r);

}, n.setStatus(
j[e.readyState]
$[e.readyState]
);

@@ -146,3 +148,3 @@ }

var r;
const c = typeof i != "string" ? O(i) : i;
const c = typeof i != "string" ? j(i) : i;
c !== !1 && (this.verbose && console.info("Sending data:", i), (r = this.socket) == null || r.send(c));

@@ -149,0 +151,0 @@ }

@@ -67,3 +67,3 @@ {

},
"version": "1.0.0"
"version": "1.1.0-beta.1"
}

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