Comparing version 0.5.16 to 0.6.0
@@ -1,1 +0,5 @@ | ||
export * from './src/index' | ||
export { VueEmailPlugin } from './plugin'; | ||
export * from './types'; | ||
export * from './utils'; | ||
export * from './components'; | ||
export { useRender } from './composables/render'; |
{ | ||
"name": "vue-email", | ||
"type": "module", | ||
"version": "0.5.16", | ||
"version": "0.6.0", | ||
"description": "๐ Write email templates with Vue", | ||
@@ -41,2 +41,7 @@ "author": "David Arenas <davejs136@gmail.com> (https://github.com/Dave136/)", | ||
}, | ||
"./compiler": { | ||
"import": "./dist/compiler.mjs", | ||
"require": "./dist/compiler.cjs", | ||
"types": "./dist/compiler.d.ts" | ||
}, | ||
"./nuxt": "./nuxt/index.mjs" | ||
@@ -60,4 +65,5 @@ }, | ||
"isomorphic-dompurify": "^1.8.0", | ||
"pretty": "^2.0.0", | ||
"node-html-parser": "^6.1.5" | ||
"module-from-string": "^3.3.0", | ||
"node-html-parser": "^6.1.5", | ||
"pretty": "^2.0.0" | ||
}, | ||
@@ -88,2 +94,3 @@ "peerDependenciesMeta": { | ||
"ufo": "^1.1.2", | ||
"unbuild": "^1.2.1", | ||
"vite": "4.4.7", | ||
@@ -93,6 +100,7 @@ "vite-plugin-banner": "^0.7.0", | ||
"vitest": "^0.33.0", | ||
"vue": "^3.3.4" | ||
"vue": "^3.3.4", | ||
"vue-email": "0.6.0" | ||
}, | ||
"scripts": { | ||
"build": "vite build", | ||
"build": "vite build && unbuild", | ||
"dev": "vite build --watch", | ||
@@ -104,4 +112,4 @@ "release": "changelogen --release", | ||
"test:coverage": "vitest run --coverage", | ||
"test": "pnpm test:unit", | ||
"__": "__", | ||
"test": "pnpm test:unit && pnpm test:coverage", | ||
"test:watch": "vitest watch", | ||
"dev:nuxt": "nuxt dev playgrounds/nuxt", | ||
@@ -116,4 +124,5 @@ "build:nuxt": "nuxt build playgrounds/nuxt", | ||
"dev:client": "nuxt dev client", | ||
"build:client": "nuxt generate client" | ||
"build:client": "nuxt generate client", | ||
"prepublish": "pnpm run build" | ||
} | ||
} |
@@ -18,2 +18,3 @@ [![vue-email](https://github.com/Dave136/vue-email/blob/main/docs/public/social-preview.jpg?raw=true)](https://vue-email.vercel.app) | ||
- ๐งฉ Build email templates with Vue components | ||
- ๐ค๏ธ [SSR support](https://vue-email.vercel.app/getting-started/ssr), Runs on the server and client | ||
- ๐จ [Integrates with many email providers](https://vue-email.vercel.app/integrations/nodemailer) | ||
@@ -61,2 +62,32 @@ - ๐งช Tested against popular email clients | ||
## Advanced Usage - SSR | ||
> [๐ Read the SSR documentation](https://vue-email.vercel.app/getting-started/ssr) | ||
```js | ||
import express from "express"; | ||
import { config } from "vue-email/compiler"; | ||
const app = express(); | ||
const vueEmail = config("./templates", { | ||
verbose: false, | ||
options: { | ||
baseUrl: "https://vue-email-demo.vercel.app/", | ||
}, | ||
}); | ||
app.get("/", async function (req, res) { | ||
const template = await vueEmail.render("WelcomeEmail.vue", { | ||
props: { | ||
name: "John Doe", | ||
}, | ||
}); | ||
res.send(template); | ||
}); | ||
app.listen(3000); | ||
``` | ||
## ๐ป Development | ||
@@ -63,0 +94,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1060739
12430
115
7
25
51
21
+ Addedmodule-from-string@^3.3.0
+ Added@esbuild/aix-ppc64@0.23.1(transitive)
+ Added@esbuild/android-arm@0.23.1(transitive)
+ Added@esbuild/android-arm64@0.23.1(transitive)
+ Added@esbuild/android-x64@0.23.1(transitive)
+ Added@esbuild/darwin-arm64@0.23.1(transitive)
+ Added@esbuild/darwin-x64@0.23.1(transitive)
+ Added@esbuild/freebsd-arm64@0.23.1(transitive)
+ Added@esbuild/freebsd-x64@0.23.1(transitive)
+ Added@esbuild/linux-arm@0.23.1(transitive)
+ Added@esbuild/linux-arm64@0.23.1(transitive)
+ Added@esbuild/linux-ia32@0.23.1(transitive)
+ Added@esbuild/linux-loong64@0.23.1(transitive)
+ Added@esbuild/linux-mips64el@0.23.1(transitive)
+ Added@esbuild/linux-ppc64@0.23.1(transitive)
+ Added@esbuild/linux-riscv64@0.23.1(transitive)
+ Added@esbuild/linux-s390x@0.23.1(transitive)
+ Added@esbuild/linux-x64@0.23.1(transitive)
+ Added@esbuild/netbsd-x64@0.23.1(transitive)
+ Added@esbuild/openbsd-arm64@0.23.1(transitive)
+ Added@esbuild/openbsd-x64@0.23.1(transitive)
+ Added@esbuild/sunos-x64@0.23.1(transitive)
+ Added@esbuild/win32-arm64@0.23.1(transitive)
+ Added@esbuild/win32-ia32@0.23.1(transitive)
+ Added@esbuild/win32-x64@0.23.1(transitive)
+ Added@nuxt/kit@3.15.0(transitive)
+ Added@nuxt/schema@3.15.0(transitive)
+ Addeddomutils@3.2.1(transitive)
+ Addedesbuild@0.23.1(transitive)
+ Addedignore@7.0.0(transitive)
+ Addedmodule-from-string@3.3.1(transitive)
- Removed@nuxt/kit@3.14.1592(transitive)
- Removed@nuxt/schema@3.14.1592(transitive)
- Removeddomutils@3.1.0(transitive)
- Removedhash-sum@2.0.0(transitive)
- Removedignore@6.0.2(transitive)