pinokiod 3.10.3 → 3.10.4

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.
Files changed (2) hide show
  1. package/kernel/procs.js +7 -1
  2. package/package.json +1 -1
package/kernel/procs.js CHANGED
@@ -14,16 +14,21 @@ class Procs {
14
14
 
15
15
  const results = [];
16
16
  let pids = new Set()
17
- const lines = stdout.trim().split('\n');
17
+ let s = stdout.trim()
18
+ cosnole.log(">>>>>>>>>>", s)
19
+ const lines = s.split('\n');
18
20
 
19
21
  lines.forEach(line => {
22
+ console.log({ line, isWin })
20
23
  if (isWin) {
21
24
  // Skip headers
22
25
  if (!line.startsWith(' TCP')) return;
23
26
  const parts = line.trim().split(/\s+/);
24
27
  const [ , localAddress, , state, pid ] = parts;
28
+ console.log({ parts, localAddress, state, pid })
25
29
  if (state !== 'LISTENING') return;
26
30
  const chunks = localAddress.split(":")
31
+ console.log({ chunks })
27
32
  const port = chunks.pop()
28
33
  let ip = chunks.pop()
29
34
  if (!ip || ip === "*") {
@@ -31,6 +36,7 @@ class Procs {
31
36
  } else {
32
37
  ip = localAddress
33
38
  }
39
+ console.log({ port, ip })
34
40
  if (pids.has(pid+"/"+port)) return;
35
41
  pids.add(pid+"/"+port)
36
42
  results.push({ port, pid, ip });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.10.3",
3
+ "version": "3.10.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {