datagrok-tools 4.12.12 → 4.12.13

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,6 +1,14 @@
1
1
  # Datagrok-tools changelog
2
2
 
3
- ## 4.12.12 (WIP)
3
+ ## 4.12.13 (2023-08-17)
4
+
5
+ ### Bug Fixes
6
+
7
+ * Datagrok API version check fix
8
+ * Check Changelog fix
9
+ * Sync --csv and --verbose flags
10
+
11
+ ## 4.12.12 (2023-08-07)
4
12
 
5
13
  ### Features
6
14
 
@@ -69,7 +69,7 @@ function runChecks(packagePath) {
69
69
  isWebpack: isWebpack,
70
70
  externals: externals
71
71
  })));
72
- if (!json.servicePackage) warnings.push.apply(warnings, (0, _toConsumableArray2["default"])(checkChangelog(packagePath, json)));
72
+ warnings.push.apply(warnings, (0, _toConsumableArray2["default"])(checkChangelog(packagePath, json)));
73
73
  if (warnings.length) {
74
74
  console.log("Checking package ".concat(_path["default"].basename(packagePath), "..."));
75
75
  warn(warnings);
@@ -374,7 +374,7 @@ function checkPackageFile(packagePath, json, options) {
374
374
  if (json.version.includes('beta') && isPublicPackage) warnings.push('File "package.json": public package cannot be beta version.');
375
375
  var api = (_json$dependencies = json.dependencies) === null || _json$dependencies === void 0 ? void 0 : _json$dependencies['datagrok-api'];
376
376
  if (api) {
377
- if (api === '../../js-api') {} else if (api === 'latest') warnings.push('File "package.json": you should specify Datagrok API version constraint.');else if (!(api.startsWith('^') || api.startsWith('>'))) warnings.push('File "package.json": Datagrok API version should contain "^" or ">" symbol, otherwise it is locked to the single Datagrok version.');
377
+ if (api === '../../js-api') {} else if (api === 'latest') warnings.push('File "package.json": you should specify Datagrok API version constraint (for example ^1.16.0, >=1.16.0).');else if (!/^(\^|>|<|~).+/.test(api)) warnings.push('File "package.json": Datagrok API version should starts with > | >= | ~ | ^ | < | <=');
378
378
  }
379
379
  var dt = (_json$devDependencies = (_json$devDependencies2 = json.devDependencies) === null || _json$devDependencies2 === void 0 ? void 0 : _json$devDependencies2['datagrok-tools']) !== null && _json$devDependencies !== void 0 ? _json$devDependencies : (_json$dependencies2 = json.dependencies) === null || _json$dependencies2 === void 0 ? void 0 : _json$dependencies2['datagrok-tools'];
380
380
  if (dt && dt !== 'latest') warnings.push('File "package.json": "datagrok-tools" dependency must be "latest" version.');
@@ -418,6 +418,7 @@ function checkPackageFile(packagePath, json, options) {
418
418
  }
419
419
  function checkChangelog(packagePath, json) {
420
420
  var _h2$0$match, _h2$, _h2$$match;
421
+ if (json.servicePackage) return [];
421
422
  var warnings = [];
422
423
  var clf;
423
424
  try {
@@ -205,6 +205,9 @@ function test(args) {
205
205
  failReport += "Test result : Failed : ".concat(cTime.get(i), " : ").concat(targetPackage, ".").concat(cCat.get(i), ".").concat(cName.get(i), " : ").concat(cMessage.get(i), "\n");
206
206
  }
207
207
  }
208
+ if (!options.verbose) df.rows.removeWhere(function (r) {
209
+ return r.get('success');
210
+ });
208
211
  var csv = df.toCsv();
209
212
  resolve({
210
213
  failReport: failReport,
@@ -261,6 +264,7 @@ function test(args) {
261
264
  _context3.next = 12;
262
265
  return runTest(7200000, {
263
266
  category: args.category,
267
+ verbose: args.verbose,
264
268
  catchUnhandled: args.catchUnhandled,
265
269
  report: args.report,
266
270
  record: args.record
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datagrok-tools",
3
- "version": "4.12.12",
3
+ "version": "4.12.13",
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": {