@blinkdotnew/sdk 0.10.1 → 0.10.2
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.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2865,7 +2865,7 @@ var BlinkNotificationsImpl = class {
|
|
|
2865
2865
|
if (!params.to || !params.subject || !params.html && !params.text) {
|
|
2866
2866
|
throw new BlinkNotificationsError('The "to", "subject", and either "html" or "text" fields are required.');
|
|
2867
2867
|
}
|
|
2868
|
-
const response = await this.httpClient.post(
|
|
2868
|
+
const response = await this.httpClient.post(`/api/notifications/${this.httpClient.projectId}/email`, params);
|
|
2869
2869
|
if (!response.data || typeof response.data.success !== "boolean") {
|
|
2870
2870
|
throw new BlinkNotificationsError("Invalid response from email API");
|
|
2871
2871
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -2863,7 +2863,7 @@ var BlinkNotificationsImpl = class {
|
|
|
2863
2863
|
if (!params.to || !params.subject || !params.html && !params.text) {
|
|
2864
2864
|
throw new BlinkNotificationsError('The "to", "subject", and either "html" or "text" fields are required.');
|
|
2865
2865
|
}
|
|
2866
|
-
const response = await this.httpClient.post(
|
|
2866
|
+
const response = await this.httpClient.post(`/api/notifications/${this.httpClient.projectId}/email`, params);
|
|
2867
2867
|
if (!response.data || typeof response.data.success !== "boolean") {
|
|
2868
2868
|
throw new BlinkNotificationsError("Invalid response from email API");
|
|
2869
2869
|
}
|
package/package.json
CHANGED