Add .gitignore to exclude all node packages and lock files

This commit is contained in:
Adolfo Reyna
2026-02-23 21:56:04 -05:00
parent faae96c9ed
commit dcc5c6c044
9747 changed files with 1555105 additions and 2 deletions
@@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateMediaProps = void 0;
const validateMediaProps = (props, component) => {
if (typeof props.volume !== 'number' &&
typeof props.volume !== 'function' &&
typeof props.volume !== 'undefined') {
throw new TypeError(`You have passed a volume of type ${typeof props.volume} to your <${component} /> component. Volume must be a number or a function with the signature '(frame: number) => number' undefined.`);
}
if (typeof props.volume === 'number' && props.volume < 0) {
throw new TypeError(`You have passed a volume below 0 to your <${component} /> component. Volume must be between 0 and 1`);
}
if (typeof props.playbackRate !== 'number' &&
typeof props.playbackRate !== 'undefined') {
throw new TypeError(`You have passed a playbackRate of type ${typeof props.playbackRate} to your <${component} /> component. Playback rate must a real number or undefined.`);
}
if (typeof props.playbackRate === 'number' &&
(isNaN(props.playbackRate) ||
!Number.isFinite(props.playbackRate) ||
props.playbackRate <= 0)) {
throw new TypeError(`You have passed a playbackRate of ${props.playbackRate} to your <${component} /> component. Playback rate must be a real number above 0.`);
}
};
exports.validateMediaProps = validateMediaProps;