add missing type and fix typing error, bump to es2022

This commit is contained in:
theofficialomega
2025-06-23 12:47:35 +02:00
parent 36885037f5
commit b5f36296e9
5 changed files with 22 additions and 3 deletions

13
package-lock.json generated
View File

@@ -23,6 +23,7 @@
"@types/fs-extra": "^11.0.4",
"@types/inquirer": "^9.0.8",
"@types/jest": "^30.0.0",
"@types/langs": "^2.0.5",
"@types/lodash": "^4.17.18",
"@types/node-cleanup": "^2.1.5",
"@types/numeral": "^2.0.5",
@@ -1189,6 +1190,7 @@
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/@freearhey/search-js/-/search-js-0.1.2.tgz",
"integrity": "sha512-F2o+xpGCXOK4OsZfKEHfXNNkAZmny2eBnPOp+P0iyV20ja7gJGfTFaEc6okcuEo6OB6P7LnSxTvISkoArFtlfg==",
"license": "MIT",
"dependencies": {
"lodash": "^4.17.21"
},
@@ -3457,6 +3459,12 @@
"@types/node": "*"
}
},
"node_modules/@types/langs": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/@types/langs/-/langs-2.0.5.tgz",
"integrity": "sha512-DIUKT4mkbTBxSrX6lmnQR888ObeFVVo1uNEqBH5/ddQHpnG4CA24DibpK7aO8QAcJEZUTcIx0F96TWuzVT9Z4g==",
"license": "MIT"
},
"node_modules/@types/lodash": {
"version": "4.17.18",
"resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.18.tgz",
@@ -13944,6 +13952,11 @@
"@types/node": "*"
}
},
"@types/langs": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/@types/langs/-/langs-2.0.5.tgz",
"integrity": "sha512-DIUKT4mkbTBxSrX6lmnQR888ObeFVVo1uNEqBH5/ddQHpnG4CA24DibpK7aO8QAcJEZUTcIx0F96TWuzVT9Z4g=="
},
"@types/lodash": {
"version": "4.17.18",
"resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.18.tgz",

View File

@@ -53,6 +53,7 @@
"@types/fs-extra": "^11.0.4",
"@types/inquirer": "^9.0.8",
"@types/jest": "^30.0.0",
"@types/langs": "^2.0.5",
"@types/lodash": "^4.17.18",
"@types/node-cleanup": "^2.1.5",
"@types/numeral": "^2.0.5",
@@ -63,9 +64,9 @@
"chalk": "^5.4.1",
"cheerio": "^1.1.0",
"cli-progress": "^3.12.0",
"cross-env": "^7.0.3",
"commander": "^14.0.0",
"consola": "^3.4.2",
"cross-env": "^7.0.3",
"csv-parser": "^3.2.0",
"cwait": "^1.1.2",
"dayjs": "^1.11.13",

View File

@@ -48,7 +48,7 @@ async function main() {
totalErrors++
}
if (!langs.where('1', channel.lang)) {
if (!langs.where('1', channel.lang ?? '')) {
errors.push({ type: 'wrong_lang', ...channel })
totalErrors++
}

View File

@@ -3,7 +3,7 @@
"strict": true,
"module": "commonjs",
"moduleResolution": "node",
"target": "es2020",
"target": "es2022",
"esModuleInterop": true,
"declaration": true,
"typeRoots": [

View File

@@ -1434,6 +1434,11 @@
dependencies:
"@types/node" "*"
"@types/langs@^2.0.5":
version "2.0.5"
resolved "https://registry.npmjs.org/@types/langs/-/langs-2.0.5.tgz"
integrity sha512-DIUKT4mkbTBxSrX6lmnQR888ObeFVVo1uNEqBH5/ddQHpnG4CA24DibpK7aO8QAcJEZUTcIx0F96TWuzVT9Z4g==
"@types/lodash@^4.17.18":
version "4.17.18"
resolved "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.18.tgz"