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 formatDataForRequest

  • formatDataForRequest(data: any): any

Const isAuthorizeFormRequired

  • isAuthorizeFormRequired(response: string): boolean

isIEorEdgeOrOldFirefox

  • isIEorEdgeOrOldFirefox(): boolean

Const isLogInRequired

  • isLogInRequired(response: string): boolean

Const isLogInSuccess

  • isLogInSuccess(response: string): 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

makeRequest

  • makeRequest<T>(url: string, request: RequestInit, callback: function, contentType?: "text" | "json"): Promise<object>
  • Type parameters

    • T

    Parameters

    • url: string
    • request: RequestInit
    • callback: function
    • Default value contentType: "text" | "json" = "json"

    Returns Promise<object>

Const needsRetry

  • needsRetry(responseText: string): boolean

Const parseAndSubmitAuthorizeForm

  • parseAndSubmitAuthorizeForm(response: string, serverUrl: string): Promise<unknown>

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