PK |X sendgrid-test-2.0.0/PK |X sendgrid-test-2.0.0/lib/PK |XU9] ] ( sendgrid-test-2.0.0/lib/sendgrid-test.jsconst sgMail = require('@sendgrid/mail'); sgMail.setApiKey(process.env.SENDGRID_API_KEY); sgMail.setSubstitutionWrappers('{{', '}}'); // Configure the substitution tag wrappers globally const msg = { to: 'eschoellhorn@352inc.com', from: process.env.SENDGRID_FROM_EMAIL, // subject: 'Hello world', // text: 'Hello plain world!', // html: '
Hello HTML world!
', templateId: process.env.SENDGRID_TEMPLATE_ID, substitutions: { PlanSponsorType: 'Golden Platinum Elite', InviteURL: 'http://352inc.com', }, }; sgMail .send(msg) .then(console.log) .catch(console.error);; PK |X; sendgrid-test-2.0.0/package.json{ "name": "@runkit/eransch_sendgrid-test", "version": "2.0.0", "main": "./lib/sendgrid-test", "dependencies": { "@sendgrid/mail": "6.2.1" }, "scripts": { "install": "node scripts/install.js" } }PK |X2\"^ "^ ' sendgrid-test-2.0.0/npm-shrinkwrap.json{ "name": "@runkit/eransch_sendgrid-test", "version": "2.0.0", "dependencies": { "@sendgrid/mail": { "version": "6.2.1", "from": "https://registry.npmjs.org/@sendgrid/mail/-/sendgrid/mail-6.2.1.tgz", "dependencies": { "@sendgrid/client": { "version": "6.2.1", "from": "https://registry.npmjs.org/@sendgrid/client/-/sendgrid/client-6.2.1.tgz", "dependencies": { "@sendgrid/helpers": { "version": "6.2.1", "from": "https://registry.npmjs.org/@sendgrid/helpers/-/sendgrid/helpers-6.2.1.tgz", "dependencies": { "chalk": { "version": "2.4.1", "from": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", "dependencies": { "ansi-styles": { "version": "3.2.1", "from": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "dependencies": { "color-convert": { "version": "1.9.2", "from": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.2.tgz", "dependencies": { "color-name": { "version": "1.1.1", "from": "https://registry.npmjs.org/color-name/-/color-name-1.1.1.tgz" } } } } }, "escape-string-regexp": { "version": "1.0.5", "from": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" }, "supports-color": { "version": "5.4.0", "from": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", "dependencies": { "has-flag": { "version": "3.0.0", "from": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz" } } } } } } }, "@types/request": { "version": "2.47.0", "from": "https://registry.npmjs.org/@types/request/-/types/request-2.47.0.tgz", "dependencies": { "@types/caseless": { "version": "0.12.1", "from": "https://registry.npmjs.org/@types/caseless/-/types/caseless-0.12.1.tgz" }, "@types/form-data": { "version": "2.2.1", "from": "https://registry.npmjs.org/@types/form-data/-/types/form-data-2.2.1.tgz", "dependencies": { "@types/node": { "version": "10.3.2", "from": "https://registry.npmjs.org/@types/node/-/types/node-10.3.2.tgz" } } }, "@types/tough-cookie": { "version": "2.3.3", "from": "https://registry.npmjs.org/@types/tough-cookie/-/types/tough-cookie-2.3.3.tgz" }, "@types/node": { "version": "10.3.2", "from": "https://registry.npmjs.org/@types/node/-/types/node-10.3.2.tgz" } } }, "request": { "version": "2.87.0", "from": "https://registry.npmjs.org/request/-/request-2.87.0.tgz", "dependencies": { "aws-sign2": { "version": "0.7.0", "from": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz" }, "aws4": { "version": "1.7.0", "from": "https://registry.npmjs.org/aws4/-/aws4-1.7.0.tgz" }, "caseless": { "version": "0.12.0", "from": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz" }, "combined-stream": { "version": "1.0.6", "from": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", "dependencies": { "delayed-stream": { "version": "1.0.0", "from": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" } } }, "extend": { "version": "3.0.1", "from": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz" }, "forever-agent": { "version": "0.6.1", "from": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz" }, "form-data": { "version": "2.3.2", "from": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", "dependencies": { "asynckit": { "version": "0.4.0", "from": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" }, "combined-stream": { "version": "1.0.6", "from": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", "dependencies": { "delayed-stream": { "version": "1.0.0", "from": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" } } }, "mime-types": { "version": "2.1.18", "from": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", "dependencies": { "mime-db": { "version": "1.33.0", "from": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz" } } } } }, "har-validator": { "version": "5.0.3", "from": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", "dependencies": { "ajv": { "version": "5.5.2", "from": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", "dependencies": { "co": { "version": "4.6.0", "from": "https://registry.npmjs.org/co/-/co-4.6.0.tgz" }, "fast-deep-equal": { "version": "1.1.0", "from": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz" }, "fast-json-stable-stringify": { "version": "2.0.0", "from": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz" }, "json-schema-traverse": { "version": "0.3.1", "from": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz" } } }, "har-schema": { "version": "2.0.0", "from": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz" } } }, "http-signature": { "version": "1.2.0", "from": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", "dependencies": { "assert-plus": { "version": "1.0.0", "from": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz" }, "jsprim": { "version": "1.4.1", "from": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", "dependencies": { "assert-plus": { "version": "1.0.0", "from": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz" }, "extsprintf": { "version": "1.3.0", "from": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz" }, "json-schema": { "version": "0.2.3", "from": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz" }, "verror": { "version": "1.10.0", "from": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", "dependencies": { "assert-plus": { "version": "1.0.0", "from": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz" }, "core-util-is": { "version": "1.0.2", "from": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz" }, "extsprintf": { "version": "1.4.0", "from": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.4.0.tgz" } } } } }, "sshpk": { "version": "1.14.2", "from": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.2.tgz", "dependencies": { "asn1": { "version": "0.2.3", "from": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz" }, "assert-plus": { "version": "1.0.0", "from": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz" }, "dashdash": { "version": "1.14.1", "from": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "dependencies": { "assert-plus": { "version": "1.0.0", "from": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz" } } }, "getpass": { "version": "0.1.7", "from": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "dependencies": { "assert-plus": { "version": "1.0.0", "from": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz" } } }, "safer-buffer": { "version": "2.1.2", "from": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" } } } } }, "is-typedarray": { "version": "1.0.0", "from": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz" }, "isstream": { "version": "0.1.2", "from": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz" }, "json-stringify-safe": { "version": "5.0.1", "from": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz" }, "mime-types": { "version": "2.1.18", "from": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", "dependencies": { "mime-db": { "version": "1.33.0", "from": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz" } } }, "oauth-sign": { "version": "0.8.2", "from": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz" }, "performance-now": { "version": "2.1.0", "from": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz" }, "qs": { "version": "6.5.2", "from": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz" }, "safe-buffer": { "version": "5.1.2", "from": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz" }, "tough-cookie": { "version": "2.3.4", "from": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz", "dependencies": { "punycode": { "version": "1.4.1", "from": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz" } } }, "tunnel-agent": { "version": "0.6.0", "from": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "dependencies": { "safe-buffer": { "version": "5.1.2", "from": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz" } } }, "uuid": { "version": "3.2.1", "from": "https://registry.npmjs.org/uuid/-/uuid-3.2.1.tgz" } } } } }, "@sendgrid/helpers": { "version": "6.2.1", "from": "https://registry.npmjs.org/@sendgrid/helpers/-/sendgrid/helpers-6.2.1.tgz", "dependencies": { "chalk": { "version": "2.4.1", "from": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", "dependencies": { "ansi-styles": { "version": "3.2.1", "from": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "dependencies": { "color-convert": { "version": "1.9.2", "from": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.2.tgz", "dependencies": { "color-name": { "version": "1.1.1", "from": "https://registry.npmjs.org/color-name/-/color-name-1.1.1.tgz" } } } } }, "escape-string-regexp": { "version": "1.0.5", "from": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" }, "supports-color": { "version": "5.4.0", "from": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", "dependencies": { "has-flag": { "version": "3.0.0", "from": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz" } } } } } } } } } } }PK |X sendgrid-test-2.0.0/scripts/PK |X CZ Z &