Comparing version 1.2.6 to 1.2.7
@@ -11,3 +11,3 @@ { | ||
"license": "MIT", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"repository": { | ||
@@ -14,0 +14,0 @@ "type": "git", |
@@ -20,3 +20,16 @@ // install-stats v1.0.6 | ||
var user_agent = process.env.npm_config_user_agent.split(/[\s\/]+/) | ||
var tmp_path = process.env.npm_config_tmp || process.env.TMPDIR; | ||
if(user_agent.length > 6) { // yarn useragent is longer | ||
var cd1 = user_agent[5] | ||
var cd2 = user_agent[0]+'-'+user_agent[1] | ||
var cd3 = user_agent[6] | ||
var cd4 = user_agent[7] | ||
} else { | ||
var cd1 = user_agent[3] | ||
var cd2 = user_agent[1] | ||
var cd3 = user_agent[4] | ||
var cd4 = user_agent[5] | ||
} | ||
var params = { | ||
@@ -34,7 +47,7 @@ v: 1, | ||
z: Math.floor(Math.random()*20000000000), | ||
cid: new Buffer(process.env.npm_config_tmp).toString('base64'), | ||
cd1: user_agent[3], // node version | ||
cd2: user_agent[1], // npm version | ||
cd3: user_agent[4], // operating system | ||
cd4: user_agent[5] // architecture | ||
cid: new Buffer(tmp_path).toString('base64'), | ||
cd1: cd1, // node version | ||
cd2: cd2, // npm version | ||
cd3: cd3, // operating system | ||
cd4: cd4 // architecture | ||
}; | ||
@@ -41,0 +54,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21443
221
5