@hot-updater/console 0.22.0 → 0.22.2

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
@@ -2102,12 +2102,11 @@ const rpc = new Hono().get("/config", async (c) => {
2102
2102
  }).delete("/bundles/:bundleId", typiaValidator("param", paramBundleIdSchema), async (c) => {
2103
2103
  try {
2104
2104
  const { bundleId } = c.req.valid("param");
2105
- const { databasePlugin, storagePlugin } = await prepareConfig();
2105
+ const { databasePlugin } = await prepareConfig();
2106
2106
  const deleteBundle = await databasePlugin.getBundleById(bundleId);
2107
2107
  if (!deleteBundle) return c.json({ error: "Bundle not found" }, 404);
2108
2108
  await databasePlugin.deleteBundle(deleteBundle);
2109
2109
  await databasePlugin.commitBundle();
2110
- await storagePlugin.delete(deleteBundle.storageUri);
2111
2110
  return c.json({ success: true });
2112
2111
  } catch (error) {
2113
2112
  console.error("Error during bundle deletion:", error);
package/dist/index.js CHANGED
@@ -2098,12 +2098,11 @@ const rpc = new Hono().get("/config", async (c) => {
2098
2098
  }).delete("/bundles/:bundleId", typiaValidator("param", paramBundleIdSchema), async (c) => {
2099
2099
  try {
2100
2100
  const { bundleId } = c.req.valid("param");
2101
- const { databasePlugin, storagePlugin } = await prepareConfig();
2101
+ const { databasePlugin } = await prepareConfig();
2102
2102
  const deleteBundle = await databasePlugin.getBundleById(bundleId);
2103
2103
  if (!deleteBundle) return c.json({ error: "Bundle not found" }, 404);
2104
2104
  await databasePlugin.deleteBundle(deleteBundle);
2105
2105
  await databasePlugin.commitBundle();
2106
- await storagePlugin.delete(deleteBundle.storageUri);
2107
2106
  return c.json({ success: true });
2108
2107
  } catch (error) {
2109
2108
  console.error("Error during bundle deletion:", error);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/console",
3
3
  "type": "module",
4
- "version": "0.22.0",
4
+ "version": "0.22.2",
5
5
  "files": [
6
6
  "dist",
7
7
  "package.json"
@@ -48,13 +48,13 @@
48
48
  "vite": "^6.1.0",
49
49
  "vite-plugin-solid": "^2.11.1",
50
50
  "vite-tsconfig-paths": "^5.1.4",
51
- "@hot-updater/mock": "0.22.0"
51
+ "@hot-updater/mock": "0.22.2"
52
52
  },
53
53
  "dependencies": {
54
54
  "solid-icons": "^1.1.0",
55
- "@hot-updater/cli-tools": "0.22.0",
56
- "@hot-updater/plugin-core": "0.22.0",
57
- "@hot-updater/core": "0.22.0"
55
+ "@hot-updater/core": "0.22.2",
56
+ "@hot-updater/plugin-core": "0.22.2",
57
+ "@hot-updater/cli-tools": "0.22.2"
58
58
  },
59
59
  "description": "React Native OTA solution for self-hosted",
60
60
  "license": "MIT",