@sasjs/cli 4.9.0 → 4.10.1

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.
@@ -71,9 +71,9 @@ var path_1 = __importDefault(require("path"));
71
71
  var sasRegExp = /\.sas$/;
72
72
  // to get lines that have @brief keyword (case insensitive)
73
73
  var briefRegExp = /^\s\s@brief\s/i;
74
- // to get lines that have @param keyword and optionally [in] or [out] string
74
+ // to get lines that have @param keyword and optionally [anything] string
75
75
  // following it (case insensitive)
76
- var paramRegExp = /^\s\s@param\s(\[(in|out)\]\s)?/i;
76
+ var paramRegExp = /^\s\s@param\s?(\[.*?]\s?)?/i;
77
77
  /**
78
78
  * Generates VS Code snippets from the Doxygen headers in the SAS Macros.
79
79
  * @param macroFolders an array of file paths of SAS Macros.
@@ -114,12 +114,17 @@ describe('sasjs snippets', function () {
114
114
  prefix: '%macro2',
115
115
  body: '%macro2($1)',
116
116
  description: [
117
- 'Macro 2',
117
+ 'Macro 2 with uppercase @BRIEF',
118
118
  '\r',
119
119
  'Params:',
120
120
  '-msg The message to be printed',
121
- '-indlm= ( ) Delimeter of the input string',
122
- '-outdlm= ( ) Delimiter of the output string'
121
+ '-indlm= ( ) Uppercase @PARAM',
122
+ '-outdlm= ( ) Uppercase [OUT]',
123
+ '-outdlm= ( ) No space after @param',
124
+ '-outdlm= ( ) No space after [out]',
125
+ '-outdlm= ( ) No space after @param and [out]',
126
+ '-scopeds= () with [in,out]',
127
+ '-anything= () with [anything]'
123
128
  ]
124
129
  },
125
130
  badMacro: {
package/package.json CHANGED
@@ -51,16 +51,16 @@
51
51
  "access": "public"
52
52
  },
53
53
  "dependencies": {
54
- "@sasjs/adapter": "4.9.1",
54
+ "@sasjs/adapter": "4.9.2",
55
55
  "@sasjs/core": "4.46.3",
56
56
  "@sasjs/lint": "2.3.1",
57
57
  "@sasjs/utils": "3.4.0",
58
- "adm-zip": "0.5.9",
58
+ "adm-zip": "0.5.10",
59
59
  "chalk": "4.1.2",
60
60
  "dotenv": "16.0.3",
61
61
  "esm": "3.2.25",
62
62
  "find": "0.3.0",
63
- "js-base64": "3.7.2",
63
+ "js-base64": "3.7.5",
64
64
  "jsdom": "22.1.0",
65
65
  "jwt-decode": "3.1.2",
66
66
  "lodash.groupby": "4.6.0",
@@ -96,7 +96,7 @@
96
96
  "jest-cli": "29.4.3",
97
97
  "jest-environment-jsdom": "29.4.3",
98
98
  "jest-extended": "3.2.4",
99
- "nodemon": "2.0.19",
99
+ "nodemon": "3.0.1",
100
100
  "prettier": "2.6.2",
101
101
  "ts-jest": "29.0.5",
102
102
  "ts-node": "10.4.0",
@@ -104,5 +104,5 @@
104
104
  "typescript": "4.9.5",
105
105
  "util": "0.12.4"
106
106
  },
107
- "version": "4.9.0"
107
+ "version": "4.10.1"
108
108
  }