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 +1 -1
- package/dist/dymo-api.mjs +1 -1
- package/package.json +1 -1
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
|
}
|