@blocklet/meta 1.8.30 → 1.8.31

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.
@@ -162,7 +162,7 @@ const doParseNavigation = (navigation, blocklet, prefix = '/', _level = 1) => {
162
162
  _level + 1
163
163
  );
164
164
 
165
- if (_level === 1) { // eslint-disable-line
165
+ if (_level === 1) {
166
166
  // primary menu
167
167
  const item = cloneDeep(itemProto);
168
168
 
@@ -223,7 +223,7 @@ const uniq = (navigation) => {
223
223
  const parseNavigation = (...args) => {
224
224
  const res = doParseNavigation(...args);
225
225
 
226
- return uniq(res);
226
+ return uniq(res).filter((x) => x.link || (x.items && x.items.length));
227
227
  };
228
228
 
229
229
  module.exports = parseNavigation;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.30",
6
+ "version": "1.8.31",
7
7
  "description": "Library to parse/validate/fix blocklet meta",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -18,13 +18,13 @@
18
18
  "author": "wangshijun <wangshijun2020@gmail.com> (http://github.com/wangshijun)",
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
- "@abtnode/constant": "1.8.30",
22
- "@abtnode/util": "1.8.30",
21
+ "@abtnode/constant": "1.8.31",
22
+ "@abtnode/util": "1.8.31",
23
23
  "@arcblock/did": "1.17.23",
24
24
  "@arcblock/did-ext": "1.17.23",
25
25
  "@arcblock/did-util": "1.17.23",
26
26
  "@arcblock/jwt": "1.17.23",
27
- "@blocklet/constant": "1.8.30",
27
+ "@blocklet/constant": "1.8.31",
28
28
  "@ocap/asset": "1.17.23",
29
29
  "@ocap/mcrypto": "1.17.23",
30
30
  "@ocap/util": "1.17.23",
@@ -36,7 +36,7 @@
36
36
  "fs-extra": "^10.1.0",
37
37
  "hosted-git-info": "3.0.8",
38
38
  "is-glob": "^4.0.3",
39
- "joi": "^17.6.2",
39
+ "joi": "17.6.3",
40
40
  "joi-extension-semver": "^5.0.0",
41
41
  "js-yaml": "^4.1.0",
42
42
  "json-stable-stringify": "^1.0.1",
@@ -54,5 +54,5 @@
54
54
  "express": "^4.18.2",
55
55
  "jest": "^27.5.1"
56
56
  },
57
- "gitHead": "cb294f4ee7382c6ef7692b6c2c33ad080fced13e"
57
+ "gitHead": "f3cc8becdca1b8c5e645eb8cf751fa780cf09cfe"
58
58
  }