[mailparser] Add support for MailParser options#56983
[mailparser] Add support for MailParser options#56983typescript-bot merged 1 commit intoDefinitelyTyped:masterfrom webstech:cw/nodemailer
Conversation
|
@webstech Thank you for submitting this PR! This is a live comment which I will keep updated. 1 package in this PR
Code ReviewsBecause you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it. You can test the changes of this PR in the Playground. Status
All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 56983,
"author": "webstech",
"headCommitOid": "1f0c6a84e2815e4303802a763c41dfb71a4fb545",
"lastPushDate": "2021-11-06T18:43:06.000Z",
"lastActivityDate": "2021-11-07T17:43:50.000Z",
"mergeOfferDate": "2021-11-07T10:40:23.000Z",
"mergeRequestDate": "2021-11-07T17:43:50.000Z",
"mergeRequestUser": "webstech",
"hasMergeConflict": false,
"isFirstContribution": false,
"tooManyFiles": false,
"popularityLevel": "Well-liked by everyone",
"pkgInfo": [
{
"name": "mailparser",
"kind": "edit",
"files": [
{
"path": "types/mailparser/index.d.ts",
"kind": "definition"
},
{
"path": "types/mailparser/mailparser-tests.ts",
"kind": "test"
},
{
"path": "types/mailparser/package.json",
"kind": "package-meta-ok"
}
],
"owners": [
"psnider",
"Avol-V",
"peterblazejewicz"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Well-liked by everyone"
}
],
"reviews": [
{
"type": "approved",
"reviewer": "peterblazejewicz",
"date": "2021-11-07T10:39:47.000Z",
"isMaintainer": true
}
],
"mainBotCommentID": 961652281,
"ciResult": "pass"
} |
|
🔔 @psnider @Avol-V @peterblazejewicz — please review this PR in the next few days. Be sure to explicitly select |
|
@webstech The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review. |
|
@webstech The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review. |
|
Apologies to the reviewers. I need to figure out what this error means. Any suggestions are welcome. |
You need to submit PR to microsoft/DefinitelyTyped-tools, see similar one: |
|
@peterblazejewicz Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review? |
Thanks for pointing me in the right direction. Yes, the message pretty much says that but the DT README does not really talk about it in the |
Extend both simpleParser and MailParser to support the documented options. simpleParserOptions was kept for compatability. To support `iconv-lite`, a `package.json` has been added. Signed-off-by: Chris. Webster <chris@webstech.net>
|
@peterblazejewicz Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review? |
peterblazejewicz
left a comment
There was a problem hiding this comment.
LGTM!
@webstech thx!
|
@webstech: Everything looks good here. I am ready to merge this PR (at 1f0c6a8) on your behalf whenever you think it's ready. If you'd like that to happen, please post a comment saying:
and I'll merge this PR almost instantly. Thanks for helping out! ❤️ (@psnider, @Avol-V, @peterblazejewicz: you can do this too.) |
|
Ready to merge |
Extend both simpleParser and MailParser to support the documented options. simpleParserOptions was kept for compatibility.
To support
iconv-lite, apackage.jsonhas been added.Use a meaningful title for the pull request. Include the name of the package modified.
Test the change in your own code. (Compile and run.)
Add or edit tests to reflect the change.
Follow the advice from the readme.
Avoid common mistakes.
Run
npm test <package to test>.NOTE this gets errors:
Error: Errors in typescript@3.6 for external dependencies:
../node/assert.d.ts(12,64): error TS2304: Cannot find name 'asserts'.
UPDATE: Need fresh
npm installto update old install.Provide a URL to documentation or source code which provides context for the suggested changes: https://nodemailer.com/extras/mailparser/#options
If this PR brings the type definitions up to date with a new version of the JS library, update the version number in the header.