Socket
Socket
Sign inDemoInstall

@npmcli/config

Package Overview
Dependencies
Maintainers
6
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@npmcli/config - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

lib/get-user-agent.js
// 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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc