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

discord-player

Package Overview
Dependencies
Maintainers
2
Versions
359
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 5.3.0-dev.0 to 5.3.0-dev.1

3

dist/index.d.ts

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

import { downloadOptions } from 'ytdl-core';
import * as undici from 'undici';

@@ -1190,3 +1189,3 @@ declare class Playlist {

static noop(): void;
static getFetch(): Promise<typeof fetch | typeof undici.default>;
static getFetch(): Promise<any>;
}

@@ -1193,0 +1192,0 @@

@@ -83,6 +83,6 @@ "use strict";

if (!oldState.channelId && newState.channelId && newState.member.id === newState.guild.members.me.id) {
if (newState.serverMute || !newState.serverMute) {
if (oldState.serverMute !== newState.serverMute) {
queue.setPaused(newState.serverMute);
}
else if (newState.suppress || !newState.suppress) {
else if (oldState.suppress !== newState.suppress) {
if (newState.suppress)

@@ -89,0 +89,0 @@ newState.guild.members.me.voice.setRequestToSpeak(true).catch(Util_1.Util.noop);

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

if (volumeTransformer && typeof this.options.initialVolume === "number")
Reflect.set(volumeTransformer, "volume", Math.pow(this.options.initialVolume, 1.660964));
Reflect.set(volumeTransformer, "volume", Math.pow(this.options.initialVolume / 100, 1.660964));
if (volumeTransformer?.hasSmoothness && typeof this.options.volumeSmoothness === "number") {

@@ -703,0 +703,0 @@ if (typeof volumeTransformer.setSmoothness === "function")

@@ -115,10 +115,12 @@ "use strict";

return globalThis.fetch;
try {
return await Promise.resolve().then(() => __importStar(require("undici"))).then((res) => res.default);
for (const lib of ["undici", "node-fetch"]) {
try {
return await Promise.resolve().then(() => __importStar(require(lib))).then((res) => res.fetch || res.default?.fetch || res.default);
}
catch {
// uh?
}
}
catch {
// uh?
}
}
}
exports.Util = Util;
{
"name": "discord-player",
"version": "5.3.0-dev.0",
"version": "5.3.0-dev.1",
"description": "Complete framework to facilitate music commands using discord.js",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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