1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-11 03:34:35 +00:00

chore(git): merge branch 'issue-8' of https://github.com/sasjs/server into issue-8

This commit is contained in:
Yury Shkoda
2021-09-30 18:19:39 +03:00
3 changed files with 10 additions and 4 deletions

View File

@@ -2,14 +2,15 @@ import {
readFile,
generateTimestamp,
deleteFile,
fileExists
fileExists,
createFile
} from '@sasjs/utils'
import path from 'path'
import { ExecutionResult, ExecutionQuery } from '../types'
import {
getTmpFolderPath,
getTmpFilesFolderPath,
getTmpLogFolderPath
getTmpLogFolderPath,
getTmpWeboutFolderPath
} from '../utils'
import { configuration } from '../../package.json'
import { promisify } from 'util'

View File

@@ -1,5 +1,7 @@
import { MacroVars } from '@sasjs/utils'
export interface ExecutionQuery {
_program: string
macroVars?: MacroVars
}
export const isRequestQuery = (arg: any): arg is ExecutionQuery =>

View File

@@ -7,4 +7,7 @@ export const getTmpFolderPath = () =>
export const getTmpFilesFolderPath = () =>
path.join(getTmpFolderPath(), 'files')
export const getTmpLogFolderPath = () => path.join(getTmpFolderPath(), 'log')
export const getTmpLogFolderPath = () => path.join(getTmpFolderPath(), 'logs')
export const getTmpWeboutFolderPath = () =>
path.join(getTmpFolderPath(), 'webouts')