|
|
@ -37,12 +37,8 @@ exports.platform = function() { |
|
|
|
return process.platform; |
|
|
|
}; |
|
|
|
|
|
|
|
var warnNetworkInterfaces = true; |
|
|
|
exports.getNetworkInterfaces = function() { |
|
|
|
if (warnNetworkInterfaces) { |
|
|
|
console.error("os.getNetworkInterfaces() is deprecated - use os.networkInterfaces()"); |
|
|
|
console.trace(); |
|
|
|
warnNetworkInterfaces = false; |
|
|
|
} |
|
|
|
require('util')._deprecationWarning('os', |
|
|
|
'os.getNetworkInterfaces() is deprecated - use os.networkInterfaces()'); |
|
|
|
return exports.networkInterfaces(); |
|
|
|
}; |
|
|
|