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

@types/pubsub-js

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/pubsub-js - npm Package Compare versions

Comparing version 1.5.18 to 1.8.0

45

pubsub-js/index.d.ts

@@ -1,33 +0,46 @@

// Type definitions for PubSubJS 1.5.2
// Type definitions for PubSubJS 1.8.0
// Project: https://github.com/mroderick/PubSubJS
// Definitions by: Boris Yankov <https://github.com/borisyankov>
// Matthias Lindinger <https://github.com/morpheus-87>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace PubSubJS {
interface Base extends Publish, Subscribe, Unsubscribe, ClearAllSubscriptions {
interface Base
extends CountSubscriptions,
ClearAllSubscriptions,
GetSubscriptions,
Publish,
Subscribe,
Unsubscribe {
name: string;
version: string;
name: string;
}
interface Publish{
publish(message: any, data: any): boolean;
interface CountSubscriptions {
countSubscriptions(token: any): number;
}
publish(message:any, data:any, sync:boolean, immediateExceptions:Function): boolean;
publishSync(message: any, data: any): boolean;
interface ClearAllSubscriptions {
clearAllSubscriptions(token?: any): void;
}
interface Subscribe{
subscribe(message: any, func: Function): any;
interface GetSubscriptions {
getSubscriptions(token: any): any[];
}
interface Publish {
publish(message: string, data: any): boolean;
interface Unsubscribe{
unsubscribe(tokenOrFunction: any): any;
publishSync(message: string, data: any): boolean;
}
interface Subscribe {
subscribe(message: string, func: Function): string;
interface ClearAllSubscriptions{
clearAllSubscriptions(): any;
subscribeOnce(message: string, func: Function): any;
}
interface Unsubscribe {
unsubscribe(tokenOrFunction: any): any;
}
}

@@ -37,4 +50,4 @@

declare module "pubsub-js" {
export = PubSub;
declare module 'pubsub-js' {
export = PubSub;
}
{
"name": "@types/pubsub-js",
"version": "1.5.18",
"version": "1.8.0",
"description": "TypeScript definitions for PubSubJS",

@@ -9,14 +9,22 @@ "license": "MIT",

"name": "Boris Yankov",
"url": "https://github.com/borisyankov"
"url": "https://github.com/borisyankov",
"githubUsername": "borisyankov"
},
{
"name": "Matthias Lindinger",
"url": "https://github.com/morpheus-87",
"githubUsername": "morpheus-87"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/pubsub-js"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "a48b10055a0a424ef0f8cf4dd8bff49e3cfb18bb2866134f3db2441ca257d47c",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "d98e8cde3b4dab0e89873aa8dc6aabaefcffbf819f41e50e238601b7243de6a8",
"typeScriptVersion": "2.9"
}

@@ -8,10 +8,10 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pubsub-js
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pubsub-js.
Additional Details
* Last updated: Mon, 21 Aug 2017 21:59:27 GMT
### Additional Details
* Last updated: Fri, 01 May 2020 08:04:59 GMT
* Dependencies: none
* Global values: PubSub
* Global values: `PubSub`
# Credits
These definitions were written by Boris Yankov <https://github.com/borisyankov>.
These definitions were written by [Boris Yankov](https://github.com/borisyankov), and [Matthias Lindinger](https://github.com/morpheus-87).

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