@notificationapi/node 0.0.2-alpha.1 → 0.0.2-alpha.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/src/client.js +4 -0
- package/package.json +1 -1
package/dist/src/client.js
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.NotificationAPIClient = void 0;
|
|
9
|
+
// SDK version for User-Agent header
|
|
10
|
+
const SDK_VERSION = require('../../package.json').version;
|
|
11
|
+
const USER_AGENT = `notificationapi-node/${SDK_VERSION}`;
|
|
9
12
|
const src_1 = require("../generated/src");
|
|
10
13
|
const src_2 = require("../generated/src");
|
|
11
14
|
const src_3 = require("../generated/src");
|
|
@@ -87,6 +90,7 @@ class NotificationAPIClient {
|
|
|
87
90
|
headers: {
|
|
88
91
|
Authorization: authHeader,
|
|
89
92
|
'Content-Type': 'application/json',
|
|
93
|
+
'User-Agent': USER_AGENT,
|
|
90
94
|
...config.headers
|
|
91
95
|
},
|
|
92
96
|
fetchApi: fetchApi
|
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.2",
|
|
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",
|