@platform-x/hep-notification-client 1.1.7 → 1.1.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.
|
@@ -63,7 +63,6 @@ const dompurify_1 = __importDefault(require("dompurify"));
|
|
|
63
63
|
const jsdom_1 = require("jsdom");
|
|
64
64
|
const logger_1 = require("../../common/util/logger");
|
|
65
65
|
const path_1 = __importDefault(require("path"));
|
|
66
|
-
const fs_1 = __importDefault(require("fs"));
|
|
67
66
|
const window = new jsdom_1.JSDOM('').window;
|
|
68
67
|
const DOMPurify = (0, dompurify_1.default)(window);
|
|
69
68
|
// NOSONAR-NEXT-LINE
|
|
@@ -379,8 +378,8 @@ class EmailHandler {
|
|
|
379
378
|
const start = moment.tz(reqBody.dateTime, 'UTC'); // original timezone
|
|
380
379
|
let curentTimeZone = start;
|
|
381
380
|
curentTimeZone.tz(reqBody.timezoneOffset).format('Do MMMM YYYY, h:mm a');
|
|
382
|
-
const
|
|
383
|
-
|
|
381
|
+
const emailTemplate = path_1.default.resolve(__dirname, '../../../templates/orderPlaced.ejs');
|
|
382
|
+
console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>.', emailTemplate);
|
|
384
383
|
let billingStr = '';
|
|
385
384
|
billingStr +=
|
|
386
385
|
Object.keys(reqBody.billing_address).length !== 0
|
package/package.json
CHANGED
package/dist/test.index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/test.index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
// test/testRunner.ts
|
|
7
|
-
const path_1 = __importDefault(require("path"));
|
|
8
|
-
const fs_1 = __importDefault(require("fs"));
|
|
9
|
-
const templatePath = path_1.default.resolve(__dirname, 'templates/orderPlaced.ejs');
|
|
10
|
-
console.log('Resolved template path:', templatePath);
|
|
11
|
-
const exists = fs_1.default.existsSync(templatePath);
|
|
12
|
-
console.log('File exists?', exists);
|
|
13
|
-
//# sourceMappingURL=test.index.js.map
|