@mux/ai 0.21.2 → 0.23.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-DwNtsg-u.d.ts → index-ePt2EMpB.d.ts} +173 -105
- package/dist/index.d.ts +3 -3
- package/dist/index.js +182 -170
- package/dist/index.js.map +1 -1
- package/dist/primitives/index.js +3 -3
- package/dist/primitives/index.js.map +1 -1
- package/dist/workflows/index.d.ts +1 -1
- package/dist/workflows/index.js +3 -4
- package/dist/workflows/index.js.map +1 -1
- package/package.json +1 -1
package/dist/primitives/index.js
CHANGED
|
@@ -828,12 +828,12 @@ function getShotsPath(assetId) {
|
|
|
828
828
|
}
|
|
829
829
|
function mapManifestShots(shots) {
|
|
830
830
|
return shots.map((shot, index) => {
|
|
831
|
-
const { startTime, imageUrl } = shot;
|
|
831
|
+
const { start_time: startTime, image_url: imageUrl } = shot;
|
|
832
832
|
if (typeof startTime !== "number" || !Number.isFinite(startTime)) {
|
|
833
|
-
throw new TypeError(`Invalid shot
|
|
833
|
+
throw new TypeError(`Invalid shot start_time in shots manifest at index ${index}`);
|
|
834
834
|
}
|
|
835
835
|
if (typeof imageUrl !== "string" || imageUrl.length === 0) {
|
|
836
|
-
throw new TypeError(`Invalid shot
|
|
836
|
+
throw new TypeError(`Invalid shot image_url in shots manifest at index ${index}`);
|
|
837
837
|
}
|
|
838
838
|
return {
|
|
839
839
|
startTime,
|