Skip to content

Commit d987105

Browse files
committed
fix(deps): @total-typescript/ts-reset should be listed as dependency
1 parent a9e825d commit d987105

File tree

3 files changed

+156
-233
lines changed

3 files changed

+156
-233
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
},
5959
"dependencies": {
6060
"@cspell/eslint-plugin": "^8.19.4 || ^9.0.2",
61-
"@eslint-react/eslint-plugin": "^1.51.1",
61+
"@eslint-react/eslint-plugin": "^1.51.2",
6262
"@inquirer/prompts": "^7.5.3",
6363
"@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
6464
"@playwright/browser-chromium": "^1.52.0",
@@ -70,12 +70,13 @@
7070
"@rspress/plugin-algolia": "2.0.0-beta.11",
7171
"@rspress/plugin-llms": "^2.0.0-beta.11",
7272
"@shikijs/transformers": "^3.6.0",
73+
"@total-typescript/ts-reset": "^0.6.1",
7374
"chokidar": "^4.0.3",
7475
"cli-progress": "^3.12.0",
7576
"clsx": "^2.1.1",
7677
"commander": "^13.1.0 || ^14.0.0",
7778
"ejs": "^3.1.10",
78-
"es-toolkit": "^1.39.1",
79+
"es-toolkit": "^1.39.3",
7980
"eslint": "^9.28.0",
8081
"eslint-plugin-mdx": "^3.4.2",
8182
"html-tag-names": "^2.1.0",
@@ -112,7 +113,6 @@
112113
"@eslint/js": "^9.28.0",
113114
"@swc-node/register": "^1.10.10",
114115
"@swc/core": "1.11.31",
115-
"@total-typescript/ts-reset": "^0.6.1",
116116
"@types/cli-progress": "^3.11.6",
117117
"@types/ejs": "^3.1.5",
118118
"@types/node": "^22.15.30",
@@ -128,7 +128,7 @@
128128
"nano-staged": "^0.8.0",
129129
"npm-run-all2": "^8.0.4",
130130
"prettier": "^3.5.3",
131-
"prettier-plugin-pkg": "^0.20.0",
131+
"prettier-plugin-pkg": "^0.21.1",
132132
"prettier-plugin-properties": "^0.3.0",
133133
"simple-git-hooks": "^2.13.0",
134134
"type-coverage": "^2.29.7",

src/global/VersionsNav/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ const LEGACY_NAV_ITEMS = LEGACY_VERSIONS.map((v) => ({
3737
link: `https://docs.alauda.io/document/release-notes?version=${v}`,
3838
}))
3939

40-
const ALLOW_LEGACY_DOMAINS = ['docs.alauda.cn', 'docs.alauda.io']
40+
const ALLOWED_LEGACY_DOMAINS = new Set(['docs.alauda.cn', 'docs.alauda.io'])
4141

4242
if (!isProduction()) {
43-
ALLOW_LEGACY_DOMAINS.push('localhost')
43+
ALLOWED_LEGACY_DOMAINS.add('localhost')
4444
}
4545

4646
const VersionsNav_ = () => {
@@ -138,7 +138,7 @@ const VersionsNav_ = () => {
138138
)
139139
if (
140140
versionsBase != null &&
141-
ALLOW_LEGACY_DOMAINS.includes(location.hostname) &&
141+
ALLOWED_LEGACY_DOMAINS.has(location.hostname) &&
142142
virtual.userBase === ACP_BASE
143143
) {
144144
versionItems.push(...LEGACY_NAV_ITEMS)

0 commit comments

Comments
 (0)