-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add timeout option for MX DNS record lookup
Add optional second parameter `opts`, an object that can contain the properties `timeout` and `checkMx`. The `checkMx` property of the `opts` object overrides the `checkMx` function parameter. The `timeout` property, in `ms` module format, specifies the timeout for the DNS MX record lookup, the default is 10 seconds. Add test, example and update the API documentation. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
- Loading branch information
Showing
4 changed files
with
67 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ | |
"jest": "^29.7.0" | ||
}, | ||
"dependencies": { | ||
"validator": "^13.11.0" | ||
"validator": "^13.11.0", | ||
"ms": "^2.1.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters