Comparing version 1.3.1 to 1.3.2
'use strict' | ||
const sh = require('execa').shell | ||
const sh = require('shell-exec') | ||
module.exports = function (port) { | ||
if (!Number.parseInt(port)) { | ||
port = Number.parseInt(port) | ||
if (!port) { | ||
return Promise.reject(new Error('Invalid argument provided for port')) | ||
@@ -8,0 +10,0 @@ } |
{ | ||
"name": "kill-port", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Kill the process running on given port", | ||
@@ -34,4 +34,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"execa": "^0.10.0", | ||
"get-them-args": "^1.3.1" | ||
"get-them-args": "^1.3.1", | ||
"shell-exec": "^1.0.2" | ||
}, | ||
@@ -41,3 +41,3 @@ "devDependencies": { | ||
"jest": "^22.4.3", | ||
"standard": "^11.0.1" | ||
"standard": "^12.0.0" | ||
}, | ||
@@ -44,0 +44,0 @@ "standard": { |
Sorry, the diff of this file is not supported yet
56
6781
+ Addedshell-exec@^1.0.2
+ Addedshell-exec@1.1.2(transitive)
- Removedexeca@^0.10.0
- Removedcross-spawn@6.0.6(transitive)
- Removedexeca@0.10.0(transitive)
- Removedget-stream@3.0.0(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisexe@2.0.0(transitive)
- Removednice-try@1.0.5(transitive)
- Removednpm-run-path@2.0.2(transitive)
- Removedp-finally@1.0.0(transitive)
- Removedpath-key@2.0.1(transitive)
- Removedsemver@5.7.2(transitive)
- Removedshebang-command@1.2.0(transitive)
- Removedshebang-regex@1.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedstrip-eof@1.0.0(transitive)
- Removedwhich@1.3.1(transitive)