未验证 提交 2af05101 编写于 作者: M Martin Aeschlimann 提交者: GitHub

Merge pull request #107977 from microsoft/aeschli/107952

Backport #107952 to 1.49
......@@ -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);
......
{
"name": "code-oss-dev",
"version": "1.49.2",
"version": "1.49.3",
"distro": "97bd451b684ef610d9752cf941451085fc6e0d91",
"author": {
"name": "Microsoft Corporation"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册