@hot-updater/firebase 0.29.4 → 0.29.5

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.
@@ -1506,7 +1506,7 @@ function createDatabasePlugin(options) {
1506
1506
  data
1507
1507
  });
1508
1508
  };
1509
- return {
1509
+ const plugin = {
1510
1510
  name: options.name,
1511
1511
  async getBundleById(bundleId, context) {
1512
1512
  if (context === void 0) return getMethods().getBundleById(bundleId);
@@ -1553,6 +1553,32 @@ function createDatabasePlugin(options) {
1553
1553
  markChanged("delete", deleteBundle);
1554
1554
  }
1555
1555
  };
1556
+ Object.defineProperty(plugin, "getUpdateInfo", {
1557
+ configurable: true,
1558
+ enumerable: true,
1559
+ get() {
1560
+ const directGetUpdateInfo = getMethods().getUpdateInfo;
1561
+ if (!directGetUpdateInfo) {
1562
+ Object.defineProperty(plugin, "getUpdateInfo", {
1563
+ configurable: true,
1564
+ enumerable: true,
1565
+ value: void 0
1566
+ });
1567
+ return;
1568
+ }
1569
+ const wrappedGetUpdateInfo = async (args, context) => {
1570
+ if (context === void 0) return directGetUpdateInfo(args);
1571
+ return directGetUpdateInfo(args, context);
1572
+ };
1573
+ Object.defineProperty(plugin, "getUpdateInfo", {
1574
+ configurable: true,
1575
+ enumerable: true,
1576
+ value: wrappedGetUpdateInfo
1577
+ });
1578
+ return wrappedGetUpdateInfo;
1579
+ }
1580
+ });
1581
+ return plugin;
1556
1582
  };
1557
1583
  };
1558
1584
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/firebase",
3
3
  "type": "module",
4
- "version": "0.29.4",
4
+ "version": "0.29.5",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "types": "dist/index.d.cts",
@@ -36,10 +36,10 @@
36
36
  "dependencies": {
37
37
  "firebase": "^11.3.1",
38
38
  "hono": "4.12.9",
39
- "@hot-updater/cli-tools": "0.29.4",
40
- "@hot-updater/plugin-core": "0.29.4",
41
- "@hot-updater/server": "0.29.4",
42
- "@hot-updater/core": "0.29.4"
39
+ "@hot-updater/core": "0.29.5",
40
+ "@hot-updater/plugin-core": "0.29.5",
41
+ "@hot-updater/server": "0.29.5",
42
+ "@hot-updater/cli-tools": "0.29.5"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"
@@ -54,9 +54,9 @@
54
54
  "firebase-tools": "^13.32.0",
55
55
  "fkill": "^9.0.0",
56
56
  "mime": "^4.0.4",
57
- "@hot-updater/js": "0.29.4",
58
- "@hot-updater/mock": "0.29.4",
59
- "@hot-updater/test-utils": "0.29.4"
57
+ "@hot-updater/js": "0.29.5",
58
+ "@hot-updater/mock": "0.29.5",
59
+ "@hot-updater/test-utils": "0.29.5"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "firebase-admin": "*",