diff --git a/package-lock.json b/package-lock.json index d27c3d9..a9549b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "@redocly/cli": "^1.25.2", "@types/better-sqlite3": "^7.6.11", "@types/node": "^22.5.5", - "typescript": "^5.5.4" + "typescript": "^5.6.2" } }, "node_modules/@babel/runtime": { @@ -4045,9 +4045,9 @@ } }, "node_modules/typescript": { - "version": "5.5.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", - "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", + "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", "dev": true, "bin": { "tsc": "bin/tsc", diff --git a/package.json b/package.json index 8d64172..27e38e9 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "@redocly/cli": "^1.25.2", "@types/better-sqlite3": "^7.6.11", "@types/node": "^22.5.5", - "typescript": "^5.5.4" + "typescript": "^5.6.2" }, "dependencies": { "argon2": "^0.41.1", diff --git a/src/resource/Artist.ts b/src/resource/Artist.ts index c246d86..f75e076 100644 --- a/src/resource/Artist.ts +++ b/src/resource/Artist.ts @@ -65,8 +65,11 @@ namespace Artist { const iterations = Math.min(ids.size, 100); const iterator = ids.values(); for (let i = 0; i < iterations; ++i) { - const artist = this.get(iterator.next().value)!; - if (artist !== null) artists.push(artist); + const id = iterator.next().value; + if (id === undefined) continue; + const artist = this.get(id)!; + if (artist === null) continue; + artists.push(artist); } return artists; }