pm2-perfmonitor 2.1.2 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/perf-sampler.js +3 -4
- package/package.json +1 -1
package/lib/perf-sampler.js
CHANGED
|
@@ -25,10 +25,9 @@ const getExeca = async () => {
|
|
|
25
25
|
const execCommand = async (cmd, args, options = {}) => {
|
|
26
26
|
try {
|
|
27
27
|
const execa = await getExeca()
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
})
|
|
28
|
+
|
|
29
|
+
await execa(cmd, args, options)
|
|
30
|
+
|
|
32
31
|
return true
|
|
33
32
|
} catch (err) {
|
|
34
33
|
console.error(`Command failed: ${cmd} ${args.join(' ')}`, err.message)
|