Showing 3 of 11 total issues
File index.ts
has 271 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// File Dependencies
import {
ALLOWED_PROTOCOLS,
WS_EVENT_NAMES,
DATA_STORAGE_TYPES,
Sarus
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
export default class Sarus {
// Constructor params
url: URL;
binaryType?: BinaryType;
protocols?: string | Array<string>;
Function constructor
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(props: SarusClassParams) {
// Extract the properties that are passed to the class
const {
url,
binaryType,