JaniAnttonen/winston-loki

View on GitHub
src/requests.js

Summary

Maintainability
A
1 hr
Test Coverage

Function post has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const post = async (lokiUrl, contentType, headers = {}, data = '', timeout, httpAgent, httpsAgent) => {
  // Construct a buffer from the data string to have deterministic data size
  const dataBuffer = Buffer.from(data, 'utf8')

  // Construct the headers
Severity: Minor
Found in src/requests.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status