rxtutils 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +5 -5
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -27,12 +27,12 @@ interface ICacheOptions<Param> {
27
27
  declare const StorageMap: Record<StorageType | string, Storage>;
28
28
  declare class Cache<Param, Data> {
29
29
  cache: ICache<Param, Data>[];
30
- cacheOptions: ICacheOptions<Param>;
30
+ private cacheOptions;
31
31
  storage?: Storage | IndexedDBStorage;
32
32
  constructor(cacheType?: StorageType, cacheKey?: string, cacheTime?: number, indexDBName?: string, cacheKeyEquals?: (prev: Param, next: Param) => boolean);
33
- _init(): Promise<void>;
34
- _filterExpired(): void;
35
- _saveToStorage(): void;
33
+ private _init;
34
+ private _filterExpired;
35
+ private _saveToStorage;
36
36
  setCache(params: Param, data: Data, cacheOptions?: Omit<ICacheOptions<Param>, 'storageType' | 'cacheKey' | 'cacheKeyEquals'>): void;
37
37
  getCache(params: Param): Data;
38
38
  clear(): void;
@@ -86,4 +86,4 @@ declare function createStateStore<S>(initialState?: S): {
86
86
  };
87
87
 
88
88
  export { Cache, StorageMap, createBaseRequest, createStateStore };
89
- export type { ErrorHandlerReturnType, ICache, ICacheOptions, IHookStateInitAction, IHookStateInitialSetter, IHookStateResolvable, IHookStateSetAction, IHookStateSetter, Options, RequestOptions, StorageType };
89
+ export type { ErrorHandlerReturnType, ICache, ICacheOptions, IHookStateInitAction, IHookStateInitialSetter, IHookStateResolvable, IHookStateSetAction, IHookStateSetter, Options, RequestOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rxtutils",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",