@jetthai/cuora 1.1.228 → 1.1.230

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.230](https://github.com/jetthai/cuora-module/compare/v1.1.229...v1.1.230) (2024-03-01)
6
+
7
+ ### [1.1.229](https://github.com/jetthai/cuora-module/compare/v1.1.228...v1.1.229) (2024-02-26)
8
+
5
9
  ### [1.1.228](https://github.com/jetthai/cuora-module/compare/v1.1.227...v1.1.228) (2024-02-26)
6
10
 
7
11
  ### [1.1.227](https://github.com/jetthai/cuora-module/compare/v1.1.226...v1.1.227) (2024-02-26)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.228",
3
+ "version": "1.1.230",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -94,6 +94,11 @@ export default function (request) {
94
94
  },
95
95
  },
96
96
  },
97
+ on: {
98
+ SET_TOTAL_POINTS: {
99
+ actions: 'setTotalPoints',
100
+ },
101
+ },
97
102
  },
98
103
  {
99
104
  actions: {
@@ -134,6 +139,11 @@ export default function (request) {
134
139
  subtractPoints: 0,
135
140
  }
136
141
  }),
142
+ setTotalPoints: assign((context, event) => {
143
+ return {
144
+ totalPoints: event.data,
145
+ }
146
+ }),
137
147
  },
138
148
  guards: {
139
149
  settlable: (context, event) => {
@@ -176,7 +176,7 @@ export default function (request) {
176
176
  })
177
177
  .join('')
178
178
  )
179
- layoutConfigDecoded = JSON.parse(JSON.stringify(layoutConfigDecoded))
179
+ layoutConfigDecoded = JSON.parse(layoutConfigDecoded)
180
180
  }
181
181
  return {
182
182
  siteConfig: { ...siteConfig, loginMethods: pickBy(loginMethods), registerMethods: pickBy(registerMethods) },