aiot-toolkit 2.0.2-beta.10 → 2.0.2-beta.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiot-toolkit",
3
- "version": "2.0.2-beta.10",
3
+ "version": "2.0.2-beta.12",
4
4
  "description": "Tools for creating, developing, and packaging aiot applications.",
5
5
  "keywords": [
6
6
  "aiot"
@@ -21,28 +21,33 @@
21
21
  "test": "node ./__tests__/aiot-toolkit.test.js"
22
22
  },
23
23
  "dependencies": {
24
- "@aiot-toolkit/commander": "2.0.2-beta.10",
25
- "@aiot-toolkit/emulator": "2.0.2-beta.10",
26
- "@aiot-toolkit/shared-utils": "2.0.2-beta.10",
27
- "@miwt/adb": "^0.7.1",
24
+ "@aiot-toolkit/commander": "2.0.2-beta.12",
25
+ "@aiot-toolkit/emulator": "2.0.2-beta.12",
26
+ "@aiot-toolkit/shared-utils": "2.0.2-beta.12",
27
+ "@miwt/adb": "^0.8.0",
28
28
  "adb-commander": "^0.1.9",
29
29
  "adm-zip": "^0.5.10",
30
30
  "axios": "^1.5.0",
31
31
  "cli-progress": "^3.12.0",
32
- "create-aiot": "2.0.2-beta.10",
32
+ "create-aiot": "2.0.2-beta.12",
33
33
  "dayjs": "^1.11.10",
34
34
  "fast-glob": "^3.3.2",
35
- "file-lane": "2.0.2-beta.10",
35
+ "file-lane": "2.0.2-beta.12",
36
+ "fs-extra": "^11.2.0",
36
37
  "lodash": "^4.17.21",
38
+ "qr-image": "^3.2.0",
37
39
  "semver": "^7.6.0",
38
40
  "ws": "^8.15.1"
39
41
  },
40
42
  "devDependencies": {
41
43
  "@types/adm-zip": "^0.5.4",
42
44
  "@types/fs-extra": "^11.0.4",
45
+ "@types/koa": "^2.15.0",
46
+ "@types/koa-router": "^7.4.8",
47
+ "@types/koa-static": "^4.0.4",
48
+ "@types/qr-image": "^3.2.9",
43
49
  "@types/semver": "^7.5.8",
44
- "@types/ws": "^8.5.10",
45
- "fs-extra": "^11.2.0"
50
+ "@types/ws": "^8.5.10"
46
51
  },
47
- "gitHead": "00d23c1ad1306a6c72bb007685de9fd4a6ee61af"
52
+ "gitHead": "3d2f9f8f48bb88492013d867f6eff27cb33365a0"
48
53
  }
@@ -1,8 +0,0 @@
1
- import CompileMode from '@aiot-toolkit/aiotpack/lib/compiler/enum/CompileMode';
2
- /**
3
- * UxBuilderUtils
4
- */
5
- declare class UxBuilderUtils {
6
- static getDevtoolValue(mode: CompileMode, devtool: string): string | boolean;
7
- }
8
- export default UxBuilderUtils;
@@ -1,51 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const ColorConsole_1 = __importDefault(require("@aiot-toolkit/shared-utils/lib/ColorConsole"));
7
- /**
8
- * UxBuilderUtils
9
- */
10
- class UxBuilderUtils {
11
- static getDevtoolValue(mode, devtool) {
12
- const sourcemaps = {
13
- development: {
14
- default: 'cheap-source-map',
15
- options: [
16
- false,
17
- 'cheap-source-map',
18
- 'cheap-module-source-map',
19
- 'inline-cheap-source-map',
20
- 'inline-cheap-module-source-map',
21
- 'source-map',
22
- 'inline-source-map',
23
- 'hidden-source-map',
24
- 'nosources-source-map'
25
- ]
26
- },
27
- production: {
28
- default: false,
29
- options: [
30
- false,
31
- 'cheap-source-map',
32
- 'cheap-module-source-map',
33
- 'source-map',
34
- 'hidden-source-map',
35
- 'nosources-source-map'
36
- ]
37
- }
38
- };
39
- const sourcemapArr = sourcemaps[mode].options;
40
- const defaultSourcemap = sourcemaps[mode].default;
41
- if (typeof devtool !== 'string' && typeof devtool !== 'boolean') {
42
- return defaultSourcemap;
43
- }
44
- if (sourcemapArr.indexOf(devtool) === -1) {
45
- ColorConsole_1.default.warn(`The devtool in ${mode} mode does not support '${devtool}', change to default '${defaultSourcemap}'`);
46
- return defaultSourcemap;
47
- }
48
- return devtool;
49
- }
50
- }
51
- exports.default = UxBuilderUtils;