Socket
Socket
Sign inDemoInstall

@npmcli/config

Package Overview
Dependencies
Maintainers
5
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 8.3.3 to 8.3.4

6

lib/index.js

@@ -672,8 +672,8 @@ // TODO: set the scope config from package.json or explicit cli config

if (this.localPrefix && hasPackageJson) {
const rpj = require('read-package-json-fast')
const pkgJson = require('@npmcli/package-json')
// if we already set localPrefix but this dir has a package.json
// then we need to see if `p` is a workspace root by reading its package.json
// however, if reading it fails then we should just move on
const pkg = await rpj(resolve(p, 'package.json')).catch(() => false)
if (!pkg) {
const { content: pkg } = await pkgJson.normalize(p).catch(() => ({ content: {} }))
if (!pkg?.workspaces) {
continue

@@ -680,0 +680,0 @@ }

{
"name": "@npmcli/config",
"version": "8.3.3",
"version": "8.3.4",
"files": [

@@ -40,2 +40,3 @@ "bin/",

"@npmcli/map-workspaces": "^3.0.2",
"@npmcli/package-json": "^5.1.1",
"ci-info": "^4.0.0",

@@ -45,3 +46,2 @@ "ini": "^4.1.2",

"proc-log": "^4.2.0",
"read-package-json-fast": "^3.0.2",
"semver": "^7.3.5",

@@ -48,0 +48,0 @@ "walk-up-path": "^3.0.1"

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc