Skip to content

Commit 2af0510

Browse files
authored
Merge pull request #107977 from microsoft/aeschli/107952
Backport #107952 to 1.49
2 parents e5e9e69 + 1f5fad9 commit 2af0510

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

extensions/npm/src/features/packageJSONContribution.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ export class PackageJSONContribution implements IJSONContribution {
282282

283283
private npmView(pack: string): Promise<ViewPackageInfo | undefined> {
284284
return new Promise((resolve, _reject) => {
285-
const command = 'npm view --json ' + pack + ' description dist-tags.latest homepage version';
286-
cp.exec(command, (error, stdout) => {
285+
const args = ['view', '--json', pack, 'description', 'dist-tags.latest', 'homepage', 'version'];
286+
cp.execFile('npm', args, (error, stdout) => {
287287
if (!error) {
288288
try {
289289
const content = JSON.parse(stdout);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "code-oss-dev",
3-
"version": "1.49.2",
3+
"version": "1.49.3",
44
"distro": "97bd451b684ef610d9752cf941451085fc6e0d91",
55
"author": {
66
"name": "Microsoft Corporation"

0 commit comments

Comments
 (0)