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

@types/ws

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/ws - npm Package Compare versions

Comparing version 6.0.1 to 6.0.2

33

ws/index.d.ts

@@ -8,2 +8,3 @@ // Type definitions for ws 6.0

// Orblazer <https://github.com/orblazer>
// reduckted <https://github.com/reduckted>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -37,6 +38,6 @@

onopen: (event: { target: WebSocket }) => void;
onerror: (event: {error: any, message: string, type: string, target: WebSocket }) => void;
onclose: (event: { wasClean: boolean; code: number; reason: string; target: WebSocket }) => void;
onmessage: (event: { data: WebSocket.Data; type: string; target: WebSocket }) => void;
onopen: (event: WebSocket.OpenEvent) => void;
onerror: (event: WebSocket.ErrorEvent) => void;
onclose: (event: WebSocket.CloseEvent) => void;
onmessage: (event: WebSocket.MessageEvent) => void;

@@ -169,2 +170,26 @@ constructor(address: string, options?: WebSocket.ClientOptions);

interface OpenEvent {
target: WebSocket;
}
interface ErrorEvent {
error: any;
message: string;
type: string;
target: WebSocket;
}
interface CloseEvent {
wasClean: boolean;
code: number;
reason: string;
target: WebSocket;
}
interface MessageEvent {
data: Data;
type: string;
target: WebSocket;
}
interface ServerOptions {

@@ -171,0 +196,0 @@ host?: string;

14

ws/package.json
{
"name": "@types/ws",
"version": "6.0.1",
"version": "6.0.2",
"description": "TypeScript definitions for ws",

@@ -31,16 +31,22 @@ "license": "MIT",

"githubUsername": "orblazer"
},
{
"name": "reduckted",
"url": "https://github.com/reduckted",
"githubUsername": "reduckted"
}
],
"main": "",
"types": "index",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/ws"
},
"scripts": {},
"dependencies": {
"@types/events": "*",
"@types/node": "*"
},
"typesPublisherContentHash": "4ecfceef5e69e2fe7cddd05fa2ab63b16c0e5f742ac0d97a6682417ecaa46675",
"typesPublisherContentHash": "45dc4f6c8721640c2265b102200cf89ac49f19dc527b12f76e399ae07b053f34",
"typeScriptVersion": "2.0"
}

@@ -11,7 +11,7 @@ # Installation

Additional Details
* Last updated: Thu, 06 Sep 2018 00:15:01 GMT
* Dependencies: events, http, https, net, node
* Last updated: Mon, 05 Aug 2019 17:58:51 GMT
* Dependencies: @types/node
* Global values: none
# Credits
These definitions were written by Paul Loyd <https://github.com/loyd>, Matt Silverlock <https://github.com/elithrar>, Margus Lamp <https://github.com/mlamp>, Philippe D'Alva <https://github.com/TitaneBoy>, Orblazer <https://github.com/orblazer>.
These definitions were written by Paul Loyd <https://github.com/loyd>, Matt Silverlock <https://github.com/elithrar>, Margus Lamp <https://github.com/mlamp>, Philippe D'Alva <https://github.com/TitaneBoy>, Orblazer <https://github.com/orblazer>, and reduckted <https://github.com/reduckted>.

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