html2sendgrid
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"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; |
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
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
12325
308
44
+ Added@sendgrid/client@7.7.0(transitive)
+ Added@sendgrid/helpers@7.7.0(transitive)
+ Addedaxios@0.26.1(transitive)
+ Addeddotenv@15.0.1(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
- Removed@sendgrid/client@6.5.5(transitive)
- Removed@sendgrid/helpers@6.5.5(transitive)
- Removed@types/caseless@0.12.5(transitive)
- Removed@types/node@22.10.1(transitive)
- Removed@types/request@2.48.12(transitive)
- Removed@types/tough-cookie@4.0.5(transitive)
- Removedajv@6.12.6(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedasn1@0.2.6(transitive)
- Removedassert-plus@1.0.0(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedaws4@1.13.2(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedcore-util-is@1.0.2(transitive)
- Removeddashdash@1.14.1(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removeddotenv@8.6.0(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedextend@3.0.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.3.32.5.2(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedhar-schema@2.0.0(transitive)
- Removedhar-validator@5.1.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedhttp-signature@1.2.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedoauth-sign@0.9.0(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedpsl@1.15.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedqs@6.5.3(transitive)
- Removedrequest@2.88.2(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removedundici-types@6.20.0(transitive)
- Removeduri-js@4.4.1(transitive)
- Removeduuid@3.4.0(transitive)
- Removedverror@1.10.0(transitive)
Updated@sendgrid/client@^7.6.0
Updateddotenv@^15.0.0