Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

libnpmexec

Package Overview
Dependencies
Maintainers
8
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libnpmexec - npm Package Compare versions

Comparing version 6.0.2 to 6.0.3

8

lib/index.js

@@ -248,5 +248,8 @@ 'use strict'

if (!yes) {
const missingPackages = add.map(a => `${a.replace(/@$/, '')}`)
// set -n to always say no
if (yes === false) {
throw new Error('canceled')
// Error message lists missing package(s) when process is canceled
/* eslint-disable-next-line max-len */
throw new Error(`npx canceled due to missing packages and no YES option: ${JSON.stringify(missingPackages)}`)
}

@@ -261,4 +264,3 @@

} else {
const addList = add.map(a => ` ${a.replace(/@$/, '')}`)
.join('\n') + '\n'
const addList = missingPackages.join('\n') + '\n'
const prompt = `Need to install the following packages:\n${

@@ -265,0 +267,0 @@ addList

{
"name": "libnpmexec",
"version": "6.0.2",
"version": "6.0.3",
"files": [

@@ -54,3 +54,3 @@ "bin/",

"@npmcli/mock-registry": "^1.0.0",
"@npmcli/template-oss": "4.14.1",
"@npmcli/template-oss": "4.18.0",
"bin-links": "^4.0.1",

@@ -77,5 +77,5 @@ "chalk": "^5.2.0",

"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.14.1",
"version": "4.18.0",
"content": "../../scripts/template-oss/index.js"
}
}
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