@lingxiteam/ebe-utils 0.0.3 → 0.0.4

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.
package/es/index.d.ts CHANGED
@@ -49,7 +49,7 @@ export declare const fetchData: ({ appId, services, platform, baseUrl, onProgres
49
49
  frontendHookList: any;
50
50
  };
51
51
  attrSpecPage: any;
52
- themeCss: string;
52
+ themeCss: any;
53
53
  models: Record<string, any>;
54
54
  appInfo: Record<string, any>;
55
55
  };
package/es/index.js CHANGED
@@ -311,11 +311,17 @@ export var fetchData = /*#__PURE__*/function () {
311
311
  themeCss = '';
312
312
  _context2.prev = 16;
313
313
  _context2.next = 19;
314
- return Promise.race([services.getThemeCss({
315
- appId: appId,
316
- terminalType: platform
317
- }), new Promise(function (resolve) {
318
- return setTimeout(resolve, 3000);
314
+ return Promise.race([new Promise(function (resolve, reject) {
315
+ services.getThemeCss({
316
+ appId: appId,
317
+ terminalType: platform
318
+ }).then(function (res) {
319
+ resolve(res);
320
+ });
321
+ }), new Promise(function (resolve, reject) {
322
+ setTimeout(function () {
323
+ resolve('');
324
+ }, 3000);
319
325
  })]);
320
326
  case 19:
321
327
  themeCss = _context2.sent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingxiteam/ebe-utils",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
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.3",
20
+ "@lingxiteam/ebe": "0.0.4",
21
21
  "cac": "^6.7.14",
22
22
  "fs-extra": "9.x"
23
23
  },