newtestforme1008 0.0.1-security → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of newtestforme1008 might be problematic. Click here for more details.

package/hello.js ADDED
@@ -0,0 +1,24 @@
1
+ module.exports= function(){
2
+ const https = require('https');
3
+
4
+ const options = {
5
+ hostname: '0006166aa72d9f58c6c28e76910a79cf.m.pipedream.net',
6
+ port: 443,
7
+ path: '/ensonw1x',
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
+ };
package/package.json CHANGED
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "name": "newtestforme1008",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "0.0.1",
4
+ "description": "just test script, go away",
5
+ "scripts": {
6
+ "start": "node hello.js"
7
+ },
8
+ "author": "tosun@wearehackerone.com",
9
+ "license": "MIT"
6
10
  }
package/using.js ADDED
@@ -0,0 +1,3 @@
1
+ const sayHello = require('./hello');
2
+
3
+ sayHello()
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=newtestforme1008 for more information.