@comate/zulu 0.0.12 → 0.0.13
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/comate-engine/bin/comate.js +32 -1
- package/comate-engine/node_modules/@comate/plugin-engine/dist/index.js +15 -7
- package/comate-engine/node_modules/@comate/plugin-host/dist/index.js +1 -1
- package/comate-engine/node_modules/@comate/plugin-host/dist/main.js +1 -1
- package/comate-engine/node_modules/@comate/plugin-host/dist/{user-Btg63hPI.js → user-tNVx6ovK.js} +15 -7
- package/comate-engine/node_modules/@comate/plugin-shared-internals/dist/index.d.ts +63 -4
- package/comate-engine/node_modules/@comate/plugin-shared-internals/dist/index.js +15 -7
- package/comate-engine/node_modules/@comate/plugin-shared-internals/package.json +1 -0
- package/comate-engine/plugins/demo-feature/dist/index.js +17204 -0
- package/comate-engine/plugins/devaux/dist/index.js +203 -0
- package/comate-engine/plugins/f2c/dist/index.js +17204 -0
- package/comate-engine/plugins/xiaomi-aiot/dist/index.js +17204 -0
- package/comate-engine/server.js +17 -17
- package/dist/bundle/index.js +2 -2
- package/package.json +1 -1
|
@@ -1,10 +1,41 @@
|
|
|
1
1
|
// ================ polyfill start ================
|
|
2
|
-
import {
|
|
2
|
+
import {compare} from 'compare-versions';
|
|
3
3
|
if (compare(process.version, '18.0.0', '<')) {
|
|
4
4
|
await import('web-streams-polyfill/polyfill');
|
|
5
5
|
}
|
|
6
6
|
// ================= polyfill end =================
|
|
7
7
|
|
|
8
|
+
// TODO 重定向到日志系统
|
|
9
|
+
[
|
|
10
|
+
'log',
|
|
11
|
+
'info',
|
|
12
|
+
'warn',
|
|
13
|
+
'error',
|
|
14
|
+
'debug',
|
|
15
|
+
'trace',
|
|
16
|
+
'dir',
|
|
17
|
+
'dirxml',
|
|
18
|
+
'table',
|
|
19
|
+
'time',
|
|
20
|
+
'timeEnd',
|
|
21
|
+
'timeLog',
|
|
22
|
+
'timeStamp',
|
|
23
|
+
'group',
|
|
24
|
+
'groupCollapsed',
|
|
25
|
+
'groupEnd',
|
|
26
|
+
'count',
|
|
27
|
+
'countReset',
|
|
28
|
+
'clear',
|
|
29
|
+
'assert',
|
|
30
|
+
'profile',
|
|
31
|
+
'profileEnd',
|
|
32
|
+
]
|
|
33
|
+
.forEach(key => {
|
|
34
|
+
console[key] = function () {
|
|
35
|
+
// nothing to do
|
|
36
|
+
};
|
|
37
|
+
});
|
|
38
|
+
|
|
8
39
|
// 通过await import延迟加载,使得polyfill在主模块之前执行
|
|
9
40
|
const {run} = await import('../server.js');
|
|
10
41
|
run();
|