Comparing version 0.0.85 to 0.0.86
@@ -222,3 +222,8 @@ import { BADGE_LABEL, MRLIR, NAVIGATION_BROWSE_ID, NAVIGATION_PAGE_TYPE, NAVIGATION_PLAYLIST_ID, NAVIGATION_VIDEO_ID, NAVIGATION_VIDEO_TYPE, PLAY_BUTTON, SUBTITLE, SUBTITLE2, SUBTITLE_BADGE_LABEL, TEXT_RUN, TEXT_RUN_TEXT, TEXT_RUNS, THUMBNAILS, TITLE, TITLE_TEXT, } from "../nav.js"; | ||
catch { | ||
return parse_search_song(e); | ||
try { | ||
return parse_search_song(e); | ||
} | ||
catch { | ||
return null; | ||
} | ||
} | ||
@@ -265,3 +270,3 @@ }; | ||
} | ||
return search_results; | ||
return search_results.filter((e) => !!e); | ||
} | ||
@@ -305,3 +310,3 @@ export function parse_top_result_more(result) { | ||
} | ||
return more; | ||
return more.filter((e) => !!e); | ||
} | ||
@@ -308,0 +313,0 @@ export function parse_top_result_artist(result) { |
@@ -6,3 +6,3 @@ { | ||
"name": "libmuse", | ||
"version": "0.0.85", | ||
"version": "0.0.86", | ||
"description": "A library to interact with the YouTube Music (InnerTube) api.", | ||
@@ -9,0 +9,0 @@ "tags": [ |
@@ -234,3 +234,8 @@ "use strict"; | ||
catch { | ||
return parse_search_song(e); | ||
try { | ||
return parse_search_song(e); | ||
} | ||
catch { | ||
return null; | ||
} | ||
} | ||
@@ -278,3 +283,3 @@ }; | ||
} | ||
return search_results; | ||
return search_results.filter((e) => !!e); | ||
} | ||
@@ -319,3 +324,3 @@ exports.parse_search_results = parse_search_results; | ||
} | ||
return more; | ||
return more.filter((e) => !!e); | ||
} | ||
@@ -322,0 +327,0 @@ exports.parse_top_result_more = parse_top_result_more; |
@@ -75,3 +75,3 @@ import { AlbumType } from "./browsing.js"; | ||
export type SearchContent = SearchAlbum | SearchSong | SearchVideo | SearchArtist | SearchPlaylist | SearchRadio | SearchProfile; | ||
export declare function parse_search_content(result: any, upload?: boolean, passed_entity?: string): SearchContent; | ||
export declare function parse_search_content(result: any, upload?: boolean, passed_entity?: string): SearchContent | null; | ||
export declare function parse_search_results(results: any[], scope: Scope | null, filter: Filter | null): SearchContent[]; | ||
@@ -78,0 +78,0 @@ export declare function parse_top_result_more(result: any): SearchContent[]; |
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
887601
18275