@sasjs/core 4.4.4 → 4.4.5

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/README.md CHANGED
@@ -81,7 +81,7 @@ Macros used for interfacing with SAS Viya.
81
81
 
82
82
  Wait - this is a macro library - what is LUA doing here? Well, it is a little known fact that you CAN run LUA within a SAS Macro. It has to be written to a text file with a `.lua` extension, from where you can `%include` it. So, without using the `proc lua` wrapper.
83
83
 
84
- To contribute, simply write your freeform LUA in the LUA folder. Then run the `build.py`, which will convert your LUA into a data step with put statements, and create the macro wrapper with a `ml_` prefix. You can then use your module in any program by running:
84
+ To contribute, simply write your freeform LUA in the LUA folder. Then run the `build.py`, which will convert all files with a ".lua" extension into a macro wrapper with an `ml_` prefix (embedding the necessary data step put statements). You can then use your module in any program by running:
85
85
 
86
86
  ```sas
87
87
  /* compile the lua module */
@@ -95,8 +95,7 @@ endsubmit;
95
95
  run;
96
96
  ```
97
97
 
98
- - X command enabled
99
- - Prefixes: _mmw_,_mmu_,_mmx_
98
+ - Prefixes: _ml_
100
99
 
101
100
  ## Installation
102
101
 
@@ -129,11 +128,11 @@ filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
129
128
  - _mf_ for macro functions (can be used in open code).
130
129
  - _ml_ for macros that are used to compile LUA modules
131
130
  - _mm_ for metadata macros (interface with the metadata server).
132
- - _mmx_ for macros that use metadata and are XCMD enabled
131
+ - _mmx_ for macros that use metadata and are XCMD enabled (working on both windows and unix)
133
132
  - _mp_ for macro procedures (which generate sas code)
134
133
  - _ms_ for macro procedures that will only work with [@sasjs/server](https://github.com/sasjs/server)
135
134
  - _mv_ for macro procedures that will only work in Viya
136
- - _mx_ for macros that are XCMD enabled
135
+ - _mx_ for macros that are XCMD enabled (working on both windows and unix)
137
136
  - follow verb-noun convention
138
137
  - unix style line endings (lf)
139
138
  - individual lines should be no more than 80 characters long
@@ -15,6 +15,7 @@
15
15
  @li /data
16
16
  @li /jobs
17
17
  @li /services
18
+ @li /tests
18
19
  @li /tests/jobs
19
20
  @li /tests/services
20
21
  @li /tests/macros
@@ -46,9 +47,13 @@
46
47
 
47
48
  /**
48
49
  * First check we are not in the tests/macros folder (which has no subfolders)
50
+ * or specifically in the testsetup or testteardown services
49
51
  */
50
- %if %index(&pgm,/tests/macros/) %then %do;
51
- %let root=%substr(&pgm,1,%index(&pgm,/tests/macros)-1);
52
+ %if %index(&pgm,/tests/macros/)
53
+ or %index(&pgm,/tests/testsetup)
54
+ or %index(&pgm,/tests/testteardown)
55
+ %then %do;
56
+ %let root=%substr(&pgm,1,%index(&pgm,/tests)-1);
52
57
  &root
53
58
  %return;
54
59
  %end;
package/package.json CHANGED
@@ -33,7 +33,8 @@
33
33
  "prepare": "git rev-parse --git-dir && git config core.hooksPath ./.git-hooks || true"
34
34
  },
35
35
  "devDependencies": {
36
- "@sasjs/cli": "3.6.0"
36
+ "@sasjs/cli": "3.6.0",
37
+ "@sasjs/core": "4.4.4"
37
38
  },
38
- "version": "4.4.4"
39
+ "version": "4.4.5"
39
40
  }