discord-player-deezer 2.2.1-dev.2 → 2.3.0

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.d.ts CHANGED
@@ -40,7 +40,7 @@ declare class DeezerExtractor extends BaseExtractor<DeezerExtractorOptions> {
40
40
  }
41
41
 
42
42
  declare function getCrypto(): Promise<typeof crypto>;
43
- declare function isUrl(query: string): Promise<boolean>;
43
+ declare function isUrl(query: string): boolean;
44
44
  declare function search(query: string, limit?: number): Promise<DeezerSearchTrackResponse>;
45
45
  type ArrayOrObject<T> = T | T[];
46
46
  interface DeezerSearchTrackResponse {
package/dist/index.js CHANGED
@@ -61,7 +61,7 @@ async function getCrypto() {
61
61
  }
62
62
  return rawCrypto;
63
63
  }
64
- async function isUrl(query) {
64
+ function isUrl(query) {
65
65
  try {
66
66
  new URL(query);
67
67
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discord-player-deezer",
3
- "version": "2.2.1-dev.2",
3
+ "version": "2.3.0",
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
@@ -16,7 +16,7 @@ export async function getCrypto() {
16
16
  return rawCrypto
17
17
  }
18
18
 
19
- export async function isUrl(query: string) {
19
+ export function isUrl(query: string) {
20
20
  try {
21
21
  /* tslint:disable-next-line no-unused-expression */
22
22
  new URL(query)