@sasjs/core 7.1.14 → 7.1.16
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/.sasjslint +4 -0
- package/README.md +2 -2
- package/base/mf_getvarformat.sas +2 -2
- package/base/mf_getvarlen.sas +2 -2
- package/base/mf_getvarnum.sas +2 -2
- package/base/mp_dirlist.sas +11 -0
- package/base/mp_ds2ddl.sas +2 -2
- package/meta/mm_getdirectories.sas +2 -2
- package/meta/mm_getgroups.sas +2 -2
- package/meta/mm_gettree.sas +2 -2
- package/package.json +7 -20
- package/viya/mv_getviyafileextparms.sas +2 -2
package/.sasjslint
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/sasjs/lint/main/sasjslint-schema.json",
|
|
2
3
|
"noTrailingSpaces": true,
|
|
3
4
|
"noEncodedPasswords": true,
|
|
4
5
|
"hasDoxygenHeader": true,
|
|
@@ -6,6 +7,7 @@
|
|
|
6
7
|
"hasMacroParentheses": true,
|
|
7
8
|
"lineEndings": "lf",
|
|
8
9
|
"noGremlins": true,
|
|
10
|
+
"noMalformedMacroCalls": true,
|
|
9
11
|
"noNestedMacros": true,
|
|
10
12
|
"noSingleAsteriskComments": true,
|
|
11
13
|
"noSpacesInFileNames": true,
|
|
@@ -21,11 +23,13 @@
|
|
|
21
23
|
"indentationMultiple": "error",
|
|
22
24
|
"lineEndings": "error",
|
|
23
25
|
"lowerCaseFileNames": "error",
|
|
26
|
+
"lowerCaseMacroNames": "error",
|
|
24
27
|
"maxLineLength": "error",
|
|
25
28
|
"minMacroNameLength": "error",
|
|
26
29
|
"noBannedStrings": "error",
|
|
27
30
|
"noEncodedPasswords": "error",
|
|
28
31
|
"noGremlins": "error",
|
|
32
|
+
"noMalformedMacroCalls": "error",
|
|
29
33
|
"noNestedCommentsInHeader": "error",
|
|
30
34
|
"noNestedMacros": "error",
|
|
31
35
|
"noSingleAsteriskComments": "error",
|
package/README.md
CHANGED
|
@@ -224,9 +224,9 @@ We are currently on major release v6. The following breaking changes were appli
|
|
|
224
224
|
|
|
225
225
|
### Cutting a release
|
|
226
226
|
|
|
227
|
-
Releases are cut by
|
|
227
|
+
Releases are cut by `@sasjs/release` from the commit messages on `main`, so the squashed PR message is what decides the version:
|
|
228
228
|
|
|
229
|
-
* a breaking change
|
|
229
|
+
* a breaking change bumps the major when the subject carries `!` after the type (`feat!:`) or the body carries a `BREAKING CHANGE:` footer. The previous pipeline ignored `!` on its own - the v6 rename merged as `feat!:` and shipped as a patch - and this one does not.
|
|
230
230
|
* no commit that reaches `main` may carry a skip marker (`[skip ci]` and friends), including one copied in by the squashed commit list. A skip marker suppresses every workflow for that push, the release job included, and nothing is published.
|
|
231
231
|
|
|
232
232
|
## Star Gazing
|
package/base/mf_getvarformat.sas
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
@version 9.2
|
|
34
34
|
**/
|
|
35
35
|
|
|
36
|
-
%macro
|
|
36
|
+
%macro mf_getvarformat(libds /* two level ds name */
|
|
37
37
|
, var /* variable name from which to return the format */
|
|
38
38
|
, force=0
|
|
39
39
|
)/*/STORE SOURCE*/;
|
|
@@ -70,4 +70,4 @@
|
|
|
70
70
|
%let rc = %sysfunc(close(&dsid));
|
|
71
71
|
/* Return variable format */
|
|
72
72
|
&vformat
|
|
73
|
-
%mend
|
|
73
|
+
%mend mf_getvarformat;
|
package/base/mf_getvarlen.sas
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
**/
|
|
29
29
|
|
|
30
|
-
%macro
|
|
30
|
+
%macro mf_getvarlen(libds /* two level ds name */
|
|
31
31
|
, var /* variable name from which to return the length */
|
|
32
32
|
)/*/STORE SOURCE*/;
|
|
33
33
|
%local dsid vnum vlen rc;
|
|
@@ -53,4 +53,4 @@
|
|
|
53
53
|
%let rc = %sysfunc(close(&dsid));
|
|
54
54
|
/* Return variable format */
|
|
55
55
|
&vlen
|
|
56
|
-
%mend
|
|
56
|
+
%mend mf_getvarlen;
|
package/base/mf_getvarnum.sas
CHANGED
|
@@ -29,7 +29,7 @@ returns:
|
|
|
29
29
|
|
|
30
30
|
**/
|
|
31
31
|
|
|
32
|
-
%macro
|
|
32
|
+
%macro mf_getvarnum(libds /* two level ds name */
|
|
33
33
|
, var /* variable name from which to return the format */
|
|
34
34
|
)/*/STORE SOURCE*/;
|
|
35
35
|
%local dsid vnum rc;
|
|
@@ -55,4 +55,4 @@ returns:
|
|
|
55
55
|
/* Return variable number */
|
|
56
56
|
&vnum.
|
|
57
57
|
|
|
58
|
-
%mend
|
|
58
|
+
%mend mf_getvarnum;
|
package/base/mp_dirlist.sas
CHANGED
|
@@ -244,6 +244,17 @@ run;
|
|
|
244
244
|
if filename=ext then ext=' ';
|
|
245
245
|
msg=dmsg;
|
|
246
246
|
end;
|
|
247
|
+
else if fexist("&fref2") then do;
|
|
248
|
+
/* dopen refused it and the platform said nothing about why -
|
|
249
|
+
Viya returns an empty sysmsg() for a regular file, where other
|
|
250
|
+
platforms say it is not a directory. Anything that exists and
|
|
251
|
+
cannot be opened as a folder is a file: reporting it as locked
|
|
252
|
+
both hides it from callers that keep folders only and shows the
|
|
253
|
+
user a row with no message */
|
|
254
|
+
file_or_folder='file';
|
|
255
|
+
ext=prxchange('s/.*\.{1,1}(.*)/$1/',1,filename);
|
|
256
|
+
if filename=ext then ext=' ';
|
|
257
|
+
end;
|
|
247
258
|
else do;
|
|
248
259
|
/* listed but not openable at all - a broken link, for instance */
|
|
249
260
|
file_or_folder='locked';
|
package/base/mp_ds2ddl.sas
CHANGED
|
@@ -97,7 +97,7 @@ create table _data_ as
|
|
|
97
97
|
%local colconst; %let colconst=&syslast;
|
|
98
98
|
|
|
99
99
|
%local constraints_used;
|
|
100
|
-
%macro
|
|
100
|
+
%macro addconst();
|
|
101
101
|
data _null_;
|
|
102
102
|
length ctype $11 constraint_name_orig $256 constraints_used $5000;
|
|
103
103
|
set &colconst(
|
|
@@ -129,7 +129,7 @@ create table _data_ as
|
|
|
129
129
|
end;
|
|
130
130
|
run;
|
|
131
131
|
%put &=constraints_used;
|
|
132
|
-
%mend
|
|
132
|
+
%mend addconst;
|
|
133
133
|
|
|
134
134
|
data _null_;
|
|
135
135
|
file &fref mod;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
**/
|
|
22
22
|
|
|
23
|
-
%macro
|
|
23
|
+
%macro mm_getdirectories(
|
|
24
24
|
path=
|
|
25
25
|
,outds=work.mm_getDirectories
|
|
26
26
|
,mDebug=0
|
|
@@ -55,4 +55,4 @@ data &outds (keep=directoryuri name directoryname directorydesc );
|
|
|
55
55
|
end;
|
|
56
56
|
run;
|
|
57
57
|
|
|
58
|
-
%mend
|
|
58
|
+
%mend mm_getdirectories;
|
package/meta/mm_getgroups.sas
CHANGED
package/meta/mm_gettree.sas
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sasjs/core",
|
|
3
3
|
"description": "Production-quality MIT-licensed SAS macro library (mf_*, mp_*, mm* macros) for SAS 9 and Viya application development",
|
|
4
|
+
"version": "7.1.16",
|
|
4
5
|
"license": "MIT",
|
|
5
6
|
"keywords": [
|
|
6
7
|
"SAS",
|
|
@@ -19,22 +20,6 @@
|
|
|
19
20
|
"type": "git",
|
|
20
21
|
"url": "git+https://github.com/sasjs/core.git"
|
|
21
22
|
},
|
|
22
|
-
"release": {
|
|
23
|
-
"branches": [
|
|
24
|
-
"main"
|
|
25
|
-
],
|
|
26
|
-
"plugins": [
|
|
27
|
-
"@semantic-release/commit-analyzer",
|
|
28
|
-
"@semantic-release/release-notes-generator",
|
|
29
|
-
[
|
|
30
|
-
"@semantic-release/npm",
|
|
31
|
-
{
|
|
32
|
-
"npmPublish": false
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
"@semantic-release/github"
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
23
|
"publishConfig": {
|
|
39
24
|
"access": "public"
|
|
40
25
|
},
|
|
@@ -46,13 +31,15 @@
|
|
|
46
31
|
"build": "npx @sasjs/cli cbd -t server",
|
|
47
32
|
"docs": "npx @sasjs/cli doc -t docsonly && ./sasjs/utils/build.sh",
|
|
48
33
|
"test": "npx @sasjs/cli test -t server",
|
|
49
|
-
"lint": "npx @sasjs/cli lint"
|
|
34
|
+
"lint": "npx @sasjs/cli lint",
|
|
35
|
+
"release": "sasjs-release",
|
|
36
|
+
"prepublishOnly": "node -e \"const v=require('./package.json').version; if (/^0\\.0\\.0/.test(v)) { console.error('refusing to publish ' + v + ': the version is stamped from the tag when publishing'); process.exit(1) }\""
|
|
50
37
|
},
|
|
51
38
|
"maintainers": [
|
|
52
39
|
"https://sasapps.io"
|
|
53
40
|
],
|
|
54
41
|
"devDependencies": {
|
|
55
|
-
"@nogoo9/gitleaks": "8.30.1-post.2"
|
|
56
|
-
|
|
57
|
-
|
|
42
|
+
"@nogoo9/gitleaks": "8.30.1-post.2",
|
|
43
|
+
"@sasjs/release": "0.11.1"
|
|
44
|
+
}
|
|
58
45
|
}
|