Socket
Socket
Sign inDemoInstall

libmuse

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libmuse - npm Package Compare versions

Comparing version 0.0.96 to 0.0.97

esm/deps/deno.land/std@0.221.0/assert/assert.js

3

esm/deps.js
export { JSONPath } from "jsonpath-plus";
export { basename, extname } from "./deps/deno.land/std@0.181.0/path/mod.js";
export { omit } from "lodash-es";
export { basename, extname } from "./deps/deno.land/std@0.221.0/path/mod.js";

@@ -184,2 +184,3 @@ import STRINGS from "../locales/strings.js";

trending: [_("trending"), parse_trending, MRLIR],
videos: [_("new videos"), parse_top_video],
};

@@ -358,3 +359,3 @@ return parse_categories(results, categories_data);

const artists_len = get_dot_separator_index(runs);
const rank = j(result, "customIndexColumn.musicCustomIndexColumnRenderer");
const rank = jo(result, "customIndexColumn.musicCustomIndexColumnRenderer");
return {

@@ -369,4 +370,4 @@ type: "video",

views: runs[runs.length - 1].text,
rank: j(rank, TEXT_RUN_TEXT),
change: jo(rank, "icon.iconType")?.split("_")[2] || null,
rank: rank ? jo(rank, TEXT_RUN_TEXT) : null,
change: (rank && jo(rank, "icon.iconType")?.split("_")[2]) ?? null,
likeStatus: get_menu_like_status(result),

@@ -373,0 +374,0 @@ };

