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

ws-events-and-middlewares

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ws-events-and-middlewares - npm Package Compare versions

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc