1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00

Libs updates and new version with option to pin videos on channel

This commit is contained in:
Daniel Neto 2024-08-05 11:37:04 -03:00
parent e1f2188de0
commit 1beab3b1c0
8565 changed files with 149805 additions and 165674 deletions

42
node_modules/fetch-cookie/esm/index.d.ts generated vendored Normal file
View file

@ -0,0 +1,42 @@
import * as tough from 'tough-cookie';
interface GenericRequest {
url: string;
}
interface URLLike {
href: string;
}
declare type GenericRequestInfo = string | URLLike | GenericRequest;
interface GenericRequestInit {
method?: string;
redirect?: string;
body?: any;
referrerPolicy?: string;
}
interface GenericResponse {
url: string;
status: number;
headers: {
get: (name: string) => string | null;
has: (name: string) => boolean;
};
}
declare type FetchCookieInit<T extends GenericRequestInit> = T & {
maxRedirect?: number;
redirectCount?: number;
};
declare type GenericFetch<T1 extends GenericRequestInfo, T2 extends GenericRequestInit, T3> = (input: T1, init?: T2) => Promise<T3>;
interface FetchCookieImpl<T1 extends GenericRequestInfo, T2 extends GenericRequestInit, T3> {
(input: T1, init?: FetchCookieInit<T2>): Promise<T3>;
toughCookie: typeof tough;
}
export interface CookieJar {
getCookieString: (currentUrl: string) => Promise<string>;
setCookie: (cookieString: string, currentUrl: string, opts: {
ignoreError: boolean;
}) => Promise<any>;
}
declare function fetchCookie<T1 extends GenericRequestInfo, T2 extends GenericRequestInit, T3 extends GenericResponse>(fetch: GenericFetch<T1, T2, T3>, jar?: CookieJar, ignoreError?: boolean): FetchCookieImpl<T1, T2, T3>;
declare namespace fetchCookie {
var toughCookie: typeof tough;
}
export default fetchCookie;