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

@rh-support/api

Package Overview
Dependencies
Maintainers
5
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rh-support/api - npm Package Compare versions

Comparing version 0.0.49 to 0.0.50

2

lib/esm/account/account.d.ts

@@ -62,3 +62,3 @@ export interface IStrataAccountResponse {

export declare function getAccountDetails(accountNumber?: string): Promise<IStrataAccountResponse | string>;
export declare function getAccountUsers(accountNumber: string): Promise<IStrataAccountUserResponse>;
export declare function getAccountUsers(accountNumber: string, abortSignal?: AbortSignal): Promise<IStrataAccountUserResponse>;
/**

@@ -65,0 +65,0 @@ *

@@ -8,6 +8,6 @@ import Env from '../utils/env';

}
export function getAccountUsers(accountNumber) {
export function getAccountUsers(accountNumber, abortSignal) {
const uri = Env.apiHostName.clone().setPath(`${Env.securedSupport.pathPrefix}/rs/accounts/${accountNumber}/users`);
addQueryParamsToUri(uri, Env.strataHeaders);
return getUri(uri);
return getUri(uri, { signal: abortSignal });
}

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

@@ -20,4 +20,5 @@ export interface IRule {

owner?: any;
language?: any;
caseNumber?: any;
type?: string;
language?: string;
caseNumber?: string;
}

@@ -24,0 +25,0 @@ export interface AccountType {

export interface ITopContentBody {
product: string;
version: string;
component?: string;
sortby?: string;
}
export interface ITopContentItem {
title: string;
url: string;
}
export interface ITopContentCategory {
name: string;
items: ITopContentItem[];
id: number;
topContentMasterDataId: number;
content: ITopContent[];
categoryName: string;
categoryRank: number;
isActive: 0 | 1;
createdBy: string;
createdOn: string;
updatedBy: string;
updatedOn: string;
}
export interface ITopContentResponse {
categories: ITopContentCategory[];
export interface ITopContent {
contentTitle: string;
contentUrl: string;
contentRank: number;
}
export declare function getTopContent(body: Partial<ITopContentBody>): Promise<ITopContentResponse>;
export declare function getTopContent(body: Partial<ITopContentBody>): Promise<ITopContentCategory[]>;

@@ -0,6 +1,19 @@

var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
import Env from '../utils/env';
import { postUri } from '../utils/fetch';
import { addQueryParamsToUri, getUri } from '../utils/fetch';
export function getTopContent(body) {
const uri = Env.apiHostName.clone().setPath(`${Env.hydraPathPrefix}/ion/diag/eaas/topcontent`);
return postUri(uri, body);
const { product } = body, otherParams = __rest(body, ["product"]);
const uri = Env.apiHostName.clone().setPath(`${Env.hydraPathPrefix}/se/topcontent`);
addQueryParamsToUri(uri, Object.assign({ productName: product }, otherParams));
return getUri(uri);
}
{
"name": "@rh-support/api",
"version": "0.0.49",
"version": "0.0.50",
"description": "Contains all the backend API calls",

@@ -43,3 +43,3 @@ "author": "Vikas Rathee <vrathee@redhat.com>",

"dependencies": {
"@rh-support/types": "^0.0.49",
"@rh-support/types": "^0.0.50",
"btoa-lite": "^1.0.0",

@@ -49,3 +49,3 @@ "jsuri": "^1.3.1",

},
"gitHead": "a773beb702c6c2180f7144b6f20bbe94e3006538"
"gitHead": "4a8d35fed9961489b8959eb71833f9d0973f5b8d"
}

Sorry, the diff of this file is too big to display

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