Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Exposes a function mapping DNS errors to DnsError objects.
The defined DnsError objects are created via createerror.
Make sure you have node.js and npm installed, then run:
npm install dnserrors
The primary use case is wrapping errors originating from dns operations:
var dns = require('dns');
var dnsErrors = require('dnserrors');
dns.lookup('qovwiejiqvwiejvoqwevqwev.com', function (err) {
var dnsError = dnsErrors(err);
console.warn(dnsError.toString()); // ENOTFOUND: getaddrinfo ENOTFOUND
});
Other errors will be marked as not being dns errors:
var dnsErrors = require('dnserrors');
var err = new Error();
var dnsError = dnsErrors(err);
if (dnsError.NotDnsError) {
// what am I?
}
The following is a list of dns errors mapped by this module:
3-clause BSD license -- see the LICENSE
file for details.
FAQs
Maps dns errors to DnsError objects subclassing httperrors.
The npm package dnserrors receives a total of 11,296 weekly downloads. As such, dnserrors popularity was classified as popular.
We found that dnserrors demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.