From c2b775f83f01455151f1e734397b0d5730c6a888 Mon Sep 17 00:00:00 2001 From: Adam Ismael Date: Fri, 24 Mar 2023 11:27:12 -0400 Subject: [PATCH] Fixed typo + trailing spaces --- README.md | 8 ++++---- src/index.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3ef26d4..f374783 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Unfurl +# Unfurl A metadata scraper with support for oEmbed, Twitter Cards and Open Graph Protocol for Node.js (>=v8.0.0) @@ -26,10 +26,10 @@ npm install unfurl.js --- #### opts - `object` of: - `oembed?: boolean` - support retrieving oembed metadata -- `timeout? number` - req/res timeout in ms, it resets on redirect. 0 to disable (OS limit applies) +- `timeout? number` - req/res timeout in ms, it resets on redirect. 0 to disable (OS limit applies) - `follow?: number` - maximum redirect count. 0 to not follow redirect -- `compress?: boolean` - support gzip/deflate content encoding -- `size?: number` - maximum response body size in bytes. 0 to disable +- `compress?: boolean` - support gzip/deflate content encoding +- `size?: number` - maximum response body size in bytes. 0 to disable - `headers?: Headers | Record | Iterable | Iterable>` - map of request headers, overrides the defaults Default headers: diff --git a/src/index.ts b/src/index.ts index 2550c6b..173e200 100644 --- a/src/index.ts +++ b/src/index.ts @@ -464,7 +464,7 @@ function parse(url: string) { } } - // some fields map to the same name so once nicwe have one stick with it + // some fields map to the same name so once we have one stick with it target[item.name] || (target[item.name] = metaValue); }