aboutsummaryrefslogtreecommitdiff
path: root/node_modules/genius-lyrics/dist/Client.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/genius-lyrics/dist/Client.js')
-rw-r--r--node_modules/genius-lyrics/dist/Client.js60
1 files changed, 30 insertions, 30 deletions
diff --git a/node_modules/genius-lyrics/dist/Client.js b/node_modules/genius-lyrics/dist/Client.js
index 4e01ebb..ea6be82 100644
--- a/node_modules/genius-lyrics/dist/Client.js
+++ b/node_modules/genius-lyrics/dist/Client.js
@@ -1,30 +1,30 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Client = void 0;
-const Constants_1 = require("./Constants");
-const Utils_1 = require("./Utils");
-const Requester_1 = require("./Requester");
-const Client_1 = require("./Artists/Client");
-const Client_2 = require("./Songs/Client");
-class Client {
- constructor(key, config = {}) {
- var _a;
- this.key = key;
- this.config = config;
- if (!["string", "undefined"].includes(typeof key)) {
- throw new Error(Constants_1.Constants.INV_TOKEN);
- }
- if (!(0, Utils_1.checkConfig)(config)) {
- throw new Error(Constants_1.Constants.INV_CONFIG_OBJ);
- }
- this.songs = new Client_2.SongsClient(this);
- this.artists = new Client_1.ArtistsClient(this);
- this.api = new Requester_1.Requester(((_a = this.config.origin) === null || _a === void 0 ? void 0 : _a.api) || Constants_1.Constants.BASE_URL, {
- headers: {
- "User-Agent": Constants_1.Constants.DEF_USER_AGENT,
- Authorization: `Bearer ${this.key}`,
- },
- });
- }
-}
-exports.Client = Client;
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.Client = void 0;
+const Constants_1 = require("./Constants");
+const Utils_1 = require("./Utils");
+const Requester_1 = require("./Requester");
+const Client_1 = require("./Artists/Client");
+const Client_2 = require("./Songs/Client");
+class Client {
+ constructor(key, config = {}) {
+ var _a;
+ this.key = key;
+ this.config = config;
+ if (!["string", "undefined"].includes(typeof key)) {
+ throw new Error(Constants_1.Constants.INV_TOKEN);
+ }
+ if (!(0, Utils_1.checkConfig)(config)) {
+ throw new Error(Constants_1.Constants.INV_CONFIG_OBJ);
+ }
+ this.songs = new Client_2.SongsClient(this);
+ this.artists = new Client_1.ArtistsClient(this);
+ this.api = new Requester_1.Requester(((_a = this.config.origin) === null || _a === void 0 ? void 0 : _a.api) || Constants_1.Constants.BASE_URL, {
+ headers: {
+ "User-Agent": Constants_1.Constants.DEF_USER_AGENT,
+ Authorization: `Bearer ${this.key}`,
+ },
+ });
+ }
+}
+exports.Client = Client;