podcast-xml-parser
Advanced tools
Comparing version 3.0.0-beta.7 to 3.0.0-beta.8
@@ -10,3 +10,3 @@ import { Episode, Podcast } from "../types"; | ||
*/ | ||
export declare function getAttribute(obj: any, path: string, defaultValue?: string): string; | ||
export declare function getAttribute(obj: any, path: string, defaultValue?: string): string | number; | ||
/** | ||
@@ -13,0 +13,0 @@ * Ensures that the input is an array. If the input is not an array, it is wrapped in an array. |
@@ -105,2 +105,3 @@ "use strict"; | ||
itunesImage: getAttribute(item, "itunes:image.@_href"), | ||
itunesSeason: getAttribute(item, "itunes:season"), | ||
itunesSubtitle: getAttribute(item, "itunes:subtitle"), | ||
@@ -107,0 +108,0 @@ itunesSummary: getAttribute(item, "itunes:summary"), |
@@ -12,6 +12,7 @@ export interface Episode { | ||
itunesDuration: number; | ||
itunesEpisode: string; | ||
itunesEpisode: number; | ||
itunesEpisodeType: string; | ||
itunesExplicit: string; | ||
itunesImage: string; | ||
itunesSeason: number; | ||
itunesSubtitle: string; | ||
@@ -18,0 +19,0 @@ itunesSummary: string; |
{ | ||
"name": "podcast-xml-parser", | ||
"version": "3.0.0-beta.7", | ||
"version": "3.0.0-beta.8", | ||
"description": "🎙 Parse podcast feeds in browsers, React Native, or Node.js environments.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -321,6 +321,7 @@ <!-- HIDE_SECTION_START --> | ||
itunesDuration: number; | ||
itunesEpisode: string; | ||
itunesEpisode: number; | ||
itunesEpisodeType: string; | ||
itunesExplicit: string; | ||
itunesImage: string; | ||
itunesSeason: number; | ||
itunesSubtitle: string; | ||
@@ -327,0 +328,0 @@ itunesSummary: string; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49745
828
405