@jetthai/cuora 1.1.236 → 1.1.237

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.237](https://github.com/jetthai/cuora-module/compare/v1.1.236...v1.1.237) (2024-03-27)
6
+
5
7
  ### [1.1.236](https://github.com/jetthai/cuora-module/compare/v1.1.235...v1.1.236) (2024-03-25)
6
8
 
7
9
  ### [1.1.235](https://github.com/jetthai/cuora-module/compare/v1.1.234...v1.1.235) (2024-03-25)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.236",
3
+ "version": "1.1.237",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -15,6 +15,8 @@ export default function (request, context) {
15
15
  // 領獎後得到的資訊
16
16
  amount: null,
17
17
  message: null,
18
+ canReceiveQuantity: null,
19
+ receivedQuantity: null,
18
20
  },
19
21
  initial: 'idle',
20
22
  states: {
@@ -69,7 +71,7 @@ export default function (request, context) {
69
71
  receivable: {
70
72
  after: {
71
73
  0: {
72
- target: 'loading',
74
+ target: 'loaded',
73
75
  },
74
76
  },
75
77
  },
@@ -103,10 +105,12 @@ export default function (request, context) {
103
105
  }
104
106
  }),
105
107
  setAward: assign((context, event) => {
106
- const { amount, message } = event.data
108
+ const { amount, message, canReceiveQuantity, receivedQuantity } = event.data
107
109
  return {
108
110
  amount,
109
111
  message,
112
+ canReceiveQuantity,
113
+ receivedQuantity,
110
114
  }
111
115
  }),
112
116
  setCallback: assign((context, event) => {