Skip to content

Commit

Permalink
Change npmjs link to aka.ms (#391)
Browse files Browse the repository at this point in the history
* Change npmjs link to aka.ms
  • Loading branch information
nturinski authored May 22, 2018
1 parent fd7ebf9 commit c2ba82f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/utils/functionRuntimeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as semver from 'semver';
import * as vscode from 'vscode';
import { callWithTelemetryAndErrorHandling, DialogResponses, IActionContext, parseError } from 'vscode-azureextensionui';
import { attemptToInstallLatestFunctionRuntime, getFuncPackageManager } from '../commands/createNewProject/validateFuncCoreToolsInstalled';
import { funcPackageName, isWindows, PackageManager, ProjectRuntime } from '../constants';
import { isWindows, PackageManager, ProjectRuntime } from '../constants';
import { ext } from '../extensionVariables';
import { localize } from '../localize';
import { getFuncExtensionSetting, updateGlobalSetting } from '../ProjectSettings';
Expand Down Expand Up @@ -128,8 +128,7 @@ export namespace functionRuntimeUtils {
}

async function getNewestFunctionRuntimeVersion(major: number): Promise<string | null> {
// tslint:disable-next-line:no-http-string
const npmRegistryUri: string = `http://registry.npmjs.org/-/package/${funcPackageName}/dist-tags`;
const npmRegistryUri: string = 'https://aka.ms/W2mvv3';
type distTags = { core: string, docker: string, latest: string };
const distTags: distTags = <distTags>JSON.parse((await <Thenable<string>>request(npmRegistryUri).promise()));
switch (major) {
Expand Down

0 comments on commit c2ba82f

Please sign in to comment.