port-numbers
Advanced tools
Comparing version 2.0.28 to 4.0.0
@@ -44,5 +44,3 @@ "use strict"; | ||
// filter non-matching protocols | ||
const port = entry.ports.filter(function(port) { | ||
return /\w+$/.exec(port)[0] === protocol; | ||
})[0]; | ||
const port = entry.ports.filter(port => /\w+$/.exec(port)[0] === protocol)[0]; | ||
@@ -49,0 +47,0 @@ if (!port) { |
{ | ||
"name": "port-numbers", | ||
"version": "2.0.28", | ||
"version": "4.0.0", | ||
"description": "Get information on network port numbers and services, based on IANA's public listing", | ||
@@ -12,3 +12,3 @@ "author": "silverwind <me@silverwind.io> (https://github.com/silverwind)", | ||
"engines": { | ||
"node": ">=4" | ||
"node": ">=6" | ||
}, | ||
@@ -32,7 +32,8 @@ "keywords": [ | ||
"devDependencies": { | ||
"csv-parse": "2.2.0", | ||
"csv-parse": "2.4.0", | ||
"eslint": "^4.19.1", | ||
"got": "^8.3.0", | ||
"updates": "^2.4.1" | ||
"eslint-config-silverwind": "^1.0.42", | ||
"got": "^8.3.1", | ||
"updates": "^3.0.0" | ||
} | ||
} |
1750071
5
90791