datagrok-tools 4.13.53 → 4.13.55

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Datagrok-tools changelog
2
2
 
3
+ ## 4.13.55 (2025-01-06)
4
+
5
+ ### Features
6
+
7
+ * Removed unnecessary outputs in grok check
8
+
9
+
10
+ ## 4.13.54 (2025-01-06)
11
+
12
+ ### Features
13
+
14
+ * Grok check regex update
15
+
16
+
3
17
  ## 4.13.53 (2025-01-06)
4
18
 
5
19
  ### Features
@@ -369,7 +369,9 @@ function checkFuncSignatures(packagePath, files) {
369
369
  });
370
370
  if (roles.length > 1) warnings.push("File ".concat(file, ", function ").concat(f.name, ": several function roles are used (").concat(roles.join(', '), ")"));else if (roles.length === 1) {
371
371
  var vr = checkFunctions[roles[0]](f);
372
- if (!vr.value) warnings.push("File ".concat(file, ", function ").concat(f.name, ":\n").concat(vr.message));
372
+ if (!vr.value) {
373
+ warnings.push("File ".concat(file, ", function ").concat(f.name, ":\n").concat(vr.message));
374
+ }
373
375
  }
374
376
  if (f.isInvalidateOnWithoutCache) warnings.push("File ".concat(file, ", function ").concat(f.name, ": Can't use invalidateOn without cache, please follow this example: 'meta.cache.invalidateOn'"));
375
377
  if (f.cache) if (!utils.cahceValues.includes(f.cache)) warnings.push("File ".concat(file, ", function ").concat(f.name, ": unsupposed variable for cache : ").concat(f.cache));
@@ -261,7 +261,7 @@ var fileParamRegex = exports.fileParamRegex = {
261
261
  sql: new RegExp("^--\\s*((?:".concat(headerTags.join('|'), ")[^:]*): *([^\\s\\[\\{]+) ?([^\\s\\[\\{]+)?[^\\n]*$"))
262
262
  };
263
263
  var nameAnnRegex = exports.nameAnnRegex = /\/\/\s*(name[^:]*): ([^\n\r\[\{]+)/;
264
- var nameRegex = exports.nameRegex = /(?:|static|export\s+function|export\s+async\s+function)\s+([a-zA-Z_][a-zA-Z0-9_$]*)\s*\((.*?)\).*/;
264
+ var nameRegex = exports.nameRegex = /(?:|(?:static)(?:export )(?:async )function )\s+([a-zA-Z_][a-zA-Z0-9_$]*)\s*\((.*?).*/;
265
265
  var absUrlRegex = exports.absUrlRegex = new RegExp('^(?:[a-z+]+:)?//', 'i');
266
266
  function getScriptOutputType(script) {
267
267
  var comment = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '#';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datagrok-tools",
3
- "version": "4.13.53",
3
+ "version": "4.13.55",
4
4
  "description": "Utility to upload and publish packages to Datagrok",
5
5
  "homepage": "https://github.com/datagrok-ai/public/tree/master/tools#readme",
6
6
  "dependencies": {