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

@types/cometd

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/cometd - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

27

cometd/index.d.ts
// Type definitions for CometD 4.0
// Project: http://cometd.org
// Definitions by: Derek Cicerone <https://github.com/derekcicerone>, Daniel Perez Alvarez <https://github.com/unindented>
// Definitions by: Derek Cicerone <https://github.com/derekcicerone>, Daniel Perez Alvarez <https://github.com/unindented>, Alex Henry <https://github.com/alxHenry>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -78,3 +78,12 @@ // TypeScript Version: 2.3

export type Listener = (message: Message) => void;
export type Callback = (data: any) => void;
export interface SubscriptionHandle {
id: number;
channel: string;
listener: boolean;
callback: Callback;
scope?: any;
}
export interface Extension {

@@ -206,3 +215,3 @@ incoming?: Listener;

*/
addListener(channel: string, callback: Listener): Listener;
addListener(channel: string, callback: Listener): SubscriptionHandle;

@@ -214,3 +223,3 @@ /**

*/
removeListener(subscription: Listener): void;
removeListener(subscription: SubscriptionHandle): void;

@@ -240,3 +249,3 @@ /**

*/
subscribe(channel: string, callback: Listener, subscribeCallback?: Listener): Listener;
subscribe(channel: string, callback: Callback, subscribeCallback?: Listener): SubscriptionHandle;

@@ -262,3 +271,3 @@ /**

*/
subscribe(channel: string, callback: Listener, subscribeProps: object, subscribeCallback?: Listener): Listener;
subscribe(channel: string, callback: Callback, subscribeProps: object, subscribeCallback?: Listener): SubscriptionHandle;

@@ -271,3 +280,3 @@ /**

*/
unsubscribe(subscription: Listener, unsubscribeCallback?: Listener): void;
unsubscribe(subscription: SubscriptionHandle, unsubscribeCallback?: Listener): void;

@@ -281,3 +290,3 @@ /**

*/
unsubscribe(subscription: Listener, unsubscribeProps: object, unsubscribeCallback?: Listener): void;
unsubscribe(subscription: SubscriptionHandle, unsubscribeProps: object, unsubscribeCallback?: Listener): void;

@@ -287,3 +296,3 @@ /**

*/
resubscribe(subscription: Listener, subscribeProps?: object): Listener;
resubscribe(subscription: SubscriptionHandle, subscribeProps?: object): SubscriptionHandle;

@@ -474,3 +483,3 @@ /**

*/
onListenerException: (exception: any, subscriptionHandle: Listener, isListener: boolean, message: string) => void;
onListenerException: (exception: any, subscriptionHandle: SubscriptionHandle, isListener: boolean, message: string) => void;
}
{
"name": "@types/cometd",
"version": "4.0.0",
"version": "4.0.1",
"description": "TypeScript definitions for CometD",

@@ -16,2 +16,7 @@ "license": "MIT",

"githubUsername": "unindented"
},
{
"name": "Alex Henry",
"url": "https://github.com/alxHenry",
"githubUsername": "alxHenry"
}

@@ -26,4 +31,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "f9cf678286b01b8d46b59726d4406c02f57c529a3230664059d65e947dea51e2",
"typesPublisherContentHash": "19fc12cd588ff9eb7c6f02c19321ca89accc38cc8f20d16b5a5a910af9b4614c",
"typeScriptVersion": "2.3"
}

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

Additional Details
* Last updated: Thu, 27 Sep 2018 12:34:10 GMT
* Last updated: Thu, 11 Oct 2018 23:03:07 GMT
* Dependencies: none

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

# Credits
These definitions were written by Derek Cicerone <https://github.com/derekcicerone>, Daniel Perez Alvarez <https://github.com/unindented>.
These definitions were written by Derek Cicerone <https://github.com/derekcicerone>, Daniel Perez Alvarez <https://github.com/unindented>, Alex Henry <https://github.com/alxHenry>.
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