fix: LRU cache import

This commit is contained in:
one 2025-04-06 18:01:30 +08:00 committed by kangfenmao
parent 3491eec86b
commit b5ad77e70c
3 changed files with 10 additions and 19 deletions

View File

@ -120,7 +120,6 @@
"@types/diff": "^7", "@types/diff": "^7",
"@types/fs-extra": "^11", "@types/fs-extra": "^11",
"@types/lodash": "^4.17.5", "@types/lodash": "^4.17.5",
"@types/lru-cache": "^7.10.10",
"@types/markdown-it": "^14", "@types/markdown-it": "^14",
"@types/md5": "^2.3.5", "@types/md5": "^2.3.5",
"@types/node": "^18.19.9", "@types/node": "^18.19.9",
@ -156,6 +155,7 @@
"i18next": "^23.11.5", "i18next": "^23.11.5",
"lint-staged": "^15.5.0", "lint-staged": "^15.5.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"lru-cache": "^11.1.0",
"mime": "^4.0.4", "mime": "^4.0.4",
"npx-scope-finder": "^1.2.0", "npx-scope-finder": "^1.2.0",
"openai": "patch:openai@npm%3A4.87.3#~/.yarn/patches/openai-npm-4.87.3-2b30a7685f.patch", "openai": "patch:openai@npm%3A4.87.3#~/.yarn/patches/openai-npm-4.87.3-2b30a7685f.patch",

View File

@ -1,5 +1,5 @@
import store from '@renderer/store' import store from '@renderer/store'
import LRUCache from 'lru-cache' import { LRUCache } from 'lru-cache'
/** /**
* FNV-1a哈希函数 * FNV-1a哈希函数

View File

@ -3471,15 +3471,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@types/lru-cache@npm:^7.10.10":
version: 7.10.10
resolution: "@types/lru-cache@npm:7.10.10"
dependencies:
lru-cache: "npm:*"
checksum: 10c0/ab85558867cb059bebd42074c1cd517eb41efb1db22b9d26dfdc58df01c83ff9c212a562b4ec3d5936418ffb03e626a0f30463026aa5fb5ced41e3b4b4af057f
languageName: node
linkType: hard
"@types/markdown-it@npm:^14": "@types/markdown-it@npm:^14":
version: 14.1.2 version: 14.1.2
resolution: "@types/markdown-it@npm:14.1.2" resolution: "@types/markdown-it@npm:14.1.2"
@ -3929,7 +3920,6 @@ __metadata:
"@types/diff": "npm:^7" "@types/diff": "npm:^7"
"@types/fs-extra": "npm:^11" "@types/fs-extra": "npm:^11"
"@types/lodash": "npm:^4.17.5" "@types/lodash": "npm:^4.17.5"
"@types/lru-cache": "npm:^7.10.10"
"@types/markdown-it": "npm:^14" "@types/markdown-it": "npm:^14"
"@types/md5": "npm:^2.3.5" "@types/md5": "npm:^2.3.5"
"@types/node": "npm:^18.19.9" "@types/node": "npm:^18.19.9"
@ -3979,6 +3969,7 @@ __metadata:
jsdom: "npm:^26.0.0" jsdom: "npm:^26.0.0"
lint-staged: "npm:^15.5.0" lint-staged: "npm:^15.5.0"
lodash: "npm:^4.17.21" lodash: "npm:^4.17.21"
lru-cache: "npm:^11.1.0"
markdown-it: "npm:^14.1.0" markdown-it: "npm:^14.1.0"
mime: "npm:^4.0.4" mime: "npm:^4.0.4"
npx-scope-finder: "npm:^1.2.0" npx-scope-finder: "npm:^1.2.0"
@ -10174,13 +10165,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"lru-cache@npm:*":
version: 11.1.0
resolution: "lru-cache@npm:11.1.0"
checksum: 10c0/85c312f7113f65fae6a62de7985348649937eb34fb3d212811acbf6704dc322a421788aca253b62838f1f07049a84cc513d88f494e373d3756514ad263670a64
languageName: node
linkType: hard
"lru-cache@npm:^10.2.0, lru-cache@npm:^10.4.3": "lru-cache@npm:^10.2.0, lru-cache@npm:^10.4.3":
version: 10.4.3 version: 10.4.3
resolution: "lru-cache@npm:10.4.3" resolution: "lru-cache@npm:10.4.3"
@ -10188,6 +10172,13 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"lru-cache@npm:^11.1.0":
version: 11.1.0
resolution: "lru-cache@npm:11.1.0"
checksum: 10c0/85c312f7113f65fae6a62de7985348649937eb34fb3d212811acbf6704dc322a421788aca253b62838f1f07049a84cc513d88f494e373d3756514ad263670a64
languageName: node
linkType: hard
"lru-cache@npm:^5.1.1": "lru-cache@npm:^5.1.1":
version: 5.1.1 version: 5.1.1
resolution: "lru-cache@npm:5.1.1" resolution: "lru-cache@npm:5.1.1"