@jetthai/cuora 1.0.161 → 1.0.162
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 +2 -0
- package/dist/bundle.cjs +14309 -0
- package/package.json +5 -1
- package/rollup.config.js +14 -0
- package/src/machine/activity/activity.js +1 -1
- package/src/machine/activity/continue_deposit_activity.js +1 -1
- package/src/machine/activity/deposit_activity.js +1 -1
- package/src/machine/activity/diamond_shop_activity_fc.js +1 -1
- package/src/machine/activity/diamond_shop_activity_vn.js +1 -1
- package/src/machine/activity/fafafa_activity.js +4 -2
- package/src/machine/activity/invite_friends_activity.js +1 -1
- package/src/machine/activity/mini_game_activity.js +1 -1
- package/src/machine/activity/ranking_activity.js +1 -1
- package/src/machine/activity/return_bonus_activity.js +4 -2
- package/src/machine/activity/specify_bets_activity.js +1 -1
- package/src/machine/activity/specify_turnover_activity.js +1 -1
- package/src/machine/activity/time_bomb_activity.js +1 -1
- package/src/machine/auth.js +4 -2
- package/src/machine/auth_otp.js +1 -1
- package/src/machine/auth_otp_v2.js +1 -1
- package/src/machine/auth_otp_v3.js +1 -1
- package/src/machine/bank_binding.js +1 -1
- package/src/machine/bonus.js +1 -1
- package/src/machine/common.js +6 -3
- package/src/machine/deposit/crypto.js +4 -2
- package/src/machine/deposit/deposit_fc.js +4 -2
- package/src/machine/deposit/direct.js +1 -1
- package/src/machine/deposit/loadcard_vn.js +1 -1
- package/src/machine/deposit/manual_vn.js +1 -1
- package/src/machine/deposit/qrcode_v2.js +1 -1
- package/src/machine/deposit/qrcode_vn.js +1 -1
- package/src/machine/error.js +1 -1
- package/src/machine/game.js +4 -2
- package/src/machine/game_favorite.js +1 -1
- package/src/machine/game_hot_new.js +1 -1
- package/src/machine/game_search.js +1 -1
- package/src/machine/inbox.js +1 -1
- package/src/machine/leaderboard.js +1 -1
- package/src/machine/merge.js +1 -1
- package/src/machine/payment_data.js +1 -1
- package/src/machine/reward.js +1 -1
- package/src/machine/reward_fc.js +1 -1
- package/src/machine/setting.js +1 -1
- package/src/machine/side.js +1 -1
- package/src/machine/user_info.js +1 -1
- package/src/machine/user_reset_password.js +1 -1
- package/src/machine/user_sign_up.js +1 -1
- package/src/machine/vip_table.js +1 -1
- package/src/machine/welcome.js +1 -1
- package/src/machine/withdraw_crypto.js +4 -2
- package/src/machine/withdraw_fc.js +1 -1
- package/src/machine/withdraw_vn.js +4 -2
- package/src/request/config.js +3 -1
- package/src/request/request.js +3 -1
- package/dist/index.js +0 -2
- package/dist/index.js.LICENSE.txt +0 -30
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetthai/cuora",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.162",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
+
"build": "rollup --config rollup.config.js",
|
|
8
9
|
"release": "standard-version && git push --follow-tags origin master && npm publish"
|
|
9
10
|
},
|
|
10
11
|
"repository": {
|
|
@@ -14,7 +15,10 @@
|
|
|
14
15
|
"author": "Neil",
|
|
15
16
|
"license": "ISC",
|
|
16
17
|
"devDependencies": {
|
|
18
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
19
|
+
"@rollup/plugin-replace": "^4.0.0",
|
|
17
20
|
"prettier": "^2.3.0",
|
|
21
|
+
"rollup": "^2.78.1",
|
|
18
22
|
"standard-version": "^9.3.1"
|
|
19
23
|
},
|
|
20
24
|
"dependencies": {
|
package/rollup.config.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import resolve from '@rollup/plugin-node-resolve';
|
|
2
|
+
import replace from '@rollup/plugin-replace'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
input: 'src/index.js',
|
|
6
|
+
output: {
|
|
7
|
+
file: 'dist/bundle.cjs',
|
|
8
|
+
format: 'cjs'
|
|
9
|
+
},
|
|
10
|
+
plugins: [
|
|
11
|
+
replace({'process.env.NODE_ENV': JSON.stringify('production')}),
|
|
12
|
+
resolve()
|
|
13
|
+
]
|
|
14
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { assign, createMachine } from 'xstate
|
|
2
|
-
import isEqual from 'lodash/isEqual.js'
|
|
1
|
+
import { assign, createMachine } from 'xstate'
|
|
2
|
+
// import isEqual from 'lodash/isEqual.js'
|
|
3
3
|
import api from '../../api/activity.js'
|
|
4
4
|
|
|
5
|
+
const isEqual = require('lodash/isEqual')
|
|
6
|
+
|
|
5
7
|
export default function (request) {
|
|
6
8
|
const { appSecret } = request.config
|
|
7
9
|
return createMachine(
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { assign, createMachine } from 'xstate
|
|
1
|
+
import { assign, createMachine } from 'xstate'
|
|
2
2
|
import api from '../../api/activity.js'
|
|
3
|
-
import isEqual from 'lodash/isEqual.js'
|
|
3
|
+
// import isEqual from 'lodash/isEqual.js'
|
|
4
|
+
|
|
5
|
+
const isEqual = require('lodash/isEqual')
|
|
4
6
|
|
|
5
7
|
export default function (request) {
|
|
6
8
|
const { appSecret } = request.config
|
package/src/machine/auth.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import urljoin from 'url-join'
|
|
1
|
+
// import urljoin from 'url-join'
|
|
2
2
|
import Cookies from 'universal-cookie'
|
|
3
|
-
import { assign, createMachine } from 'xstate
|
|
3
|
+
import { assign, createMachine } from 'xstate'
|
|
4
4
|
import auth from '../api/auth.js'
|
|
5
5
|
import user from '../api/user.js'
|
|
6
6
|
import { getDeviceToken } from '../util/deviceToken.js'
|
|
7
7
|
|
|
8
|
+
const urljoin = require('url-join')
|
|
9
|
+
|
|
8
10
|
export default function (request) {
|
|
9
11
|
const { clientId, fpToken, sentry, defaultChannel, defaultSubchannel } = request.config
|
|
10
12
|
const tokenKey = `cuora_${clientId}`
|
package/src/machine/auth_otp.js
CHANGED
package/src/machine/bonus.js
CHANGED
package/src/machine/common.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import UAParser from 'ua-parser-js'
|
|
1
|
+
// import UAParser from 'ua-parser-js'
|
|
2
2
|
import Cookies from 'universal-cookie'
|
|
3
|
-
import { assign, createMachine } from 'xstate
|
|
4
|
-
import pickBy from 'lodash/pickBy.js'
|
|
3
|
+
import { assign, createMachine } from 'xstate'
|
|
4
|
+
// import pickBy from 'lodash/pickBy.js'
|
|
5
5
|
import api from '../api/common.js'
|
|
6
|
+
|
|
7
|
+
const pickBy = require('lodash/pickBy')
|
|
8
|
+
const UAParser = require('ua-parser-js')
|
|
6
9
|
const cookies = new Cookies()
|
|
7
10
|
|
|
8
11
|
export default function (request) {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { assign, createMachine } from 'xstate
|
|
2
|
-
import padStart from 'lodash/padStart.js'
|
|
1
|
+
import { assign, createMachine } from 'xstate'
|
|
2
|
+
// import padStart from 'lodash/padStart.js'
|
|
3
3
|
import payment from '../../api/payment.js'
|
|
4
4
|
|
|
5
|
+
const padStart = require('lodash/padStart')
|
|
6
|
+
|
|
5
7
|
export default function (request) {
|
|
6
8
|
return createMachine(
|
|
7
9
|
{
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { assign, createMachine } from 'xstate
|
|
2
|
-
import toNumber from 'lodash/toNumber.js'
|
|
1
|
+
import { assign, createMachine } from 'xstate'
|
|
2
|
+
// import toNumber from 'lodash/toNumber.js'
|
|
3
3
|
import payment from '../../api/payment.js'
|
|
4
4
|
|
|
5
|
+
const toNumber = require('lodash/toNumber')
|
|
6
|
+
|
|
5
7
|
export default function (request) {
|
|
6
8
|
return createMachine(
|
|
7
9
|
{
|
package/src/machine/error.js
CHANGED
package/src/machine/game.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { assign, createMachine } from 'xstate
|
|
1
|
+
import { assign, createMachine } from 'xstate'
|
|
2
2
|
import api from '../api/game.js'
|
|
3
|
-
import UAParser from 'ua-parser-js'
|
|
3
|
+
// import UAParser from 'ua-parser-js'
|
|
4
|
+
|
|
5
|
+
const UAParser = require('ua-parser-js')
|
|
4
6
|
|
|
5
7
|
export default function (request) {
|
|
6
8
|
return createMachine(
|
package/src/machine/inbox.js
CHANGED
package/src/machine/merge.js
CHANGED
package/src/machine/reward.js
CHANGED
package/src/machine/reward_fc.js
CHANGED
package/src/machine/setting.js
CHANGED
package/src/machine/side.js
CHANGED
package/src/machine/user_info.js
CHANGED
package/src/machine/vip_table.js
CHANGED
package/src/machine/welcome.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { assign, createMachine } from 'xstate
|
|
2
|
-
import findLastIndex from 'lodash/findLastIndex.js'
|
|
1
|
+
import { assign, createMachine } from 'xstate'
|
|
2
|
+
// import findLastIndex from 'lodash/findLastIndex.js'
|
|
3
3
|
import payment from '../api/payment.js'
|
|
4
4
|
import common from '../api/common.js'
|
|
5
5
|
import user from '../api/user.js'
|
|
6
6
|
import api from '../api/payment.js'
|
|
7
7
|
|
|
8
|
+
const findLastIndex = require('lodash/findLastIndex')
|
|
9
|
+
|
|
8
10
|
export default function (request) {
|
|
9
11
|
const { appSecret } = request.config
|
|
10
12
|
return createMachine(
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { assign, createMachine } from 'xstate
|
|
2
|
-
import findLastIndex from 'lodash/findLastIndex.js'
|
|
1
|
+
import { assign, createMachine } from 'xstate'
|
|
2
|
+
// import findLastIndex from 'lodash/findLastIndex.js'
|
|
3
3
|
import payment from '../api/payment.js'
|
|
4
4
|
import common from '../api/common.js'
|
|
5
5
|
import user from '../api/user.js'
|
|
6
6
|
|
|
7
|
+
const findLastIndex = require('lodash/findLastIndex')
|
|
8
|
+
|
|
7
9
|
export default function (request) {
|
|
8
10
|
const { appSecret } = request.config
|
|
9
11
|
return createMachine(
|
package/src/request/config.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import urljoin from 'url-join'
|
|
1
|
+
// import urljoin from 'url-join'
|
|
2
|
+
|
|
3
|
+
const urljoin = require('url-join')
|
|
2
4
|
|
|
3
5
|
export default class Config {
|
|
4
6
|
constructor({ apiURL, apiVersion, clientId, appSecret, platform, version, fpToken, sentry, defaultChannel, defaultSubchannel }) {
|
package/src/request/request.js
CHANGED