Skip to content

Commit

Permalink
type woes
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanHirsch committed Oct 8, 2024
1 parent da1b21a commit 14ff8f8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"rimraf": "^3.0.2",
"ts-node-dev": "^1.1.6",
"tsconfig-paths": "^3.9.0",
"typescript": "^5.1.6"
"typescript": "^5.6.2"
},
"dependencies": {
"dotenv": "^10.0.0",
Expand Down
12 changes: 6 additions & 6 deletions src/parser/unified.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ export type ParserOptions = {
function handlePodcastSeasons(feedObj: BasicFeed) {
const tempSeasons = [] as Array<Phase2SeasonNumber>;
// eslint-disable-next-line no-restricted-syntax
for (const i of feedObj.items) {
if (i.podcastSeason) {
const existingValue = tempSeasons.find((x) => x.number === i.podcastSeason.number);
if (existingValue && !existingValue.name && i.podcastSeason.name) {
existingValue.name = i.podcastSeason.name;
for (const { podcastSeason } of feedObj.items) {
if (podcastSeason) {
const existingValue = tempSeasons.find((x) => x.number === podcastSeason.number);
if (existingValue && !existingValue.name && podcastSeason.name) {
existingValue.name = podcastSeason.name;
} else if (!existingValue) {
tempSeasons.push(i.podcastSeason);
tempSeasons.push(podcastSeason);
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5226,10 +5226,10 @@ typedarray-to-buffer@^3.1.5:
dependencies:
is-typedarray "^1.0.0"

typescript@^5.1.6:
version "5.1.6"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.1.6.tgz#02f8ac202b6dad2c0dd5e0913745b47a37998274"
integrity sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==
typescript@^5.6.2:
version "5.6.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.2.tgz#d1de67b6bef77c41823f822df8f0b3bcff60a5a0"
integrity sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==

uglify-js@^3.1.4:
version "3.13.1"
Expand Down

0 comments on commit 14ff8f8

Please sign in to comment.