Socket
Socket
Sign inDemoInstall

@types/event-source-polyfill

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

16

event-source-polyfill/index.d.ts

@@ -19,3 +19,3 @@ // Type definitions for event-source-polyfill 1.0

headers?: { [name: string]: string };
Transport?: new () => any;
Transport?: new() => any;
}

@@ -69,5 +69,13 @@

dispatchEvent(event: Event): boolean;
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: any): void;
addEventListener<K extends keyof EventSourceEventMap>(
type: K,
listener: (this: EventSource, ev: EventSourceEventMap[K]) => any,
options?: any,
): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: any): void;
removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: any): void;
removeEventListener<K extends keyof EventSourceEventMap>(
type: K,
listener: (this: EventSource, ev: EventSourceEventMap[K]) => any,
options?: any,
): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: any): void;

@@ -80,3 +88,3 @@ }

prototype: any;
new (url: string, eventSourceInitDict?: EventSourceInit): EventSource;
new(url: string, eventSourceInitDict?: EventSourceInit): EventSource;
readonly CLOSED: number;

@@ -83,0 +91,0 @@ readonly CONNECTING: number;

{
"name": "@types/event-source-polyfill",
"version": "1.0.1",
"version": "1.0.2",
"description": "TypeScript definitions for event-source-polyfill",

@@ -23,4 +23,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/event-source-polyfill",

"dependencies": {},
"typesPublisherContentHash": "b48673ad92543e84f0906ab2025094f4eb95a67afaa1b0f9aff929b12a91e2e8",
"typeScriptVersion": "4.2"
"typesPublisherContentHash": "ec9b892528e19075cb12d84f7c09c8c4067a518fb5ad0d007476fa282ef2f569",
"typeScriptVersion": "4.5"
}

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

### Additional Details
* Last updated: Tue, 24 Jan 2023 21:02:44 GMT
* Last updated: Sat, 23 Sep 2023 17:07:22 GMT
* Dependencies: none

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc