@arkts/image-manager 0.0.2 → 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/dist/default-product-config.d.cts +1 -1
- package/dist/default-product-config.d.mts +1 -1
- package/dist/index.cjs +13 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +13 -1
- package/dist/{product-config-BbaYsaoV.d.mts → product-config-BthHVWvs.d.mts} +2 -1
- package/dist/{product-config-Dk21FD9U.d.cts → product-config-KZA5hTtZ.d.cts} +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -657,7 +657,20 @@ async function createImageManager(options = {}) {
|
|
|
657
657
|
return new ImageManagerImpl(await resolveImageManagerOptions(options));
|
|
658
658
|
}
|
|
659
659
|
|
|
660
|
+
//#endregion
|
|
661
|
+
//#region src/product-config.ts
|
|
662
|
+
function createDeployedImageConfig(productConfigItem) {
|
|
663
|
+
return {
|
|
664
|
+
density: productConfigItem.screenDensity,
|
|
665
|
+
resolutionHeight: productConfigItem.screenHeight,
|
|
666
|
+
resolutionWidth: productConfigItem.screenWidth,
|
|
667
|
+
diagonalSize: productConfigItem.screenDiagonal,
|
|
668
|
+
productName: productConfigItem.name
|
|
669
|
+
};
|
|
670
|
+
}
|
|
671
|
+
|
|
660
672
|
//#endregion
|
|
661
673
|
exports.DevModel = DevModel;
|
|
662
674
|
exports.RequestUrlError = RequestUrlError;
|
|
675
|
+
exports.createDeployedImageConfig = createDeployedImageConfig;
|
|
663
676
|
exports.createImageManager = createImageManager;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as DeviceType, c as SnakecaseDeviceType, d as DeployedImageConfig, f as DeployedImageConfigWithProductName, h as FullDeployedImageOptions, i as Arch, l as Stringifiable, m as DevModel, n as ProductConfigItem, o as OS, p as DeployedImageOptions, r as createDeployedImageConfig, s as PascalCaseDeviceType, t as ProductConfig, u as DeployedDevModel } from "./product-config-KZA5hTtZ.cjs";
|
|
2
2
|
import { AxiosProgressEvent } from "axios";
|
|
3
3
|
import { Emitter } from "mitt";
|
|
4
4
|
import * as node_child_process0 from "node:child_process";
|
|
@@ -261,4 +261,4 @@ interface ImageDeployer {
|
|
|
261
261
|
deploy(symlinkImage?: boolean): Promise<void | Error>;
|
|
262
262
|
}
|
|
263
263
|
//#endregion
|
|
264
|
-
export { Arch, DeployedDevModel, DeployedImageConfig, DeployedImageConfigWithProductName, DeployedImageOptions, DevModel, DeviceType, FullDeployedImageOptions, Image, ImageDeployer, type ImageManager, type ImageManagerOptions, ImageType, LocalImage, OS, PascalCaseDeviceType, type ProductConfig, RemoteImage, RequestUrlError, SnakecaseDeviceType, Stringifiable, createImageManager };
|
|
264
|
+
export { Arch, DeployedDevModel, DeployedImageConfig, DeployedImageConfigWithProductName, DeployedImageOptions, DevModel, DeviceType, FullDeployedImageOptions, Image, ImageDeployer, type ImageManager, type ImageManagerOptions, ImageType, LocalImage, OS, PascalCaseDeviceType, type ProductConfig, RemoteImage, RequestUrlError, SnakecaseDeviceType, Stringifiable, createDeployedImageConfig, createImageManager };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as DeviceType, c as SnakecaseDeviceType, d as DeployedImageConfig, f as DeployedImageConfigWithProductName, h as FullDeployedImageOptions, i as Arch, l as Stringifiable, m as DevModel, n as ProductConfigItem, o as OS, p as DeployedImageOptions, r as createDeployedImageConfig, s as PascalCaseDeviceType, t as ProductConfig, u as DeployedDevModel } from "./product-config-BthHVWvs.mjs";
|
|
2
2
|
import { AxiosProgressEvent } from "axios";
|
|
3
3
|
import { Emitter } from "mitt";
|
|
4
4
|
import progress from "progress-stream";
|
|
@@ -261,4 +261,4 @@ interface ImageDeployer {
|
|
|
261
261
|
deploy(symlinkImage?: boolean): Promise<void | Error>;
|
|
262
262
|
}
|
|
263
263
|
//#endregion
|
|
264
|
-
export { Arch, DeployedDevModel, DeployedImageConfig, DeployedImageConfigWithProductName, DeployedImageOptions, DevModel, DeviceType, FullDeployedImageOptions, type Image, type ImageDeployer, type ImageManager, type ImageManagerOptions, type ImageType, type LocalImage, OS, PascalCaseDeviceType, type ProductConfig, type RemoteImage, RequestUrlError, SnakecaseDeviceType, Stringifiable, createImageManager };
|
|
264
|
+
export { Arch, DeployedDevModel, DeployedImageConfig, DeployedImageConfigWithProductName, DeployedImageOptions, DevModel, DeviceType, FullDeployedImageOptions, type Image, type ImageDeployer, type ImageManager, type ImageManagerOptions, type ImageType, type LocalImage, OS, PascalCaseDeviceType, type ProductConfig, type RemoteImage, RequestUrlError, SnakecaseDeviceType, Stringifiable, createDeployedImageConfig, createImageManager };
|
package/dist/index.mjs
CHANGED
|
@@ -626,4 +626,16 @@ async function createImageManager(options = {}) {
|
|
|
626
626
|
}
|
|
627
627
|
|
|
628
628
|
//#endregion
|
|
629
|
-
|
|
629
|
+
//#region src/product-config.ts
|
|
630
|
+
function createDeployedImageConfig(productConfigItem) {
|
|
631
|
+
return {
|
|
632
|
+
density: productConfigItem.screenDensity,
|
|
633
|
+
resolutionHeight: productConfigItem.screenHeight,
|
|
634
|
+
resolutionWidth: productConfigItem.screenWidth,
|
|
635
|
+
diagonalSize: productConfigItem.screenDiagonal,
|
|
636
|
+
productName: productConfigItem.name
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
//#endregion
|
|
641
|
+
export { DevModel, RequestUrlError, createDeployedImageConfig, createImageManager };
|
|
@@ -246,5 +246,6 @@ interface ProductConfigItem {
|
|
|
246
246
|
devModel?: string;
|
|
247
247
|
}
|
|
248
248
|
type ProductConfig = Record<PascalCaseDeviceType, ProductConfigItem[]>;
|
|
249
|
+
declare function createDeployedImageConfig(productConfigItem: ProductConfigItem): DeployedImageConfigWithProductName;
|
|
249
250
|
//#endregion
|
|
250
|
-
export {
|
|
251
|
+
export { DeviceType as a, SnakecaseDeviceType as c, DeployedImageConfig as d, DeployedImageConfigWithProductName as f, FullDeployedImageOptions as h, Arch as i, Stringifiable as l, DevModel as m, ProductConfigItem as n, OS as o, DeployedImageOptions as p, createDeployedImageConfig as r, PascalCaseDeviceType as s, ProductConfig as t, DeployedDevModel as u };
|
|
@@ -246,5 +246,6 @@ interface ProductConfigItem {
|
|
|
246
246
|
devModel?: string;
|
|
247
247
|
}
|
|
248
248
|
type ProductConfig = Record<PascalCaseDeviceType, ProductConfigItem[]>;
|
|
249
|
+
declare function createDeployedImageConfig(productConfigItem: ProductConfigItem): DeployedImageConfigWithProductName;
|
|
249
250
|
//#endregion
|
|
250
|
-
export {
|
|
251
|
+
export { DeviceType as a, SnakecaseDeviceType as c, DeployedImageConfig as d, DeployedImageConfigWithProductName as f, FullDeployedImageOptions as h, Arch as i, Stringifiable as l, DevModel as m, ProductConfigItem as n, OS as o, DeployedImageOptions as p, createDeployedImageConfig as r, PascalCaseDeviceType as s, ProductConfig as t, DeployedDevModel as u };
|
package/package.json
CHANGED