datagrok-tools 4.12.13 → 4.12.15

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.
@@ -426,18 +426,18 @@ function checkChangelog(packagePath, json) {
426
426
  encoding: 'utf-8'
427
427
  });
428
428
  } catch (e) {
429
- return ['CHANGELOG.md file does not exist'];
429
+ return ['CHANGELOG.md file does not exist\n'];
430
430
  }
431
431
  var regex = /^##[^#].*$/gm;
432
432
  var h2 = clf.match(regex);
433
- if (!h2) return ['No versions found in CHANGELOG.md'];
433
+ if (!h2) return ['No versions found in CHANGELOG.md\n'];
434
434
  regex = /^## \d+\.\d+\.\d+ \((\d{4}-\d{2}-\d{2}|WIP)\)$/;
435
435
  var _iterator7 = _createForOfIteratorHelper(h2),
436
436
  _step7;
437
437
  try {
438
438
  for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
439
439
  var h = _step7.value;
440
- if (!regex.test(h)) warnings.push("CHANGELOG: '".concat(h, "' does not match the h2 format, expected: ## <version> (<release date> | WIP)"));
440
+ if (!regex.test(h)) warnings.push("CHANGELOG: '".concat(h, "' does not match the h2 format, expected: ## <version> (<release date> | WIP)\n"));
441
441
  }
442
442
  } catch (err) {
443
443
  _iterator7.e(err);
@@ -447,7 +447,7 @@ function checkChangelog(packagePath, json) {
447
447
  regex = /^## (\d+\.\d+\.\d+)/;
448
448
  var v1 = (_h2$0$match = h2[0].match(regex)) === null || _h2$0$match === void 0 ? void 0 : _h2$0$match[1];
449
449
  var v2 = (_h2$ = h2[1]) === null || _h2$ === void 0 ? void 0 : (_h2$$match = _h2$.match(regex)) === null || _h2$$match === void 0 ? void 0 : _h2$$match[1];
450
- if (v1 !== json.version && v2 !== json.version) warnings.push("Latest package version (".concat(json.version, ") is not in CHANGELOG"));
450
+ if (v1 !== json.version && v2 !== json.version) warnings.push("Latest package version (".concat(json.version, ") is not in CHANGELOG\n"));
451
451
  return warnings;
452
452
  }
453
453
  function warn(warnings) {
@@ -184,6 +184,7 @@ function test(args) {
184
184
  failed: failed,
185
185
  countReport: countReport
186
186
  });
187
+ return;
187
188
  }
188
189
  var cStatus = df.columns.byName('success');
189
190
  var cSkipped = df.columns.byName('skipped');
@@ -205,9 +206,8 @@ function test(args) {
205
206
  failReport += "Test result : Failed : ".concat(cTime.get(i), " : ").concat(targetPackage, ".").concat(cCat.get(i), ".").concat(cName.get(i), " : ").concat(cMessage.get(i), "\n");
206
207
  }
207
208
  }
208
- if (!options.verbose) df.rows.removeWhere(function (r) {
209
- return r.get('success');
210
- });
209
+ // if (!options.verbose)
210
+ // df.rows.removeWhere((r: any) => r.get('success'));
211
211
  var csv = df.toCsv();
212
212
  resolve({
213
213
  failReport: failReport,
@@ -218,7 +218,18 @@ function test(args) {
218
218
  countReport: countReport
219
219
  });
220
220
  })["catch"](function (e) {
221
- return reject(e);
221
+ var stack = window.DG.Logger.translateStackTrace(e.stack);
222
+ resolve({
223
+ failReport: "".concat(e.message, "\n").concat(stack),
224
+ skipReport: '',
225
+ passReport: '',
226
+ failed: true,
227
+ csv: '',
228
+ countReport: {
229
+ skip: 0,
230
+ pass: 0
231
+ }
232
+ });
222
233
  });
223
234
  });
224
235
  }, targetPackage, options, new testUtils.TestContext(options.catchUnhandled, options.report));
@@ -189,7 +189,7 @@ exports.queryExtension = queryExtension;
189
189
  var scriptExtensions = ['.jl', '.m', '.py', '.R'];
190
190
  exports.scriptExtensions = scriptExtensions;
191
191
  function checkScriptLocation(filepath) {
192
- if (!(filepath.startsWith('scripts/') || filepath.startsWith('projects/')) && scriptExtensions.some(function (ext) {
192
+ if (!(filepath.startsWith('scripts/') || filepath.startsWith('projects/') || filepath.startsWith('dockerfiles/')) && scriptExtensions.some(function (ext) {
193
193
  return filepath.endsWith(ext);
194
194
  })) {
195
195
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datagrok-tools",
3
- "version": "4.12.13",
3
+ "version": "4.12.15",
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": {
package/tsconfig.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "noEmitOnError": true,
6
6
  /* Basic Options */
7
7
  // "incremental": true, /* Enable incremental compilation */
8
- "target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
8
+ "target": "ES2022", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
9
9
  "module": "ES2022", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
10
10
  "lib": ["ES2022", "DOM"], /* Specify library files to be included in the compilation. */
11
11
  // "allowJs": true, /* Allow javascript files to be compiled. */