chore(deps): swap `rand-user-agent` package (#13441)

This commit is contained in:
Tony 2023-09-29 16:38:00 +00:00 committed by GitHub
parent 66e2af9cc2
commit 744ae49151
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 9 deletions

View File

@ -1,4 +1,5 @@
const randUserAgent = require('rand-user-agent');
const { randUserAgent } = require('@tonyrl/rand-user-agent');
require.resolve('@tonyrl/rand-user-agent/data/user-agents.json'); // workaround for @vercel/nft removing datastore
/**
* A handy function to help generate a legit useragent.

View File

@ -87,6 +87,7 @@
"@notionhq/client": "2.2.13",
"@postlight/parser": "2.2.3",
"@sentry/node": "7.72.0",
"@tonyrl/rand-user-agent": "2.0.32",
"aes-js": "3.1.2",
"art-template": "4.13.2",
"bbcodejs": "0.0.4",
@ -134,7 +135,6 @@
"puppeteer-extra-plugin-user-data-dir": "2.4.1",
"puppeteer-extra-plugin-user-preferences": "2.4.1",
"query-string": "7.1.3",
"rand-user-agent": "1.0.109",
"re2js": "0.4.0",
"require-all": "3.0.0",
"rfc4648": "1.5.2",

View File

@ -17,6 +17,9 @@ dependencies:
'@sentry/node':
specifier: 7.72.0
version: 7.72.0
'@tonyrl/rand-user-agent':
specifier: 2.0.32
version: 2.0.32
aes-js:
specifier: 3.1.2
version: 3.1.2
@ -158,9 +161,6 @@ dependencies:
query-string:
specifier: 7.1.3
version: 7.1.3
rand-user-agent:
specifier: 1.0.109
version: 1.0.109
re2js:
specifier: 0.4.0
version: 0.4.0
@ -1321,6 +1321,11 @@ packages:
defer-to-connect: 2.0.1
dev: false
/@tonyrl/rand-user-agent@2.0.32:
resolution: {integrity: sha512-WhYSJoQfT0AVRIQQ27y0v3JqTBHDHaClORGl8NuoO41h7D/p/pfpw4DPIG3wZ7TmfTevOAfr07a/TVdwoh0/rw==}
engines: {node: '>=14.16'}
dev: false
/@tootallnate/once@2.0.0:
resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==}
engines: {node: '>= 10'}
@ -6688,10 +6693,6 @@ packages:
engines: {node: '>=10'}
dev: false
/rand-user-agent@1.0.109:
resolution: {integrity: sha512-mnAH0jDJQ0SJtEXjoW5aQILEc+33RwtKzKxwK9JG1a06M6nn8WDWheD+kmc5ucs+ux4FEWX3+PZuEB8r3x15yQ==}
dev: false
/re2js@0.4.0:
resolution: {integrity: sha512-W6t5XWgedRUsSw3lcJCjejDwybz7xaBfDDpySQEgSdO6AYWbrFFHHOsunE6rcmkiPhyLMonlJNVtbcy9/+GBbQ==}
dev: false