Skip to content

Commit 8699c48

Browse files
Fix broken sames from lib rename. (#209)
1 parent 4b34798 commit 8699c48

File tree

9 files changed

+39
-49
lines changed

9 files changed

+39
-49
lines changed

api/opensource/node-http-ntlm/readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
//
33
// As of this writing, it is a part of the node-http-ntlm module produced by SamDecrock.
44
//
5-
// It is used as a part of the NTLM support provided by the vso-node-api library.
5+
// It is used as a part of the NTLM support provided by the azure-devops-node-api library.
66
//

samples/build.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as cm from './common';
2-
import * as vm from 'vso-node-api';
2+
import * as vm from 'azure-devops-node-api';
33

4-
import * as ba from 'vso-node-api/BuildApi';
5-
import * as bi from 'vso-node-api/interfaces/BuildInterfaces';
4+
import * as ba from 'azure-devops-node-api/BuildApi';
5+
import * as bi from 'azure-devops-node-api/interfaces/BuildInterfaces';
66

77
export async function run() {
88
try

samples/buildArtifact.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// A sample showing how to list VSTS build artifacts, and how to download a zip of a VSTS build artifact.
22
import * as cm from './common';
3-
import * as vm from 'vso-node-api';
3+
import * as vm from 'azure-devops-node-api';
44
import * as fs from 'fs';
55

6-
import * as ba from 'vso-node-api/BuildApi';
7-
import * as bi from 'vso-node-api/interfaces/BuildInterfaces';
6+
import * as ba from 'azure-devops-node-api/BuildApi';
7+
import * as bi from 'azure-devops-node-api/interfaces/BuildInterfaces';
88

99
export async function run() {
1010
try

samples/common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as vm from 'vso-node-api';
2-
import * as lim from 'vso-node-api/interfaces/LocationsInterfaces';
1+
import * as vm from 'azure-devops-node-api';
2+
import * as lim from 'azure-devops-node-api/interfaces/LocationsInterfaces';
33

44
function getEnv(name: string): string {
55
let val = process.env[name];

samples/creation.ts

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,27 @@
11
import * as common from './common';
2-
import * as fs from 'fs';
3-
import * as path from 'path';
4-
import * as stream from 'stream';
5-
import * as vsoNodeApi from 'vso-node-api';
6-
7-
import { Build, Timeline } from 'vso-node-api/interfaces/BuildInterfaces';
8-
import { ContributedFeature } from 'vso-node-api/interfaces/FeatureManagementInterfaces';
9-
import { FileContainer } from 'vso-node-api/interfaces/FileContainerInterfaces';
10-
import { GitRepository, TfvcChangesetRef } from 'vso-node-api/interfaces/TfvcInterfaces';
11-
import { Identity, IdentitySelf } from 'vso-node-api/interfaces/IdentitiesInterfaces';
12-
import { Plan } from 'vso-node-api/interfaces/WorkInterfaces';
13-
import { PolicyType } from 'vso-node-api/interfaces/PolicyInterfaces';
14-
import { ProfileRegions } from 'vso-node-api/interfaces/ProfileInterfaces';
15-
import { ProjectLanguageAnalytics } from 'vso-node-api/interfaces/ProjectAnalysisInterfaces';
16-
import { Release } from 'vso-node-api/interfaces/ReleaseInterfaces';
17-
import { ResourceAreaInfo } from 'vso-node-api/interfaces/LocationsInterfaces';
18-
import { RequestedExtension } from 'vso-node-api/interfaces/ExtensionManagementInterfaces';
19-
import { SecurityRole } from 'vso-node-api/interfaces/SecurityRolesInterfaces';
20-
import { TaskAgentPool } from 'vso-node-api/interfaces/TaskAgentInterfaces';
21-
import { TestPlan } from 'vso-node-api/interfaces/TestInterfaces';
22-
import { Timeline as TaskAgentTimeline } from "vso-node-api/interfaces/TaskAgentInterfaces";
23-
import { WebApiTeam } from 'vso-node-api/interfaces/CoreInterfaces';
24-
import { WidgetScope, WidgetTypesResponse } from 'vso-node-api/interfaces/DashboardInterfaces';
25-
import { WorkItemField } from 'vso-node-api/interfaces/WorkItemTrackingInterfaces';
26-
import { ProcessModel } from 'vso-node-api/interfaces/WorkItemTrackingProcessInterfaces';
27-
import { PickListMetadataModel } from 'vso-node-api/interfaces/WorkItemTrackingProcessDefinitionsInterfaces';
28-
import { WikiV2 } from 'vso-node-api/interfaces/WikiInterfaces';
2+
import * as vsoNodeApi from 'azure-devops-node-api';
3+
4+
import { Build } from 'azure-devops-node-api/interfaces/BuildInterfaces';
5+
import { ContributedFeature } from 'azure-devops-node-api/interfaces/FeatureManagementInterfaces';
6+
import { FileContainer } from 'azure-devops-node-api/interfaces/FileContainerInterfaces';
7+
import { GitRepository, TfvcChangesetRef } from 'azure-devops-node-api/interfaces/TfvcInterfaces';
8+
import { Plan } from 'azure-devops-node-api/interfaces/WorkInterfaces';
9+
import { PolicyType } from 'azure-devops-node-api/interfaces/PolicyInterfaces';
10+
import { ProfileRegions } from 'azure-devops-node-api/interfaces/ProfileInterfaces';
11+
import { ProjectLanguageAnalytics } from 'azure-devops-node-api/interfaces/ProjectAnalysisInterfaces';
12+
import { Release } from 'azure-devops-node-api/interfaces/ReleaseInterfaces';
13+
import { ResourceAreaInfo } from 'azure-devops-node-api/interfaces/LocationsInterfaces';
14+
import { RequestedExtension } from 'azure-devops-node-api/interfaces/ExtensionManagementInterfaces';
15+
import { SecurityRole } from 'azure-devops-node-api/interfaces/SecurityRolesInterfaces';
16+
import { TaskAgentPool } from 'azure-devops-node-api/interfaces/TaskAgentInterfaces';
17+
import { TestPlan } from 'azure-devops-node-api/interfaces/TestInterfaces';
18+
import { Timeline as TaskAgentTimeline } from "azure-devops-node-api/interfaces/TaskAgentInterfaces";
19+
import { WebApiTeam } from 'azure-devops-node-api/interfaces/CoreInterfaces';
20+
import { WidgetScope, WidgetTypesResponse } from 'azure-devops-node-api/interfaces/DashboardInterfaces';
21+
import { WorkItemField } from 'azure-devops-node-api/interfaces/WorkItemTrackingInterfaces';
22+
import { ProcessModel } from 'azure-devops-node-api/interfaces/WorkItemTrackingProcessInterfaces';
23+
import { PickListMetadataModel } from 'azure-devops-node-api/interfaces/WorkItemTrackingProcessDefinitionsInterfaces';
24+
import { WikiV2 } from 'azure-devops-node-api/interfaces/WikiInterfaces';
2925

3026
// In order for this to run you will need to set the following environment variables:
3127
//

samples/filecontainer.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
import * as fs from 'fs';
2-
import * as path from 'path';
3-
import * as stream from 'stream';
4-
51
import * as cm from './common';
6-
import * as vm from 'vso-node-api';
7-
8-
import * as ta from 'vso-node-api/FileContainerApi';
9-
import * as ti from 'vso-node-api/interfaces/FileContainerInterfaces';
2+
import * as vm from 'azure-devops-node-api';
3+
import * as ti from 'azure-devops-node-api/interfaces/FileContainerInterfaces';
104

115
export async function run() {
126
try

samples/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "VSTS Node Api Samples",
55
"main": "build.js",
66
"dependencies": {
7-
"vso-node-api": "file:../_build"
7+
"azure-devops-node-api": "file:../_build"
88
},
99
"devDependencies": {},
1010
"scripts": {

samples/task.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import * as stream from 'stream';
44
import * as sh from 'shelljs';
55

66
import * as cm from './common';
7-
import * as vm from 'vso-node-api';
7+
import * as vm from 'azure-devops-node-api';
88

9-
import * as ta from 'vso-node-api/TaskAgentApi';
10-
import * as ti from 'vso-node-api/interfaces/TaskAgentInterfaces';
9+
import * as ta from 'azure-devops-node-api/TaskAgentApi';
10+
import * as ti from 'azure-devops-node-api/interfaces/TaskAgentInterfaces';
1111

1212
let sampleFilePath: string = path.join(process.cwd(), 'taskdefinition.zip');
1313

0 commit comments

Comments
 (0)