New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@atlassianlabs/jira-pi-client

Package Overview
Dependencies
Maintainers
4
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlassianlabs/jira-pi-client - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

8

client.d.ts

@@ -12,2 +12,10 @@ import { CommentVisibility, Component, Filter, IssueLinkType, MinimalIssueLink, Project, User, Version, Votes, Watches } from '@atlassianlabs/jira-pi-common-models/entities';

export declare type AuthorizationProvider = (method: string, url: string) => Promise<string>;
export interface SearchProps {
jql: string;
fields: string[];
maxResults?: number;
startAt?: number;
expand: string;
}
export declare function getSearchProps(jql: string, fields: string[], maxResults?: number, startAt?: number): SearchProps;
export declare abstract class JiraClient<S extends JiraSiteInfo> {

@@ -14,0 +22,0 @@ readonly baseUrl: string;

46

client.js

@@ -8,2 +8,3 @@ "use strict";

});
exports.getSearchProps = getSearchProps;
exports.readAutoCompleteSuggestion = readAutoCompleteSuggestion;

@@ -45,4 +46,24 @@ exports.IssueUpdateMetadata = exports.JiraClient = exports.DEFAULT_API_VERSION = void 0;

exports.DEFAULT_API_VERSION = DEFAULT_API_VERSION;
;
// JiraClient provides methods to invoke Jira REST API endpoints
function getSearchProps(jql, fields, maxResults, startAt) {
var props = {
jql: jql,
fields: fields,
expand: issueExpand
};
if (maxResults !== undefined) {
props['maxResults'] = maxResults;
}
if (startAt !== undefined) {
props['startAt'] = startAt;
}
return props;
}
; // JiraClient provides methods to invoke Jira REST API endpoints
var JiraClient =

@@ -629,3 +650,3 @@ /*#__PURE__*/

value: function searchForIssuesUsingJqlGet(jql, fields, maxResults, startAt) {
var props, res;
var res;
return _regenerator["default"].async(function searchForIssuesUsingJqlGet$(_context19) {

@@ -635,23 +656,10 @@ while (1) {

case 0:
props = {
jql: jql,
fields: fields
};
_context19.next = 2;
return _regenerator["default"].awrap(this.getFromJira('search', getSearchProps(jql, fields, maxResults, startAt)));
if (maxResults !== undefined) {
props['maxResults'] = maxResults;
}
if (startAt !== undefined) {
props['startAt'] = startAt;
}
_context19.next = 5;
return _regenerator["default"].awrap(this.getFromJira('search', props));
case 5:
case 2:
res = _context19.sent;
return _context19.abrupt("return", res);
case 7:
case 4:
case "end":

@@ -658,0 +666,0 @@ return _context19.stop();

@@ -24,3 +24,22 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";

// JiraClient provides methods to invoke Jira REST API endpoints
;
export function getSearchProps(jql, fields, maxResults, startAt) {
var props = {
jql: jql,
fields: fields,
expand: issueExpand
};
if (maxResults !== undefined) {
props['maxResults'] = maxResults;
}
if (startAt !== undefined) {
props['startAt'] = startAt;
}
return props;
}
; // JiraClient provides methods to invoke Jira REST API endpoints
export var JiraClient =

@@ -608,3 +627,3 @@ /*#__PURE__*/

value: function searchForIssuesUsingJqlGet(jql, fields, maxResults, startAt) {
var props, res;
var res;
return _regeneratorRuntime.async(function searchForIssuesUsingJqlGet$(_context19) {

@@ -614,23 +633,10 @@ while (1) {

case 0:
props = {
jql: jql,
fields: fields
};
_context19.next = 2;
return _regeneratorRuntime.awrap(this.getFromJira('search', getSearchProps(jql, fields, maxResults, startAt)));
if (maxResults !== undefined) {
props['maxResults'] = maxResults;
}
if (startAt !== undefined) {
props['startAt'] = startAt;
}
_context19.next = 5;
return _regeneratorRuntime.awrap(this.getFromJira('search', props));
case 5:
case 2:
res = _context19.sent;
return _context19.abrupt("return", res);
case 7:
case 4:
case "end":

@@ -637,0 +643,0 @@ return _context19.stop();

{
"name": "@atlassianlabs/jira-pi-client",
"version": "0.1.8",
"version": "0.1.9",
"description": "Transform jira meta information to a ui descriptor",

@@ -23,5 +23,5 @@ "repository": {

},
"gitHead": "77f3b36e3bb63a4ec42a4e60f3e45ee7b919eda5",
"gitHead": "5c5dfce8ccb7bcb8643b04b5c25ba3e2dba4bf41",
"main": "./index.js",
"typings": "./index.d.ts"
}
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