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

html2sendgrid

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html2sendgrid - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

6

package.json
{
"name": "html2sendgrid",
"version": "1.0.4",
"version": "1.0.5",
"description": "A CLI command to publish HTML files as Dynamic Templates on Sendgrid",

@@ -20,6 +20,6 @@ "main": "src/index.js",

"@lidio601/logger": "^1.0.3",
"@sendgrid/client": "^6.4.0",
"dotenv": "^8.2.0",
"@sendgrid/client": "^7.6.0",
"dotenv": "^15.0.0",
"lodash": "^4.17.21"
}
}

@@ -32,1 +32,13 @@ # HTML2Sendgrid

```
## Max version per template
```
export MAX_VERSION_PER_TEMPLATE=5
```
If you set this variable the module will automatically rotate the versions of the template by keeping the last N versions.
This is useful because Sendgrid has a limit of 300 versions per account.
If you have multiple template within the same account you might want to limit how many versions of a template you want to keep in order to not hit this limit.
#!/usr/bin/env node
require('html2sendgrid');
const html2sendgrid = require("./index");
html2sendgrid().catch((err) => {
if (err.code) {
console.log("Sendgrid API error");
console.log('HTTP', err.code, err.message);
console.log(JSON.stringify(err.response.body, null, 2));
} else {
console.error(err);
}
});

@@ -48,2 +48,2 @@ const _ = require("lodash");

run();
module.exports = run;
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