Options
All
  • Public
  • Public/Protected
  • All
Menu

Module utils

Functions

asyncForEach

  • asyncForEach(array: any[], callback: any): Promise<void>

Const compareTimestamps

Const convertToCSV

  • convertToCSV(data: any): string
  • Converts the given JSON object to a CSV string.

    Parameters

    • data: any

      the JSON object to convert.

    Returns string

Const fetchLogByChunks

  • fetchLogByChunks(requestClient: RequestClient, accessToken: string, logUrl: string, logCount: number): Promise<string>
  • Fetches content of the log file

    Parameters

    • requestClient: RequestClient

      client object of Request Client.

    • accessToken: string

      an access token for an authorized user.

    • logUrl: string

      url of the log file.

    • logCount: number

    Returns Promise<string>

    an string containing log lines.

Const formatDataForRequest

  • formatDataForRequest(data: any): any

isIEorEdgeOrOldFirefox

  • isIEorEdgeOrOldFirefox(): boolean

Const isRelativePath

  • isRelativePath(uri: string): boolean

Const isUri

  • isUri(str: string): boolean
  • Checks if string is in URI format.

    Parameters

    • str: string

      string to check.

    Returns boolean

Const isUrl

  • isUrl(url: string): boolean
  • Checks if string is in URL format.

    Parameters

    • url: string

      string to check.

    Returns boolean

Const needsRetry

  • needsRetry(responseText: string): boolean

Const parseGeneratedCode

  • parseGeneratedCode(log: string): string

Const parseSasViyaLog

  • parseSasViyaLog(logResponse: object): string | object

Const parseSourceCode

  • parseSourceCode(log: string): string

Const parseWeboutResponse

  • parseWeboutResponse(response: string): string

Const serialize

  • serialize(obj: any): string

Const splitChunks

  • splitChunks(content: string): any[]

Generated using TypeDoc