Updated how options work. Fetch and OGS options no longer being mixed together, users can now set fetch options using options.fetchOptions
Remove any ogImages/ogVideos/twitterImages/twitterPlayers/musicSongs resultes that have no url
The downloadLimit option has been removed in favor of just using timeouts.
Limit ogImages/ogVideos/twitterImages/twitterPlayers/musicSongs to 10 items
Adding html to the SuccessResult of OGS
Adding options.timeout to set the fetch request timeout. (default is 10 seconds)
Remove null values from ogImages/ogVideos/twitterImages/twitterPlayers/musicSongs
Removing options.allMedia, you can just grab the first value of the array for the pervious behavior
Removing options.ogImageFallback, you can set options.onlyGetOpenGraphInfo to true for the pervious behavior
ogImages/ogVideos/twitterImages/twitterPlayers/musicSongs will always be an array now, you can just grab the first value of the array for the pervious behavior
Updating Dependencies
5.2.3
Add in declaration files for typescript users.
5.2.2
Specify true/false to distinguish SuccessResult and ErrorResult by error field.
5.2.1
Adding the importsNotUsedAsValues flag and fixing type import issues
5.2.0
Remove the charset lib and just use chardet for finding the html encoding
Remove peekSize option since that was used by charset
Updating the charset fallback to be more reliable
Adding support for article:published_date and article:modified_date meta tags
Updating Dependencies
5.1.1
Fix issue where using import would cause typescript errors
Updating the urlValidatorSettings defaults to match validatorjs
Updating Dependencies
5.1.0
Convert source code to typescript
Changing response.body to be a string and response.rawBody to be a buffer. They now match the node type for response.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/Woodland-Direct/Home-Page-CMS/network/alerts).
Bumps lodash to 4.17.21 and updates ancestor dependency open-graph-scraper. These dependencies need to be updated together.
Updates
lodash
from 4.17.10 to 4.17.21Commits
f299b52
Bump to v4.17.21c4847eb
Improve performance oftoNumber
,trim
andtrimEnd
on large input strings3469357
Prevent command injection through_.template
'svariable
optionded9bc6
Bump to v4.17.20.63150ef
Documentation fixes.00f0f62
test.js: Remove trailing comma.846e434
Temporarily use a custom fork oflodash-cli
.5d046f3
Re-enable Travis tests on4.17
branch.aa816b3
Remove/npm-package
.d7fbc52
Bump to v4.17.19Maintainer changes
This version was pushed to npm by bnjmnt4n, a new releaser for lodash since your current version.
Updates
open-graph-scraper
from 3.6.2 to 6.0.0Changelog
Sourced from open-graph-scraper's changelog.
... (truncated)
Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/Woodland-Direct/Home-Page-CMS/network/alerts).