@sasjs/core 4.57.2 → 4.57.3

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.
package/package.json CHANGED
@@ -32,5 +32,5 @@
32
32
  "lint": "npx @sasjs/cli lint",
33
33
  "prepare": "git rev-parse --git-dir && git config core.hooksPath ./.git-hooks || true"
34
34
  },
35
- "version": "4.57.2"
35
+ "version": "4.57.3"
36
36
  }
@@ -187,7 +187,14 @@ proc http method='POST' out=&fname1 &oauth_bearer in=&fref
187
187
  %if &grant_type=authorization_code %then %do;
188
188
  "Authorization"="Bearer &&&access_token_var"
189
189
  %end;
190
- "Content-Disposition"= "&contentdisp filename=""&name""; name=""&name"";";
190
+ "Content-Disposition"=
191
+ %if "&ext"="SVG" %then %do;
192
+ "filename=""&name"";"
193
+ %end;
194
+ %else %do;
195
+ "&contentdisp filename=""&name""; name=""&name"";"
196
+ %end;
197
+ ;
191
198
  run;
192
199
  %if &mdebug=1 %then %put &sysmacroname POST &=url
193
200
  &=SYS_PROCHTTP_STATUS_CODE &=SYS_PROCHTTP_STATUS_PHRASE;
@@ -122,7 +122,7 @@ options noquotelenmax;
122
122
  %let path=%substr(&path,1,%length(&path)-1);
123
123
 
124
124
  /* ensure folder exists */
125
- %put &sysmacroname: Path &path being checked / created;
125
+ %&dbg.put &sysmacroname: Path &path being checked / created;
126
126
  %mv_createfolder(path=&path)
127
127
 
128
128
  %local base_uri; /* location of rest apis */
@@ -955,7 +955,7 @@ run;
955
955
  libname &libref1 clear;
956
956
  %end;
957
957
 
958
- %put NOTE: &sysmacroname: Job &name successfully created! Check it out:;
959
- %put NOTE-;%put NOTE- &url/SASJobExecution?_PROGRAM=&path/&name;%put NOTE-;
958
+ %put &sysmacroname: Job &name created! Check it out:;
959
+ %put &url/SASJobExecution?_PROGRAM=&path/&name;
960
960
 
961
961
  %mend mv_createwebservice;
@@ -69,8 +69,7 @@
69
69
  options noquotelenmax;
70
70
  %local base_uri; /* location of rest apis */
71
71
  %let base_uri=%mf_getplatform(VIYARESTAPI);
72
-
73
- %put &sysmacroname: fetching details for &path ;
72
+ /* fetch the members of the folder to get the uri */
74
73
  %local fname1;
75
74
  %let fname1=%mf_getuniquefileref();
76
75
  proc http method='GET' out=&fname1 &oauth_bearer
@@ -108,7 +107,9 @@ proc http method='GET' out=&fname1a &oauth_bearer
108
107
  headers "Authorization"="Bearer &&&access_token_var";
109
108
  %end;
110
109
  run;
111
- %put &=SYS_PROCHTTP_STATUS_CODE;
110
+ %if &SYS_PROCHTTP_STATUS_CODE ne 200 %then %do;
111
+ %put &=sysmacroname &=SYS_PROCHTTP_STATUS_CODE &=SYS_PROCHTTP_STATUS_PHRASE;
112
+ %end;
112
113
  %local libref1a;
113
114
  %let libref1a=%mf_getuniquelibref();
114
115
  libname &libref1a JSON fileref=&fname1a;
@@ -140,7 +141,7 @@ run;
140
141
  ,msg=%str(&SYS_PROCHTTP_STATUS_CODE &SYS_PROCHTTP_STATUS_PHRASE)
141
142
  )
142
143
  %end;
143
- %else %put &sysmacroname: &path/&name successfully deleted;
144
+ %else %put &sysmacroname: &path/&name deleted;
144
145
 
145
146
  /* clear refs */
146
147
  filename &fname1 clear;