diff options
author | RaindropsSys <raindrops@equestria.dev> | 2023-11-17 23:25:29 +0100 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2023-11-17 23:25:29 +0100 |
commit | 953ddd82e48dd206cef5ac94456549aed13b3ad5 (patch) | |
tree | 8f003106ee2e7f422e5a22d2ee04d0db302e66c0 /includes/external/addressbook/node_modules/open-graph-scraper/dist/lib/utils.d.ts | |
parent | 62a9199846b0c07c03218703b33e8385764f42d9 (diff) | |
download | pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.tar.gz pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.tar.bz2 pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.zip |
Updated 30 files and deleted 2976 files (automated)
Diffstat (limited to 'includes/external/addressbook/node_modules/open-graph-scraper/dist/lib/utils.d.ts')
-rw-r--r-- | includes/external/addressbook/node_modules/open-graph-scraper/dist/lib/utils.d.ts | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/includes/external/addressbook/node_modules/open-graph-scraper/dist/lib/utils.d.ts b/includes/external/addressbook/node_modules/open-graph-scraper/dist/lib/utils.d.ts deleted file mode 100644 index ce2be38..0000000 --- a/includes/external/addressbook/node_modules/open-graph-scraper/dist/lib/utils.d.ts +++ /dev/null @@ -1,81 +0,0 @@ -import type { ValidatorSettings, OpenGraphScraperOptions } from './types'; -/** - * Checks if URL is valid - * - * @param {string} url - url to be checked - * @param {string} urlValidatorSettings - settings used by validator - * @return {boolean} boolean value if the url is valid - * - */ -export declare function isUrlValid(url: string, urlValidatorSettings: ValidatorSettings): boolean; -/** - * Validates and formats url - * - * @param {string} url - url to be checked and formatted - * @param {string} urlValidatorSettings - settings used by validator - * @return {string} proper url or null - * - */ -export declare function validateAndFormatURL(url: string, urlValidatorSettings: ValidatorSettings): { - url: string | null; -}; -/** - * Finds the image type from a given url - * - * @param {string} url - url to be checked - * @return {string} image type from url - * - */ -export declare function findImageTypeFromUrl(url: string): string; -/** - * Checks if image type is valid - * - * @param {string} type - type to be checked - * @return {boolean} boolean value if type is value - * - */ -export declare function isImageTypeValid(type: string): boolean; -/** - * Checks if URL is a non html page - * - * @param {string} url - url to be checked - * @return {boolean} boolean value if url is non html - * - */ -export declare function isThisANonHTMLUrl(url: string): boolean; -/** - * Find and delete nested undefs - * - * @param {object} object - object to be cleaned - * @return {object} object without nested undefs - * - */ -export declare function removeNestedUndefinedValues(object: { - [key: string]: any; -}): { - [key: string]: any; -}; -/** - * Split the options object into ogs and got option objects - * - * @param {object} options - options that need to be split - * @return {object} object with nested options for ogs and got - * - */ -export declare function optionSetupAndSplit(options: OpenGraphScraperOptions): { - ogsOptions: OpenGraphScraperOptions; - gotOptions: Options; -}; -interface Options { - [key: string]: any; -} -/** - * gotClient - limit the size of the content we fetch when performing the request - * from https://github.com/sindresorhus/got/blob/main/documentation/examples/advanced-creation.js - * - * @param {string} downloadLimit - the download limit, will close connection once it is reached - * @return {function} got client with download limit - * - */ -export declare function gotClient(downloadLimit: number | false): Promise<any>; -export {}; |