mirror of
https://github.com/sasjs/adapter.git
synced 2025-12-13 18:24:34 +00:00
Compare commits
4 Commits
sasjs-test
...
v3.3.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f7f3e0a11 | ||
|
|
437bbe114b | ||
|
|
9f7870b804 | ||
|
|
9f00cd646e |
@@ -47,7 +47,7 @@ npm i -g copyfiles
|
|||||||
```
|
```
|
||||||
and then run to build:
|
and then run to build:
|
||||||
```bash
|
```bash
|
||||||
npm run update:adapter && npm run build
|
npm run update:adapter && npm run build
|
||||||
```
|
```
|
||||||
when it finishes run to deploy:
|
when it finishes run to deploy:
|
||||||
```bash
|
```bash
|
||||||
@@ -70,7 +70,7 @@ parmcards4;
|
|||||||
%webout(FETCH)
|
%webout(FETCH)
|
||||||
%webout(OPEN)
|
%webout(OPEN)
|
||||||
%macro x();
|
%macro x();
|
||||||
%do i=1 %to &_webin_file_count; %webout(OBJ,&&_webin_name&i) %end;
|
%do i=1 %to &_webin_file_count; %webout(OBJ,&&_webin_name&i,missing=STRING) %end;
|
||||||
%mend; %x()
|
%mend; %x()
|
||||||
%webout(CLOSE)
|
%webout(CLOSE)
|
||||||
;;;;
|
;;;;
|
||||||
@@ -79,7 +79,7 @@ parmcards4;
|
|||||||
%webout(FETCH)
|
%webout(FETCH)
|
||||||
%webout(OPEN)
|
%webout(OPEN)
|
||||||
%macro x();
|
%macro x();
|
||||||
%do i=1 %to &_webin_file_count; %webout(ARR,&&_webin_name&i) %end;
|
%do i=1 %to &_webin_file_count; %webout(ARR,&&_webin_name&i,missing=STRING) %end;
|
||||||
%mend; %x()
|
%mend; %x()
|
||||||
%webout(CLOSE)
|
%webout(CLOSE)
|
||||||
;;;;
|
;;;;
|
||||||
@@ -111,7 +111,7 @@ parmcards4;
|
|||||||
%macro x();
|
%macro x();
|
||||||
%do i=1 %to %sysfunc(countw(&sasjs_tables));
|
%do i=1 %to %sysfunc(countw(&sasjs_tables));
|
||||||
%let table=%scan(&sasjs_tables,&i);
|
%let table=%scan(&sasjs_tables,&i);
|
||||||
%webout(OBJ,&table)
|
%webout(OBJ,&table,missing=STRING)
|
||||||
%end;
|
%end;
|
||||||
%mend;
|
%mend;
|
||||||
%x()
|
%x()
|
||||||
@@ -125,7 +125,7 @@ parmcards4;
|
|||||||
%macro x();
|
%macro x();
|
||||||
%do i=1 %to %sysfunc(countw(&sasjs_tables));
|
%do i=1 %to %sysfunc(countw(&sasjs_tables));
|
||||||
%let table=%scan(&sasjs_tables,&i);
|
%let table=%scan(&sasjs_tables,&i);
|
||||||
%webout(ARR,&table)
|
%webout(ARR,&table,missing=STRING)
|
||||||
%end;
|
%end;
|
||||||
%mend;
|
%mend;
|
||||||
%x()
|
%x()
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export class SasjsRequestClient extends RequestClient {
|
|||||||
|
|
||||||
headers.Accept = contentType === 'application/json' ? contentType : '*/*'
|
headers.Accept = contentType === 'application/json' ? contentType : '*/*'
|
||||||
|
|
||||||
if (!accessToken)
|
if (!accessToken && typeof window !== 'undefined')
|
||||||
accessToken = localStorage.getItem('accessToken') ?? undefined
|
accessToken = localStorage.getItem('accessToken') ?? undefined
|
||||||
|
|
||||||
if (accessToken) headers.Authorization = `Bearer ${accessToken}`
|
if (accessToken) headers.Authorization = `Bearer ${accessToken}`
|
||||||
|
|||||||
Reference in New Issue
Block a user