@sasjs/cli 4.12.7 → 4.12.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -245,7 +245,7 @@ function getBuildInfo(target, streamWeb) {
245
245
  case 8:
246
246
  buildVars = _a.sent();
247
247
  return [2 /*return*/, "\n/**\n * The appLoc represents the metadata or SAS Drive location of the app you\n * are about to deploy\n *\n * To set an alternative appLoc, simply populate the appLoc variable prior\n * to running this program, eg:\n *\n * %let apploc=/my/apploc;\n * %inc thisfile;\n *\n */\n\n%global appLoc;\n%let compiled_apploc=".concat(appLoc, ";\n%let appLoc=%sysfunc(coalescec(&appLoc,&compiled_apploc));\n\n\n").concat(serverType === utils_1.ServerType.Sas9
248
- ? "\n/**\n * The serverName represents the SAS 9 logical server context\n * There is no programmatic (SAS code) way to obtain this\n * So it is taken from the sasjsconfig file OR supplied at runtime, eg:\n * \n * %let apploc=/my/apploc;\n * %let serverName=SASAppDC;\n * %inc thisfile;\n * \n * /\n\n%global serverName;\n%let compiled_serverName=".concat(serverName, ";\n%let serverName=%sysfunc(coalescec(&serverName,&compiled_serverName));\n")
248
+ ? "\n/**\n * The serverName represents the SAS 9 logical server context\n * There is no programmatic (SAS code) way to obtain this\n * So it is taken from the sasjsconfig file OR supplied at runtime, eg:\n * \n * %let apploc=/my/apploc;\n * %let serverName=SASAppDC;\n * %inc thisfile;\n * \n */\n\n%global serverName;\n%let compiled_serverName=".concat(serverName, ";\n%let serverName=%sysfunc(coalescec(&serverName,&compiled_serverName));\n")
249
249
  : '', "\n\n%let sasjs_clickmeservice=clickme;\n%let syscc=0;\noptions ps=max nonotes nosgen nomprint nomlogic nosource2 nosource noquotelenmax;\n/* user supplied build vars */\n").concat(buildVars, "\n/* user supplied build vars end */\n/* system macro dependencies for build process */\n").concat(dependenciesContent, "\n/* system macro dependencies for build process end*/\n/* system macros for build process */\n").concat((0, utils_1.removeHeader)(buildConfig), "\n/* system macros for build process end */\n")];
250
250
  }
251
251
  });
@@ -160,6 +160,9 @@ describe('getWebServiceScriptInvocation', function () {
160
160
  it('should return macro invocation for stored file when encoded is equal to true', function () {
161
161
  expect((0, build_1.getWebServiceScriptInvocation)(utils_1.ServerType.SasViya, false, true)).toEqual('%mv_createfile(path=&appLoc/&path, name=&filename, inref=filecode, intype=BASE64)');
162
162
  });
163
+ it('should return macro invocation for stored file when encoded is equal to true and filename is passed', function () {
164
+ expect((0, build_1.getWebServiceScriptInvocation)(utils_1.ServerType.SasViya, false, true, 'index.js')).toEqual('%mv_createfile(path=&appLoc/&path, name=&filename, inref=filecode, intype=BASE64,swap=compiled_apploc apploc)');
165
+ });
163
166
  });
164
167
  describe(utils_1.ServerType.Sas9, function () {
165
168
  it('should return macro invocation for stored program', function () {
package/package.json CHANGED
@@ -51,8 +51,8 @@
51
51
  "access": "public"
52
52
  },
53
53
  "dependencies": {
54
- "@sasjs/adapter": "4.11.3",
55
- "@sasjs/core": "4.58.1",
54
+ "@sasjs/adapter": "4.12.1",
55
+ "@sasjs/core": "4.59.1",
56
56
  "@sasjs/lint": "2.4.3",
57
57
  "@sasjs/utils": "3.5.2",
58
58
  "adm-zip": "0.5.10",
@@ -101,5 +101,5 @@
101
101
  "typescript": "4.9.5",
102
102
  "util": "0.12.4"
103
103
  },
104
- "version": "4.12.7"
104
+ "version": "4.12.9"
105
105
  }