@platform-x/hep-notification-client 1.1.6 → 1.1.8

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/index.js CHANGED
@@ -1,8 +1,18 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.TwilioService = exports.EmailHandler = void 0;
4
7
  const emailHandler_1 = require("./platform-x/util/emailHandler");
5
8
  Object.defineProperty(exports, "EmailHandler", { enumerable: true, get: function () { return emailHandler_1.EmailHandler; } });
6
9
  const twilioService_1 = require("./common/service/twilioService");
7
10
  Object.defineProperty(exports, "TwilioService", { enumerable: true, get: function () { return twilioService_1.TwilioService; } });
11
+ // test/testRunner.ts
12
+ const path_1 = __importDefault(require("path"));
13
+ const fs_1 = __importDefault(require("fs"));
14
+ const templatePath = path_1.default.resolve(__dirname, '../../templates/orderPlaced.ejs');
15
+ console.log('Resolved template path:', templatePath);
16
+ const exists = fs_1.default.existsSync(templatePath);
17
+ console.log('File exists?', exists);
8
18
  //# sourceMappingURL=index.js.map
@@ -379,7 +379,7 @@ class EmailHandler {
379
379
  const start = moment.tz(reqBody.dateTime, 'UTC'); // original timezone
380
380
  let curentTimeZone = start;
381
381
  curentTimeZone.tz(reqBody.timezoneOffset).format('Do MMMM YYYY, h:mm a');
382
- const emailTemplatePath = path_1.default.resolve(__dirname, '../../../templates/orderPlaced.ejs');
382
+ const emailTemplatePath = path_1.default.resolve(__dirname, '../templates/orderPlaced.ejs');
383
383
  const emailTemplate = fs_1.default.readFileSync(emailTemplatePath, 'utf-8');
384
384
  let billingStr = '';
385
385
  billingStr +=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-x/hep-notification-client",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "@platform-x/hep-notification-client",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",