@yt-kit/core 0.2.2 → 0.2.4
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.
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/lib/spawnAsync.d.ts +1 -1
- package/dist/lib/spawnAsync.js +1 -1
- package/dist/tasks/download/downloadVideo.d.ts +1 -1
- package/dist/tasks/download/downloadVideo.js +2 -2
- package/dist/types/processTypes.d.ts +1 -1
- package/dist/types/videoTypes.d.ts +1 -1
- package/dist/yt-dlp-downloader/YtDlpDownloader.d.ts +1 -1
- package/dist/yt-dlp-downloader/YtDlpDownloader.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export { STANDARD_RESOLUTIONS } from '
|
|
1
|
+
export * from './tasks/download/downloadVideo';
|
|
2
|
+
export * from './types/videoTypes';
|
|
3
|
+
export * from './types/processTypes';
|
|
4
|
+
export { STANDARD_RESOLUTIONS } from './lib/constants';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Funcionalidades del programa
|
|
2
|
-
export * from '
|
|
2
|
+
export * from './tasks/download/downloadVideo';
|
|
3
3
|
// Tipos
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
4
|
+
export * from './types/videoTypes';
|
|
5
|
+
export * from './types/processTypes';
|
|
6
6
|
// Constantes públicas (seguras de exportar)
|
|
7
|
-
export { STANDARD_RESOLUTIONS } from '
|
|
7
|
+
export { STANDARD_RESOLUTIONS } from './lib/constants';
|
package/dist/lib/spawnAsync.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { CommandKey } from '
|
|
1
|
+
import type { CommandKey } from '../types/processTypes';
|
|
2
2
|
export declare function spawnAsync(command: CommandKey, args: string[], showOutput?: boolean): Promise<unknown>;
|
package/dist/lib/spawnAsync.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { spawn } from 'node:child_process';
|
|
2
|
-
import { COMMANDS } from '
|
|
2
|
+
import { COMMANDS } from '../lib/constants';
|
|
3
3
|
export function spawnAsync(command, args, showOutput) {
|
|
4
4
|
const _command = COMMANDS[command];
|
|
5
5
|
return new Promise((resolve, reject) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function downloadVideo(ytId: string, id: string): Promise<import("
|
|
1
|
+
export declare function downloadVideo(ytId: string, id: string): Promise<import("../../interfaces/Downloader").DownloadResult | undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { formYoutubeUrl } from '
|
|
2
|
-
import { YtDlpDownloader } from '
|
|
1
|
+
import { formYoutubeUrl } from '../../lib/ytUtils';
|
|
2
|
+
import { YtDlpDownloader } from '../../yt-dlp-downloader/YtDlpDownloader';
|
|
3
3
|
export async function downloadVideo(ytId, id) {
|
|
4
4
|
if (!ytId || !id)
|
|
5
5
|
return;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Downloader, DownloadOptions, DownloadResult } from '
|
|
1
|
+
import type { Downloader, DownloadOptions, DownloadResult } from '../interfaces/Downloader';
|
|
2
2
|
export declare class YtDlpDownloader implements Downloader {
|
|
3
3
|
download(url: string, options: DownloadOptions): Promise<DownloadResult>;
|
|
4
4
|
private buildYtDlpArgs;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RUTAS } from '
|
|
2
|
-
import { spawnAsync } from '
|
|
1
|
+
import { RUTAS } from '../lib/constants';
|
|
2
|
+
import { spawnAsync } from '../lib/spawnAsync';
|
|
3
3
|
export class YtDlpDownloader {
|
|
4
4
|
async download(url, options) {
|
|
5
5
|
const args = this.buildYtDlpArgs(url, options);
|