Socket
Socket
Sign inDemoInstall

suub

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

suub - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

3

package.json
{
"name": "suub",
"version": "1.2.0",
"version": "1.3.0",
"license": "MIT",

@@ -19,2 +19,3 @@ "author": "Etienne Dldc <e.deladonchamps@gmail.com>",

"devDependencies": {
"@types/jest": "^24.0.19",
"tsdx": "^0.10.5",

@@ -21,0 +22,0 @@ "tslib": "^1.10.0"

@@ -1,3 +0,7 @@

# Suub
<p align="center">
<img src="https://github.com/etienne-dldc/suub/blob/master/design/logo.png" width="597" alt="suub logo">
</p>
# 📫 Suub
> A simple pub/sub written in Typescript

@@ -27,3 +31,3 @@

### `Subscription.create<T>(options: Options): Subscription<T>`
### Subscription.create<T>(options: Options): Subscription<T>

@@ -41,3 +45,3 @@ > Create a new Subscription

### `Subscription<T>.subscribe([subId, ] listener): Unsubscribe`
### Subscription<T>.subscribe([subId, ] listener): Unsubscribe

@@ -50,3 +54,3 @@ > Add a subscriber

### `Subscription<T>.call(value: T)`
### Subscription<T>.call(value: T)

@@ -59,4 +63,8 @@ > Call all listeners in the same order they were subscribed

### `Subscription<T>.unsubscribe(listener)`
### Subscription<T>.unsubscribeAll()
> Unsubscribe all listeners
### Subscription<T>.unsubscribe(listener)
> Unsubscribe a listener either by reference or by id

@@ -66,3 +74,3 @@

### `Subscription<T>.isSubscribed(listener): boolean`
### Subscription<T>.isSubscribed(listener): boolean

@@ -69,0 +77,0 @@ > Test wether a listener id subscribed or not

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