mirror of
https://github.com/sasjs/server.git
synced 2026-01-07 06:30:06 +00:00
chore(git): merge branch 'issue-8' of https://github.com/sasjs/server into issue-8
This commit is contained in:
@@ -2,14 +2,15 @@ import {
|
|||||||
readFile,
|
readFile,
|
||||||
generateTimestamp,
|
generateTimestamp,
|
||||||
deleteFile,
|
deleteFile,
|
||||||
fileExists
|
fileExists,
|
||||||
|
createFile
|
||||||
} from '@sasjs/utils'
|
} from '@sasjs/utils'
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import { ExecutionResult, ExecutionQuery } from '../types'
|
import { ExecutionResult, ExecutionQuery } from '../types'
|
||||||
import {
|
import {
|
||||||
getTmpFolderPath,
|
|
||||||
getTmpFilesFolderPath,
|
getTmpFilesFolderPath,
|
||||||
getTmpLogFolderPath
|
getTmpLogFolderPath,
|
||||||
|
getTmpWeboutFolderPath
|
||||||
} from '../utils'
|
} from '../utils'
|
||||||
import { configuration } from '../../package.json'
|
import { configuration } from '../../package.json'
|
||||||
import { promisify } from 'util'
|
import { promisify } from 'util'
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
|
import { MacroVars } from '@sasjs/utils'
|
||||||
export interface ExecutionQuery {
|
export interface ExecutionQuery {
|
||||||
_program: string
|
_program: string
|
||||||
|
macroVars?: MacroVars
|
||||||
}
|
}
|
||||||
|
|
||||||
export const isRequestQuery = (arg: any): arg is ExecutionQuery =>
|
export const isRequestQuery = (arg: any): arg is ExecutionQuery =>
|
||||||
|
|||||||
@@ -7,4 +7,7 @@ export const getTmpFolderPath = () =>
|
|||||||
export const getTmpFilesFolderPath = () =>
|
export const getTmpFilesFolderPath = () =>
|
||||||
path.join(getTmpFolderPath(), 'files')
|
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')
|
||||||
|
|||||||
Reference in New Issue
Block a user