@jetthai/cuora 1.0.28 → 1.0.29

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.0.29](https://github.com/jetthai/cuora-module/compare/v1.0.28...v1.0.29) (2021-10-20)
6
+
5
7
  ### [1.0.28](https://github.com/jetthai/cuora-module/compare/v1.0.27...v1.0.28) (2021-10-14)
6
8
 
7
9
  ### [1.0.27](https://github.com/jetthai/cuora-module/compare/v1.0.26...v1.0.27) (2021-10-14)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "dist/index.js",
@@ -120,8 +120,12 @@ export default function (request) {
120
120
  },
121
121
  actions: {
122
122
  setSiteConfig: assign((context, event) => {
123
+ let methods = event.data?.loginMethods || {}
124
+ Object.keys(methods).forEach((key) => {
125
+ if (!methods[key]) delete methods[key]
126
+ })
123
127
  return {
124
- siteConfig: event.data,
128
+ siteConfig: { ...event.data, loginMethods: methods },
125
129
  }
126
130
  }),
127
131
  setUA: assign((context, event) => {