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

@rh-support/utils

Package Overview
Dependencies
Maintainers
6
Versions
339
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rh-support/utils - npm Package Compare versions

Comparing version 0.1.37 to 0.1.38

lib/cjs/apiUtils.d.ts.map

1

lib/cjs/apiUtils.d.ts

@@ -7,1 +7,2 @@ import { IApiResponseDetails, IApiCreateState, IApiUpdateState, IApiDeleteState } from '@rh-support/types/shared';

export declare function haventLoadedMetadata<T>(apiResponse: IApiResponseDetails<T>, isEmptyCallback?: (data: T) => boolean): boolean;
//# sourceMappingURL=apiUtils.d.ts.map

@@ -27,1 +27,2 @@ import lf from 'localforage';

}
//# sourceMappingURL=cacheUtils.d.ts.map

@@ -19,1 +19,2 @@ import { IPortalJwtToken } from '@rh-support/types/shared';

export declare function linkifyLinks(text?: string): string;
//# sourceMappingURL=caseUtils.d.ts.map

@@ -24,1 +24,2 @@ export interface ICSVHeader {

export declare const downloadCSV: (data: string | any[] | any[][], headers: ICSVHeader[], fileName?: string, uFEFF?: boolean, separator?: string, enclosingCharacter?: string) => void;
//# sourceMappingURL=csvUtils.d.ts.map

@@ -19,1 +19,2 @@ export declare enum CustomElements {

export {};
//# sourceMappingURL=customElementUtils.d.ts.map

@@ -17,1 +17,2 @@ export declare const formatDate: (date: any, locale?: string, format?: {

export declare const isoDate: (date: string) => string;
//# sourceMappingURL=dateUtils.d.ts.map

@@ -16,1 +16,2 @@ import { IOption, IKeyValue, KeyOfExtractedType } from '@rh-support/types/shared';

export {};
//# sourceMappingURL=dropdownUtils.d.ts.map

@@ -7,1 +7,2 @@ export interface IPendoTrackEventProperty {

export { haltEvent, pendoTrackEvent };
//# sourceMappingURL=eventUtils.d.ts.map
declare function getConfigField(config: any, fieldName: any, fieldType?: any): any;
export { getConfigField };
//# sourceMappingURL=hydraConfigUtils.d.ts.map

@@ -15,2 +15,3 @@ export * from './apiUtils';

export * from './solrUtils';
export * from './searchApiUtils';
export * from './scrollUtils';

@@ -22,1 +23,2 @@ export * from './urlUtils';

export * from './styleUtils';
//# sourceMappingURL=index.d.ts.map

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

__export(require("./solrUtils"));
__export(require("./searchApiUtils"));
__export(require("./scrollUtils"));

@@ -22,0 +23,0 @@ __export(require("./urlUtils"));

import { Details } from 'hydrajs/@types/models/insights';
export declare function getRuleReasonHtml(ruleReason: string, reportDetails: Details): string;
//# sourceMappingURL=insightRuleInfoUtils.d.ts.map

@@ -8,1 +8,2 @@ import { IMarkdownCallback, IMarkedownOptions } from '@rh-support/types/shared';

export declare function encodeAngularBrackets(text?: string): string;
//# sourceMappingURL=markdownUtils.d.ts.map

@@ -7,1 +7,2 @@ import { IProductServiceLevels, IProductResponse, ITopProducts } from '@rh-support/api';

export {};
//# sourceMappingURL=productsUtils.d.ts.map
declare const promiseReflection: (p: any) => any;
export { promiseReflection };
//# sourceMappingURL=promiseUtils.d.ts.map

11

lib/cjs/recommendationUtils.d.ts

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

import { Highlighting, IRecommendation } from '@rh-support/api';
export declare function getRecommendationTitle(doc: IRecommendation): string;
export declare function getRecommendationAbstract(doc: IRecommendation): string;
export declare function computeRecommendationTitle(doc: IRecommendation): {
import { ISolrRecommendation, Highlighting } from 'hydrajs/@types/models/solr/solr';
export declare function getRecommendationTitle(doc: ISolrRecommendation): string;
export declare function getRecommendationAbstract(doc: ISolrRecommendation): string;
export declare function computeRecommendationTitle(doc: ISolrRecommendation): {
__html: string;

@@ -10,5 +10,6 @@ };

};
export declare function replaceHighlightingData(docs: IRecommendation[], highlighting: Highlighting): IRecommendation[];
export declare function replaceHighlightingData(docs: ISolrRecommendation[], highlighting: Highlighting): ISolrRecommendation[];
export declare function truncate(str: string, len: number): string;
export declare function decodeMarkTag(str: string): string;
export declare function cleanupMarkDown(str: string): string;
//# sourceMappingURL=recommendationUtils.d.ts.map
import React from 'react';
export declare function scrollIntoSection(sectionRef: React.MutableRefObject<HTMLDivElement>): void;
export declare function scrollIntoView(ref: React.MutableRefObject<HTMLElement>, timeout?: number): void;
//# sourceMappingURL=scrollUtils.d.ts.map

@@ -17,1 +17,10 @@ "use strict";

exports.scrollIntoSection = scrollIntoSection;
function scrollIntoView(ref, timeout) {
// lets you delay scroll, else will just run in the next cycle of the javascript event loop
setTimeout(function () {
if (isEmpty_1.default(ref) || isEmpty_1.default(ref.current))
return;
ref.current.scrollIntoView({ behavior: 'smooth' });
}, timeout || 0);
}
exports.scrollIntoView = scrollIntoView;

@@ -72,1 +72,2 @@ import { IFacetResponse } from '@rh-support/types/shared';

export declare function parseSolrQuery(query: string): {};
//# sourceMappingURL=solrUtils.d.ts.map

@@ -12,1 +12,2 @@ export declare enum StyleVariants {

export declare function getStyleVariantColor(styleVariant: StyleVariants): "#72767B" | "#004368" | "#F0AB00" | "#3E8635" | "#CE2615";
//# sourceMappingURL=styleUtils.d.ts.map

@@ -11,1 +11,2 @@ import { IStringifyOptions, IParseOptions } from 'qs';

export declare const getRedhatDotComHost: (env: any) => string;
//# sourceMappingURL=urlUtils.d.ts.map

@@ -7,1 +7,2 @@ import { IContact } from 'hydrajs/@types/models/contact';

export declare const getSortedHydraContactsFromStrataUsers: (strataUsers: Partial<IStrataUser>[]) => IContact[];
//# sourceMappingURL=userUtils.d.ts.map

@@ -8,1 +8,2 @@ declare const emojiPattern: RegExp;

export { isEmailValid, isValidRHEmail, isEmojiPattern, emojiPattern, mailformat, isValidGuid };
//# sourceMappingURL=validatorUtils.d.ts.map

@@ -7,1 +7,2 @@ import { IApiResponseDetails, IApiCreateState, IApiUpdateState, IApiDeleteState } from '@rh-support/types/shared';

export declare function haventLoadedMetadata<T>(apiResponse: IApiResponseDetails<T>, isEmptyCallback?: (data: T) => boolean): boolean;
//# sourceMappingURL=apiUtils.d.ts.map

@@ -27,1 +27,2 @@ import lf from 'localforage';

}
//# sourceMappingURL=cacheUtils.d.ts.map

@@ -19,1 +19,2 @@ import { IPortalJwtToken } from '@rh-support/types/shared';

export declare function linkifyLinks(text?: string): string;
//# sourceMappingURL=caseUtils.d.ts.map

@@ -24,1 +24,2 @@ export interface ICSVHeader {

export declare const downloadCSV: (data: string | any[] | any[][], headers: ICSVHeader[], fileName?: string, uFEFF?: boolean, separator?: string, enclosingCharacter?: string) => void;
//# sourceMappingURL=csvUtils.d.ts.map

@@ -19,1 +19,2 @@ export declare enum CustomElements {

export {};
//# sourceMappingURL=customElementUtils.d.ts.map

@@ -17,1 +17,2 @@ export declare const formatDate: (date: any, locale?: string, format?: {

export declare const isoDate: (date: string) => string;
//# sourceMappingURL=dateUtils.d.ts.map

@@ -16,1 +16,2 @@ import { IOption, IKeyValue, KeyOfExtractedType } from '@rh-support/types/shared';

export {};
//# sourceMappingURL=dropdownUtils.d.ts.map

@@ -7,1 +7,2 @@ export interface IPendoTrackEventProperty {

export { haltEvent, pendoTrackEvent };
//# sourceMappingURL=eventUtils.d.ts.map
declare function getConfigField(config: any, fieldName: any, fieldType?: any): any;
export { getConfigField };
//# sourceMappingURL=hydraConfigUtils.d.ts.map

@@ -15,2 +15,3 @@ export * from './apiUtils';

export * from './solrUtils';
export * from './searchApiUtils';
export * from './scrollUtils';

@@ -22,1 +23,2 @@ export * from './urlUtils';

export * from './styleUtils';
//# sourceMappingURL=index.d.ts.map

@@ -15,2 +15,3 @@ export * from './apiUtils';

export * from './solrUtils';
export * from './searchApiUtils';
export * from './scrollUtils';

@@ -17,0 +18,0 @@ export * from './urlUtils';

import { Details } from 'hydrajs/@types/models/insights';
export declare function getRuleReasonHtml(ruleReason: string, reportDetails: Details): string;
//# sourceMappingURL=insightRuleInfoUtils.d.ts.map

@@ -8,1 +8,2 @@ import { IMarkdownCallback, IMarkedownOptions } from '@rh-support/types/shared';

export declare function encodeAngularBrackets(text?: string): string;
//# sourceMappingURL=markdownUtils.d.ts.map

@@ -7,1 +7,2 @@ import { IProductServiceLevels, IProductResponse, ITopProducts } from '@rh-support/api';

export {};
//# sourceMappingURL=productsUtils.d.ts.map
declare const promiseReflection: (p: any) => any;
export { promiseReflection };
//# sourceMappingURL=promiseUtils.d.ts.map

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

import { Highlighting, IRecommendation } from '@rh-support/api';
export declare function getRecommendationTitle(doc: IRecommendation): string;
export declare function getRecommendationAbstract(doc: IRecommendation): string;
export declare function computeRecommendationTitle(doc: IRecommendation): {
import { ISolrRecommendation, Highlighting } from 'hydrajs/@types/models/solr/solr';
export declare function getRecommendationTitle(doc: ISolrRecommendation): string;
export declare function getRecommendationAbstract(doc: ISolrRecommendation): string;
export declare function computeRecommendationTitle(doc: ISolrRecommendation): {
__html: string;

@@ -10,5 +10,6 @@ };

};
export declare function replaceHighlightingData(docs: IRecommendation[], highlighting: Highlighting): IRecommendation[];
export declare function replaceHighlightingData(docs: ISolrRecommendation[], highlighting: Highlighting): ISolrRecommendation[];
export declare function truncate(str: string, len: number): string;
export declare function decodeMarkTag(str: string): string;
export declare function cleanupMarkDown(str: string): string;
//# sourceMappingURL=recommendationUtils.d.ts.map
import React from 'react';
export declare function scrollIntoSection(sectionRef: React.MutableRefObject<HTMLDivElement>): void;
export declare function scrollIntoView(ref: React.MutableRefObject<HTMLElement>, timeout?: number): void;
//# sourceMappingURL=scrollUtils.d.ts.map

@@ -11,1 +11,9 @@ import isEmpty from 'lodash/isEmpty';

}
export function scrollIntoView(ref, timeout) {
// lets you delay scroll, else will just run in the next cycle of the javascript event loop
setTimeout(() => {
if (isEmpty(ref) || isEmpty(ref.current))
return;
ref.current.scrollIntoView({ behavior: 'smooth' });
}, timeout || 0);
}

@@ -72,1 +72,2 @@ import { IFacetResponse } from '@rh-support/types/shared';

export declare function parseSolrQuery(query: string): {};
//# sourceMappingURL=solrUtils.d.ts.map

@@ -12,1 +12,2 @@ export declare enum StyleVariants {

export declare function getStyleVariantColor(styleVariant: StyleVariants): "#72767B" | "#004368" | "#F0AB00" | "#3E8635" | "#CE2615";
//# sourceMappingURL=styleUtils.d.ts.map

@@ -11,1 +11,2 @@ import { IStringifyOptions, IParseOptions } from 'qs';

export declare const getRedhatDotComHost: (env: any) => string;
//# sourceMappingURL=urlUtils.d.ts.map

@@ -7,1 +7,2 @@ import { IContact } from 'hydrajs/@types/models/contact';

export declare const getSortedHydraContactsFromStrataUsers: (strataUsers: Partial<IStrataUser>[]) => IContact[];
//# sourceMappingURL=userUtils.d.ts.map

@@ -8,1 +8,2 @@ declare const emojiPattern: RegExp;

export { isEmailValid, isValidRHEmail, isEmojiPattern, emojiPattern, mailformat, isValidGuid };
//# sourceMappingURL=validatorUtils.d.ts.map
{
"name": "@rh-support/utils",
"version": "0.1.37",
"version": "0.1.38",
"description": "> TODO: description",

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

"@rh-support/types": "^0.0.66",
"hydrajs": "git+https://gitlab.cee.redhat.com/redhataccess/hydrajs.git#2.1.76",
"hydrajs": "git+https://gitlab.cee.redhat.com/redhataccess/hydrajs.git#2.1.79",
"js-markdown-extra": "^1.2.4",

@@ -59,6 +59,6 @@ "localforage": "^1.7.3",

"dependencies": {
"@rh-support/api": "0.1.35",
"@rh-support/api": "0.1.36",
"@rh-support/types": "0.1.20",
"dot": "^1.1.3",
"hydrajs": "git+https://gitlab.cee.redhat.com/redhataccess/hydrajs.git#2.1.76",
"hydrajs": "git+https://gitlab.cee.redhat.com/redhataccess/hydrajs.git#2.1.79",
"js-markdown-extra": "^1.2.4",

@@ -80,3 +80,3 @@ "localforage": "^1.7.3",

},
"gitHead": "a744b879150112bb73837963cc8075a1de17c861"
"gitHead": "f9fe041c220cc95e98c6440fe000bd0f98570f28"
}
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