Comparing version 0.0.4 to 0.0.5
@@ -16,12 +16,12 @@ /* ================================================================ | ||
var network = require('os').networkInterfaces() | ||
var network = require('os').networkInterfaces(); | ||
for (var n in network) { | ||
var ipv4 = network[n].filter(function(i) { | ||
return i.family === 'IPv4' && !i.internal | ||
}) | ||
return i.family === 'IPv4' && !i.internal; | ||
}); | ||
if (ipv4.length) { | ||
module.exports = ipv4[0].address | ||
return | ||
module.exports = ipv4[0].address; | ||
break; | ||
} | ||
@@ -31,2 +31,2 @@ } | ||
// Fallback | ||
module.exports = '0.0.0.0' | ||
module.exports = '0.0.0.0'; |
{ | ||
"name": "ipv4", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "ipv4", | ||
@@ -5,0 +5,0 @@ "bin": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5526
1