@hot-updater/aws 0.35.9 → 0.35.11

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.
@@ -22,8 +22,6 @@ var __toESM$1 = (mod, isNodeMode, target) => (target = mod != null ? __create$1(
22
22
  enumerable: true
23
23
  }) : target, mod));
24
24
  //#endregion
25
- let node_path = require("node:path");
26
- node_path = __toESM$1(node_path);
27
25
  let node_crypto = require("node:crypto");
28
26
  node_crypto = __toESM$1(node_crypto);
29
27
  let _aws_sdk_client_cloudfront = require("@aws-sdk/client-cloudfront");
@@ -38,7 +36,7 @@ let _aws_sdk_client_ssm = require("@aws-sdk/client-ssm");
38
36
  let _aws_sdk_cloudfront_signer = require("@aws-sdk/cloudfront-signer");
39
37
  //#endregion
40
38
  //#region ../../packages/server/dist/version.mjs
41
- const HOT_UPDATER_SERVER_VERSION = "0.35.9";
39
+ const HOT_UPDATER_SERVER_VERSION = "0.35.11";
42
40
  //#endregion
43
41
  //#region ../../packages/server/dist/internalRouter.mjs
44
42
  const normalizePath = (path) => {
@@ -3358,8 +3356,8 @@ function getCompressionMimeType(filename) {
3358
3356
  * @returns Content-Type string (never undefined, falls back to application/octet-stream)
3359
3357
  */
3360
3358
  function getContentType(bundlePath) {
3361
- const filename = node_path.default.basename(bundlePath);
3362
- return src_default.getType(bundlePath) ?? getCompressionMimeType(filename) ?? "application/octet-stream";
3359
+ const filename = bundlePath.replace(/[\\/]+$/, "").split(/[\\/]/).pop();
3360
+ return src_default.getType(bundlePath) ?? getCompressionMimeType(filename ?? "") ?? "application/octet-stream";
3363
3361
  }
3364
3362
  //#endregion
3365
3363
  //#region ../plugin-core/dist/contentAddressedAssets.mjs
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/aws",
3
3
  "type": "module",
4
- "version": "0.35.9",
4
+ "version": "0.35.11",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.mjs",
@@ -50,10 +50,10 @@
50
50
  "es-toolkit": "^1.32.0",
51
51
  "execa": "9.5.2",
52
52
  "mime": "^4.0.4",
53
- "@hot-updater/core": "0.35.9",
54
- "@hot-updater/js": "0.35.9",
55
- "@hot-updater/mock": "0.35.9",
56
- "@hot-updater/test-utils": "0.35.9"
53
+ "@hot-updater/js": "0.35.11",
54
+ "@hot-updater/core": "0.35.11",
55
+ "@hot-updater/mock": "0.35.11",
56
+ "@hot-updater/test-utils": "0.35.11"
57
57
  },
58
58
  "dependencies": {
59
59
  "@aws-sdk/client-cloudfront": "3.1066.0",
@@ -68,9 +68,9 @@
68
68
  "@aws-sdk/lib-storage": "3.1066.0",
69
69
  "hono": "4.12.9",
70
70
  "aws-lambda": "1.0.7",
71
- "@hot-updater/cli-tools": "0.35.9",
72
- "@hot-updater/server": "0.35.9",
73
- "@hot-updater/plugin-core": "0.35.9"
71
+ "@hot-updater/cli-tools": "0.35.11",
72
+ "@hot-updater/plugin-core": "0.35.11",
73
+ "@hot-updater/server": "0.35.11"
74
74
  },
75
75
  "scripts": {
76
76
  "build": "tsdown",