🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@nuclearplayer/plugin-sdk

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuclearplayer/plugin-sdk - npm Package Compare versions

Comparing version
2.6.1
to
2.7.0
+24
-1
dist/index.d.ts

@@ -151,2 +151,21 @@ import { FC } from 'react';

export declare class DiscoveryAPI {
#private;
constructor(host?: DiscoveryHost);
getRecommendations(context: Track[], options: DiscoveryOptions, providerId?: string): Promise<Track[]>;
}
export declare type DiscoveryHost = {
getRecommendations: (context: Track[], options: DiscoveryOptions, providerId?: string) => Promise<Track[]>;
};
export declare type DiscoveryOptions = {
variety: number;
limit?: number;
};
export declare type DiscoveryProvider = ProviderDescriptor<'discovery'> & {
getRecommendations: (context: Track[], options: DiscoveryOptions) => Promise<Track[]>;
};
export declare type EnumOption = {

@@ -382,2 +401,3 @@ value: string;

readonly Dashboard: DashboardAPI;
readonly Discovery: DiscoveryAPI;
readonly Playback: PlaybackAPI;

@@ -398,2 +418,3 @@ readonly Playlists: PlaylistsAPI;

dashboardHost?: DashboardHost;
discoveryHost?: DiscoveryHost;
playbackHost?: PlaybackHost;

@@ -440,2 +461,4 @@ playlistsHost?: PlaylistsHost;

unit?: string;
startLabel?: string;
endLabel?: string;
} | {

@@ -790,3 +813,3 @@ type: 'number-input';

export declare type ProviderKind = 'metadata' | 'streaming' | 'lyrics' | 'dashboard' | 'playlists' | (string & {});
export declare type ProviderKind = 'metadata' | 'streaming' | 'lyrics' | 'dashboard' | 'playlists' | 'discovery' | (string & {});

@@ -793,0 +816,0 @@ export declare type ProviderRef = {

+3
-3
{
"name": "@nuclearplayer/plugin-sdk",
"version": "2.6.1",
"version": "2.7.0",
"description": "Plugin SDK for Nuclear music player",

@@ -44,4 +44,4 @@ "type": "module",

"vitest": "^4.0.0",
"@nuclearplayer/eslint-config": "0.0.10",
"@nuclearplayer/tailwind-config": "0.0.10"
"@nuclearplayer/tailwind-config": "0.0.10",
"@nuclearplayer/eslint-config": "0.0.10"
},

@@ -48,0 +48,0 @@ "peerDependencies": {

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