@typeheim/fire-rx
Advanced tools
Comparing version 0.0.0-beta.13 to 0.0.0-beta.15
@@ -6,1 +6,2 @@ export * from './src/DestroyEvent'; | ||
export * from './src/ValueSubject'; | ||
export * from './src/ReactivePromise'; |
@@ -11,2 +11,3 @@ "use strict"; | ||
__export(require("./src/ValueSubject")); | ||
__export(require("./src/ReactivePromise")); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@typeheim/fire-rx", | ||
"version": "0.0.0-beta.13", | ||
"version": "0.0.0-beta.15", | ||
"description": "Firebase authentication library", | ||
@@ -32,3 +32,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "6a0cce74c25a43fdbbc8246dbfaa20f373e64d95" | ||
"gitHead": "7773a9c68d67290db626045877eb20990982b99f" | ||
} |
@@ -1,2 +0,3 @@ | ||
import { ReplaySubject, Subscribable } from 'rxjs'; | ||
import { ReplaySubject } from 'rxjs'; | ||
import { Subscribable } from './contracts'; | ||
export declare class StatefulSubject<T> extends ReplaySubject<T> implements PromiseLike<T> { | ||
@@ -3,0 +4,0 @@ protected _internalPromise: Promise<T>; |
@@ -1,9 +0,10 @@ | ||
import { SubscriptionLike } from 'rxjs'; | ||
import { DestroyEvent } from '@typeheim/fire-rx'; | ||
import { Unsubscribable } from './contracts'; | ||
export declare class SubscriptionsHub { | ||
protected subscriptions: SubscriptionLike[]; | ||
protected subscriptions: Unsubscribable[]; | ||
constructor(destroyEvent?: DestroyEvent); | ||
get count(): number; | ||
collectUntil(destroyEvent: DestroyEvent): void; | ||
add(subscription: SubscriptionLike): void; | ||
add(subscription: Unsubscribable): void; | ||
unsubscribe(): void; | ||
} |
@@ -10,2 +10,5 @@ "use strict"; | ||
} | ||
get count() { | ||
return this.subscriptions.length; | ||
} | ||
collectUntil(destroyEvent) { | ||
@@ -21,2 +24,3 @@ destroyEvent.subscribe(() => { this.unsubscribe(); }); | ||
}); | ||
this.subscriptions = []; | ||
} | ||
@@ -23,0 +27,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
34900
30
576
0