dgram: refactor dgram to module.exports
Refactor dgram module to use the more efficient module.exports = {} pattern.
See https://github.com/nodejs/node/pull/11611
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
dgram