From d805d79f9056055bf38eedcda730fd2d6f7e4138 Mon Sep 17 00:00:00 2001 From: Maxim Tsoy Date: Wed, 8 Jan 2025 21:56:36 +0100 Subject: [PATCH] Mitigate linting errors --- crawlerConductor.js | 1 + package-lock.json | 23 +++++++++++++---------- package.json | 2 +- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/crawlerConductor.js b/crawlerConductor.js index a02ee37c..d1e6bf48 100644 --- a/crawlerConductor.js +++ b/crawlerConductor.js @@ -35,6 +35,7 @@ async function crawlAndSaveData(urlString, dataCollectors, log, filterOutFirstPa */ const prefixedLog = (...msg) => log(chalk.gray(`${url.hostname}:`), ...msg); + // @ts-expect-error - outdated node types const data = await crawl(url, { log: prefixedLog, // @ts-ignore diff --git a/package-lock.json b/package-lock.json index 258a8a78..a6d8ebf5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ "mocha": "^10.0.0", "mockery": "^2.1.0", "pre-push": "^0.1.1", - "typescript": "^4.6.4" + "typescript": "^5.7.3" }, "engines": { "node": ">=14.0.0" @@ -282,7 +282,8 @@ "version": "10.17.60", "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.60.tgz", "integrity": "sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==", - "devOptional": true + "devOptional": true, + "license": "MIT" }, "node_modules/@types/progress": { "version": "2.0.5", @@ -918,7 +919,8 @@ "node_modules/commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "license": "MIT" }, "node_modules/concat-map": { "version": "0.0.1", @@ -3193,16 +3195,17 @@ "dev": true }, "node_modules/typescript": { - "version": "4.7.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", - "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", + "version": "5.7.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz", + "integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==", "dev": true, + "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=14.17" } }, "node_modules/unbzip2-stream": { @@ -5756,9 +5759,9 @@ "dev": true }, "typescript": { - "version": "4.7.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", - "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", + "version": "5.7.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz", + "integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==", "dev": true }, "unbzip2-stream": { diff --git a/package.json b/package.json index d6db6051..d46b3c2b 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "mocha": "^10.0.0", "mockery": "^2.1.0", "pre-push": "^0.1.1", - "typescript": "^4.6.4" + "typescript": "^5.7.3" }, "dependencies": { "@duckduckgo/autoconsent": "^12.4.0",