intactile/node-api-client

View on GitHub
src/index.js

Summary

Maintainability
A
1 hr
Test Coverage

Function constructor has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  constructor(config) {
    config = config || {};
    const host = config.host || '';
    const apiName = config.apiName !== undefined ? config.apiName : 'api';
    this.defaultHeaders = {};
Severity: Minor
Found in src/index.js - About 1 hr to fix

    Parsing error: parser.parse is not a function
    Open

    import superagent from 'superagent';
    Severity: Minor
    Found in src/index.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    There are no issues that match your filters.

    Category
    Status