chayns-api 2.2.3 → 2.2.5

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.
@@ -28,7 +28,7 @@ const getDeviceInfo = (userAgent, acceptHeader, {
28
28
  appName = _IChaynsReact.AppName.David;
29
29
  } else if (match) {
30
30
  appName = _IChaynsReact.AppName.Location;
31
- } else if (/dface|h96pp|h96max|jabiru|chaynsterminal|wayter|odroidn2p/i.test(userAgent)) {
31
+ } else if (/dface|h96pp|h96max|jabiru|chaynsterminal|wayter|odroidn2p|chayns-runtime-custom/i.test(userAgent)) {
32
32
  appName = _IChaynsReact.AppName.ChaynsLauncher;
33
33
  }
34
34
  let appVersion = match !== null && match !== void 0 && match.groups ? Number.parseInt(match.groups.version, 10) : NaN;
@@ -23,7 +23,7 @@ const getDeviceInfo = function (userAgent, acceptHeader) {
23
23
  appName = AppName.David;
24
24
  } else if (match) {
25
25
  appName = AppName.Location;
26
- } else if (/dface|h96pp|h96max|jabiru|chaynsterminal|wayter|odroidn2p/i.test(userAgent)) {
26
+ } else if (/dface|h96pp|h96max|jabiru|chaynsterminal|wayter|odroidn2p|chayns-runtime-custom/i.test(userAgent)) {
27
27
  appName = AppName.ChaynsLauncher;
28
28
  }
29
29
  let appVersion = match !== null && match !== void 0 && match.groups ? Number.parseInt(match.groups.version, 10) : NaN;
@@ -197,7 +197,7 @@ export interface ChaynsDesignSettings {
197
197
  color: string;
198
198
  secondaryColor?: string;
199
199
  colorMode: ColorMode;
200
- fontSize: number;
200
+ fontSizePx: number;
201
201
  iconStyle: IconStyle;
202
202
  headlineFontId?: number;
203
203
  backgroundType?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "2.2.3",
3
+ "version": "2.2.5",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -8,6 +8,7 @@
8
8
  "exports": {
9
9
  ".": {
10
10
  "types": "./dist/types/index.d.ts",
11
+ "node": "./dist/cjs/index.js",
11
12
  "require": "./dist/cjs/index.js",
12
13
  "default": "./dist/esm/index.js"
13
14
  }