diff options
author | Martin Aeschlimann <martinae@microsoft.com> | 2020-10-02 19:06:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-02 19:06:59 +0300 |
commit | 2af051012b66169dde0c4dfae3f5ef48f787ff69 (patch) | |
tree | 7bab09beb550e7c0f02d952efa5dc21e25457c3c | |
parent | e5e9e69aed6e1984f7499b7af85b3d05f9a6883a (diff) | |
parent | 1f5fad95ef2de6cd2e013566f88bea5182aa483c (diff) |
Merge pull request #107977 from microsoft/aeschli/1079521.49.3release/1.49
Backport #107952 to 1.49
-rw-r--r-- | extensions/npm/src/features/packageJSONContribution.ts | 4 | ||||
-rw-r--r-- | package.json | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/extensions/npm/src/features/packageJSONContribution.ts b/extensions/npm/src/features/packageJSONContribution.ts index f154a875239..7103ce1fa1a 100644 --- a/extensions/npm/src/features/packageJSONContribution.ts +++ b/extensions/npm/src/features/packageJSONContribution.ts @@ -282,8 +282,8 @@ export class PackageJSONContribution implements IJSONContribution { private npmView(pack: string): Promise<ViewPackageInfo | undefined> { return new Promise((resolve, _reject) => { - const command = 'npm view --json ' + pack + ' description dist-tags.latest homepage version'; - cp.exec(command, (error, stdout) => { + const args = ['view', '--json', pack, 'description', 'dist-tags.latest', 'homepage', 'version']; + cp.execFile('npm', args, (error, stdout) => { if (!error) { try { const content = JSON.parse(stdout); diff --git a/package.json b/package.json index 1a578fc5e99..9b5ee0f8763 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "code-oss-dev", - "version": "1.49.2", + "version": "1.49.3", "distro": "97bd451b684ef610d9752cf941451085fc6e0d91", "author": { "name": "Microsoft Corporation" |