discord-player
Advanced tools
Comparing version 5.3.0-dev.0 to 5.3.0-dev.1
@@ -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", |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
157264
3756
3