@jetthai/cuora 1.1.88 → 1.1.89

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.1.89](https://github.com/jetthai/cuora-module/compare/v1.1.88...v1.1.89) (2023-05-02)
6
+
5
7
  ### [1.1.88](https://github.com/jetthai/cuora-module/compare/v1.1.74-1...v1.1.88) (2023-05-02)
6
8
 
7
9
  ### [1.1.66-1](https://github.com/jetthai/cuora-module/compare/v1.1.77...v1.1.66-1) (2023-04-13)
package/dist/bundle.mjs CHANGED
@@ -15939,7 +15939,7 @@ var uaParser = {exports: {}};
15939
15939
 
15940
15940
  (function (module, exports) {
15941
15941
  /////////////////////////////////////////////////////////////////////////////////
15942
- /* UAParser.js v0.7.35
15942
+ /* UAParser.js v0.7.34
15943
15943
  Copyright © 2012-2021 Faisal Salman <f@faisalman.com>
15944
15944
  MIT License *//*
15945
15945
  Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data.
@@ -15955,7 +15955,7 @@ var uaParser = {exports: {}};
15955
15955
  /////////////
15956
15956
 
15957
15957
 
15958
- var LIBVERSION = '0.7.35',
15958
+ var LIBVERSION = '0.7.34',
15959
15959
  EMPTY = '',
15960
15960
  UNKNOWN = '?',
15961
15961
  FUNC_TYPE = 'function',
@@ -16173,9 +16173,8 @@ var uaParser = {exports: {}};
16173
16173
  /(?:ms|\()(ie) ([\w\.]+)/i, // Internet Explorer
16174
16174
 
16175
16175
  // Webkit/KHTML based // Flock/RockMelt/Midori/Epiphany/Silk/Skyfire/Bolt/Iron/Iridium/PhantomJS/Bowser/QupZilla/Falkon
16176
- /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,
16176
+ /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,
16177
16177
  // Rekonq/Puffin/Brave/Whale/QQBrowserLite/QQ, aka ShouQ
16178
- /(heytap|ovi)browser\/([\d\.]+)/i, // Heytap/Ovi
16179
16178
  /(weibo)__([\d\.]+)/i // Weibo
16180
16179
  ], [NAME, VERSION], [
16181
16180
  /(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i // UCBrowser
@@ -16189,7 +16188,7 @@ var uaParser = {exports: {}};
16189
16188
  ], [VERSION, [NAME, 'Konqueror']], [
16190
16189
  /trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i // IE11
16191
16190
  ], [VERSION, [NAME, 'IE']], [
16192
- /ya(?:search)?browser\/([\w\.]+)/i // Yandex
16191
+ /yabrowser\/([\w\.]+)/i // Yandex
16193
16192
  ], [VERSION, [NAME, 'Yandex']], [
16194
16193
  /(avast|avg)\/([\w\.]+)/i // Avast/AVG Secure Browser
16195
16194
  ], [[NAME, /(.+)/, '$1 Secure '+BROWSER], VERSION], [
@@ -16233,8 +16232,6 @@ var uaParser = {exports: {}};
16233
16232
  ], [NAME, VERSION], [
16234
16233
  /\bgsa\/([\w\.]+) .*safari\//i // Google Search Appliance on iOS
16235
16234
  ], [VERSION, [NAME, 'GSA']], [
16236
- /musical_ly(?:.+app_?version\/|_)([\w\.]+)/i // TikTok
16237
- ], [VERSION, [NAME, 'TikTok']], [
16238
16235
 
16239
16236
  /headlesschrome(?:\/([\w\.]+)| )/i // Chrome Headless
16240
16237
  ], [VERSION, [NAME, CHROME+' Headless']], [
@@ -16330,7 +16327,7 @@ var uaParser = {exports: {}};
16330
16327
  ], [MODEL, [VENDOR, SAMSUNG], [TYPE, MOBILE]], [
16331
16328
 
16332
16329
  // Apple
16333
- /(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i // iPod/iPhone
16330
+ /\((ip(?:hone|od)[\w ]*);/i // iPod/iPhone
16334
16331
  ], [MODEL, [VENDOR, APPLE], [TYPE, MOBILE]], [
16335
16332
  /\((ipad);[-\w\),; ]+apple/i, // iPad
16336
16333
  /applecoremedia\/[\w\.]+ \((ipad)/i,
@@ -16420,7 +16417,7 @@ var uaParser = {exports: {}};
16420
16417
 
16421
16418
  // Amazon
16422
16419
  /(alexa)webm/i,
16423
- /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, // Kindle Fire without Silk / Echo Show
16420
+ /(kf[a-z]{2}wi)( bui|\))/i, // Kindle Fire without Silk
16424
16421
  /(kf[a-z]+)( bui|\)).+silk\//i // Kindle Fire HD
16425
16422
  ], [MODEL, [VENDOR, AMAZON], [TYPE, TABLET]], [
16426
16423
  /((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i // Fire Phone
@@ -16605,8 +16602,6 @@ var uaParser = {exports: {}};
16605
16602
 
16606
16603
  /(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i // Tesla
16607
16604
  ], [VENDOR, [TYPE, EMBEDDED]], [
16608
- /(aeobc)\b/i // Echo Dot
16609
- ], [MODEL, [VENDOR, AMAZON], [TYPE, EMBEDDED]], [
16610
16605
 
16611
16606
  ////////////////////
16612
16607
  // MIXED (GENERIC)
@@ -16636,8 +16631,7 @@ var uaParser = {exports: {}};
16636
16631
  /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, // WebKit/Trident/NetFront/NetSurf/Amaya/Lynx/w3m/Goanna
16637
16632
  /ekioh(flow)\/([\w\.]+)/i, // Flow
16638
16633
  /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, // KHTML/Tasman/Links
16639
- /(icab)[\/ ]([23]\.[\d\.]+)/i, // iCab
16640
- /\b(libweb)/i
16634
+ /(icab)[\/ ]([23]\.[\d\.]+)/i // iCab
16641
16635
  ], [NAME, VERSION], [
16642
16636
 
16643
16637
  /rv\:([\w\.]{1,9})\b.+(gecko)/i // Gecko
@@ -16658,7 +16652,6 @@ var uaParser = {exports: {}};
16658
16652
 
16659
16653
  // iOS/macOS
16660
16654
  /ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, // iOS
16661
- /ios;fbsv\/([\d\.]+)/i,
16662
16655
  /cfnetwork\/.+darwin/i
16663
16656
  ], [[VERSION, /_/g, '.'], [NAME, 'iOS']], [
16664
16657
  /(mac os x) ?([\w\. ]*)/i,
@@ -16715,7 +16708,7 @@ var uaParser = {exports: {}};
16715
16708
  ], [[NAME, 'Solaris'], VERSION], [
16716
16709
  /((?:open)?solaris)[-\/ ]?([\w\.]*)/i, // Solaris
16717
16710
  /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, // AIX
16718
- /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, // BeOS/OS2/AmigaOS/MorphOS/OpenVMS/Fuchsia/HP-UX/SerenityOS
16711
+ /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i, // BeOS/OS2/AmigaOS/MorphOS/OpenVMS/Fuchsia/HP-UX
16719
16712
  /(unix) ?([\w\.]*)/i // UNIX
16720
16713
  ], [NAME, VERSION]
16721
16714
  ]
@@ -16740,7 +16733,6 @@ var uaParser = {exports: {}};
16740
16733
  var _ua = ua || ((_navigator && _navigator.userAgent) ? _navigator.userAgent : EMPTY);
16741
16734
  var _uach = (_navigator && _navigator.userAgentData) ? _navigator.userAgentData : undefined$1;
16742
16735
  var _rgxmap = extensions ? extend(regexes, extensions) : regexes;
16743
- var _isSelfNav = _navigator && _navigator.userAgent == _ua;
16744
16736
 
16745
16737
  this.getBrowser = function () {
16746
16738
  var _browser = {};
@@ -16749,7 +16741,7 @@ var uaParser = {exports: {}};
16749
16741
  rgxMapper.call(_browser, _ua, _rgxmap.browser);
16750
16742
  _browser[MAJOR] = majorize(_browser[VERSION]);
16751
16743
  // Brave-specific detection
16752
- if (_isSelfNav && _navigator && _navigator.brave && typeof _navigator.brave.isBrave == FUNC_TYPE) {
16744
+ if (_navigator && _navigator.brave && typeof _navigator.brave.isBrave == FUNC_TYPE) {
16753
16745
  _browser[NAME] = 'Brave';
16754
16746
  }
16755
16747
  return _browser;
@@ -16766,11 +16758,11 @@ var uaParser = {exports: {}};
16766
16758
  _device[MODEL] = undefined$1;
16767
16759
  _device[TYPE] = undefined$1;
16768
16760
  rgxMapper.call(_device, _ua, _rgxmap.device);
16769
- if (_isSelfNav && !_device[TYPE] && _uach && _uach.mobile) {
16761
+ if (!_device[TYPE] && _uach && _uach.mobile) {
16770
16762
  _device[TYPE] = MOBILE;
16771
16763
  }
16772
16764
  // iPadOS-specific detection: identified as Mac, but has some iOS-only properties
16773
- if (_isSelfNav && _device[MODEL] == 'Macintosh' && _navigator && typeof _navigator.standalone !== UNDEF_TYPE && _navigator.maxTouchPoints && _navigator.maxTouchPoints > 2) {
16765
+ if (_device[MODEL] == 'Macintosh' && _navigator && typeof _navigator.standalone !== UNDEF_TYPE && _navigator.maxTouchPoints && _navigator.maxTouchPoints > 2) {
16774
16766
  _device[MODEL] = 'iPad';
16775
16767
  _device[TYPE] = TABLET;
16776
16768
  }
@@ -16788,7 +16780,7 @@ var uaParser = {exports: {}};
16788
16780
  _os[NAME] = undefined$1;
16789
16781
  _os[VERSION] = undefined$1;
16790
16782
  rgxMapper.call(_os, _ua, _rgxmap.os);
16791
- if (_isSelfNav && !_os[NAME] && _uach && _uach.platform != 'Unknown') {
16783
+ if (!_os[NAME] && _uach && _uach.platform != 'Unknown') {
16792
16784
  _os[NAME] = _uach.platform
16793
16785
  .replace(/chrome os/i, CHROMIUM_OS)
16794
16786
  .replace(/macos/i, MAC_OS); // backward compatibility
@@ -18190,6 +18182,7 @@ function game_v2_1 (request) {
18190
18182
  }
18191
18183
  },
18192
18184
  connectGame: async (context, event) => {
18185
+ const returnProviders = ['RSG', 'KP', 'EPICWIN', 'KA', 'AMBSLOT', 'SEXY_VENUS', 'SEXY_SEXYBCRT', 'PG', 'NPG'];
18193
18186
  const { lang, isMobile } = context;
18194
18187
  const { providerId, gameId, gameTypeId, mappingId } = context.game;
18195
18188
  const params = {
@@ -18200,7 +18193,7 @@ function game_v2_1 (request) {
18200
18193
  is_demo: false,
18201
18194
  is_mobile: isMobile,
18202
18195
  lang,
18203
- return_url: window.location.href,
18196
+ return_url: returnProviders.includes(providerId) ? `${window.location.origin}/return` : window.location.href, // For providers to return.
18204
18197
  };
18205
18198
  const { redirect_url } = await request.send(game$1.playGame(params));
18206
18199
  return { gameURL: redirect_url }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.88",
3
+ "version": "1.1.89",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -368,6 +368,7 @@ export default function (request) {
368
368
  }
369
369
  },
370
370
  connectGame: async (context, event) => {
371
+ const returnProviders = ['RSG', 'KP', 'EPICWIN', 'KA', 'AMBSLOT', 'SEXY_VENUS', 'SEXY_SEXYBCRT', 'PG', 'NPG']
371
372
  const { lang, isMobile } = context
372
373
  const { providerId, gameId, gameTypeId, mappingId } = context.game
373
374
  const params = {
@@ -378,7 +379,7 @@ export default function (request) {
378
379
  is_demo: false,
379
380
  is_mobile: isMobile,
380
381
  lang,
381
- return_url: window.location.href,
382
+ return_url: returnProviders.includes(providerId) ? `${window.location.origin}/return` : window.location.href, // For providers to return.
382
383
  }
383
384
  const { redirect_url } = await request.send(api.playGame(params))
384
385
  return { gameURL: redirect_url }