Socket
Socket
Sign inDemoInstall

ws-events-and-middlewares

Package Overview
Dependencies
1
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.25 to 1.1.1

5

index.js

@@ -44,5 +44,6 @@ const Emitter = require('component-emitter')

if (json.c) {
args = args.concat(function () {
args = args.concat(function () { // <-- Esta es la funcion que van a ejecutar como callback para que nosotros se la enviemos al otro lado
let callbackArgs = arguments // Nos quedamos con los parametros de la callback
whenOpen(function() {
sock.send(JSON.stringify({ callback: json.c, a: Array.from(arguments) }))
sock.send(JSON.stringify({ callback: json.c, a: Array.from(callbackArgs) }))
})

@@ -49,0 +50,0 @@ })

2

package.json
{
"name": "ws-events-and-middlewares",
"version": "1.0.25",
"version": "1.1.1",
"description": "ws module wrapper to provide events",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc