@jetthai/cuora 1.1.66-sabai → 1.1.66-sabai-2
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 +6 -0
- package/dist/bundle.mjs +3 -3
- package/package.json +1 -1
- package/src/machine/side_v2.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
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.66-sabai-2](https://github.com/jetthai/cuora-module/compare/v1.0.66-sabai-2...v1.1.66-sabai-2) (2024-09-12)
|
|
6
|
+
|
|
7
|
+
### [1.0.66-sabai-2](https://github.com/jetthai/cuora-module/compare/v1.1.66-sabai-1...v1.0.66-sabai-2) (2024-09-12)
|
|
8
|
+
|
|
9
|
+
### [1.1.66-sabai-1](https://github.com/jetthai/cuora-module/compare/v1.1.66-sabai...v1.1.66-sabai-1) (2024-09-03)
|
|
10
|
+
|
|
5
11
|
### [1.1.66-sabai](https://github.com/jetthai/cuora-module/compare/v1.1.66...v1.1.66-sabai) (2024-09-02)
|
|
6
12
|
|
|
7
13
|
### [1.1.66](https://github.com/jetthai/cuora-module/compare/v1.1.65...v1.1.66) (2023-03-28)
|
package/dist/bundle.mjs
CHANGED
|
@@ -20042,8 +20042,8 @@ function side_v2 (request) {
|
|
|
20042
20042
|
setMenuItemStack: assign((context, event) => {
|
|
20043
20043
|
const { menuItemStack } = context;
|
|
20044
20044
|
const inputItem = event.data;
|
|
20045
|
-
const isTopItem = inputItem.level === 0;
|
|
20046
|
-
const hasSubMenu = inputItem.sub
|
|
20045
|
+
const isTopItem = inputItem.level ? inputItem.level === 0 : true;
|
|
20046
|
+
const hasSubMenu = inputItem.sub?.length || 0;
|
|
20047
20047
|
|
|
20048
20048
|
if (isTopItem) {
|
|
20049
20049
|
if (hasSubMenu) {
|
|
@@ -20102,7 +20102,7 @@ function side_v2 (request) {
|
|
|
20102
20102
|
const { menuItemStack, menu } = context;
|
|
20103
20103
|
if (!menuItemStack || menuItemStack.length === 0) return false
|
|
20104
20104
|
const menuItem = menuItemStack.slice(-1)[0];
|
|
20105
|
-
if (!menuItem) return false
|
|
20105
|
+
if (!menuItem || !menuItem.categoryId) return false
|
|
20106
20106
|
return isItemInMenu(menuItem, menu.data)
|
|
20107
20107
|
},
|
|
20108
20108
|
},
|
package/package.json
CHANGED
package/src/machine/side_v2.js
CHANGED
|
@@ -86,8 +86,8 @@ export default function (request) {
|
|
|
86
86
|
setMenuItemStack: assign((context, event) => {
|
|
87
87
|
const { menuItemStack } = context
|
|
88
88
|
const inputItem = event.data
|
|
89
|
-
const isTopItem = inputItem.level === 0
|
|
90
|
-
const hasSubMenu = inputItem.sub
|
|
89
|
+
const isTopItem = inputItem.level ? inputItem.level === 0 : true
|
|
90
|
+
const hasSubMenu = inputItem.sub?.length || 0
|
|
91
91
|
|
|
92
92
|
if (isTopItem) {
|
|
93
93
|
if (hasSubMenu) {
|
|
@@ -146,7 +146,7 @@ export default function (request) {
|
|
|
146
146
|
const { menuItemStack, menu } = context
|
|
147
147
|
if (!menuItemStack || menuItemStack.length === 0) return false
|
|
148
148
|
const menuItem = menuItemStack.slice(-1)[0]
|
|
149
|
-
if (!menuItem) return false
|
|
149
|
+
if (!menuItem || !menuItem.categoryId) return false
|
|
150
150
|
return isItemInMenu(menuItem, menu.data)
|
|
151
151
|
},
|
|
152
152
|
},
|