refactor: move ids into dedicated folder

This commit is contained in:
WebStreamr 2025-06-08 13:26:58 +00:00
parent 374896caca
commit 8724e04860
No known key found for this signature in database
8 changed files with 6 additions and 7 deletions

2
src/utils/id/index.ts Normal file
View file

@ -0,0 +1,2 @@
export * from './ImdbId';
export * from './TmdbId';

View file

@ -1,9 +1,8 @@
export * from './env';
export * from './Fetcher';
export * from './StreamResolver';
export * from './embed';
export * from './ImdbId';
export * from './env';
export * from './id';
export * from './language';
export * from './manifest';
export * from './tmdb';
export * from './TmdbId';

View file

@ -1,8 +1,7 @@
import { getImdbIdFromTmdbId, getTmdbIdFromImdbId } from './tmdb';
import { Fetcher } from './Fetcher';
import { Context } from '../types';
import { ImdbId } from './ImdbId';
import { TmdbId } from './TmdbId';
import { ImdbId, TmdbId } from './id';
jest.mock('../utils/Fetcher');
// @ts-expect-error No constructor args needed

View file

@ -1,5 +1,4 @@
import { ImdbId } from './ImdbId';
import { TmdbId } from './TmdbId';
import { ImdbId, TmdbId } from './id';
import { Context } from '../types';
import { Fetcher } from './Fetcher';
import { envGet } from './env';