open-index/open-npm huggingface dataset:
npm package: @highoutput/circuit-breaker
Description: A fail-fast circuit breaker for async functions
Author: High Output Ventures
Latest version: 0.2.6

# `circuit-breaker`

> Executes and monitors the status of async functions. When the async function starts failing, `@highoutput/circuit-breaker` triggers an internal switch and prevents further executions. The internal switch is triggered when the failure rate (number of failures divided by the number of executions measured over a period) goes beyond the threshold.

## Usage

```
import CircuitBreaker from '@highoutput/circuit-breaker';

const circuitBreaker = new CircuitBreaker({
  threshold: 0.35,
  timeout: 60000,
  rollingCountBuckets: 6,
  rollingCountInterval: 30000,
  resetTimeout: 300000,
  recoveryCountThreshold: 3,
  handler: async (params: { message: string }) => {
    return params.message;
  },
});

console.log(await circuitBreaker.exec({ message: 'Hello World' }));
// Hello World
```
npm package: @highoutput/ckeditor5-modern
Description: Reusable facebook-like editor component built based on @highoutput/ckeditor5 library
Author: vmc08
Latest version: 4.0.5

# HOV Modern Editor

Reusable facebook-like editor component built based on @highoutput/ckeditor5 library

## Peer dependencies

in order to use this editor component, you must install or meet the following library versions

- "@chakra-ui/react": "^1.6.5"
- "@emotion/react": "^11.4.0"
- "@emotion/styled": "^11.3.0"
- "@heroicons/react": "^1.0.4"
- "@hookform/resolvers": "^2.6.1"
- "axios": ">=0.21.1"
- "framer-motion": "^4.1.17"
- "react": ">=16"
- "react-dom": ">=16"
- "react-hook-form": "^7.11.1"
- "uuid": "^8.3.2"
- "yup": ">=0.32.9"

## Important note

you need to add this style on the global scope to make sure mention and emojis will work

```jsx
'.ck .ck-balloon-panel': {
  zIndex: 9999,
}
```

you also need to add this property in ChakraProvider if you will use this on top of your existing UI framework

```jsx
cssVarsRoot = '.chakra-portal';
```

## Uploading with token note

For uploading files with bearer token please set your values in your localStorage using the name 'access_token'.

```jsx
localStorage.setItem('access_token', 'key is here');
```