@extractus/feed-extractor
Advanced tools
Comparing version 6.2.1-rc3 to 6.2.1-rc4
@@ -36,12 +36,2 @@ // Type definitions | ||
/** | ||
* include full content of feed entry if present | ||
* default: false | ||
*/ | ||
includeEntryContent?: boolean; | ||
/** | ||
* include optional elements if any | ||
* default: false | ||
*/ | ||
includeOptionalElements?: boolean; | ||
/** | ||
* convert datetime to ISO format | ||
@@ -84,2 +74,7 @@ * default: true | ||
export function extractFromXml(xml: string, options?: ReaderOptions): FeedData; | ||
export function extractFromJson(json: string, options?: ReaderOptions): FeedData; | ||
export function extract(url: string, options?: ReaderOptions, fetchOptions?: FetchOptions): Promise<FeedData>; | ||
export function read(url: string, options?: ReaderOptions, fetchOptions?: FetchOptions): Promise<FeedData>; |
@@ -26,3 +26,3 @@ // Type definitions | ||
target?: string; | ||
headers?: string[]; | ||
headers?: any; | ||
} | ||
@@ -62,11 +62,13 @@ | ||
export interface FetchOptions { | ||
/** | ||
* list of request headers | ||
* default: null | ||
*/ | ||
headers?: string[]; | ||
/** | ||
* the values to configure proxy | ||
* default: null | ||
*/ | ||
// Definitions by: Ryan Graham <https://github.com/ryan-codingintrigue> | ||
method?: "GET" | "POST" | "DELETE" | "PATCH" | "PUT" | "HEAD" | "OPTIONS" | "CONNECT"; | ||
headers?: any; | ||
body?: any; | ||
mode?: "cors" | "no-cors" | "same-origin"; | ||
credentials?: "omit" | "same-origin" | "include"; | ||
cache?: "default" | "no-store" | "reload" | "no-cache" | "force-cache" | "only-if-cached"; | ||
redirect?: "follow" | "error" | "manual"; | ||
referrer?: string; | ||
referrerPolicy?: "referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "unsafe-url"; | ||
integrity?: any; | ||
proxy?: ProxyConfig; | ||
@@ -73,0 +75,0 @@ } |
{ | ||
"version": "6.2.1rc3", | ||
"version": "6.2.1rc4", | ||
"name": "@extractus/feed-extractor", | ||
@@ -4,0 +4,0 @@ "description": "To read and normalize RSS/ATOM/JSON feed data", |
@@ -24,8 +24,2 @@ # feed-extractor | ||
npm i @extractus/feed-extractor | ||
# pnpm | ||
pnpm i @extractus/feed-extractor | ||
# yarn | ||
yarn add @extractus/feed-extractor | ||
``` | ||
@@ -32,0 +26,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
1060250
12625
322