everstorage
Advanced tools
Comparing version 0.9.4 to 1.0.0
@@ -1,2 +0,2 @@ | ||
import { Observable } from 'rxjs'; | ||
import { BehaviorSubject } from 'rxjs'; | ||
import { IDestroyable } from '../../interfaces/IDestroyable'; | ||
@@ -14,6 +14,4 @@ import { IObservableStorage } from '../../interfaces/IObservableStorage'; | ||
destroyed: boolean; | ||
values: Observable<TValue>; | ||
private lastValue; | ||
private valuesToSaveObserver?; | ||
private valuesObserver?; | ||
values: BehaviorSubject<TValue>; | ||
private valuesToSave; | ||
private options; | ||
@@ -25,3 +23,3 @@ private uniqueIdentifier; | ||
get value(): TValue; | ||
pushValue(partialValue: Partial<TValue>): Promise<void>; | ||
set value(partialValue: TValue); | ||
destroy(): void; | ||
@@ -28,0 +26,0 @@ createLink(value: TValue, baseUrl?: URL | string): URL; |
@@ -1,2 +0,2 @@ | ||
import { Observable } from 'rxjs'; | ||
import { BehaviorSubject } from 'rxjs'; | ||
import { IDestroyable } from './IDestroyable'; | ||
@@ -6,5 +6,10 @@ import { ISerializable } from './ISerializable'; | ||
export interface IObservableStorage<TValue extends ISerializable> extends IDestroyable { | ||
/** | ||
* Just a shorthand to get/set last/next value in values | ||
*/ | ||
value: TValue; | ||
values: Observable<TValue>; | ||
pushValue(value: TValue): void; | ||
/** | ||
* Set values through value not value.next() (TODO: Maybe change?) | ||
*/ | ||
values: Omit<BehaviorSubject<TValue>, 'next'>; | ||
} |
{ | ||
"name": "everstorage", | ||
"version": "0.9.4", | ||
"version": "1.0.0", | ||
"author": "Pavol Hejný <me@pavolhejny.com> (https://pavolhejny.com)", | ||
@@ -5,0 +5,0 @@ "description": "A vector manipulation class", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
2809675
15048