@nka212bg/backend-utils 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/misc.js +2 -4
  2. package/package.json +1 -1
package/misc.js CHANGED
@@ -417,12 +417,10 @@ exports.urlMetadata = async ({ url }) => {
417
417
 
418
418
  let fetchRes = await fetch(tempUrl.href, {
419
419
  headers: {
420
- "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0 google facebook linkedin",
421
- Accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
420
+ "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0 bot/0.1",
421
+ Accept: "*/*",
422
422
  "Accept-Language": "en-US,en;q=0.5",
423
423
  "Accept-Encoding": "gzip, deflate, br",
424
- Path: tempUrl.pathname,
425
- Authority: tempUrl.hostname,
426
424
  },
427
425
  });
428
426
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nka212bg/backend-utils",
3
3
  "author": "nka212bg",
4
- "version": "0.1.10",
4
+ "version": "0.1.11",
5
5
  "main": "index.js",
6
6
  "dependencies": {
7
7
  "@maxmind/geoip2-node": "^5.0.0",