UNPKG

@sasjs/cli

Version:

Command line interface for SASjs

18 lines (17 loc) 849 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAssetPath = void 0; var utils_1 = require("@sasjs/utils"); var getAssetPath = function (appLoc, serverType, streamWebFolder, fileName) { var sas9GUID = process.sasjsConstants.sas9GUID; var storedProcessPath = // the appLoc is inserted dynamically // for SAS 9 files are Base 64 encoded into STPs, with // dynamic runtime replacement of appLoc (see sasjsout.ts) // for Viya, fileName is a FILE, with replacement harcoded in build.sas serverType === utils_1.ServerType.SasViya ? "/SASJobExecution?_FILE=".concat(appLoc, "/services") : "/SASStoredProcess/?_PROGRAM=".concat(sas9GUID); return "".concat(storedProcessPath, "/").concat(streamWebFolder, "/").concat(fileName); }; exports.getAssetPath = getAssetPath;