mailmeteor 0.0.12 → 0.0.14

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.cjs CHANGED
@@ -1627,7 +1627,7 @@ function querySerializer(query) {
1627
1627
  }
1628
1628
  class Mailmeteor {
1629
1629
  constructor(key, config) {
1630
- const baseUrl = config?.baseUrl || "https://api.mailmeteor.com/v1";
1630
+ const baseUrl = config?.baseUrl || 'https://api.mailmeteor.com/v1';
1631
1631
  this.client = createClient(createConfig({
1632
1632
  baseUrl,
1633
1633
  throwOnError: true,
@@ -1655,6 +1655,13 @@ class Mailmeteor {
1655
1655
  },
1656
1656
  });
1657
1657
  }
1658
+ setApiBaseUrl(baseUrl) {
1659
+ const currentConfig = this.client.getConfig();
1660
+ this.client.setConfig({
1661
+ ...currentConfig,
1662
+ baseUrl,
1663
+ });
1664
+ }
1658
1665
  }
1659
1666
 
1660
1667
  exports.Mailmeteor = Mailmeteor;