@remotion/media-utils 4.0.213 → 4.0.215

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.
@@ -3,7 +3,7 @@
3
3
  * Inlined from https://github.com/Jam3/audiobuffer-to-wav/commit/2272eb09bd46a05e50a6d684d908aa6f13c58f63#diff-e727e4bdf3657fd1d798edcd6b099d6e092f8573cba266154583a746bba0f346
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.audioBufferToWav = void 0;
6
+ exports.audioBufferToWav = audioBufferToWav;
7
7
  function interleave(inputL, inputR) {
8
8
  const length = inputL.length + inputR.length;
9
9
  const result = new Float32Array(length);
@@ -92,4 +92,3 @@ function audioBufferToWav(buffer, opt) {
92
92
  bitDepth,
93
93
  });
94
94
  }
95
- exports.audioBufferToWav = audioBufferToWav;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getImageDimensions = void 0;
3
+ exports.getImageDimensions = getImageDimensions;
4
4
  const p_limit_1 = require("./p-limit");
5
5
  const imageDimensionsCache = {};
6
6
  const limit = (0, p_limit_1.pLimit)(3);
@@ -30,4 +30,3 @@ const fn = async (src) => {
30
30
  function getImageDimensions(src) {
31
31
  return limit(fn, src);
32
32
  }
33
- exports.getImageDimensions = getImageDimensions;
package/dist/p-limit.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const pLimit: (concurrency: number) => <Arguments extends unknown[], ReturnType_1>(fn: (..._arguments: Arguments) => ReturnType_1 | PromiseLike<ReturnType_1>, ...args: Arguments) => Promise<ReturnType_1>;
1
+ export declare const pLimit: (concurrency: number) => <Arguments extends unknown[], ReturnType>(fn: (..._arguments: Arguments) => PromiseLike<ReturnType> | ReturnType, ...args: Arguments) => Promise<ReturnType>;
@@ -7,6 +7,6 @@ type FnParameters = {
7
7
  optimizeFor?: 'accuracy' | 'speed';
8
8
  };
9
9
  export declare const visualizeAudio: ({ smoothing, ...parameters }: FnParameters & {
10
- smoothing?: boolean | undefined;
10
+ smoothing?: boolean;
11
11
  }) => number[];
12
12
  export {};
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.213",
6
+ "version": "4.0.215",
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.213"
16
+ "remotion": "4.0.215"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "react": ">=16.8.0",