@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 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("/notifications/email", params);
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("/notifications/email", params);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blinkdotnew/sdk",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "description": "Blink TypeScript SDK for client-side applications - Zero-boilerplate CRUD + auth + AI + analytics + notifications for modern SaaS/AI apps",
5
5
  "keywords": [
6
6
  "blink",