natureco-sdk 1.0.3 → 1.0.4

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 +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * NatureCo JavaScript SDK
3
- * @version 1.0.3
3
+ * @version 1.0.4
4
4
  * @description Official JavaScript SDK for NatureCo API
5
5
  */
6
6
 
@@ -316,7 +316,7 @@ class WidgetModule {
316
316
  throw new Error('botId is required');
317
317
  }
318
318
 
319
- return `<script src="https://cdn.natureco.me/widget.js" data-bot-id="${botId}" data-theme="${finalTheme}" data-position="${finalPosition}"></script>`;
319
+ return `<script src="https://api.natureco.me/widget.js" data-bot-id="${botId}" data-theme="${finalTheme}" data-position="${finalPosition}"></script>`;
320
320
  }
321
321
 
322
322
  async updateSettings({ botId, theme, position, welcomeMessage, primaryColor }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "natureco-sdk",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Official JavaScript SDK for NatureCo API",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",