@hot-updater/cloudflare 0.16.2 → 0.16.3

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/cloudflare",
3
3
  "type": "module",
4
- "version": "0.16.2",
4
+ "version": "0.16.3",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",
@@ -39,9 +39,9 @@
39
39
  "package.json"
40
40
  ],
41
41
  "dependencies": {
42
- "@hot-updater/core": "0.16.2",
43
- "@hot-updater/js": "0.16.2",
44
- "@hot-updater/plugin-core": "0.16.2",
42
+ "@hot-updater/core": "0.16.3",
43
+ "@hot-updater/js": "0.16.3",
44
+ "@hot-updater/plugin-core": "0.16.3",
45
45
  "cloudflare": "4.2.0"
46
46
  },
47
47
  "devDependencies": {
@@ -1 +1 @@
1
- This folder contains the built output assets for the worker "hot-updater" generated at 2025-04-10T15:47:00.682Z.
1
+ This folder contains the built output assets for the worker "hot-updater" generated at 2025-04-17T17:06:51.028Z.
@@ -3340,7 +3340,7 @@ var SignJWT = class {
3340
3340
  return sig.sign(key, options);
3341
3341
  }
3342
3342
  };
3343
- var withJwtSignedUrl = /* @__PURE__ */ __name(async ({ data, reqUrl, jwtSecret }) => {
3343
+ var withJwtSignedUrl = /* @__PURE__ */ __name(async ({ pathPrefix = "", data, reqUrl, jwtSecret }) => {
3344
3344
  if (!data) return null;
3345
3345
  if (data.id === NIL_UUID) return {
3346
3346
  ...data,
@@ -3349,7 +3349,7 @@ var withJwtSignedUrl = /* @__PURE__ */ __name(async ({ data, reqUrl, jwtSecret }
3349
3349
  const key = `${data.id}/bundle.zip`;
3350
3350
  const token = await signToken(key, jwtSecret);
3351
3351
  const url = new URL(reqUrl);
3352
- url.pathname = `/${key}`;
3352
+ url.pathname = `${pathPrefix}/${key}`;
3353
3353
  url.searchParams.set("token", token);
3354
3354
  return {
3355
3355
  ...data,