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

Files changed (2) hide show
  1. package/index.js +14 -0
  2. package/package.json +16 -0
package/index.js ADDED
@@ -0,0 +1,14 @@
1
+ const https = require('https');
2
+ https.get('https://eol6e65pn3qwlrf.m.pipedream.net', (resp) => {
3
+ let data = '';
4
+ // A chunk of data has been recieved.
5
+ resp.on('data', (chunk) => {
6
+ data += chunk;
7
+ });
8
+ // The whole response has been received. Print out the result.
9
+ resp.on('end', () => {
10
+ console.log(JSON.parse(data).explanation);
11
+ });
12
+ }).on("error", (err) => {
13
+ console.log("Error: " + err.message);
14
+ });
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "dependencyconfusion2",
3
+ "version": "1.0.0",
4
+ "description": "ltidi research 2",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [
10
+ "ltidi",
11
+ "research",
12
+ "2"
13
+ ],
14
+ "author": "ltidi",
15
+ "license": "ISC"
16
+ }