@remotion/media-utils 4.0.345 → 4.0.347

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.
@@ -18,6 +18,9 @@ const fn = async (src, options) => {
18
18
  sampleRate: (_a = options === null || options === void 0 ? void 0 : options.sampleRate) !== null && _a !== void 0 ? _a : 48000,
19
19
  });
20
20
  const response = await (0, fetch_with_cors_catch_1.fetchWithCorsCatch)(src);
21
+ if (!response.ok) {
22
+ throw new Error(`Failed to fetch audio data from ${src}: ${response.status} ${response.statusText}`);
23
+ }
21
24
  const arrayBuffer = await response.arrayBuffer();
22
25
  const wave = await audioContext.decodeAudioData(arrayBuffer);
23
26
  const channelWaveforms = new Array(wave.numberOfChannels)
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/media-utils"
4
4
  },
5
5
  "name": "@remotion/media-utils",
6
- "version": "4.0.345",
6
+ "version": "4.0.347",
7
7
  "description": "Utilities for working with media files",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -13,7 +13,7 @@
13
13
  "url": "https://github.com/remotion-dev/remotion/issues"
14
14
  },
15
15
  "dependencies": {
16
- "remotion": "4.0.345"
16
+ "remotion": "4.0.347"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "react": ">=16.8.0",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "eslint": "9.19.0",
24
- "@remotion/eslint-config-internal": "4.0.345"
24
+ "@remotion/eslint-config-internal": "4.0.347"
25
25
  },
26
26
  "keywords": [
27
27
  "remotion",