@arkts/image-manager 0.3.5 → 0.4.1
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/dist/default-emulator-config.cjs +793 -0
- package/dist/default-emulator-config.d.cts +5 -0
- package/dist/default-emulator-config.d.mts +6 -0
- package/dist/default-emulator-config.mjs +792 -0
- package/dist/default-product-config.d.cts +1 -1
- package/dist/default-product-config.d.mts +1 -1
- package/dist/emulator-config-DbI3FRE5.d.mts +64 -0
- package/dist/emulator-config-HeXlMqZ-.d.cts +64 -0
- package/dist/index.cjs +528 -53
- package/dist/index.d.cts +160 -19
- package/dist/index.d.mts +160 -19
- package/dist/index.mjs +486 -51
- package/dist/{product-config-2xNDbvax.d.cts → product-config-ByDVg0-5.d.mts} +6 -11
- package/dist/{product-config-CDvEXtfy.d.mts → product-config-DuzOJEvZ.d.cts} +6 -11
- package/dist/types-CayFonNb.d.cts +16 -0
- package/dist/types-DD8_iqBV.d.mts +16 -0
- package/package.json +21 -3
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
toJSON(): T;
|
|
4
|
-
}
|
|
5
|
-
type OS = 'windows' | 'mac' | 'linux';
|
|
6
|
-
type Arch = 'x86' | 'arm64';
|
|
7
|
-
type DeviceType = 'pc' | 'phone' | 'tablet' | 'wearable' | 'tv' | 'foldable' | 'widefold' | '2in1';
|
|
8
|
-
type SnakecaseDeviceType = 'phone' | 'tablet' | '2in1' | 'foldable' | 'widefold' | 'triplefold' | '2in1_foldable' | 'tv' | 'wearable';
|
|
9
|
-
type PascalCaseDeviceType = 'Phone' | 'Tablet' | '2in1' | 'Foldable' | 'WideFold' | 'TripleFold' | '2in1 Foldable' | 'TV' | 'Wearable';
|
|
10
|
-
//#endregion
|
|
1
|
+
import { o as PascalCaseDeviceType } from "./types-CayFonNb.cjs";
|
|
2
|
+
|
|
11
3
|
//#region src/product-config.d.ts
|
|
12
4
|
interface ProductConfigItem {
|
|
13
5
|
/**
|
|
@@ -67,6 +59,9 @@ interface ProductConfigItem {
|
|
|
67
59
|
*/
|
|
68
60
|
devModel?: string;
|
|
69
61
|
}
|
|
62
|
+
declare namespace ProductConfigItem {
|
|
63
|
+
function is(value: unknown): value is ProductConfigItem;
|
|
64
|
+
}
|
|
70
65
|
type ProductConfig = Record<PascalCaseDeviceType, ProductConfigItem[]>;
|
|
71
66
|
//#endregion
|
|
72
|
-
export {
|
|
67
|
+
export { ProductConfigItem as n, ProductConfig as t };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/types.d.ts
|
|
2
|
+
interface Stringifiable<T> {
|
|
3
|
+
toJSON(): T;
|
|
4
|
+
}
|
|
5
|
+
type OS = 'windows' | 'mac' | 'linux';
|
|
6
|
+
type Arch = 'x86' | 'arm64';
|
|
7
|
+
type DeviceType = 'pc' | 'phone' | 'tablet' | 'wearable' | 'tv' | 'foldable' | 'widefold' | '2in1';
|
|
8
|
+
type SnakecaseDeviceType = 'phone' | 'tablet' | '2in1' | 'foldable' | 'widefold' | 'triplefold' | '2in1_foldable' | 'tv' | 'wearable';
|
|
9
|
+
type ParentEmulatorSnakecaseDeviceType = SnakecaseDeviceType | 'pc_all' | 'phone_all';
|
|
10
|
+
type PhoneAllSnakecaseDeviceType = 'phone' | 'triplefold' | 'widefold' | 'foldable';
|
|
11
|
+
declare function isPhoneAllSnakecaseDeviceType(value: unknown): value is PhoneAllSnakecaseDeviceType;
|
|
12
|
+
type PCAllSnakecaseDeviceType = '2in1_foldable' | '2in1';
|
|
13
|
+
declare function isPCAllSnakecaseDeviceType(value: unknown): value is PCAllSnakecaseDeviceType;
|
|
14
|
+
type PascalCaseDeviceType = 'Phone' | 'Tablet' | '2in1' | 'Foldable' | 'WideFold' | 'TripleFold' | '2in1 Foldable' | 'TV' | 'Wearable';
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ParentEmulatorSnakecaseDeviceType as a, SnakecaseDeviceType as c, isPhoneAllSnakecaseDeviceType as d, PCAllSnakecaseDeviceType as i, Stringifiable as l, DeviceType as n, PascalCaseDeviceType as o, OS as r, PhoneAllSnakecaseDeviceType as s, Arch as t, isPCAllSnakecaseDeviceType as u };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/types.d.ts
|
|
2
|
+
interface Stringifiable<T> {
|
|
3
|
+
toJSON(): T;
|
|
4
|
+
}
|
|
5
|
+
type OS = 'windows' | 'mac' | 'linux';
|
|
6
|
+
type Arch = 'x86' | 'arm64';
|
|
7
|
+
type DeviceType = 'pc' | 'phone' | 'tablet' | 'wearable' | 'tv' | 'foldable' | 'widefold' | '2in1';
|
|
8
|
+
type SnakecaseDeviceType = 'phone' | 'tablet' | '2in1' | 'foldable' | 'widefold' | 'triplefold' | '2in1_foldable' | 'tv' | 'wearable';
|
|
9
|
+
type ParentEmulatorSnakecaseDeviceType = SnakecaseDeviceType | 'pc_all' | 'phone_all';
|
|
10
|
+
type PhoneAllSnakecaseDeviceType = 'phone' | 'triplefold' | 'widefold' | 'foldable';
|
|
11
|
+
declare function isPhoneAllSnakecaseDeviceType(value: unknown): value is PhoneAllSnakecaseDeviceType;
|
|
12
|
+
type PCAllSnakecaseDeviceType = '2in1_foldable' | '2in1';
|
|
13
|
+
declare function isPCAllSnakecaseDeviceType(value: unknown): value is PCAllSnakecaseDeviceType;
|
|
14
|
+
type PascalCaseDeviceType = 'Phone' | 'Tablet' | '2in1' | 'Foldable' | 'WideFold' | 'TripleFold' | '2in1 Foldable' | 'TV' | 'Wearable';
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ParentEmulatorSnakecaseDeviceType as a, SnakecaseDeviceType as c, isPhoneAllSnakecaseDeviceType as d, PCAllSnakecaseDeviceType as i, Stringifiable as l, DeviceType as n, PascalCaseDeviceType as o, OS as r, PhoneAllSnakecaseDeviceType as s, Arch as t, isPCAllSnakecaseDeviceType as u };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkts/image-manager",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.1",
|
|
5
5
|
"description": "OpenHarmony/HarmonyOS qemu image manager.",
|
|
6
6
|
"author": "Naily Zero <zero@naily.cc> (https://naily.cc)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -31,7 +31,25 @@
|
|
|
31
31
|
},
|
|
32
32
|
"import": "./dist/index.mjs",
|
|
33
33
|
"require": "./dist/index.cjs"
|
|
34
|
-
}
|
|
34
|
+
},
|
|
35
|
+
"./default-product-config": {
|
|
36
|
+
"types": {
|
|
37
|
+
"import": "./dist/default-product-config.d.mts",
|
|
38
|
+
"require": "./dist/default-product-config.d.cts"
|
|
39
|
+
},
|
|
40
|
+
"import": "./dist/default-product-config.mjs",
|
|
41
|
+
"require": "./dist/default-product-config.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./default-emulator-config": {
|
|
44
|
+
"types": {
|
|
45
|
+
"import": "./dist/default-emulator-config.d.mts",
|
|
46
|
+
"require": "./dist/default-emulator-config.d.cts"
|
|
47
|
+
},
|
|
48
|
+
"import": "./dist/default-emulator-config.mjs",
|
|
49
|
+
"require": "./dist/default-emulator-config.cjs"
|
|
50
|
+
},
|
|
51
|
+
"./package.json": "./package.json",
|
|
52
|
+
"./dist/*": "./dist/*"
|
|
35
53
|
},
|
|
36
54
|
"main": "dist/index.cjs",
|
|
37
55
|
"module": "dist/index.mjs",
|
|
@@ -64,7 +82,7 @@
|
|
|
64
82
|
"vitest": "^4.0.18"
|
|
65
83
|
},
|
|
66
84
|
"scripts": {
|
|
67
|
-
"build": "tsdown --dts --format esm,cjs src/index.ts src/default-product-config.ts",
|
|
85
|
+
"build": "tsdown --dts --format esm,cjs src/index.ts src/default-product-config.ts src/default-emulator-config.ts",
|
|
68
86
|
"test": "vitest --coverage --ui",
|
|
69
87
|
"lint": "eslint ."
|
|
70
88
|
}
|