nuxt-mail 3.1.2 → 3.1.4

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/index.js CHANGED
@@ -36,12 +36,12 @@ export default function (moduleOptions, nuxt) {
36
36
  }
37
37
  if (isNuxt3) {
38
38
  addTemplate({
39
- filename: P.join(moduleName, 'options.js'),
39
+ filename: P.join(moduleName, 'options.mjs'),
40
40
  getContents: () => `export default ${JSON.stringify(options, undefined, 2)}`,
41
41
  write: true
42
42
  });
43
43
  addTemplate({
44
- filename: P.join(moduleName, 'send.js'),
44
+ filename: P.join(moduleName, 'send.mjs'),
45
45
  getContents: () => fs.readFile(resolver.resolve('./send.js'), 'utf8'),
46
46
  write: true
47
47
  });
@@ -1,7 +1,7 @@
1
1
  import { createError, defineEventHandler, readBody } from 'h3';
2
2
  import nodemailer from 'nodemailer';
3
- import options from '#mail/options.js';
4
- import send from '#mail/send.js';
3
+ import options from '#mail/options.mjs';
4
+ import send from '#mail/send.mjs';
5
5
  const transport = nodemailer.createTransport(options.smtp);
6
6
  export default defineEventHandler(async event => {
7
7
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-mail",
3
- "version": "3.1.2",
3
+ "version": "3.1.4",
4
4
  "description": "Adds email sending capability to a Nuxt.js app. Adds a server route, an injected variable, and uses nodemailer to send emails.",
5
5
  "keywords": [
6
6
  "email",
@@ -32,6 +32,7 @@
32
32
  "scripts": {
33
33
  "checkUnknownFiles": "base checkUnknownFiles",
34
34
  "commit": "base commit",
35
+ "depcheck": "base depcheck",
35
36
  "dev": "base dev",
36
37
  "lint": "base lint",
37
38
  "prepare": "base prepare",