@aiot-toolkit/aiotpack 2.0.6-beta.2 → 2.0.6-beta.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.
@@ -39,7 +39,10 @@ class UxAfterCompile {
39
39
  ..._JavascriptDefaultCompileOption.default,
40
40
  ...compilerOption
41
41
  }).then(() => {
42
- _sharedUtils.ColorConsole.info(`webpack complete`);
42
+ onLog?.([{
43
+ level: _sharedUtils.Loglevel.SUCCESS,
44
+ message: ['javascript compile success']
45
+ }]);
43
46
  }).catch(_ref => {
44
47
  let {
45
48
  errors,
@@ -64,10 +67,16 @@ class UxAfterCompile {
64
67
  });
65
68
  }
66
69
  if (errors?.length) {
67
- _sharedUtils.ColorConsole.throw(...messages);
70
+ onLog?.([{
71
+ level: _sharedUtils.Loglevel.THROW,
72
+ message: messages
73
+ }]);
68
74
  throw new Error();
69
75
  } else {
70
- _sharedUtils.ColorConsole.warn(...messages);
76
+ onLog?.([{
77
+ level: _sharedUtils.Loglevel.WARN,
78
+ message: messages
79
+ }]);
71
80
  }
72
81
  });
73
82
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiot-toolkit/aiotpack",
3
- "version": "2.0.6-beta.2",
3
+ "version": "2.0.6-beta.3",
4
4
  "description": "The process tool for packaging aiot projects.",
5
5
  "keywords": [
6
6
  "aiotpack"
@@ -19,14 +19,14 @@
19
19
  "test": "node ./__tests__/aiotpack.test.js"
20
20
  },
21
21
  "dependencies": {
22
- "@aiot-toolkit/generator": "2.0.6-beta.2",
23
- "@aiot-toolkit/parser": "2.0.6-beta.2",
24
- "@aiot-toolkit/shared-utils": "2.0.6-beta.2",
22
+ "@aiot-toolkit/generator": "2.0.6-beta.3",
23
+ "@aiot-toolkit/parser": "2.0.6-beta.3",
24
+ "@aiot-toolkit/shared-utils": "2.0.6-beta.3",
25
25
  "@hap-toolkit/aaptjs": "^2.0.0",
26
26
  "@rspack/core": "^1.3.9",
27
27
  "aiot-parse5": "^1.0.2",
28
28
  "babel-loader": "^9.1.3",
29
- "file-lane": "2.0.6-beta.2",
29
+ "file-lane": "2.0.6-beta.3",
30
30
  "file-loader": "^6.2.0",
31
31
  "fs-extra": "^11.2.0",
32
32
  "jsrsasign": "^11.1.0",
@@ -42,5 +42,5 @@
42
42
  "@types/jsrsasign": "^10.5.12",
43
43
  "@types/webpack-sources": "^3.2.3"
44
44
  },
45
- "gitHead": "d0057f9e62ac191d21445787667217cfa4aff1e9"
45
+ "gitHead": "2e2ba4b1d293218736343237d963fe93c5fb27a8"
46
46
  }