New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/eventsource

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/eventsource - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

11

eventsource/index.d.ts

@@ -1,5 +0,6 @@

// Type definitions for eventsource 1.0
// Type definitions for eventsource 1.1
// Project: http://github.com/EventSource/eventsource
// Definitions by: Scott Lee Davis <https://github.com/scottleedavis>
// Ali Afroozeh <https://github.com/afroozeh>
// Pedro Gámez <https://github.com/snakedrak>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -21,5 +22,5 @@ // TypeScript Version: 2.8

readonly withCredentials: boolean;
onopen: EventListener;
onmessage: EventListener;
onerror: EventListener;
onopen: (evt: MessageEvent) => any;
onmessage: (evt: MessageEvent) => any;
onerror: (evt: MessageEvent) => any;
addEventListener(type: string, listener: EventListener): void;

@@ -32,3 +33,3 @@ dispatchEvent(evt: Event): boolean;

declare namespace EventSource {
enum ReadyState {CONNECTING = 0, OPEN = 1, CLOSED = 2}
enum ReadyState { CONNECTING = 0, OPEN = 1, CLOSED = 2 }

@@ -35,0 +36,0 @@ interface EventSourceInitDict {

@@ -14,5 +14,5 @@ declare class EventSource {

readonly withCredentials: boolean;
onopen: EventListener;
onmessage: EventListener;
onerror: EventListener;
onopen: (evt: MessageEvent) => any;
onmessage: (evt: MessageEvent) => any;
onerror: (evt: MessageEvent) => any;
addEventListener(type: string, listener: EventListener): void;

@@ -19,0 +19,0 @@ dispatchEvent(evt: Event): boolean;

{
"name": "@types/eventsource",
"version": "1.0.2",
"version": "1.1.0",
"description": "TypeScript definitions for eventsource",

@@ -16,5 +16,11 @@ "license": "MIT",

"githubUsername": "afroozeh"
},
{
"name": "Pedro Gámez",
"url": "https://github.com/snakedrak",
"githubUsername": "snakedrak"
}
],
"main": "",
"types": "index",
"repository": {

@@ -26,4 +32,4 @@ "type": "git",

"dependencies": {},
"typesPublisherContentHash": "717062dd22ffbfda32d33457a1f0ba6fd6d84e852404a208c73d5cd2bf5731f3",
"typesPublisherContentHash": "ac33a41882edeb864c6e296a314be593aaf558b1d7ab625c65d6cd689d543455",
"typeScriptVersion": "2.8"
}

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

Additional Details
* Last updated: Mon, 11 Jun 2018 20:24:44 GMT
* Last updated: Sat, 19 Jan 2019 01:10:40 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: EventSource

# Credits
These definitions were written by Scott Lee Davis <https://github.com/scottleedavis>, Ali Afroozeh <https://github.com/afroozeh>.
These definitions were written by Scott Lee Davis <https://github.com/scottleedavis>, Ali Afroozeh <https://github.com/afroozeh>, Pedro Gámez <https://github.com/snakedrak>.

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