@ayush0x44/notifystack 1.0.1 → 1.0.3
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/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -15,7 +15,7 @@ class NotifySDK {
|
|
|
15
15
|
/**
|
|
16
16
|
* @param {string} apiKey - Your NotifyStack API key (ntf_live_xxx)
|
|
17
17
|
* @param {object} [options]
|
|
18
|
-
* @param {string} [options.baseUrl="
|
|
18
|
+
* @param {string} [options.baseUrl="https://api.notifystack.shop"] - API base URL
|
|
19
19
|
* @param {number} [options.maxRetries=3] - Max retry attempts
|
|
20
20
|
* @param {number} [options.timeoutMs=10000] - Request timeout in ms
|
|
21
21
|
* @param {boolean} [options.debug=false] - Enable verbose logging
|
|
@@ -25,9 +25,9 @@ class NotifySDK {
|
|
|
25
25
|
throw new Error("Invalid API key. Must start with 'ntf_live_'");
|
|
26
26
|
}
|
|
27
27
|
this.apiKey = apiKey;
|
|
28
|
-
this.baseUrl = (options.baseUrl || "
|
|
28
|
+
this.baseUrl = (options.baseUrl || "https://api.notifystack.shop").replace(/\/$/, "");
|
|
29
29
|
this.maxRetries = options.maxRetries ?? 3;
|
|
30
|
-
this.timeoutMs = options.timeoutMs ??
|
|
30
|
+
this.timeoutMs = options.timeoutMs ?? 30000;
|
|
31
31
|
this.debug = options.debug || false;
|
|
32
32
|
}
|
|
33
33
|
|