@notificationapi/node 0.0.2-alpha.8 → 0.0.2-alpha.9
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/src/client.d.ts +3 -3
- package/dist/src/client.js +3 -3
- package/package.json +1 -1
package/dist/src/client.d.ts
CHANGED
|
@@ -29,9 +29,9 @@ export type NotificationAPIRegion = 'us' | 'eu' | 'ca';
|
|
|
29
29
|
export interface NotificationAPIClientConfig {
|
|
30
30
|
/**
|
|
31
31
|
* API region (defaults to 'us')
|
|
32
|
-
* - 'us': api.
|
|
33
|
-
* - 'eu': api.eu.
|
|
34
|
-
* - 'ca': api.ca.
|
|
32
|
+
* - 'us': api.pingram.io (default)
|
|
33
|
+
* - 'eu': api.eu.pingram.io
|
|
34
|
+
* - 'ca': api.ca.pingram.io
|
|
35
35
|
*/
|
|
36
36
|
region?: NotificationAPIRegion;
|
|
37
37
|
/**
|
package/dist/src/client.js
CHANGED
|
@@ -37,9 +37,9 @@ const testing_1 = require("./testing");
|
|
|
37
37
|
*/
|
|
38
38
|
function getRegionBaseUrl(region = 'us') {
|
|
39
39
|
const regionUrls = {
|
|
40
|
-
us: 'https://api.
|
|
41
|
-
eu: 'https://api.eu.
|
|
42
|
-
ca: 'https://api.ca.
|
|
40
|
+
us: 'https://api.pingram.io',
|
|
41
|
+
eu: 'https://api.eu.pingram.io',
|
|
42
|
+
ca: 'https://api.ca.pingram.io'
|
|
43
43
|
};
|
|
44
44
|
return regionUrls[region];
|
|
45
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@notificationapi/node",
|
|
3
|
-
"version": "0.0.2-alpha.
|
|
3
|
+
"version": "0.0.2-alpha.9",
|
|
4
4
|
"description": "Official Node.js SDK for NotificationAPI - Send notifications via Email, SMS, Push, In-App, and more",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|