@ariary/notification 4.0.0 → 4.1.0

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/README.md CHANGED
@@ -12,7 +12,7 @@ yarn add @ariary/notification
12
12
 
13
13
  1. Sign in at [ariari.mg](https://ariari.mg)
14
14
  2. Create a project
15
- 3. You'll receive a `projectId` and a `secret`
15
+ 3. You'll receive a `secret`
16
16
 
17
17
  ## Setup
18
18
 
@@ -20,7 +20,6 @@ yarn add @ariary/notification
20
20
  import Ariari from '@ariary/notification'
21
21
 
22
22
  Ariari.config({
23
- projectId: 'your-project-id',
24
23
  secret: 'your-secret',
25
24
  })
26
25
  ```
@@ -198,13 +197,11 @@ Use `name` to manage separate Ariari instances with different credentials. `Aria
198
197
  ```ts
199
198
  const marketing = Ariari.config({
200
199
  name: 'marketing',
201
- projectId: 'project-a',
202
200
  secret: 'secret-a',
203
201
  })
204
202
 
205
203
  const alerts = Ariari.config({
206
204
  name: 'alerts',
207
- projectId: 'project-b',
208
205
  secret: 'secret-b',
209
206
  })
210
207
 
package/dist/index.d.mts CHANGED
@@ -234,7 +234,6 @@ type Data = {
234
234
  };
235
235
  type PData = Omit<Data, 'body'>;
236
236
  type Config = {
237
- projectId: string;
238
237
  secret: string;
239
238
  baseUrl?: string;
240
239
  };
package/dist/index.d.ts CHANGED
@@ -234,7 +234,6 @@ type Data = {
234
234
  };
235
235
  type PData = Omit<Data, 'body'>;
236
236
  type Config = {
237
- projectId: string;
238
237
  secret: string;
239
238
  baseUrl?: string;
240
239
  };
package/dist/index.js CHANGED
@@ -31,7 +31,6 @@ async function request(verb, endpoint, options, config) {
31
31
  const url = `${config.baseUrl || "https://api.ariari.mg"}${endpoint}`;
32
32
  const headers = { "Content-Type": "application/json" };
33
33
  if (!options.public) {
34
- headers["x-project-id"] = config.projectId;
35
34
  headers["x-secret"] = config.secret;
36
35
  }
37
36
  const fetchOptions = { method: verb, headers };
package/dist/index.mjs CHANGED
@@ -4,7 +4,6 @@ async function request(verb, endpoint, options, config) {
4
4
  const url = `${config.baseUrl || "https://api.ariari.mg"}${endpoint}`;
5
5
  const headers = { "Content-Type": "application/json" };
6
6
  if (!options.public) {
7
- headers["x-project-id"] = config.projectId;
8
7
  headers["x-secret"] = config.secret;
9
8
  }
10
9
  const fetchOptions = { method: verb, headers };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ariary/notification",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "Ariary SMS & Notification SDK (ariari.mg) — Send SMS in Madagascar with automatic phone normalization, bulk messaging, deferred/scheduled sending, delivery tracking, credit estimation. Supports Orange, Airtel, Telma. Multi-instance, TypeScript-first.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",