@lingxiteam/ebe-utils 0.0.2 → 0.0.3

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