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.
- package/dist/_chunks-cjs/client.js +2 -2
- package/dist/_chunks-cjs/client.js.map +1 -1
- package/dist/_chunks-es/client.mjs +2 -2
- package/dist/_chunks-es/client.mjs.map +1 -1
- package/dist/index.d.mts +190 -0
- package/dist/index.d.ts +190 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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;
|