Skip to content

Commit

Permalink
Update default user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
brahma-dev committed Mar 1, 2024
1 parent 1cefb6e commit 33bc826
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Use NPM to install:
#### Optional flags to disable parsing images and links and http timeout or headers

metafetch.fetch('http://www.facebook.com', {
userAgent: "User Agent/Defaults to Firefox 58",
userAgent: "User Agent/Defaults to Firefox 123 (February 20, 2024)",
flags: {
images: false,
links: false,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "metafetch",
"description": "Metafetch fetches a given URL's title, description, images, links etc.",
"version": "3.1.3",
"version": "3.1.4",
"homepage": "https://github.com/brahma-dev/metafetch",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ let franc: ((value?: string | undefined) => string) | ((arg0: string) => string)


class Metafetch {
private _userAgent: string = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0";
private _userAgent: string = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0";
public setUserAgent(agent: string) {
if (typeof agent == "string") {
this._userAgent = agent;
Expand Down

0 comments on commit 33bc826

Please sign in to comment.