zet-lib 1.0.12 → 1.0.14

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.
Files changed (2) hide show
  1. package/lib/zRole.js +2 -2
  2. package/package.json +1 -1
package/lib/zRole.js CHANGED
@@ -227,10 +227,10 @@ a.childrenMenu = (res, arr) => {
227
227
  arr.map((item) => {
228
228
  let obj = {};
229
229
  if(a.isAccess(res.locals.roleId,item.href,"index")) {
230
- obj = a.addItem(item);
230
+ obj = a.addItemMenu(item);
231
231
  if (item.hasOwnProperty("children") && item.children.length) {
232
232
  let child = [];
233
- child.push(a.children(res, item.children));
233
+ child.push(a.childrenMenu(res, item.children));
234
234
  if (child[0]) {
235
235
  obj.children = child[0];
236
236
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"