@lingxiteam/ebe-utils 0.0.5 → 0.0.7

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/es/index.js +3 -3
  2. package/package.json +2 -2
package/es/index.js CHANGED
@@ -321,7 +321,7 @@ export var fetchData = /*#__PURE__*/function () {
321
321
  }), new Promise(function (resolve, reject) {
322
322
  setTimeout(function () {
323
323
  resolve('');
324
- }, 3000);
324
+ }, 5000);
325
325
  })]);
326
326
  case 19:
327
327
  themeCss = _context2.sent;
@@ -418,8 +418,8 @@ export var fetchData = /*#__PURE__*/function () {
418
418
  }));
419
419
  case 53:
420
420
  busiData = _context2.sent;
421
- busiCompMapping = {};
422
- busiPages = busiData.map(function (i, index) {
421
+ busiCompMapping = {}; // 过滤为空
422
+ busiPages = busiData.filter(Boolean).map(function (i, index) {
423
423
  var _i$busiCompVersion;
424
424
  var busiData = JSON.parse(i === null || i === void 0 || (_i$busiCompVersion = i.busiCompVersion) === null || _i$busiCompVersion === void 0 ? void 0 : _i$busiCompVersion.sourceCodeJson);
425
425
  busiData.busiCompId = i === null || i === void 0 ? void 0 : i.busiCompId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingxiteam/ebe-utils",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "",
@@ -17,7 +17,7 @@
17
17
  "@babel/parser": "^7.12.12",
18
18
  "@babel/traverse": "^7.12.12",
19
19
  "@babel/types": "^7.12.12",
20
- "@lingxiteam/ebe": "0.0.5",
20
+ "@lingxiteam/ebe": "0.0.7",
21
21
  "cac": "^6.7.14",
22
22
  "fs-extra": "9.x"
23
23
  },