@rh-support/utils
Advanced tools
Comparing version 2.1.20 to 2.1.21
@@ -16,3 +16,3 @@ import { IApiCreateState, IApiDeleteState, IApiResponseDetails, IApiUpdateState } from '@rh-support/types/shared'; | ||
export declare const getTrimmedCharacters: (description?: string, limit?: number) => string; | ||
export declare const buildParams: (Obj: any) => string; | ||
export declare const convertObjToEncodedQueryParams: (Obj: any) => string; | ||
//# sourceMappingURL=apiUtils.d.ts.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.buildParams = exports.getTrimmedCharacters = exports.haventLoadedProductsMetadata = exports.haventLoadedMetadata = exports.getApiDeletionStatus = exports.getApiUpdationStatus = exports.getApiCreationStatus = exports.getApiResourceObject = void 0; | ||
exports.convertObjToEncodedQueryParams = exports.getTrimmedCharacters = exports.haventLoadedProductsMetadata = exports.haventLoadedMetadata = exports.getApiDeletionStatus = exports.getApiUpdationStatus = exports.getApiCreationStatus = exports.getApiResourceObject = void 0; | ||
const isEmpty_1 = __importDefault(require("lodash/isEmpty")); | ||
@@ -51,3 +51,4 @@ const trim_1 = __importDefault(require("lodash/trim")); | ||
exports.getTrimmedCharacters = getTrimmedCharacters; | ||
const buildParams = (Obj) => { | ||
// converts an obj to url query params and encodes value | ||
const convertObjToEncodedQueryParams = (Obj) => { | ||
const params = new URLSearchParams(); | ||
@@ -64,2 +65,2 @@ Object.entries(Obj).forEach(([key, value]) => { | ||
}; | ||
exports.buildParams = buildParams; | ||
exports.convertObjToEncodedQueryParams = convertObjToEncodedQueryParams; |
@@ -16,3 +16,3 @@ import { IApiCreateState, IApiDeleteState, IApiResponseDetails, IApiUpdateState } from '@rh-support/types/shared'; | ||
export declare const getTrimmedCharacters: (description?: string, limit?: number) => string; | ||
export declare const buildParams: (Obj: any) => string; | ||
export declare const convertObjToEncodedQueryParams: (Obj: any) => string; | ||
//# sourceMappingURL=apiUtils.d.ts.map |
@@ -37,3 +37,4 @@ import isEmpty from 'lodash/isEmpty'; | ||
}; | ||
export const buildParams = (Obj) => { | ||
// converts an obj to url query params and encodes value | ||
export const convertObjToEncodedQueryParams = (Obj) => { | ||
const params = new URLSearchParams(); | ||
@@ -40,0 +41,0 @@ Object.entries(Obj).forEach(([key, value]) => { |
{ | ||
"name": "@rh-support/utils", | ||
"version": "2.1.20", | ||
"version": "2.1.21", | ||
"description": "> TODO: description", | ||
@@ -100,3 +100,3 @@ "author": "Vikas Rathee <vrathee@redhat.com>", | ||
], | ||
"gitHead": "0e07f257ebbb2d665193b3bf245666bf03df10cd" | ||
"gitHead": "d86f205d22c0034bfa760f7e7f4e77e3cf907b0f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
254964
4915