@robotical/webapp-types 3.23.0 → 3.23.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marty-web-app",
3
- "version": "3.23.0",
3
+ "version": "3.23.2",
4
4
  "private": true,
5
5
  "engines": {
6
6
  "node": ">=20"
@@ -16,7 +16,7 @@
16
16
  "@robotical/cog-shooter-game": "^0.1.27",
17
17
  "@robotical/jumping-game": "^0.1.29",
18
18
  "@robotical/martyblocks": "^4.0.69",
19
- "@robotical/martyblocksjr": "^4.3.3",
19
+ "@robotical/martyblocksjr": "^4.4.0",
20
20
  "@robotical/maze": "^0.1.22",
21
21
  "@robotical/rc-sequencer": "^1.1.15",
22
22
  "@robotical/ricjs-robotical-addons": "^1.2.8",
@@ -53,7 +53,8 @@ export declare enum WrapperSentMessage {
53
53
  export declare const UPDATE_UI_CAPABILITY: "updateUi:v1";
54
54
  export type NativeAppUpdate = {
55
55
  currentVersion: string;
56
- latestVersion: string;
56
+ latestVersion?: string;
57
+ latestVersionCode?: number;
57
58
  platform: "ios" | "android";
58
59
  };
59
60
  export type WebAppUpdate = {
@@ -43,7 +43,10 @@ var isNativeUpdate = function (value) {
43
43
  }
44
44
  var update = value;
45
45
  return (typeof update.currentVersion === "string" &&
46
- typeof update.latestVersion === "string" &&
46
+ (update.latestVersion === undefined ||
47
+ typeof update.latestVersion === "string") &&
48
+ (update.latestVersionCode === undefined ||
49
+ typeof update.latestVersionCode === "number") &&
47
50
  (update.platform === "ios" || update.platform === "android"));
48
51
  };
49
52
  var isWebUpdate = function (value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robotical/webapp-types",
3
- "version": "3.23.0",
3
+ "version": "3.23.2",
4
4
  "description": "Type definitions for the Application Manager",
5
5
  "main": "dist/application-manager.d.ts",
6
6
  "types": "dist/application-manager.d.ts",