@notificationapi/node 0.0.2-alpha.2 → 0.0.2-alpha.3
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 +7 -2
- package/package.json +1 -1
package/dist/src/client.js
CHANGED
|
@@ -4,12 +4,17 @@
|
|
|
4
4
|
* DO NOT EDIT MANUALLY - changes will be overwritten
|
|
5
5
|
* Edit templates/client-wrapper.mustache instead
|
|
6
6
|
*/
|
|
7
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
+
};
|
|
7
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
11
|
exports.NotificationAPIClient = void 0;
|
|
12
|
+
const src_1 = require("../generated/src");
|
|
13
|
+
// @ts-expect-error - Path is correct at runtime (from dist/src/), not during compilation
|
|
14
|
+
const package_json_1 = __importDefault(require("../../package.json"));
|
|
9
15
|
// SDK version for User-Agent header
|
|
10
|
-
const SDK_VERSION =
|
|
16
|
+
const SDK_VERSION = package_json_1.default.version;
|
|
11
17
|
const USER_AGENT = `notificationapi-node/${SDK_VERSION}`;
|
|
12
|
-
const src_1 = require("../generated/src");
|
|
13
18
|
const src_2 = require("../generated/src");
|
|
14
19
|
const src_3 = require("../generated/src");
|
|
15
20
|
const src_4 = require("../generated/src");
|
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.3",
|
|
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",
|