-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependency update #67
Conversation
License date changed to an up-to-date one This commit should resolve sendgrid#25 and sendgrid#63.
I updated some packages due to a security vulnerability raised in [sendgrid#65](sendgrid#65) and as a follow up to the PR [sendgrid#64](sendgrid#64) (where I added a basic issue template and one use case).
The failing tests are docker related (2x, so not my area (yet)) and one regarding |
Thanks for the update @Berkmann18! |
You're welcome @thinkingserious. |
Is there any plans on merging this PR along with others I've seen? |
Hello @Berkmann18, The plan is to move this repo here, but so far that has not bubbled up on our backlog. Is that something you would be interested in helping with? Thanks! With Best Regards, Elmer |
@thinkingserious I wouldn't mind helping with that. |
Awesome @Berkmann18! Please let me know how I can help. I think the first step would be to create a branch and add a nodemailer-sendgrid-transport folder here: https://github.com/sendgrid/sendgrid-nodejs/tree/master/packages |
Okay, I will do that and try to follow the structure that the other directories have in that folder. |
Since the How can I go about resolving that? |
Hi @Berkmann18, Yes, we should update the code to use the latest version of the SDK, which is now @sendgrid/mail. |
Okay, I managed to move internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module 'sendgrid'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (/home/maxie/Dropbox/Contribs/sendgrid-nodejs/packages/contact-importer/src/importer.spec.js:9:54)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions.(anonymous function) [as .js] (/home/maxie/Dropbox/Contribs/sendgrid-nodejs/node_modules/istanbul/lib/hook.js:107:24)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at /home/maxie/Dropbox/Contribs/sendgrid-nodejs/node_modules/mocha/lib/mocha.js:250:27
at Array.forEach (<anonymous>)
at Mocha.loadFiles (/home/maxie/Dropbox/Contribs/sendgrid-nodejs/node_modules/mocha/lib/mocha.js:247:14)
at Mocha.run (/home/maxie/Dropbox/Contribs/sendgrid-nodejs/node_modules/mocha/lib/mocha.js:576:10)
at Object.<anonymous> (/home/maxie/Dropbox/Contribs/sendgrid-nodejs/node_modules/mocha/bin/_mocha:637:18)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Object.require.extensions.(anonymous function) [as .js] (/home/maxie/Dropbox/Contribs/sendgrid-nodejs/node_modules/babel-register/lib/node.js:152:7)
at Object.Module._extensions.(anonymous function) [as .js] (/home/maxie/Dropbox/Contribs/sendgrid-nodejs/node_modules/istanbul/lib/hook.js:109:37)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at runFn (/home/maxie/Dropbox/Contribs/sendgrid-nodejs/node_modules/istanbul/lib/command/common/run-with-cover.js:122:16)
at /home/maxie/Dropbox/Contribs/sendgrid-nodejs/node_modules/istanbul/lib/command/common/run-with-cover.js:251:17
at /home/maxie/Dropbox/Contribs/sendgrid-nodejs/node_modules/istanbul/lib/util/file-matcher.js:68:16
at /home/maxie/Dropbox/Contribs/sendgrid-nodejs/node_modules/async/lib/async.js:52:16
at /home/maxie/Dropbox/Contribs/sendgrid-nodejs/node_modules/async/lib/async.js:361:13
at /home/maxie/Dropbox/Contribs/sendgrid-nodejs/node_modules/async/lib/async.js:52:16
at done (/home/maxie/Dropbox/Contribs/sendgrid-nodejs/node_modules/async/lib/async.js:246:17)
at /home/maxie/Dropbox/Contribs/sendgrid-nodejs/node_modules/async/lib/async.js:44:16
at /home/maxie/Dropbox/Contribs/sendgrid-nodejs/node_modules/async/lib/async.js:358:17
at LOOP (fs.js:1539:14)
at process._tickCallback (internal/process/next_tick.js:61:11) I tried twicking things and tracing where the issue was exactly but I can't seem to find. |
Ah, it looks like the |
I tried installing it but it requires to rename the package to something different which then lead to a series of issues around js files in packages with |
I also refactored some of it such that it contains only the necessary files, as well as follow the structure that the other sub-packages follow. This commit should help with the PRs: - [NST#67](sendgrid/nodemailer-sendgrid-transport#67) - [NST#64](sendgrid/nodemailer-sendgrid-transport#64) And the following issues: - [NST#65](sendgrid/nodemailer-sendgrid-transport#65) - [NST#25](sendgrid/nodemailer-sendgrid-transport#25) The problem I face despit this commit being here is that some sub-packages require the old `sendgrid` package which works differently then this one.
I updated some dependencies after getting vulnerability warnings in a project dependent on this one (read more here: Berkmann18@1a7c367) as well as added ISSUE_TEMPLATE (with some core elements) and USE_CASE.md (with one use case so far).
Fixes #65
Closes #64
Fixes
Checklist
Short description of what this PR does:
If you have questions, please send an email to Sendgrid, or file a Github Issue in this repository.