@@ -76,3 +76,3 @@ import { FEEDBACK_TOKEN, find_object_by_icon_name, MENU_ITEMS, NAVIGATION_BROWSE_ID, NAVIGATION_PAGE_TYPE, NAVIGATION_WATCH_PLAYLIST_ID, TOGGLE_MENU, } from "../nav.js";

}
else if (text != _("song") && text != _("video")) {
else if (text != _("video")) {
// artist without id

@@ -79,0 +79,0 @@ parsed.artists.push({

@@ -15,2 +15,6 @@ import { JSONPath } from "./deps.js";

};
export const jom = (json, path, resultType) => {
const result = JSONPath({ path, json, resultType });
return result.length ? result : null;
};
export const jo = (json, path, ...others) => {

@@ -17,0 +21,0 @@ const result = JSONPath({ path: [path, ...others].join("."), json });

@@ -6,3 +6,3 @@ {

"name": "libmuse",
"version": "0.0.96",
"version": "0.0.97",
"description": "A library to interact with the YouTube Music (InnerTube) api.",

@@ -86,4 +86,5 @@ "tags": [

"dependencies": {
"jsonpath-plus": "7.2.0"
"jsonpath-plus": "8.1.0",
"lodash-es": "4.17.21"
}
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.extname = exports.basename = exports.JSONPath = void 0;
exports.extname = exports.basename = exports.omit = exports.JSONPath = void 0;
var jsonpath_plus_1 = require("jsonpath-plus");
Object.defineProperty(exports, "JSONPath", { enumerable: true, get: function () { return jsonpath_plus_1.JSONPath; } });
var mod_js_1 = require("./deps/deno.land/std@0.181.0/path/mod.js");
var lodash_es_1 = require("lodash-es");
Object.defineProperty(exports, "omit", { enumerable: true, get: function () { return lodash_es_1.omit; } });
var mod_js_1 = require("./deps/deno.land/std@0.221.0/path/mod.js");
Object.defineProperty(exports, "basename", { enumerable: true, get: function () { return mod_js_1.basename; } });
Object.defineProperty(exports, "extname", { enumerable: true, get: function () { return mod_js_1.extname; } });

@@ -196,2 +196,3 @@ "use strict";

trending: [_("trending"), parse_trending, nav_js_1.MRLIR],
videos: [_("new videos"), parse_top_video],
};

@@ -380,3 +381,3 @@ return parse_categories(results, categories_data);

const artists_len = (0, util_js_2.get_dot_separator_index)(runs);
const rank = (0, util_js_1.j)(result, "customIndexColumn.musicCustomIndexColumnRenderer");
const rank = (0, util_js_1.jo)(result, "customIndexColumn.musicCustomIndexColumnRenderer");
return {

@@ -391,4 +392,4 @@ type: "video",

views: runs[runs.length - 1].text,
rank: (0, util_js_1.j)(rank, nav_js_1.TEXT_RUN_TEXT),
change: (0, util_js_1.jo)(rank, "icon.iconType")?.split("_")[2] || null,
rank: rank ? (0, util_js_1.jo)(rank, nav_js_1.TEXT_RUN_TEXT) : null,
change: (rank && (0, util_js_1.jo)(rank, "icon.iconType")?.split("_")[2]) ?? null,
likeStatus: (0, songs_js_2.get_menu_like_status)(result),

@@ -395,0 +396,0 @@ };

@@ -81,3 +81,3 @@ "use strict";

}
else if (text != (0, browsing_js_1._)("song") && text != (0, browsing_js_1._)("video")) {
else if (text != (0, browsing_js_1._)("video")) {
// artist without id

@@ -84,0 +84,0 @@ parsed.artists.push({

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.use_proxy = exports.sum_total_duration = exports.j = exports.jo = exports.debug = exports.wait = void 0;
exports.use_proxy = exports.sum_total_duration = exports.j = exports.jo = exports.jom = exports.debug = exports.wait = void 0;
const deps_js_1 = require("./deps.js");

@@ -20,2 +20,7 @@ const errors_js_1 = require("./errors.js");

exports.debug = debug;
const jom = (json, path, resultType) => {
const result = (0, deps_js_1.JSONPath)({ path, json, resultType });
return result.length ? result : null;
};
exports.jom = jom;
const jo = (json, path, ...others) => {

@@ -22,0 +27,0 @@ const result = (0, deps_js_1.JSONPath)({ path: [path, ...others].join("."), json });

@@ -1,2 +0,3 @@

export { JSONPath } from "jsonpath-plus";
export { basename, extname } from "./deps/deno.land/std@0.181.0/path/mod.js";
export { JSONPath, type JSONPathOptions } from "jsonpath-plus";
export { omit } from "lodash-es";
export { basename, extname } from "./deps/deno.land/std@0.221.0/path/mod.js";

@@ -54,2 +54,3 @@ import STRINGS from "../locales/strings.js";

trending: Category<Ranked<ParsedSong> | Ranked<ParsedVideo>>;
videos: Category<Ranked<ParsedVideo>>;
};

@@ -163,5 +164,5 @@ export type ExploreContents = ReturnType<typeof parse_explore_contents>;

export declare function _(id: Translatable): string;
export declare function __(value: string): "artist" | "albums" | "singles" | "videos" | "library" | "featured" | "playlists" | "related" | "new albums" | "top songs" | "moods" | "trending" | "top videos" | "top artists" | "station" | "playlist" | "song" | "video" | "genres" | "songs" | "featured_playlists" | "community_playlists" | "artists" | "songs_on_repeat" | "artists_on_repeat" | "playlists_on_repeat" | "profile" | "profiles" | "episodes" | "podcasts" | null;
export declare function __(value: string): "artist" | "playlists" | "songs_on_repeat" | "artists_on_repeat" | "playlists_on_repeat" | "songs" | "albums" | "videos" | "featured_playlists" | "community_playlists" | "artists" | "profiles" | "episodes" | "podcasts" | "playlist" | "video" | "profile" | "singles" | "library" | "featured" | "related" | "new albums" | "moods" | "new videos" | "top songs" | "trending" | "top videos" | "top artists" | "genres" | null;
export declare function is_ranked<T>(item: T | Ranked<T>): item is Ranked<T>;
export declare function find_context_param(json: any, key: string): any;
export {};

@@ -8,3 +8,3 @@ import { AlbumType } from "./browsing.js";

export type Scope = typeof scopes[number];
export declare function get_search_params(filter: "albums" | "videos" | "playlists" | "songs" | "featured_playlists" | "community_playlists" | "artists" | "profiles" | null | undefined, scope: "library" | "uploads" | null | undefined, autocorrect: boolean): string | null;
export declare function get_search_params(filter: "playlists" | "songs" | "albums" | "videos" | "featured_playlists" | "community_playlists" | "artists" | "profiles" | null | undefined, scope: "library" | "uploads" | null | undefined, autocorrect: boolean): string | null;
export declare function _get_param2(filter: Filter): "g" | "I" | "Q" | "Y" | "o" | "Dg" | "EA";

@@ -11,0 +11,0 @@ export interface SearchAlbum extends ShuffleAndRadioIds {

@@ -0,1 +1,2 @@

import { JSONPathOptions } from "./deps.js";
/**

@@ -9,2 +10,3 @@ * Wait a given number of milliseconds, then resolve

export declare const debug: (...args: unknown[]) => void;
export declare const jom: (json: unknown, path: string, resultType?: JSONPathOptions["resultType"]) => any;
export declare const jo: (json: unknown, path: string, ...others: string[]) => any;

@@ -11,0 +13,0 @@ export declare const j: (json: unknown, path: string, ...others: string[]) => any;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc