Comparing version 1.2.0 to 1.3.0
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33869
75
3