@jetthai/cuora 1.1.279-dev-5 → 1.1.279-dev-7

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,10 @@
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.279-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.279-dev-6...v1.1.279-dev-7) (2024-06-18)
6
+
7
+ ### [1.1.279-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.279-dev-5...v1.1.279-dev-6) (2024-06-17)
8
+
5
9
  ### [1.1.279-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.280...v1.1.279-dev-5) (2024-06-17)
6
10
 
7
11
  ### [1.1.279-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.270-fix-7...v1.1.279-dev-4) (2024-06-14)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.279-dev-5",
3
+ "version": "1.1.279-dev-7",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -74,6 +74,9 @@ export default function (request) {
74
74
  target: 'connecting',
75
75
  actions: ['setGameInfo', 'setLang'],
76
76
  },
77
+ UPDATE: {
78
+ target: 'updating',
79
+ },
77
80
  },
78
81
  },
79
82
  batchFetching: {
@@ -113,6 +116,18 @@ export default function (request) {
113
116
  { target: 'idle' },
114
117
  ],
115
118
  },
119
+ updating: {
120
+ invoke: {
121
+ src: 'updatePageContent',
122
+ onDone: {
123
+ target: 'idle',
124
+ actions: 'swapContent',
125
+ },
126
+ onError: {
127
+ target: 'idle',
128
+ },
129
+ },
130
+ },
116
131
  connecting: {
117
132
  invoke: {
118
133
  src: 'connectGame',
@@ -315,7 +330,7 @@ export default function (request) {
315
330
  if (room.categoryId === GAME_SEARCH) {
316
331
  return
317
332
  } else if (additionEnable) {
318
- const [content, addition] = event.data
333
+ const [content, addition = {}] = event.data
319
334
  return {
320
335
  content: {
321
336
  ...context.content,