@ts-core/angular 15.0.36 → 15.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/login/LoginTokenStorage.mjs +2 -2
- package/esm2020/public-api.mjs +4 -1
- package/esm2020/storage/BooleanValueStorage.mjs +15 -0
- package/esm2020/storage/DateValueStorage.mjs +27 -0
- package/esm2020/storage/IValueStorage.mjs +2 -0
- package/esm2020/storage/ValueStorage.mjs +35 -13
- package/fesm2015/ts-core-angular.mjs +74 -14
- package/fesm2015/ts-core-angular.mjs.map +1 -1
- package/fesm2020/ts-core-angular.mjs +74 -14
- package/fesm2020/ts-core-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
- package/storage/BooleanValueStorage.d.ts +5 -0
- package/storage/DateValueStorage.d.ts +6 -0
- package/storage/IValueStorage.d.ts +8 -0
- package/storage/ValueStorage.d.ts +10 -6
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -104,6 +104,9 @@ export * from './notification/NotificationServiceEvent';
|
|
|
104
104
|
export * from './bottomSheet/BottomSheetService';
|
|
105
105
|
export * from './storage/LocalStorageService';
|
|
106
106
|
export * from './storage/ValueStorage';
|
|
107
|
+
export * from './storage/IValueStorage';
|
|
108
|
+
export * from './storage/DateValueStorage';
|
|
109
|
+
export * from './storage/BooleanValueStorage';
|
|
107
110
|
export * from './module/LazyModuleLoader';
|
|
108
111
|
export * from './transport/TransportLazy';
|
|
109
112
|
export * from './transport/TransportLazyModule';
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { DestroyableContainer } from '@ts-core/common';
|
|
2
2
|
import { CookieService } from '../cookie/CookieService';
|
|
3
3
|
import { LocalStorageService } from '../storage/LocalStorageService';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import { IValueStorage } from './IValueStorage';
|
|
5
|
+
export declare class ValueStorage<T = string> extends DestroyableContainer implements IValueStorage<T> {
|
|
6
|
+
protected storage: LocalStorageService;
|
|
6
7
|
protected cookies: CookieService;
|
|
7
|
-
protected
|
|
8
|
-
constructor(
|
|
9
|
-
|
|
8
|
+
protected _name: string;
|
|
9
|
+
constructor(name: string, storage: LocalStorageService, cookies: CookieService);
|
|
10
|
+
protected serialize(value: string): T;
|
|
11
|
+
protected deserialize(value: T): string;
|
|
12
|
+
get(defaultValue?: T): T;
|
|
10
13
|
has(): boolean;
|
|
11
|
-
set(value:
|
|
14
|
+
set(value: T): void;
|
|
12
15
|
destroy(): void;
|
|
16
|
+
get name(): string;
|
|
13
17
|
}
|