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 2.1.1 to 2.1.2

11

socket.io/index.d.ts

@@ -146,2 +146,13 @@ // Type definitions for socket.io 2.1

/**
* Provides a function taking two arguments origin:String
* and callback(error, success), where success is a boolean
* value indicating whether origin is allowed or not. If
* success is set to false, error must be provided as a string
* value that will be appended to the server response, e.g. “Origin not allowed”.
* @param fn The function that will be called to check the origin
* return This Server
*/
origins( fn: ( origin: string, callback: ( error: string | null, success: boolean ) => void ) => void ): Server;
/**
* Attaches socket.io to a server

@@ -148,0 +159,0 @@ * @param srv The http.Server that we want to attach to

4

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

@@ -48,4 +48,4 @@ "license": "MIT",

},
"typesPublisherContentHash": "c9c1b55d9a2ba0c737782037e9bece4c846f2db485918d0b9a5991badcb7f586",
"typesPublisherContentHash": "055e3ec36f2cff7d6c32e19fa1d24968617df26a06cc7d1003a08dd4cc7a278f",
"typeScriptVersion": "2.0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Thu, 06 Dec 2018 00:19:56 GMT
* Last updated: Fri, 07 Dec 2018 23:32:00 GMT
* Dependencies: @types/node

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

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