@wppconnect/wa-js
Advanced tools
Comparing version 2.20.1 to 2.20.2
@@ -1,5 +0,5 @@ | ||
## 2.20.1 (2023-02-28) | ||
## 2.20.2 (2023-02-28) | ||
### Bug Fixes | ||
- Removed offline link-preview server ([475bc4b](https://github.com/wppconnect-team/wa-js/commit/475bc4b7e0cced66184bf139a8fbc6887da14d87)) | ||
- Fixed link-preview function ([2fc38b1](https://github.com/wppconnect-team/wa-js/commit/2fc38b1d10f7723cce07201473446b32cb7d32d0)) |
@@ -16,2 +16,17 @@ /*! | ||
*/ | ||
export interface LinkUrlData { | ||
anchor: undefined; | ||
domain?: string; | ||
href: string; | ||
index: number; | ||
input: string; | ||
isHttp: boolean; | ||
params?: string; | ||
path?: string; | ||
port?: number; | ||
scheme: string; | ||
suspiciousCharacters?: string; | ||
url: string; | ||
username?: string; | ||
} | ||
export interface LinkPreviewResult { | ||
@@ -34,2 +49,2 @@ url: string; | ||
*/ | ||
export declare function fetchLinkPreview(url: string): Promise<null | LinkPreviewResult>; | ||
export declare function fetchLinkPreview(url: LinkUrlData): Promise<null | LinkPreviewResult>; |
@@ -16,2 +16,3 @@ /*! | ||
*/ | ||
import { LinkUrlData } from './fetchLinkPreview'; | ||
/** @whatsapp 29929 | ||
@@ -21,2 +22,2 @@ * @whatsapp 31042 >= 2.2204.13 | ||
*/ | ||
export declare function findFirstWebLink(message: string): undefined | string; | ||
export declare function findFirstWebLink(message: string): undefined | LinkUrlData; |
@@ -16,3 +16,3 @@ /*! | ||
*/ | ||
import { LinkPreviewResult } from './fetchLinkPreview'; | ||
import { LinkPreviewResult, LinkUrlData } from './fetchLinkPreview'; | ||
/** | ||
@@ -23,16 +23,2 @@ * @whatsapp 92375 | ||
*/ | ||
export declare function genMinimalLinkPreview(data: { | ||
anchor: undefined; | ||
domain?: string; | ||
href: string; | ||
index: number; | ||
input: string; | ||
isHttp: boolean; | ||
params?: string; | ||
path?: string; | ||
port?: number; | ||
scheme: string; | ||
suspiciousCharacters?: string; | ||
url: string; | ||
username?: string; | ||
}): Promise<null | LinkPreviewResult>; | ||
export declare function genMinimalLinkPreview(data: LinkUrlData): Promise<null | LinkPreviewResult>; |
{ | ||
"name": "@wppconnect/wa-js", | ||
"version": "2.20.1", | ||
"version": "2.20.2", | ||
"description": "WPPConnect/WA-JS is an open-source project with the aim of exporting functions from WhatsApp Web", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
Sorry, the diff of this file is too big to display
925998
16481