mktcms 0.1.8 → 0.1.10

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mktcms",
3
3
  "configKey": "mktcms",
4
- "version": "0.1.8",
4
+ "version": "0.1.10",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { defineNuxtModule, createResolver, addServerImportsDir, addServerPlugin, addServerHandler, extendPages } from '@nuxt/kit';
1
+ import { defineNuxtModule, createResolver, addServerImports, addServerPlugin, addServerHandler, extendPages } from '@nuxt/kit';
2
2
  import defu from 'defu';
3
3
 
4
4
  const module$1 = defineNuxtModule({
@@ -24,7 +24,10 @@ const module$1 = defineNuxtModule({
24
24
  mailerFrom: "",
25
25
  mailerTo: ""
26
26
  }));
27
- addServerImportsDir(resolver.resolve("runtime/server/utils"));
27
+ addServerImports({
28
+ name: "sendMail",
29
+ from: resolver.resolve("runtime/server/utils/sendMail")
30
+ });
28
31
  addServerPlugin(resolver.resolve("./runtime/server/plugins/storage"));
29
32
  addServerHandler({
30
33
  middleware: true,
@@ -1,5 +1,5 @@
1
1
  import nodemailer from "nodemailer";
2
- import { useRuntimeConfig } from "#imports";
2
+ import { useRuntimeConfig } from "nitropack/runtime";
3
3
  export default async function sendMail({ subject, fields }) {
4
4
  const { mktcms: { smtpHost, smtpPort, smtpUser, smtpPass, smtpSecure, mailerFrom, mailerTo } } = useRuntimeConfig();
5
5
  const transporter = nodemailer.createTransport({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mktcms",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "Simple CMS module for Nuxt",
5
5
  "repository": "mktcode/mktcms",
6
6
  "license": "MIT",