@jetthai/cuora 1.1.11 → 1.1.12
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 +2 -0
- package/dist/bundle.mjs +8 -11
- package/package.json +1 -1
- package/src/machine/side_v2.js +8 -11
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.12](https://github.com/jetthai/cuora-module/compare/v1.1.11...v1.1.12) (2022-12-23)
|
|
6
|
+
|
|
5
7
|
### [1.1.11](https://github.com/jetthai/cuora-module/compare/v1.1.10...v1.1.11) (2022-12-21)
|
|
6
8
|
|
|
7
9
|
### [1.1.9-bc88-1](https://github.com/jetthai/cuora-module/compare/v1.1.9-bc88...v1.1.9-bc88-1) (2022-12-14)
|
package/dist/bundle.mjs
CHANGED
|
@@ -13378,16 +13378,9 @@ function side_v2 (request) {
|
|
|
13378
13378
|
|
|
13379
13379
|
if (isTopItem) {
|
|
13380
13380
|
if (hasSubMenu) {
|
|
13381
|
-
|
|
13382
|
-
|
|
13383
|
-
|
|
13384
|
-
previousMenuItemStack: menuItemStack,
|
|
13385
|
-
}
|
|
13386
|
-
} else {
|
|
13387
|
-
return {
|
|
13388
|
-
previousMenuItemStack: menuItemStack,
|
|
13389
|
-
menuItemStack: [event.data],
|
|
13390
|
-
}
|
|
13381
|
+
return {
|
|
13382
|
+
previousMenuItemStack: menuItemStack,
|
|
13383
|
+
menuItemStack: [event.data],
|
|
13391
13384
|
}
|
|
13392
13385
|
} else {
|
|
13393
13386
|
return {
|
|
@@ -13479,7 +13472,11 @@ function addLevelProperty(list, level) {
|
|
|
13479
13472
|
const nextLevel = level + 1;
|
|
13480
13473
|
for (let i = 0; i < list.length; i++) {
|
|
13481
13474
|
list[i].level = level;
|
|
13482
|
-
|
|
13475
|
+
|
|
13476
|
+
// avoid games in list
|
|
13477
|
+
if (!list[i].isGame) {
|
|
13478
|
+
addLevelProperty(list[i].sub, nextLevel);
|
|
13479
|
+
}
|
|
13483
13480
|
}
|
|
13484
13481
|
}
|
|
13485
13482
|
|
package/package.json
CHANGED
package/src/machine/side_v2.js
CHANGED
|
@@ -87,16 +87,9 @@ export default function (request) {
|
|
|
87
87
|
|
|
88
88
|
if (isTopItem) {
|
|
89
89
|
if (hasSubMenu) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
previousMenuItemStack: menuItemStack,
|
|
94
|
-
}
|
|
95
|
-
} else {
|
|
96
|
-
return {
|
|
97
|
-
previousMenuItemStack: menuItemStack,
|
|
98
|
-
menuItemStack: [event.data],
|
|
99
|
-
}
|
|
90
|
+
return {
|
|
91
|
+
previousMenuItemStack: menuItemStack,
|
|
92
|
+
menuItemStack: [event.data],
|
|
100
93
|
}
|
|
101
94
|
} else {
|
|
102
95
|
return {
|
|
@@ -188,6 +181,10 @@ function addLevelProperty(list, level) {
|
|
|
188
181
|
const nextLevel = level + 1
|
|
189
182
|
for (let i = 0; i < list.length; i++) {
|
|
190
183
|
list[i].level = level
|
|
191
|
-
|
|
184
|
+
|
|
185
|
+
// avoid games in list
|
|
186
|
+
if (!list[i].isGame) {
|
|
187
|
+
addLevelProperty(list[i].sub, nextLevel)
|
|
188
|
+
}
|
|
192
189
|
}
|
|
193
190
|
}
|