medusa-plugin-ses 2.0.0 → 2.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "medusa-plugin-ses",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "AWS SES transactional emails using local handlebars templates",
5
5
  "main": "index.js",
6
6
  "repository": {
package/services/ses.js CHANGED
@@ -295,7 +295,7 @@ var SESService = /*#__PURE__*/function (_NotificationService) {
295
295
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
296
296
  while (1) switch (_context3.prev = _context3.next) {
297
297
  case 0:
298
- base = _path["default"].resolve(__dirname, '../../', this.options_.template_path, templateId); // The absolute path below is useful when using yarn link or npm link
298
+ base = _path["default"].resolve(__dirname, '../../../', this.options_.template_path, templateId); // The absolute path below is useful when using yarn link or npm link
299
299
  //const base = path.resolve(this.options_.template_path, templateId)
300
300
  subjectTemplate = _handlebars["default"].compile(_fs["default"].readFileSync(_path["default"].join(base, 'subject.hbs'), "utf8"));
301
301
  htmlTemplate = _handlebars["default"].compile(_fs["default"].readFileSync(_path["default"].join(base, 'html.hbs'), "utf8"));
@@ -227,7 +227,7 @@ class SESService extends NotificationService {
227
227
  }
228
228
 
229
229
  async compileTemplate(templateId, data) {
230
- const base = path.resolve(__dirname, '../../', this.options_.template_path, templateId)
230
+ const base = path.resolve(__dirname, '../../../', this.options_.template_path, templateId)
231
231
  // The absolute path below is useful when using yarn link or npm link
232
232
  //const base = path.resolve(this.options_.template_path, templateId)
233
233
  const subjectTemplate = Handlebars.compile(fs.readFileSync(path.join(base, 'subject.hbs'), "utf8"))