chore: use utility function escapeWinSlashes

This commit is contained in:
2022-09-19 23:36:04 +05:00
parent 0749d65173
commit 92549402eb
7 changed files with 26 additions and 41 deletions
@@ -1,3 +1,4 @@
import { escapeWinSlashes } from '@sasjs/utils'
import { PreProgramVars, Session } from '../../types'
import { generateFileUploadSasCode, getMacrosFolder } from '../../utils'
import { ExecutionVars } from './'
@@ -8,6 +9,7 @@ export const createSASProgram = async (
vars: ExecutionVars,
session: Session,
weboutPath: string,
headersPath: string,
tokenFile: string,
otherArgs?: any
) => {
@@ -23,7 +25,7 @@ export const createSASProgram = async (
%let _sasjs_displayname=${preProgramVariables?.displayName};
%let _sasjs_apiserverurl=${preProgramVariables?.serverUrl};
%let _sasjs_apipath=/SASjsApi/stp/execute;
%let _sasjs_webout_headers=%sysfunc(pathname(work))/../stpsrv_header.txt;
%let _sasjs_webout_headers=${escapeWinSlashes(headersPath)};
%let _metaperson=&_sasjs_displayname;
%let _metauser=&_sasjs_username;