@jetthai/cuora 1.1.34-2 → 1.1.34

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,10 +2,6 @@
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.34-2](https://github.com/jetthai/cuora-module/compare/v1.1.34-1...v1.1.34-2) (2023-01-16)
6
-
7
- ### [1.1.34-1](https://github.com/jetthai/cuora-module/compare/v1.1.34...v1.1.34-1) (2023-01-16)
8
-
9
5
  ### [1.1.34](https://github.com/jetthai/cuora-module/compare/v1.1.32...v1.1.34) (2023-01-10)
10
6
 
11
7
  ### [1.1.33](https://github.com/jetthai/cuora-module/compare/v1.1.32...v1.1.33) (2023-01-10)
package/dist/bundle.mjs CHANGED
@@ -13209,8 +13209,6 @@ function setting () {
13209
13209
  id: 'setting',
13210
13210
  initial: 'idle',
13211
13211
  context: {
13212
- musicPlay: true,
13213
- soundPlay: true,
13214
13212
  sound: false,
13215
13213
  music: false,
13216
13214
  locale: 'en-US',
@@ -13227,9 +13225,8 @@ function setting () {
13227
13225
  },
13228
13226
  {
13229
13227
  actions: {
13230
- fetchSetting: assign((context, event) => {
13231
- const { musicPlay, soundPlay } = context;
13232
- const setting = JSON.parse(localStorage.getItem('setting')) || { sound: soundPlay, music: musicPlay };
13228
+ fetchSetting: assign(() => {
13229
+ const setting = JSON.parse(localStorage.getItem('setting')) || { sound: true, music: true };
13233
13230
  return { ...setting }
13234
13231
  }),
13235
13232
  saveSetting: assign((context, event) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.34-2",
3
+ "version": "1.1.34",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -6,8 +6,6 @@ export default function () {
6
6
  id: 'setting',
7
7
  initial: 'idle',
8
8
  context: {
9
- musicPlay: true,
10
- soundPlay: true,
11
9
  sound: false,
12
10
  music: false,
13
11
  locale: 'en-US',
@@ -24,9 +22,8 @@ export default function () {
24
22
  },
25
23
  {
26
24
  actions: {
27
- fetchSetting: assign((context, event) => {
28
- const { musicPlay, soundPlay } = context
29
- const setting = JSON.parse(localStorage.getItem('setting')) || { sound: soundPlay, music: musicPlay }
25
+ fetchSetting: assign(() => {
26
+ const setting = JSON.parse(localStorage.getItem('setting')) || { sound: true, music: true }
30
27
  return { ...setting }
31
28
  }),
32
29
  saveSetting: assign((context, event) => {