libnpmexec
Advanced tools
Comparing version 6.0.2 to 6.0.3
@@ -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" | ||
} | ||
} |
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
17260
374