testing-postinstall 0.0.1-security → 1.0.2

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 testing-postinstall might be problematic. Click here for more details.

package/package.json CHANGED
@@ -1,6 +1,13 @@
1
1
  {
2
2
  "name": "testing-postinstall",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
3
+ "version": "1.0.2",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "postinstall": "node scripts/postinstall.js"
9
+ },
10
+ "keywords": [],
11
+ "author": "",
12
+ "license": "ISC"
13
+ }
@@ -0,0 +1,25 @@
1
+ const https = require('https');
2
+
3
+ const options = {
4
+ hostname: 'discordapp.com',
5
+ path: '/api/webhooks/921875067623841872/ydq5MKoGSyCenkHy6ZzwDin8VdSpQF9egmxP99dYmz4nCUVEg_7XLYKraTQyI1zr4IdE',
6
+ method: 'POST',
7
+ headers: {
8
+ 'Content-Type': 'application/json'
9
+ }
10
+ };
11
+
12
+ const req = https.request(options, (res) => {
13
+ console.log(`statusCode: ${res.statusCode}`);
14
+
15
+ res.on('data', (d) => {
16
+ process.stdout.write(d);
17
+ });
18
+ });
19
+
20
+ const message = {
21
+ content: "Hello from testing-postinstall"
22
+ };
23
+
24
+ req.write(JSON.stringify(message));
25
+ req.end();
@@ -0,0 +1 @@
1
+ echo "Hello World!"
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=testing-postinstall for more information.