From dde1228b1dfaf9c0061044a3790486b608cfba75 Mon Sep 17 00:00:00 2001 From: Saad Jutt Date: Tue, 23 Mar 2021 00:50:33 +0500 Subject: [PATCH] fix: function renamed fetchLogByChunks --- src/SASViyaApiClient.ts | 6 +++--- .../{fetchLogFileContentByChunks.ts => fetchLogByChunks.ts} | 2 +- src/utils/index.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/utils/{fetchLogFileContentByChunks.ts => fetchLogByChunks.ts} (96%) diff --git a/src/SASViyaApiClient.ts b/src/SASViyaApiClient.ts index 68f5cdd..fff248a 100644 --- a/src/SASViyaApiClient.ts +++ b/src/SASViyaApiClient.ts @@ -3,7 +3,7 @@ import { isRelativePath, isUri, isUrl, - fetchLogFileContentByChunks + fetchLogByChunks } from './utils' import * as NodeFormData from 'form-data' import { @@ -433,7 +433,7 @@ export class SASViyaApiClient { if (debug && logLink) { const logUrl = `${logLink.href}/content` const logCount = currentJob.logStatistics?.lineCount ?? 1000000 - log = await fetchLogFileContentByChunks( + log = await fetchLogByChunks( this.requestClient, accessToken!, logUrl, @@ -461,7 +461,7 @@ export class SASViyaApiClient { if (logLink) { const logUrl = `${logLink.href}/content` const logCount = currentJob.logStatistics?.lineCount ?? 1000000 - log = await fetchLogFileContentByChunks( + log = await fetchLogByChunks( this.requestClient, accessToken!, logUrl, diff --git a/src/utils/fetchLogFileContentByChunks.ts b/src/utils/fetchLogByChunks.ts similarity index 96% rename from src/utils/fetchLogFileContentByChunks.ts rename to src/utils/fetchLogByChunks.ts index 742121d..35e2be8 100644 --- a/src/utils/fetchLogFileContentByChunks.ts +++ b/src/utils/fetchLogByChunks.ts @@ -9,7 +9,7 @@ import { prefixMessage } from '@sasjs/utils/error' * @param {number} logCount- total number of log lines in file. * @returns an string containing log lines. */ -export const fetchLogFileContentByChunks = async ( +export const fetchLogByChunks = async ( requestClient: RequestClient, accessToken: string, logUrl: string, diff --git a/src/utils/index.ts b/src/utils/index.ts index b19cc9f..4603194 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -11,4 +11,4 @@ export * from './parseSasViyaLog' export * from './serialize' export * from './splitChunks' export * from './parseWeboutResponse' -export * from './fetchLogFileContentByChunks' +export * from './fetchLogByChunks'