@midscene/shared 1.17.7 → 1.17.8-beta-20261106101231.0
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.
|
@@ -5,7 +5,7 @@ import { assert } from "../utils.mjs";
|
|
|
5
5
|
import { maskConfig, parseJson } from "./helper.mjs";
|
|
6
6
|
import { initDebugConfig } from "./init-debug.mjs";
|
|
7
7
|
const MODEL_CONFIG_DOC_URL = 'https://midscenejs.com/model-api-setup.html';
|
|
8
|
-
const getCurrentVersion = ()=>"1.17.
|
|
8
|
+
const getCurrentVersion = ()=>"1.17.8-beta-20261106101231.0";
|
|
9
9
|
const getInvalidModelFamilyMessage = (modelFamily)=>`Invalid MIDSCENE_MODEL_FAMILY value: ${modelFamily}. Current version v${getCurrentVersion()} accepts the following model families: ${MODEL_FAMILY_VALUES.join(', ')}. You can also visit ${MODEL_CONFIG_DOC_URL} for the latest configuration information.`;
|
|
10
10
|
const KEYS_MAP = {
|
|
11
11
|
locate: LOCATE_MODEL_CONFIG_KEYS,
|
|
@@ -37,7 +37,7 @@ const external_utils_js_namespaceObject = require("../utils.js");
|
|
|
37
37
|
const external_helper_js_namespaceObject = require("./helper.js");
|
|
38
38
|
const external_init_debug_js_namespaceObject = require("./init-debug.js");
|
|
39
39
|
const MODEL_CONFIG_DOC_URL = 'https://midscenejs.com/model-api-setup.html';
|
|
40
|
-
const getCurrentVersion = ()=>"1.17.
|
|
40
|
+
const getCurrentVersion = ()=>"1.17.8-beta-20261106101231.0";
|
|
41
41
|
const getInvalidModelFamilyMessage = (modelFamily)=>`Invalid MIDSCENE_MODEL_FAMILY value: ${modelFamily}. Current version v${getCurrentVersion()} accepts the following model families: ${external_types_js_namespaceObject.MODEL_FAMILY_VALUES.join(', ')}. You can also visit ${MODEL_CONFIG_DOC_URL} for the latest configuration information.`;
|
|
42
42
|
const KEYS_MAP = {
|
|
43
43
|
locate: external_constants_js_namespaceObject.LOCATE_MODEL_CONFIG_KEYS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-sharp.d.ts","sourceRoot":"","sources":["../../../src/img/get-sharp.ts"],"names":[],"mappings":"AACA,KAAK,YAAY,GAAG,cAAc,OAAO,
|
|
1
|
+
{"version":3,"file":"get-sharp.d.ts","sourceRoot":"","sources":["../../../src/img/get-sharp.ts"],"names":[],"mappings":"AACA,KAAK,YAAY,GAAG,cAAc,OAAO,EAAE,OAAO,CAAC;AAEnD,wBAA8B,QAAQ,IAAI,OAAO,CAAC,YAAY,CAAC,CAa9D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/shared",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.8-beta-20261106101231.0",
|
|
4
4
|
"repository": "https://github.com/web-infra-dev/midscene",
|
|
5
5
|
"homepage": "https://midscenejs.com/",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -110,9 +110,9 @@
|
|
|
110
110
|
"@silvia-odwyer/photon": "0.3.3",
|
|
111
111
|
"debug": "4.4.0",
|
|
112
112
|
"js-sha256": "0.11.0",
|
|
113
|
-
"sharp": "^0.
|
|
113
|
+
"sharp": "^0.35.5",
|
|
114
114
|
"dotenv": "^16.4.5",
|
|
115
|
-
"uuid": "11.1.
|
|
115
|
+
"uuid": "11.1.1",
|
|
116
116
|
"zod": "^3.25.1"
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|
|
@@ -125,6 +125,9 @@
|
|
|
125
125
|
"rimraf": "~5.0.10",
|
|
126
126
|
"typescript": "^5.8.3"
|
|
127
127
|
},
|
|
128
|
+
"engines": {
|
|
129
|
+
"node": "^20.19.0 || ^22.12.0 || >=24.0.0"
|
|
130
|
+
},
|
|
128
131
|
"sideEffects": [],
|
|
129
132
|
"publishConfig": {
|
|
130
133
|
"access": "public",
|
package/src/img/get-sharp.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ifInNode } from '../utils';
|
|
2
|
-
type TSharpModule = typeof import('sharp');
|
|
2
|
+
type TSharpModule = typeof import('sharp').default;
|
|
3
3
|
|
|
4
4
|
export default async function getSharp(): Promise<TSharpModule> {
|
|
5
5
|
if (!ifInNode) {
|
|
@@ -7,7 +7,6 @@ export default async function getSharp(): Promise<TSharpModule> {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
try {
|
|
10
|
-
// @ts-ignore
|
|
11
10
|
const sharp = await import('sharp');
|
|
12
11
|
return sharp.default;
|
|
13
12
|
} catch (error) {
|