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

@ausuliv/frontend-components-utilities

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ausuliv/frontend-components-utilities

Util functions for RedHat Cloud Services project.

  • 4.0.13
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
0
Weekly downloads
 
Created
Source

RedHat Cloud Services frontend components - utils

npm version

This package exports common functions to be used in other packages.

Installation

With NPM

npm i -S @ausuliv/frontend-components-utilities

With yarn

yarn add @ausuliv/frontend-components-utilities

This package is dependent on @redhat-cloud-services/frontend-components it will automatically installed trough direct dependencies.

Migration guide

v2 -> v3

Import path change

Assets are no longer under /files directory but directly at the root of the build directory.

// v2
import { getRegistry } from '@ausuliv/frontend-components-utilities/Registry';

// v3
import { getRegistry } from '@ausuliv/frontend-components-utilities/Registry';
No UMD build

Utils package no longer provides UMD version of the build.

RowLoader

RowLoader component is no longer a part of helpers file but is now a stand-alone component. Import path has changed.

// v2
import { RowLoader } from '@ausuliv/frontend-components-utilities/helpers'
// v3
import RowLoader from '@ausuliv/frontend-components-utilities/RowLoader'
SCSS files

SCSS files are now under styles directory.

/** v2 */
@import '~@ausuliv/frontend-components-utilities/styles/all';
/** v3 */
@import '~@ausuliv/frontend-components-utilities/styles/all''

inventoryDependencies

This module is now deprecated. Use a new Inventory component compatible with chrome 2.0.

parseCvssScore

Function parseCvssScore has been moved to a stand-alone file. Import path has changed.

// v2
import { parseCvssScore } from '@ausuliv/frontend-components-utilities/helpers'
// v3
import parseCvssScore from '@ausuliv/frontend-components-utilities/parseCvssScore'

Additionaly it exports these utilities

  • AsyncComponent - class to load component via async calls
  • helpers - custom helper functions
  • MiddlewareListener - redux listener on actions, they can fire additional action or be cancelled
  • Registry - reducer registry
  • RouterParams - maps route to props
  • interceptors - to be used with axios clients
  • Styles - custom style functions in sass

FAQs

Package last updated on 21 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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