@remotion/preload 4.0.0-alpha7 → 4.0.0-alpha9

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.
@@ -4,7 +4,7 @@ exports.preloadAsset = void 0;
4
4
  const resolve_redirect_1 = require("./resolve-redirect");
5
5
  const typesAllowed = ['video', 'audio', 'image', 'font'];
6
6
  const preloadAsset = (src, elemType) => {
7
- const apiName = `preload${elemType.charAt(0).toUpperCase() + elemType.slice(1)}}`;
7
+ const apiName = `preload${elemType.charAt(0).toUpperCase() + elemType.slice(1)}`;
8
8
  if (typeof document === 'undefined') {
9
9
  console.warn(apiName + '() was called outside the browser. Doing nothing.');
10
10
  return () => undefined;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * @description Preloads a video in the DOM so that when a video tag is mounted, it can play immediately.
3
3
  * @see [Documentation](https://www.remotion.dev/docs/preload/preload-video)
4
- */
4
+ */
5
5
  export declare const preloadVideo: (src: string) => (() => void);
@@ -5,7 +5,7 @@ const preload_asset_1 = require("./preload-asset");
5
5
  /**
6
6
  * @description Preloads a video in the DOM so that when a video tag is mounted, it can play immediately.
7
7
  * @see [Documentation](https://www.remotion.dev/docs/preload/preload-video)
8
- */
8
+ */
9
9
  const preloadVideo = (src) => {
10
10
  return (0, preload_asset_1.preloadAsset)(src, 'video');
11
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/preload",
3
- "version": "4.0.0-alpha7",
3
+ "version": "4.0.0-alpha9",
4
4
  "description": "Utility functions for preloading assets in HTML5",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -31,6 +31,7 @@
31
31
  "access": "public"
32
32
  },
33
33
  "scripts": {
34
+ "formatting": "prettier src --check",
34
35
  "lint": "eslint src --ext ts,tsx",
35
36
  "watch": "tsc -w",
36
37
  "build": "tsc -d"