Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

discord-player

Package Overview
Dependencies
Maintainers
1
Versions
358
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-player - npm Package Compare versions

Comparing version 4.0.7 to 4.0.8

3

lib/Player.d.ts

@@ -395,2 +395,3 @@ /// <reference types="node" />

* @property {Boolean} [disableArtistSearch=false] If it should disable artist search for spotify
* @property {Boolean} [fetchBeforeQueued=false] If it should fetch all songs loaded from spotify before playing
*/

@@ -464,3 +465,3 @@ /**

* @property {String} url The url
* @property {Object} artist The artust info
* @property {Object} artist The artist info
* @property {String} [artist.name] The name of the artist

@@ -467,0 +468,0 @@ * @property {Number} [artist.id] The ID of the artist

@@ -57,3 +57,3 @@ /// <reference types="node" />

* @param {QueueFilters} filters Audio filters to set
* @type {Promise<void>}
* @returns {Promise<void>}
*/

@@ -63,3 +63,3 @@ setFilters(filters: QueueFilters): Promise<void>;

* Returns array of all enabled filters
* @type {String[]}
* @returns {String[]}
*/

@@ -69,6 +69,11 @@ getFiltersEnabled(): string[];

* Returns all disabled filters
* @type {String[]}
* @returns {String[]}
*/
getFiltersDisabled(): string[];
/**
* Destroys this queue
* @returns {Boolean}
*/
destroy(): boolean;
/**
* String representation of this Queue

@@ -75,0 +80,0 @@ * @returns {String}

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

* @param {QueueFilters} filters Audio filters to set
* @type {Promise<void>}
* @returns {Promise<void>}
*/

@@ -144,3 +144,3 @@ setFilters(filters) {

* Returns array of all enabled filters
* @type {String[]}
* @returns {String[]}
*/

@@ -157,3 +157,3 @@ getFiltersEnabled() {

* Returns all disabled filters
* @type {String[]}
* @returns {String[]}
*/

@@ -165,2 +165,9 @@ getFiltersDisabled() {

/**
* Destroys this queue
* @returns {Boolean}
*/
destroy() {
return this.player.stop(this.firstMessage);
}
/**
* String representation of this Queue

@@ -167,0 +174,0 @@ * @returns {String}

@@ -35,2 +35,7 @@ import { Player } from '../Player';

/**
* Returns source of this track
* @type {TrackSource}
*/
get source(): import("../types/types").TrackSource;
/**
* String representation of this track

@@ -37,0 +42,0 @@ * @returns {String}

@@ -109,2 +109,10 @@ "use strict";

/**
* Returns source of this track
* @type {TrackSource}
*/
get source() {
var _a;
return (_a = this.raw.source) !== null && _a !== void 0 ? _a : 'arbitrary';
}
/**
* String representation of this track

@@ -111,0 +119,0 @@ * @returns {String}

@@ -17,5 +17,6 @@ /// <reference types="node" />

disableArtistSearch?: boolean;
fetchBeforeQueued?: boolean;
}
export declare type FiltersName = keyof QueueFilters;
export declare type TrackSource = 'soundcloud' | 'youtube' | 'arbitrary';
export declare type TrackSource = 'soundcloud' | 'youtube' | 'spotify' | 'arbitrary';
export interface TrackData {

@@ -77,2 +78,3 @@ title: string;

important?: boolean;
source?: TrackSource;
}

@@ -79,0 +81,0 @@ export interface PlayerProgressbarOptions {

@@ -63,7 +63,2 @@ import { QueryType, TimeData } from '../types/types';

/**
* Checks if this system is running in replit.com
* @returns {Boolean}
*/
static isRepl(): boolean;
/**
* Checks if the given voice channel is empty

@@ -86,3 +81,16 @@ * @param {DiscordVoiceChannel} channel The voice channel

static require(id: string): any;
/**
* Defines a property in the given object
* @param {any} target The target
* @param {any} prop The property to define
* @param {any} value The value
* @returns {void}
*/
static define(ops: {
target: any;
prop: any;
value: any;
enumerate?: boolean;
}): void;
}
export default Util;

@@ -72,5 +72,5 @@ "use strict";

static getQueryType(query) {
if (soundcloud_scraper_1.validateURL(query) && !query.includes('/sets/'))
if (soundcloud_scraper_1.validateURL(query, 'track'))
return 'soundcloud_track';
if (soundcloud_scraper_1.validateURL(query) && query.includes('/sets/'))
if (soundcloud_scraper_1.validateURL(query, 'playlist') || query.includes('/sets/'))
return 'soundcloud_playlist';

@@ -174,23 +174,2 @@ if (spotifySongRegex.test(query))

/**
* Checks if this system is running in replit.com
* @returns {Boolean}
*/
static isRepl() {
if ('DP_REPL_NOCHECK' in process.env)
return false;
const REPL_IT_PROPS = [
'REPL_SLUG',
'REPL_OWNER',
'REPL_IMAGE',
'REPL_PUBKEYS',
'REPL_ID',
'REPL_LANGUAGE',
'REPLIT_DB_URL'
];
for (const prop of REPL_IT_PROPS)
if (prop in process.env)
return true;
return false;
}
/**
* Checks if the given voice channel is empty

@@ -231,4 +210,19 @@ * @param {DiscordVoiceChannel} channel The voice channel

}
/**
* Defines a property in the given object
* @param {any} target The target
* @param {any} prop The property to define
* @param {any} value The value
* @returns {void}
*/
static define(ops) {
Object.defineProperty(ops.target, ops.prop, {
value: ops.value,
writable: true,
enumerable: Boolean(ops.enumerate),
configurable: true
});
}
}
exports.Util = Util;
exports.default = Util;
{
"name": "discord-player",
"version": "4.0.7",
"version": "4.0.8",
"description": "Complete framework to facilitate music commands using discord.js",

@@ -54,5 +54,5 @@ "main": "lib/index.js",

"discord-ytdl-core": "^5.0.3",
"soundcloud-scraper": "^4.0.4",
"soundcloud-scraper": "^5.0.0",
"spotify-url-info": "^2.2.0",
"youtube-sr": "^4.0.6",
"youtube-sr": "^4.0.7",
"ytdl-core": "^4.7.0"

@@ -65,3 +65,3 @@ },

"@babel/preset-typescript": "^7.13.0",
"@discord-player/extractor": "^2.0.0",
"@discord-player/extractor": "^3.0.0",
"@discordjs/opus": "^0.5.0",

@@ -68,0 +68,0 @@ "@types/node": "^14.14.41",

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