Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

azure-devops-node-api

Package Overview
Dependencies
Maintainers
7
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-devops-node-api - npm Package Compare versions

Comparing version 10.1.1 to 10.1.2

2

handlers/basiccreds.d.ts
import ifm = require('../interfaces/common/VsoBaseInterfaces');
import * as resthandlers from 'typed-rest-client/Handlers';
export declare class BasicCredentialHandler extends resthandlers.BasicCredentialHandler implements ifm.IRequestHandler {
constructor(username: string, password: string);
constructor(username: string, password: string, allowCrossOriginAuthentication?: boolean);
}

@@ -7,6 +7,6 @@ "use strict";

class BasicCredentialHandler extends resthandlers.BasicCredentialHandler {
constructor(username, password) {
super(username, password);
constructor(username, password, allowCrossOriginAuthentication) {
super(username, password, allowCrossOriginAuthentication);
}
}
exports.BasicCredentialHandler = BasicCredentialHandler;
import ifm = require('../interfaces/common/VsoBaseInterfaces');
import * as resthandlers from 'typed-rest-client/Handlers';
export declare class BearerCredentialHandler extends resthandlers.BearerCredentialHandler implements ifm.IRequestHandler {
constructor(token: string);
constructor(token: string, allowCrossOriginAuthentication?: boolean);
}

@@ -7,6 +7,6 @@ "use strict";

class BearerCredentialHandler extends resthandlers.BearerCredentialHandler {
constructor(token) {
super(token);
constructor(token, allowCrossOriginAuthentication) {
super(token, allowCrossOriginAuthentication);
}
}
exports.BearerCredentialHandler = BearerCredentialHandler;
import ifm = require('../interfaces/common/VsoBaseInterfaces');
import * as resthandlers from 'typed-rest-client/Handlers';
export declare class PersonalAccessTokenCredentialHandler extends resthandlers.PersonalAccessTokenCredentialHandler implements ifm.IRequestHandler {
constructor(token: string);
constructor(token: string, allowCrossOriginAuthentication?: boolean);
}

@@ -7,6 +7,6 @@ "use strict";

class PersonalAccessTokenCredentialHandler extends resthandlers.PersonalAccessTokenCredentialHandler {
constructor(token) {
super(token);
constructor(token, allowCrossOriginAuthentication) {
super(token, allowCrossOriginAuthentication);
}
}
exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler;
{
"name": "azure-devops-node-api",
"description": "Node client for Azure DevOps and TFS REST APIs",
"version": "10.1.1",
"version": "10.1.2",
"main": "./WebApi.js",

@@ -28,3 +28,3 @@ "types": "./WebApi.d.ts",

"tunnel": "0.0.6",
"typed-rest-client": "^1.7.3",
"typed-rest-client": "^1.8.0",
"underscore": "1.8.3"

@@ -31,0 +31,0 @@ },

@@ -32,7 +32,7 @@ import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces');

*/
export declare function getBasicHandler(username: string, password: string): VsoBaseInterfaces.IRequestHandler;
export declare function getBasicHandler(username: string, password: string, allowCrossOriginAuthentication?: boolean): VsoBaseInterfaces.IRequestHandler;
export declare function getNtlmHandler(username: string, password: string, workstation?: string, domain?: string): VsoBaseInterfaces.IRequestHandler;
export declare function getBearerHandler(token: string): VsoBaseInterfaces.IRequestHandler;
export declare function getPersonalAccessTokenHandler(token: string): VsoBaseInterfaces.IRequestHandler;
export declare function getHandlerFromToken(token: string): VsoBaseInterfaces.IRequestHandler;
export declare function getBearerHandler(token: string, allowCrossOriginAuthentication?: boolean): VsoBaseInterfaces.IRequestHandler;
export declare function getPersonalAccessTokenHandler(token: string, allowCrossOriginAuthentication?: boolean): VsoBaseInterfaces.IRequestHandler;
export declare function getHandlerFromToken(token: string, allowCrossOriginAuthentication?: boolean): VsoBaseInterfaces.IRequestHandler;
export interface IWebApiRequestSettings {

@@ -39,0 +39,0 @@ productName: string;

@@ -52,4 +52,4 @@ "use strict";

*/
function getBasicHandler(username, password) {
return new basicm.BasicCredentialHandler(username, password);
function getBasicHandler(username, password, allowCrossOriginAuthentication) {
return new basicm.BasicCredentialHandler(username, password, allowCrossOriginAuthentication);
}

@@ -61,16 +61,16 @@ exports.getBasicHandler = getBasicHandler;

exports.getNtlmHandler = getNtlmHandler;
function getBearerHandler(token) {
return new bearm.BearerCredentialHandler(token);
function getBearerHandler(token, allowCrossOriginAuthentication) {
return new bearm.BearerCredentialHandler(token, allowCrossOriginAuthentication);
}
exports.getBearerHandler = getBearerHandler;
function getPersonalAccessTokenHandler(token) {
return new patm.PersonalAccessTokenCredentialHandler(token);
function getPersonalAccessTokenHandler(token, allowCrossOriginAuthentication) {
return new patm.PersonalAccessTokenCredentialHandler(token, allowCrossOriginAuthentication);
}
exports.getPersonalAccessTokenHandler = getPersonalAccessTokenHandler;
function getHandlerFromToken(token) {
function getHandlerFromToken(token, allowCrossOriginAuthentication) {
if (token.length === 52) {
return getPersonalAccessTokenHandler(token);
return getPersonalAccessTokenHandler(token, allowCrossOriginAuthentication);
}
else {
return getBearerHandler(token);
return getBearerHandler(token, allowCrossOriginAuthentication);
}

@@ -77,0 +77,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc