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

@types/socket.io

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/socket.io - npm Package Compare versions

Comparing version 1.4.33 to 1.4.34

22

socket.io/index.d.ts

@@ -477,2 +477,17 @@ // Type definitions for socket.io 1.4.4

interface Packet extends Array<any> {
/**
* Event name
*/
[0]: string;
/**
* Packet data
*/
[1]: any;
/**
* Ack function
*/
[2]: (...args: any[]) => void;
}
/**

@@ -617,2 +632,9 @@ * The socket, which handles our connection for a namespace. NOTE: while

/**
* Registers a middleware, which is a function that gets executed for every incoming Packet and receives as parameter the packet and a function to optionally defer execution to the next registered middleware.
*
* Errors passed to middleware callbacks are sent as special error packets to clients.
*/
use( fn: ( packet: Packet, next: (err?: any) => void ) => void ): Socket;
/**
* Sends a 'message' event

@@ -619,0 +641,0 @@ * @see emit( event, ...args )

6

socket.io/package.json
{
"name": "@types/socket.io",
"version": "1.4.33",
"version": "1.4.34",
"description": "TypeScript definitions for socket.io",

@@ -36,3 +36,3 @@ "license": "MIT",

"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
},

@@ -43,4 +43,4 @@ "scripts": {},

},
"typesPublisherContentHash": "1dc48fcb2f2809f6cd90b537509c61c69bfb2e9c87fdb82ac395813ba6064675",
"typesPublisherContentHash": "70138adabb89f7ae7921887c85250c73efe557912a1e724fb805884d5c261d24",
"typeScriptVersion": "2.0"
}

@@ -8,6 +8,6 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/socket.io
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/socket.io
Additional Details
* Last updated: Fri, 30 Mar 2018 14:35:30 GMT
* Last updated: Thu, 31 May 2018 20:09:03 GMT
* Dependencies: node

@@ -14,0 +14,0 @@ * Global values: SocketIO

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