diff --git a/lib/routes/mercari/util.ts b/lib/routes/mercari/util.ts index 7efc28692a..ae313cd393 100644 --- a/lib/routes/mercari/util.ts +++ b/lib/routes/mercari/util.ts @@ -1,7 +1,6 @@ import crypto from 'node:crypto'; import { Buffer } from 'node:buffer'; import ofetch from '@/utils/ofetch'; -import { v4 as uuidv4 } from 'uuid'; import { SearchResponse, ItemDetail, ShopItemDetail } from './types'; import { parseDate } from '@/utils/parse-date'; import { art } from '@/utils/render'; @@ -14,6 +13,7 @@ const rootShopProductURL = 'https://jp.mercari.com/shops/product/'; const searchURL = `${rootURL}v2/entities:search`; const itemInfoURL = `${rootURL}items/get`; const shopItemInfoURL = `${rootURL}v1/marketplaces/shops/products/`; +const uuidv4 = () => crypto.randomUUID(); const MercariStatus = { default: '', diff --git a/package.json b/package.json index 3682f871dd..5c0fea8127 100644 --- a/package.json +++ b/package.json @@ -131,7 +131,7 @@ "twitter-api-v2": "1.27.0", "ufo": "1.6.1", "undici": "6.21.3", - "uuid": "11.1.0", + "uuid": "12.0.0", "winston": "3.17.0", "xxhash-wasm": "1.1.0", "youtube-caption-extractor": "1.9.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 27ce720239..ffc47eb937 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -276,8 +276,8 @@ importers: specifier: 6.21.3 version: 6.21.3 uuid: - specifier: 11.1.0 - version: 11.1.0 + specifier: 12.0.0 + version: 12.0.0 winston: specifier: 3.17.0 version: 3.17.0 @@ -5887,8 +5887,8 @@ packages: resolution: {integrity: sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw==} engines: {node: '>= 4'} - uuid@11.1.0: - resolution: {integrity: sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==} + uuid@12.0.0: + resolution: {integrity: sha512-USe1zesMYh4fjCA8ZH5+X5WIVD0J4V1Jksm1bFTVBX2F/cwSXt0RO5w/3UXbdLKmZX65MiWV+hwhSS8p6oBTGA==} hasBin: true uuid@3.4.0: @@ -12113,7 +12113,7 @@ snapshots: utility-types@3.11.0: {} - uuid@11.1.0: {} + uuid@12.0.0: {} uuid@3.4.0: {}