@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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. 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="http://localhost:3000"] - API base URL
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 || "http://localhost:3000").replace(/\/$/, "");
28
+ this.baseUrl = (options.baseUrl || "https://api.notifystack.shop").replace(/\/$/, "");
29
29
  this.maxRetries = options.maxRetries ?? 3;
30
- this.timeoutMs = options.timeoutMs ?? 10000;
30
+ this.timeoutMs = options.timeoutMs ?? 30000;
31
31
  this.debug = options.debug || false;
32
32
  }
33
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ayush0x44/notifystack",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "The official Node.js SDK for NotifyStack — a scalable, production-ready notification SaaS platform.",
5
5
  "main": "index.js",
6
6
  "scripts": {