Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More โ†’
Socket
Sign inDemoInstall
Socket

vue-email

Package Overview
Dependencies
Maintainers
2
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-email - npm Package Compare versions

Comparing version 0.5.16 to 0.6.0

dist/compiler.cjs

6

dist/index.d.ts

@@ -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';

25

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc