@hot-updater/plugin-core 0.21.3 → 0.21.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 +3 -1
- package/dist/index.js +3 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -17835,7 +17835,9 @@ function removeBundleInternalKeys(bundle) {
|
|
|
17835
17835
|
}
|
|
17836
17836
|
function normalizeTargetAppVersion(version) {
|
|
17837
17837
|
if (!version) return null;
|
|
17838
|
-
|
|
17838
|
+
let normalized = version.replace(/\s+/g, " ").trim();
|
|
17839
|
+
normalized = normalized.replace(/([><=~^]+)\s+(\d)/g, (_match, operator, digit) => `${operator}${digit}`);
|
|
17840
|
+
return normalized;
|
|
17839
17841
|
}
|
|
17840
17842
|
function isExactVersion(version) {
|
|
17841
17843
|
if (!version) return false;
|
package/dist/index.js
CHANGED
|
@@ -17823,7 +17823,9 @@ function removeBundleInternalKeys(bundle) {
|
|
|
17823
17823
|
}
|
|
17824
17824
|
function normalizeTargetAppVersion(version) {
|
|
17825
17825
|
if (!version) return null;
|
|
17826
|
-
|
|
17826
|
+
let normalized = version.replace(/\s+/g, " ").trim();
|
|
17827
|
+
normalized = normalized.replace(/([><=~^]+)\s+(\d)/g, (_match, operator, digit) => `${operator}${digit}`);
|
|
17828
|
+
return normalized;
|
|
17827
17829
|
}
|
|
17828
17830
|
function isExactVersion(version) {
|
|
17829
17831
|
if (!version) return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/plugin-core",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"oxc-transform": "0.82.1",
|
|
47
47
|
"semver": "^7.7.2",
|
|
48
48
|
"tar": "^7.5.1",
|
|
49
|
-
"@hot-updater/core": "0.21.
|
|
49
|
+
"@hot-updater/core": "0.21.4"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/node": "^20",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"picocolors": "1.1.1",
|
|
58
58
|
"typescript": "5.8.2",
|
|
59
59
|
"workspace-tools": "^0.36.4",
|
|
60
|
-
"@hot-updater/plugin-core": "0.21.
|
|
61
|
-
"@hot-updater/test-utils": "0.21.
|
|
60
|
+
"@hot-updater/plugin-core": "0.21.4",
|
|
61
|
+
"@hot-updater/test-utils": "0.21.4"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": "tsdown",
|