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

azure-devops-extension-api

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.141.7 to 0.141.8

36

core/Context.d.ts

@@ -21,23 +21,2 @@ /*

/**
* Host level for a VSS service
*/
export const enum TeamFoundationHostType {
/**
* The Deployment host
*/
Deployment = 1,
/**
* The Enterprise host
*/
Enterprise = 2,
/**
* The project collection host
*/
ProjectCollection = 4
}
/**
* Options for a specific instance of a REST client.

@@ -48,12 +27,2 @@ */

/**
* The id of the service instance type that the client should target. Ignored if an explicit rootPath is supplied.
*/
serviceInstanceType?: string;
/**
* When supplying serviceInstanceType, this indicates the host level of the service to target.
*/
hostType?: TeamFoundationHostType;
/**
* Auth token manager that can be used to get and attach auth tokens to requests.

@@ -71,7 +40,2 @@ * If not supplied, the default token provider is used if the serviceInstanceType option is supplied

/**
* If true, the progress indicator will be shown while the request is executing. Defaults to true.
*/
showProgressIndicator?: boolean;
/**
* Current session id.

@@ -78,0 +42,0 @@ */

4

core/Fetch.d.ts

@@ -8,6 +8,2 @@ import { IAuthorizationTokenProvider } from "./Context";

/**
* If true, the progress indicator will be shown while the request is executing. Defaults to true.
*/
showProgressIndicator?: boolean;
/**
* Current session id.

@@ -14,0 +10,0 @@ */

@@ -116,3 +116,2 @@ /*

authTokenProvider: this._options.authTokenProvider,
showProgressIndicator: this._options.showProgressIndicator,
sessionId: this._options.sessionId,

@@ -119,0 +118,0 @@ command: requestParams.command || this._options.command

2

core/RestClientBase.min.js

@@ -1,1 +0,1 @@

var __awaiter=this&&this.__awaiter||function(t,e,r,o){return new(r||(r=Promise))(function(n,i){function s(t){try{u(o.next(t))}catch(t){i(t)}}function a(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){t.done?n(t.value):new r(function(e){e(t.value)}).then(s,a)}u((o=o.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function r(r){return function(s){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(t){r=[6,t],n=0}finally{o=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}var o,n,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};define(["require","exports","./Fetch","./Serialization","./Url"],function(t,e,r,o,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){this._options=t||{},"string"==typeof this._options.rootPath?this._rootPath=Promise.resolve(this._options.rootPath):this._rootPath=this._options.rootPath||Promise.resolve("/")}return t.prototype.getRootPath=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this._rootPath]})})},t.prototype.beginRequest=function(t){return __awaiter(this,void 0,void 0,function(){var e=this;return __generator(this,function(r){return[2,this._rootPath.then(function(r){var o=r+n.replaceRouteValues(t.routeTemplate,t.routeValues||{});if(t.queryParams){var i=new n.Uri(o);i.addQueryParams(t.queryParams),o=i.absoluteUri}return e._issueRequest(o,t.apiVersion,t)})]})})},t.prototype._issueRequest=function(t,e,n){var i={};i.method=n.method||"GET",i.mode="cors",!n.isRawData&&n.body&&"GET"!==i.method.toUpperCase()?i.body=JSON.stringify(n.body):i.body=n.body;var s=n.httpResponseType||"application/json",a=s+";api-version="+e+";excludeUrls=true;enumsAsNumbers=true;msDateFormat=true;noArrayWrap=true";i.headers=Object.assign({Accept:a,"Content-Type":n.body&&"application/json"},n.customHeaders);var u={authTokenProvider:this._options.authTokenProvider,showProgressIndicator:this._options.showProgressIndicator,sessionId:this._options.sessionId,command:n.command||this._options.command};return r.issueRequest(t,i,u).then(function(t){return n.returnRawResponse?t:s.toLowerCase().indexOf("json")>=0?t.text().then(o.deserializeVssJsonObject):"text/plain"===s.toLowerCase()?t.text():t.arrayBuffer()})},t}();e.RestClientBase=i});
var __awaiter=this&&this.__awaiter||function(t,e,r,o){return new(r||(r=Promise))(function(n,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function s(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){t.done?n(t.value):new r(function(e){e(t.value)}).then(a,s)}u((o=o.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function r(r){return function(a){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){s.label=r[1];break}if(6===r[0]&&s.label<i[1]){s.label=i[1],i=r;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(r);break}i[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{o=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var o,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","./Fetch","./Serialization","./Url"],function(t,e,r,o,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){this._options=t||{},"string"==typeof this._options.rootPath?this._rootPath=Promise.resolve(this._options.rootPath):this._rootPath=this._options.rootPath||Promise.resolve("/")}return t.prototype.getRootPath=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this._rootPath]})})},t.prototype.beginRequest=function(t){return __awaiter(this,void 0,void 0,function(){var e=this;return __generator(this,function(r){return[2,this._rootPath.then(function(r){var o=r+n.replaceRouteValues(t.routeTemplate,t.routeValues||{});if(t.queryParams){var i=new n.Uri(o);i.addQueryParams(t.queryParams),o=i.absoluteUri}return e._issueRequest(o,t.apiVersion,t)})]})})},t.prototype._issueRequest=function(t,e,n){var i={};i.method=n.method||"GET",i.mode="cors",!n.isRawData&&n.body&&"GET"!==i.method.toUpperCase()?i.body=JSON.stringify(n.body):i.body=n.body;var a=n.httpResponseType||"application/json",s=a+";api-version="+e+";excludeUrls=true;enumsAsNumbers=true;msDateFormat=true;noArrayWrap=true";i.headers=Object.assign({Accept:s,"Content-Type":n.body&&"application/json"},n.customHeaders);var u={authTokenProvider:this._options.authTokenProvider,sessionId:this._options.sessionId,command:n.command||this._options.command};return r.issueRequest(t,i,u).then(function(t){return n.returnRawResponse?t:a.toLowerCase().indexOf("json")>=0?t.text().then(o.deserializeVssJsonObject):"text/plain"===a.toLowerCase()?t.text():t.arrayBuffer()})},t}();e.RestClientBase=i});
{
"name": "azure-devops-extension-api",
"version": "0.141.7",
"version": "0.141.8",
"description": "REST client libraries and contracts for Azure DevOps web extension developers.",

@@ -24,3 +24,3 @@ "repository": {

"dependencies": {
"azure-devops-extension-sdk": "1.141.11"
"azure-devops-extension-sdk": "~1.141.11"
},

@@ -27,0 +27,0 @@ "devDependencies": {

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