@hot-updater/aws 0.13.5-rc.0 → 0.14.0

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
@@ -300,6 +300,9 @@ async function updateTargetVersionsForPlatform(client, bucketName, platform) {
300
300
  }
301
301
  var s3Database = (config, hooks) => {
302
302
  const { bucketName, cloudfrontDistributionId, ...s3Config } = config;
303
+ if (!cloudfrontDistributionId) {
304
+ throw new Error("cloudfrontDistributionId is missing in s3Database");
305
+ }
303
306
  const client = new import_client_s3.S3Client(s3Config);
304
307
  const cloudfrontClient = new import_client_cloudfront.CloudFrontClient({
305
308
  credentials: s3Config.credentials,
package/dist/index.js CHANGED
@@ -273,6 +273,9 @@ async function updateTargetVersionsForPlatform(client, bucketName, platform) {
273
273
  }
274
274
  var s3Database = (config, hooks) => {
275
275
  const { bucketName, cloudfrontDistributionId, ...s3Config } = config;
276
+ if (!cloudfrontDistributionId) {
277
+ throw new Error("cloudfrontDistributionId is missing in s3Database");
278
+ }
276
279
  const client = new S3Client(s3Config);
277
280
  const cloudfrontClient = new CloudFrontClient({
278
281
  credentials: s3Config.credentials,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/aws",
3
3
  "type": "module",
4
- "version": "0.13.5-rc.0",
4
+ "version": "0.14.0",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",
@@ -36,8 +36,8 @@
36
36
  ],
37
37
  "devDependencies": {
38
38
  "@aws-sdk/cloudfront-signer": "3.772.0",
39
- "@hot-updater/core": "0.13.5-rc.0",
40
- "@hot-updater/js": "0.13.5-rc.0",
39
+ "@hot-updater/core": "0.14.0",
40
+ "@hot-updater/js": "0.14.0",
41
41
  "@types/aws-lambda": "^8.10.147",
42
42
  "@types/node": "^22.13.1",
43
43
  "aws-sdk-client-mock": "^4.1.0",
@@ -56,7 +56,7 @@
56
56
  "@aws-sdk/client-ssm": "3.772.0",
57
57
  "@aws-sdk/credential-providers": "3.772.0",
58
58
  "@aws-sdk/lib-storage": "3.772.0",
59
- "@hot-updater/plugin-core": "0.13.5-rc.0",
59
+ "@hot-updater/plugin-core": "0.14.0",
60
60
  "aws-lambda": "1.0.7"
61
61
  },
62
62
  "scripts": {