starti.app 2.0.158 → 2.0.160

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.
@@ -10,10 +10,13 @@ export declare class App extends EventTargetWithType<{
10
10
  private appIntegration;
11
11
  private alternateIconsIntegration;
12
12
  private hasStartiappLoaded;
13
+ private deviceIdCache;
14
+ private brandIdCache;
13
15
  constructor(startiapp: Startiapp);
14
16
  isStartiappLoaded(): boolean;
15
17
  /**
16
18
  * Get the brand id of the app.
19
+ * The result is cached after the first call to avoid multiple parallel calls to the native bridge.
17
20
  *
18
21
  * @example
19
22
  * ```typescript
@@ -24,6 +27,7 @@ export declare class App extends EventTargetWithType<{
24
27
  brandId: () => Promise<string>;
25
28
  /**
26
29
  * Get the device id of the app.
30
+ * The result is cached after the first call to avoid multiple parallel calls to the native bridge.
27
31
  *
28
32
  * @example
29
33
  * ```typescript
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "starti.app",
3
3
  "author": "starti.app",
4
4
  "license": "MIT",
5
- "version": "2.0.158",
5
+ "version": "2.0.160",
6
6
  "description": "Use this package for easy communication with the starti.app API.",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",