dymo-api 1.0.30 → 1.0.31

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/dymo-api.js CHANGED
@@ -102,7 +102,7 @@ class DymoAPI {
102
102
  return await PrivateAPI.isValidData(this.apiKey, data);
103
103
  }
104
104
  async sendEmail(data) {
105
- if (!this.serverEmailConfig)
105
+ if (!this.serverEmailConfig && !this.rootApiKey)
106
106
  throw customError(5000, `You must configure the email client settings.`);
107
107
  return await PrivateAPI.sendEmail(this.apiKey, { serverEmailConfig: this.serverEmailConfig, ...data });
108
108
  }
package/dist/dymo-api.mjs CHANGED
@@ -102,7 +102,7 @@ class DymoAPI {
102
102
  return await PrivateAPI.isValidData(this.apiKey, data);
103
103
  }
104
104
  async sendEmail(data) {
105
- if (!this.serverEmailConfig)
105
+ if (!this.serverEmailConfig && !this.rootApiKey)
106
106
  throw customError(5000, `You must configure the email client settings.`);
107
107
  return await PrivateAPI.sendEmail(this.apiKey, { serverEmailConfig: this.serverEmailConfig, ...data });
108
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dymo-api",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "Flow system for Dymo API.",
5
5
  "main": "dist/dymo-api.js",
6
6
  "module": "dist/dymo-api.mjs",