hot-updater 0.4.1-2 → 0.4.1-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/index.cjs +9 -3
- package/dist/index.js +9 -3
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -14075,13 +14075,19 @@ var __webpack_exports__ = {};
|
|
|
14075
14075
|
}
|
|
14076
14076
|
};
|
|
14077
14077
|
const getDefaultTargetAppVersion = async (cwd, platform)=>{
|
|
14078
|
+
let version = null;
|
|
14078
14079
|
switch(platform){
|
|
14079
14080
|
case "ios":
|
|
14080
|
-
|
|
14081
|
+
version = await getIOSVersion(cwd);
|
|
14082
|
+
break;
|
|
14081
14083
|
case "android":
|
|
14082
|
-
|
|
14084
|
+
version = await getAndroidVersion(cwd);
|
|
14085
|
+
break;
|
|
14083
14086
|
}
|
|
14084
|
-
return null;
|
|
14087
|
+
if (!version) return null;
|
|
14088
|
+
const dotCount = version.split(".").length - 1;
|
|
14089
|
+
if (1 === dotCount) version = `${version}.x`;
|
|
14090
|
+
return version;
|
|
14085
14091
|
};
|
|
14086
14092
|
const getFileHashFromFile = async (filepath)=>{
|
|
14087
14093
|
try {
|
package/dist/index.js
CHANGED
|
@@ -13978,13 +13978,19 @@ const getAndroidVersion = async (cwd)=>{
|
|
|
13978
13978
|
}
|
|
13979
13979
|
};
|
|
13980
13980
|
const getDefaultTargetAppVersion = async (cwd, platform)=>{
|
|
13981
|
+
let version = null;
|
|
13981
13982
|
switch(platform){
|
|
13982
13983
|
case "ios":
|
|
13983
|
-
|
|
13984
|
+
version = await getIOSVersion(cwd);
|
|
13985
|
+
break;
|
|
13984
13986
|
case "android":
|
|
13985
|
-
|
|
13987
|
+
version = await getAndroidVersion(cwd);
|
|
13988
|
+
break;
|
|
13986
13989
|
}
|
|
13987
|
-
return null;
|
|
13990
|
+
if (!version) return null;
|
|
13991
|
+
const dotCount = version.split(".").length - 1;
|
|
13992
|
+
if (1 === dotCount) version = `${version}.x`;
|
|
13993
|
+
return version;
|
|
13988
13994
|
};
|
|
13989
13995
|
const getFileHashFromFile = async (filepath)=>{
|
|
13990
13996
|
try {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hot-updater",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.1-
|
|
4
|
+
"version": "0.4.1-4",
|
|
5
5
|
"bin": {
|
|
6
6
|
"hot-updater": "./dist/index.js"
|
|
7
7
|
},
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@clack/prompts": "^0.9.0",
|
|
42
|
-
"@hot-updater/console": "0.4.1-
|
|
43
|
-
"@hot-updater/core": "0.4.1-
|
|
44
|
-
"@hot-updater/plugin-core": "0.4.1-
|
|
42
|
+
"@hot-updater/console": "0.4.1-4",
|
|
43
|
+
"@hot-updater/core": "0.4.1-4",
|
|
44
|
+
"@hot-updater/plugin-core": "0.4.1-4",
|
|
45
45
|
"commander": "^11.1.0",
|
|
46
46
|
"cosmiconfig": "^9.0.0",
|
|
47
47
|
"cosmiconfig-typescript-loader": "^5.0.0"
|