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

@aserto/console-common

Package Overview
Dependencies
Maintainers
4
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aserto/console-common

Console Common Components and Utilities

  • 0.0.26
  • npm
  • Socket score

Version published
Weekly downloads
105
decreased by-50.24%
Maintainers
4
Weekly downloads
 
Created
Source

console-common npm package

Console Common Components and Utilities

Local development

Building

yarn build - uses rollup to build the library, see rollup.config.js. Everything is bundled in the dist folder.

yarn push - uses yalc to push the library to the local registry. To consume the packages you will need to run yalc link @aserto/console-common in your project. After you do that you will see a .yalc folder in the root of your project, that is the local registry that yalc will push to when running yarn push in the console-common directory.

The library also provides a dev mode where it watches for file changes and updates the package in the local registry. yarn dev You can use this command after you have run yalc link @aserto/console-common in your project

Consuming

To add a dependency to the local package use yalc link @aserto/console-common in the client application.

import { Directory } from '@aserto/console-common'

Examples

Passing a configuration:

<InternalConfigProvider config={config}>{children}</InternalConfigProvider>

Passing an identity:

<GenericIdentityProvider
  identity={{
    getAccessToken: getAccessToken || (() => Promise.resolve('')),
    logout: logout || (() => {}),
  }}
>
  {children}
</GenericIdentityProvider>

Passing a profile

 <InternalProfileProvider profile={{ tenantId: tenant?.id }}>

Testing

This lib uses jest for testing, see jest.config.js

yarn test

Release

yarn bump - bumps to the next minor version and commits the changes

yarn release - tags the latest commit with the version from package.json and pushes the changes

Keywords

FAQs

Package last updated on 05 May 2023

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