@pushwoosh/session-store 2.3.7 → 2.4.1

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.
@@ -6,35 +6,35 @@ type AuthInfoAccountAsObject = ReturnType<RpcServiceClientInstances['accounts'][
6
6
  type AuthInfoUserAsObject = ReturnType<RpcServiceClientInstances['accounts']['AuthInfoUser']['toObject']>;
7
7
  export declare class SessionStore {
8
8
  /**
9
- * Клиент для работы c grpc
9
+ * Client for working with grpc
10
10
  */
11
11
  private readonly grpcClient;
12
12
  /**
13
- * "Наблюдаемый объект" сеанса
13
+ * "Observable object" of the session
14
14
  */
15
15
  private readonly subject;
16
16
  /**
17
- * Создать экземпляр класса SessionStore
17
+ * Create an instance of the SessionStore class
18
18
  *
19
- * @param grpcClient - клиент grpc
19
+ * @param grpcClient - grpc client
20
20
  */
21
21
  constructor(grpcClient: GrpcClient);
22
22
  /**
23
- * Обновить "Наблюдаемый объект" текущего сеанса
23
+ * Update the "Observable object" of the current session
24
24
  */
25
25
  private updateSubject;
26
26
  /**
27
- * Загрузить данные об аккаунте и пользователе
27
+ * Load account and user data
28
28
  */
29
29
  load: () => Promise<[AuthInfoAccountAsObject, AuthInfoUserAsObject]>;
30
30
  /**
31
- * Обновить сеанс
31
+ * Update the session
32
32
  */
33
33
  update: () => Promise<void>;
34
34
  /**
35
- * Подписаться на изменение сеанса
35
+ * Subscribe to session changes
36
36
  *
37
- * @param callback - колбэк, который будет вызван при изменении сеанса
37
+ * @param callback - callback that will be called when the session changes
38
38
  */
39
39
  subscribe: (callback: (session: Session) => any) => Subscription;
40
40
  }
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "pre-commit": "check",
19
19
  "dependencies": {
20
20
  "@babel/runtime-corejs3": "^7.17.2",
21
- "@pushwoosh/grpc-bridge": "^0.6.1",
21
+ "@pushwoosh/grpc-bridge": "^1.0.0",
22
22
  "core-js": "^3.21.0"
23
23
  },
24
24
  "devDependencies": {
@@ -54,7 +54,7 @@
54
54
  "webpack-merge": "^5.8.0"
55
55
  },
56
56
  "peerDependencies": {
57
- "@pushwoosh/grpc-bridge": "^0.6.1",
57
+ "@pushwoosh/grpc-bridge": "^1.0.0",
58
58
  "@pushwoosh/http-client": "^2.4.8",
59
59
  "rxjs": "^7.5.2",
60
60
  "tslib": "^2.3.1"
@@ -63,5 +63,5 @@
63
63
  "node": ">=16.0.0",
64
64
  "npm": ">=7.0.0"
65
65
  },
66
- "version": "2.3.7"
66
+ "version": "2.4.1"
67
67
  }