diff --git a/package.json b/package.json index 662d6a4..9ac4399 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "devDependencies": { "@semantic-release/changelog": "6.0.3", "@semantic-release/git": "10.0.1", - "@types/node": "20.12.7", + "@types/node": "^20.12.7", "@types/sanitize-html": "^2.11.0", "@typescript-eslint/eslint-plugin": "7.7.1", "@typescript-eslint/parser": "7.7.1", @@ -70,6 +70,7 @@ "eslint-config-prettier": "9.1.0", "eslint-plugin-prettier": "5.1.3", "prettier": "3.2.5", + "rimraf": "^5.0.5", "semantic-release": "23.0.8", "typescript": "5.4.5", "vite": "5.2.10", diff --git a/src/feed-parser.ts b/src/feed-parser.ts index 26a4c2c..a360081 100644 --- a/src/feed-parser.ts +++ b/src/feed-parser.ts @@ -15,7 +15,7 @@ export default async function parseFeedToJson(text: string): Promise { const options = { ignoreAttributes: false, attributeNamePrefix: '@_', - attributeValueProcessor: (key: string, value: string) => { + attributeValueProcessor: (_key: string, value: string) => { if (value.toLowerCase() === 'true') { return true; } diff --git a/tsconfig.json b/tsconfig.json index 1c4660e..3e03c10 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,7 +17,7 @@ "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true, - "types": ["vite/client"] + "types": ["vite/client", "node"] }, "include": ["src", "demo"] } diff --git a/yarn.lock b/yarn.lock index 7a43db8..c036399 100644 --- a/yarn.lock +++ b/yarn.lock @@ -828,7 +828,7 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== -"@types/node@20.12.7": +"@types/node@^20.12.7": version "20.12.7" resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.7.tgz#04080362fa3dd6c5822061aa3124f5c152cff384" integrity sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg== @@ -2103,7 +2103,7 @@ glob-parent@^6.0.2: dependencies: is-glob "^4.0.3" -glob@^10.2.2, glob@^10.3.10, glob@^10.3.12: +glob@^10.2.2, glob@^10.3.10, glob@^10.3.12, glob@^10.3.7: version "10.3.12" resolved "https://registry.yarnpkg.com/glob/-/glob-10.3.12.tgz#3a65c363c2e9998d220338e88a5f6ac97302960b" integrity sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg== @@ -3815,6 +3815,13 @@ reusify@^1.0.4: resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== +rimraf@^5.0.5: + version "5.0.5" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-5.0.5.tgz#9be65d2d6e683447d2e9013da2bf451139a61ccf" + integrity sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A== + dependencies: + glob "^10.3.7" + rollup@^4.13.0: version "4.14.0" resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.14.0.tgz#c3e2cd479f1b2358b65c1f810fa05b51603d7be8"