Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@npmcli/package-json

Package Overview
Dependencies
Maintainers
6
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@npmcli/package-json - npm Package Compare versions

Comparing version
7.0.2
to
7.0.3
+1
-1
lib/normalize.js

@@ -477,3 +477,3 @@ const valid = require('semver/functions/valid')

// expand "directories.bin"
if (steps.includes('binDir') && data.directories?.bin && !data.bin) {
if (steps.includes('binDir') && data.directories?.bin && !data.bin && pkg.path) {
const binPath = secureAndUnixifyPath(data.directories.bin)

@@ -480,0 +480,0 @@ const bins = await lazyLoadGlob()('**', { cwd: path.resolve(pkg.path, binPath) })

{
"name": "@npmcli/package-json",
"version": "7.0.2",
"version": "7.0.3",
"description": "Programmatic API to update package.json",

@@ -33,3 +33,3 @@ "keywords": [

"@npmcli/git": "^7.0.0",
"glob": "^11.0.3",
"glob": "^12.0.0",
"hosted-git-info": "^9.0.0",

@@ -36,0 +36,0 @@ "json-parse-even-better-errors": "^5.0.0",