sanity-plugin-s3-media 1.2.2 → 1.2.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.
@@ -1002,7 +1002,7 @@ const exp = defineCreateClientExports(S3Client), createS3Client = exp.createClie
1002
1002
  if (!assetId || !assetType)
1003
1003
  throw new Error("");
1004
1004
  if (!s3AssetBaseUrl)
1005
- return "";
1005
+ throw new Error("S3 Base URL is not defined");
1006
1006
  if (assetType === assetUtils.S3AssetType.IMAGE)
1007
1007
  return assetUtils.buildS3ImageUrl(assetId, {
1008
1008
  baseUrl: s3AssetBaseUrl
@@ -1011,7 +1011,7 @@ const exp = defineCreateClientExports(S3Client), createS3Client = exp.createClie
1011
1011
  return assetUtils.buildS3FileUrl(assetId, {
1012
1012
  baseUrl: s3AssetBaseUrl
1013
1013
  });
1014
- throw new Error("");
1014
+ throw new Error("Can't build asset id");
1015
1015
  }, $[6] = s3AssetBaseUrl, $[7] = t1) : t1 = $[7];
1016
1016
  const buildAssetUrl = t1;
1017
1017
  let t2;