@lingxiteam/ebe-utils 0.0.1 → 0.0.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.
Files changed (2) hide show
  1. package/es/index.js +12 -11
  2. package/package.json +3 -3
package/es/index.js CHANGED
@@ -319,22 +319,23 @@ export var fetchData = /*#__PURE__*/function () {
319
319
  })]);
320
320
  case 19:
321
321
  themeCss = _context2.sent;
322
- _context2.next = 24;
322
+ _context2.next = 25;
323
323
  break;
324
324
  case 22:
325
325
  _context2.prev = 22;
326
326
  _context2.t0 = _context2["catch"](16);
327
- case 24:
327
+ console.error('====获取主题失败', _context2.t0);
328
+ case 25:
328
329
  // 根据 appId 获取当前应用的使用的自定义组件
329
330
  onProgress({
330
331
  log: '获取当前应用的使用的自定义组件',
331
332
  progress: 3
332
333
  });
333
- _context2.next = 27;
334
+ _context2.next = 28;
334
335
  return services.qryPageCompAssetList({
335
336
  appId: appId
336
337
  });
337
- case 27:
338
+ case 28:
338
339
  temCompAssetList = _context2.sent;
339
340
  // 兼容下割接数据,数组前面的自定义组件是新的
340
341
  compAssetList = temCompAssetList.reduce(function (acc, current) {
@@ -350,12 +351,12 @@ export var fetchData = /*#__PURE__*/function () {
350
351
  log: '获取全局数据源',
351
352
  progress: 4
352
353
  });
353
- _context2.next = 32;
354
+ _context2.next = 33;
354
355
  return services.queryFrontendDatasourcePage({
355
356
  appId: appId,
356
357
  pageSize: 10000
357
358
  });
358
- case 32:
359
+ case 33:
359
360
  globalDataInfo = _context2.sent;
360
361
  dataSourceList = (globalDataInfo === null || globalDataInfo === void 0 ? void 0 : globalDataInfo.list) || [];
361
362
  globalDataMap = {};
@@ -380,7 +381,7 @@ export var fetchData = /*#__PURE__*/function () {
380
381
  log: '获取所有页面dsl',
381
382
  progress: 5
382
383
  });
383
- _context2.next = 43;
384
+ _context2.next = 44;
384
385
  return Promise.all(appPageList.map(function (i) {
385
386
  lastPageId = i.pageId;
386
387
  return services.findPageInstByVersionId({
@@ -388,7 +389,7 @@ export var fetchData = /*#__PURE__*/function () {
388
389
  pageId: i.pageId
389
390
  });
390
391
  }));
391
- case 43:
392
+ case 44:
392
393
  data = _context2.sent;
393
394
  pages = getPageDsls(data); // busiCompId 过滤重复
394
395
  itemHash = {}; // 找到所有页面使用到的 业务组件
@@ -400,7 +401,7 @@ export var fetchData = /*#__PURE__*/function () {
400
401
  log: '获取所有业务组件dsl',
401
402
  progress: 6
402
403
  });
403
- _context2.next = 51;
404
+ _context2.next = 52;
404
405
  return Promise.all(itemLists.map(function (i) {
405
406
  return services.findBusiCompById({
406
407
  busiCompId: i,
@@ -408,7 +409,7 @@ export var fetchData = /*#__PURE__*/function () {
408
409
  pageId: lastPageId
409
410
  });
410
411
  }));
411
- case 51:
412
+ case 52:
412
413
  busiData = _context2.sent;
413
414
  busiCompMapping = {};
414
415
  busiPages = busiData.map(function (i, index) {
@@ -446,7 +447,7 @@ export var fetchData = /*#__PURE__*/function () {
446
447
  options: options,
447
448
  cleanedTree: cleanedTree
448
449
  });
449
- case 60:
450
+ case 61:
450
451
  case "end":
451
452
  return _context2.stop();
452
453
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingxiteam/ebe-utils",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "",
@@ -17,9 +17,9 @@
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.2",
20
21
  "cac": "^6.7.14",
21
- "fs-extra": "9.x",
22
- "@lingxiteam/ebe": "0.0.1"
22
+ "fs-extra": "9.x"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public"