chayns-api 2.1.9 → 2.1.10

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.
@@ -242,6 +242,7 @@ let AppName = exports.AppName = function (AppName) {
242
242
  AppName[AppName["TobitChat"] = 6] = "TobitChat";
243
243
  AppName[AppName["Sidekick"] = 7] = "Sidekick";
244
244
  AppName[AppName["Team"] = 8] = "Team";
245
+ AppName[AppName["CityApp"] = 9] = "CityApp";
245
246
  return AppName;
246
247
  }({});
247
248
  let BrowserName = exports.BrowserName = function (BrowserName) {
@@ -20,6 +20,8 @@ const getDeviceInfo = (userAgent, acceptHeader, {
20
20
  appName = _IChaynsReact.AppName.Sidekick;
21
21
  } else if (/\steam\/\d+/i.test(userAgent)) {
22
22
  appName = _IChaynsReact.AppName.Team;
23
+ } else if (/\scityApp\/\d+/i.test(userAgent)) {
24
+ appName = _IChaynsReact.AppName.CityApp;
23
25
  } else if ((match === null || match === void 0 || (_match$groups = match.groups) === null || _match$groups === void 0 ? void 0 : _match$groups.siteId) === '60021-08989') {
24
26
  appName = _IChaynsReact.AppName.Chayns;
25
27
  } else if ((match === null || match === void 0 || (_match$groups2 = match.groups) === null || _match$groups2 === void 0 ? void 0 : _match$groups2.siteId) === '77892-10814') {
@@ -236,6 +236,7 @@ export let AppName = function (AppName) {
236
236
  AppName[AppName["TobitChat"] = 6] = "TobitChat";
237
237
  AppName[AppName["Sidekick"] = 7] = "Sidekick";
238
238
  AppName[AppName["Team"] = 8] = "Team";
239
+ AppName[AppName["CityApp"] = 9] = "CityApp";
239
240
  return AppName;
240
241
  }({});
241
242
  export let BrowserName = function (BrowserName) {
@@ -15,6 +15,8 @@ const getDeviceInfo = function (userAgent, acceptHeader) {
15
15
  appName = AppName.Sidekick;
16
16
  } else if (/\steam\/\d+/i.test(userAgent)) {
17
17
  appName = AppName.Team;
18
+ } else if (/\scityApp\/\d+/i.test(userAgent)) {
19
+ appName = AppName.CityApp;
18
20
  } else if ((match === null || match === void 0 || (_match$groups = match.groups) === null || _match$groups === void 0 ? void 0 : _match$groups.siteId) === '60021-08989') {
19
21
  appName = AppName.Chayns;
20
22
  } else if ((match === null || match === void 0 || (_match$groups2 = match.groups) === null || _match$groups2 === void 0 ? void 0 : _match$groups2.siteId) === '77892-10814') {
@@ -801,7 +801,8 @@ export declare enum AppName {
801
801
  ChaynsLauncher = 5,
802
802
  TobitChat = 6,
803
803
  Sidekick = 7,
804
- Team = 8
804
+ Team = 8,
805
+ CityApp = 9
805
806
  }
806
807
  export declare enum BrowserName {
807
808
  Unknown = "unknown",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "2.1.9",
3
+ "version": "2.1.10",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",