getstream
Advanced tools
Comparing version 4.5.2 to 4.5.3
# Changelog | ||
## 4.5.3 - 2020-05-28 | ||
- Add open graph scrape (og) types | ||
## 4.5.2 - 2020-05-27 | ||
@@ -4,0 +8,0 @@ |
@@ -14,3 +14,3 @@ { | ||
"license": "BSD-3-Clause", | ||
"version": "4.5.2", | ||
"version": "4.5.3", | ||
"scripts": { | ||
@@ -17,0 +17,0 @@ "build": "babel src --out-dir lib", |
@@ -129,3 +129,3 @@ /// <reference types="node" /> | ||
// Delete metadata or activites | ||
// Delete metadata or activities | ||
delete(resource: string, callback: RestCallback): void; | ||
@@ -462,4 +462,53 @@ delete(resource: string, options: object, callback: RestCallback): void; | ||
): void; | ||
/** | ||
* og. | ||
* Retrieve open graph information of urls | ||
*/ | ||
og(url: string): Promise<OGResponse>; | ||
} | ||
// Export the OGResource | ||
export interface OGResource { | ||
url?: string; | ||
secure_url?: string; | ||
type?: string; | ||
} | ||
// Export the OGAudio | ||
export interface OGAudio extends OGResource { | ||
audio?: string; | ||
} | ||
// Export the OGImage | ||
export interface OGImage extends OGResource { | ||
image?: string; | ||
width?: number; | ||
height?: number; | ||
alt?: string; | ||
} | ||
// Export the OGVideo | ||
export interface OGVideo extends OGResource { | ||
video?: string; | ||
width?: number; | ||
height?: number; | ||
} | ||
// Export the OGResponse | ||
export interface OGResponse extends APIResponse { | ||
title?: string; | ||
type?: string; | ||
url?: string; | ||
site?: string; | ||
site_name?: string; | ||
description?: string; | ||
favicon?: string; | ||
determiner?: string; | ||
locale?: string; | ||
audios?: OGAudio[]; | ||
images?: OGImage[]; | ||
videos?: OGVideo[]; | ||
} | ||
// Export the Stream Client | ||
@@ -466,0 +515,0 @@ export { StreamClient as Client }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
514998
11370
11