@patalink/node-api-client 1.0.1 → 1.0.2
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 +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39,6 +39,7 @@ var PataLinkClient = class {
|
|
|
39
39
|
constructor(config) {
|
|
40
40
|
if (!config.apiKey) throw new Error("API key is required");
|
|
41
41
|
if (!config.encryptionKey) throw new Error("Encryption key is required");
|
|
42
|
+
if (!config.baseUrl) throw new Error("Base url is required");
|
|
42
43
|
this.apiKey = config.apiKey;
|
|
43
44
|
this.baseUrl = config.baseUrl;
|
|
44
45
|
this.encryptionKey = config.encryptionKey;
|
package/dist/index.mjs
CHANGED
|
@@ -4,6 +4,7 @@ var PataLinkClient = class {
|
|
|
4
4
|
constructor(config) {
|
|
5
5
|
if (!config.apiKey) throw new Error("API key is required");
|
|
6
6
|
if (!config.encryptionKey) throw new Error("Encryption key is required");
|
|
7
|
+
if (!config.baseUrl) throw new Error("Base url is required");
|
|
7
8
|
this.apiKey = config.apiKey;
|
|
8
9
|
this.baseUrl = config.baseUrl;
|
|
9
10
|
this.encryptionKey = config.encryptionKey;
|