@hot-updater/js 0.5.4 → 0.5.6

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 CHANGED
@@ -1391,7 +1391,7 @@ var __webpack_exports__ = {};
1391
1391
  if (!latestBundle) {
1392
1392
  if (isRollback) return {
1393
1393
  id: core_namespaceObject.NIL_UUID,
1394
- forceUpdate: true,
1394
+ shouldForceUpdate: true,
1395
1395
  fileUrl: null,
1396
1396
  fileHash: null,
1397
1397
  status: "ROLLBACK"
@@ -1403,14 +1403,14 @@ var __webpack_exports__ = {};
1403
1403
  if (latestBundle.id === bundleId) return null;
1404
1404
  if (latestBundle.id.localeCompare(bundleId) > 0) return {
1405
1405
  id: latestBundle.id,
1406
- forceUpdate: latestBundle.forceUpdate,
1406
+ shouldForceUpdate: latestBundle.shouldForceUpdate,
1407
1407
  fileUrl: latestBundle.fileUrl,
1408
1408
  fileHash: latestBundle.fileHash,
1409
1409
  status: "UPDATE"
1410
1410
  };
1411
1411
  return {
1412
1412
  id: latestBundle.id,
1413
- forceUpdate: true,
1413
+ shouldForceUpdate: true,
1414
1414
  fileUrl: latestBundle.fileUrl,
1415
1415
  fileHash: latestBundle.fileHash,
1416
1416
  status: "ROLLBACK"
@@ -1419,7 +1419,7 @@ var __webpack_exports__ = {};
1419
1419
  }
1420
1420
  if (latestBundle.id.localeCompare(bundleId) > 0) return {
1421
1421
  id: latestBundle.id,
1422
- forceUpdate: latestBundle.forceUpdate,
1422
+ shouldForceUpdate: latestBundle.shouldForceUpdate,
1423
1423
  fileUrl: latestBundle.fileUrl,
1424
1424
  fileHash: latestBundle.fileHash,
1425
1425
  status: "UPDATE"
package/dist/index.js CHANGED
@@ -1374,7 +1374,7 @@ const getUpdateInfo = async (bundles, { platform, bundleId, appVersion })=>{
1374
1374
  if (!latestBundle) {
1375
1375
  if (isRollback) return {
1376
1376
  id: __WEBPACK_EXTERNAL_MODULE__hot_updater_core__.NIL_UUID,
1377
- forceUpdate: true,
1377
+ shouldForceUpdate: true,
1378
1378
  fileUrl: null,
1379
1379
  fileHash: null,
1380
1380
  status: "ROLLBACK"
@@ -1386,14 +1386,14 @@ const getUpdateInfo = async (bundles, { platform, bundleId, appVersion })=>{
1386
1386
  if (latestBundle.id === bundleId) return null;
1387
1387
  if (latestBundle.id.localeCompare(bundleId) > 0) return {
1388
1388
  id: latestBundle.id,
1389
- forceUpdate: latestBundle.forceUpdate,
1389
+ shouldForceUpdate: latestBundle.shouldForceUpdate,
1390
1390
  fileUrl: latestBundle.fileUrl,
1391
1391
  fileHash: latestBundle.fileHash,
1392
1392
  status: "UPDATE"
1393
1393
  };
1394
1394
  return {
1395
1395
  id: latestBundle.id,
1396
- forceUpdate: true,
1396
+ shouldForceUpdate: true,
1397
1397
  fileUrl: latestBundle.fileUrl,
1398
1398
  fileHash: latestBundle.fileHash,
1399
1399
  status: "ROLLBACK"
@@ -1402,7 +1402,7 @@ const getUpdateInfo = async (bundles, { platform, bundleId, appVersion })=>{
1402
1402
  }
1403
1403
  if (latestBundle.id.localeCompare(bundleId) > 0) return {
1404
1404
  id: latestBundle.id,
1405
- forceUpdate: latestBundle.forceUpdate,
1405
+ shouldForceUpdate: latestBundle.shouldForceUpdate,
1406
1406
  fileUrl: latestBundle.fileUrl,
1407
1407
  fileHash: latestBundle.fileHash,
1408
1408
  status: "UPDATE"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/js",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "type": "module",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "sideEffects": false,
@@ -38,7 +38,7 @@
38
38
  "access": "public"
39
39
  },
40
40
  "dependencies": {
41
- "@hot-updater/core": "0.5.4"
41
+ "@hot-updater/core": "0.5.6"
42
42
  },
43
43
  "devDependencies": {
44
44
  "semver": "^7.6.3",