@jetthai/cuora 1.1.270-fix → 1.1.270-fix-2

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.270-fix-2](https://github.com/jetthai/cuora-module/compare/v1.1.270-fix-1...v1.1.270-fix-2) (2024-06-03)
6
+
7
+ ### [1.1.270-fix-1](https://github.com/jetthai/cuora-module/compare/v1.1.270-fix...v1.1.270-fix-1) (2024-06-03)
8
+
5
9
  ### [1.1.270-fix](https://github.com/jetthai/cuora-module/compare/v1.1.270...v1.1.270-fix) (2024-05-29)
6
10
 
7
11
  ### [1.1.270](https://github.com/jetthai/cuora-module/compare/v1.1.269...v1.1.270) (2024-05-16)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.270-fix",
3
+ "version": "1.1.270-fix-2",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -10,7 +10,7 @@ export default function (request) {
10
10
  initial: 'init',
11
11
  context: {
12
12
  tick: 2000,
13
- specifyActivities: [29, 34],
13
+ specifyActivities: [4, 29, 34],
14
14
  activitiesDetailList: [],
15
15
  activityList: [],
16
16
  promotionList: [],
@@ -14,6 +14,7 @@ export default function (request, context) {
14
14
 
15
15
  // 領獎後得到的資訊
16
16
  amount: null,
17
+ rewardType: null,
17
18
  message: null,
18
19
  canReceiveQuantity: null,
19
20
  receivedQuantity: null,
@@ -108,9 +109,10 @@ export default function (request, context) {
108
109
  }
109
110
  }),
110
111
  setAward: assign((context, event) => {
111
- const { amount, message, canReceiveQuantity, receivedQuantity } = event.data
112
+ const { amount, rewardType, message, canReceiveQuantity, receivedQuantity } = event.data
112
113
  return {
113
114
  amount,
115
+ rewardType,
114
116
  message,
115
117
  canReceiveQuantity,
116
118
  receivedQuantity,
@@ -124,6 +126,7 @@ export default function (request, context) {
124
126
  resetAward: assign((context, event) => {
125
127
  return {
126
128
  amount: null,
129
+ rewardType: null,
127
130
  message: null,
128
131
  }
129
132
  }),