@vot.js/node
Advanced tools
Comparing version 2.1.6 to 2.1.7
import { FetchFunction } from "@vot.js/core/types/client"; | ||
import { BaseHelperOpts } from "@vot.js/core/types/helpers/base"; | ||
import { ResponseLang } from "@vot.js/shared/types/data"; | ||
import type { MinimalVideoData } from "../types/client.js"; | ||
import { ServiceConf } from "../types/service.js"; | ||
import type { ServiceConf } from "../types/service.js"; | ||
export declare class VideoHelperError extends Error { | ||
@@ -14,4 +15,5 @@ constructor(message: string); | ||
origin: string; | ||
service: ServiceConf | undefined; | ||
constructor({ fetchFn, extraInfo, referer, origin, service, }?: BaseHelperOpts<ServiceConf>); | ||
service?: ServiceConf; | ||
language: ResponseLang; | ||
constructor({ fetchFn, extraInfo, referer, origin, service, language, }?: BaseHelperOpts<ServiceConf>); | ||
getVideoData(videoId: string): Promise<MinimalVideoData | undefined>; | ||
@@ -18,0 +20,0 @@ getVideoId(url: URL): Promise<string | undefined>; |
@@ -16,3 +16,4 @@ import { fetchWithTimeout } from "@vot.js/shared/utils/utils"; | ||
service; | ||
constructor({ fetchFn = fetchWithTimeout, extraInfo = true, referer = "", origin = "", service, } = {}) { | ||
language; | ||
constructor({ fetchFn = fetchWithTimeout, extraInfo = true, referer = "", origin = "", service, language = "en", } = {}) { | ||
this.fetch = fetchFn; | ||
@@ -23,2 +24,3 @@ this.extraInfo = extraInfo; | ||
this.service = service; | ||
this.language = language; | ||
} | ||
@@ -25,0 +27,0 @@ async getVideoData(videoId) { |
{ | ||
"name": "@vot.js/node", | ||
"description": "package for runtimes", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"author": "Toil", | ||
@@ -85,4 +85,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@vot.js/shared": "^2.1.6", | ||
"@vot.js/core": "^2.1.6", | ||
"@vot.js/shared": "^2.1.7", | ||
"@vot.js/core": "^2.1.7", | ||
"dom-parser": "^1.1.5" | ||
@@ -89,0 +89,0 @@ }, |
Sorry, the diff of this file is not supported yet
129856
2715
Updated@vot.js/core@^2.1.7
Updated@vot.js/shared@^2.1.7