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