@npmcli/config
Advanced tools
Comparing version 1.2.0 to 1.2.1
// Accepts a config object, returns a user-agent string | ||
const getUserAgent = (config) => { | ||
const ciName = config.get('ci-name') | ||
return config.get('user-agent') | ||
return (config.get('user-agent') || '') | ||
.replace(/\{node-version\}/gi, config.get('node-version')) | ||
@@ -6,0 +6,0 @@ .replace(/\{npm-version\}/gi, config.get('npm-version')) |
{ | ||
"name": "@npmcli/config", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "lib" |
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
42900
0