discord-player-deezer 2.3.1-dev.0 → 2.3.1-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -64,7 +64,7 @@ async function getCrypto() {
64
64
  function isUrl(query) {
65
65
  try {
66
66
  const url = new URL(query);
67
- return url.protocol === "http" || url.protocol === "https";
67
+ return ["https:", "http:"].includes(url.protocol);
68
68
  } catch {
69
69
  return false;
70
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discord-player-deezer",
3
- "version": "2.3.1-dev.0",
3
+ "version": "2.3.1-dev.1",
4
4
  "description": "A custom extractor made for discord-player that enables you to extract from Deezer.",
5
5
  "main": "dist/index.js",
6
6
  "author": "retro_ig",
package/src/utils/util.ts CHANGED
@@ -19,7 +19,7 @@ export async function getCrypto() {
19
19
  export function isUrl(query: string) {
20
20
  try {
21
21
  const url = new URL(query)
22
- return url.protocol === "http" || url.protocol === "https"
22
+ return ['https:', 'http:'].includes(url.protocol)
23
23
  } catch {
24
24
  return false
25
25
  }