@clairejs/client 3.5.1 → 3.5.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.
package/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## Change Log
2
2
 
3
+ #### 3.5.2:
4
+
5
+ - update abstract storage interface
6
+
3
7
  #### 3.5.1:
4
8
 
5
9
  - fix http client handle expired refresh token
@@ -1,5 +1,5 @@
1
1
  export declare abstract class AbstractStorage {
2
2
  abstract getItem<T>(key: string): Promise<T | undefined>;
3
- abstract setItem<T>(key: string, value: T): Promise<void>;
3
+ abstract setItem<T>(key: string, value: T, expirationSeconds?: number): Promise<void>;
4
4
  abstract deleteItem(key: string): Promise<void>;
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clairejs/client",
3
- "version": "3.5.1",
3
+ "version": "3.5.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -13,7 +13,7 @@
13
13
  "axios": "^1.3.4"
14
14
  },
15
15
  "peerDependencies": {
16
- "@clairejs/core": "^3.8.10"
16
+ "@clairejs/core": "^3.9.0"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/mocha": "^10.0.1",