datagrok-tools 4.12.23 → 4.12.24

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/README.md CHANGED
@@ -83,6 +83,8 @@ Read more about package development in [Datagrok's documentation](https://datagr
83
83
  - `api` creates wrapper functions for package scripts and queries. The output is stored in files `/src/scripts-api.ts`
84
84
  and `/src/queries-api.ts` respectively.
85
85
  - `publish` uploads a package to the specified server (pass either a URL or a server alias from the `config.yaml` file).
86
+ Additionally, you can use placeholders in JSON files under the `/connections` folder to substitute environment variables.
87
+ For more information on configuring connections, refer to the [Connections](https://datagrok.ai/help/develop#connections) article.
86
88
 
87
89
  ```shell
88
90
  cd <package-name>
@@ -488,6 +488,7 @@ function checkChangelog(packagePath, json) {
488
488
  var v1 = (_h2$0$match = h2[0].match(regex)) === null || _h2$0$match === void 0 ? void 0 : _h2$0$match[1];
489
489
  var v2 = (_h2$ = h2[1]) === null || _h2$ === void 0 || (_h2$ = _h2$.match(regex)) === null || _h2$ === void 0 ? void 0 : _h2$[1];
490
490
  if (v1 !== json.version && v2 !== json.version) warnings.push("Latest package version (".concat(json.version, ") is not in CHANGELOG\n"));
491
+ if (warnings.length) warnings.push('Changelog guideline: https://datagrok.ai/help/develop/dev-process/changelog-policy#changelog-guideline');
491
492
  return warnings;
492
493
  }
493
494
  function warn(warnings) {
@@ -207,7 +207,7 @@ function _processPackage() {
207
207
  break;
208
208
  }
209
209
  errs.forEach(function (e) {
210
- return console.log('\x1b[31m%s\x1b[0m', e);
210
+ return color.error(e);
211
211
  });
212
212
  return _context3.abrupt("return", 1);
213
213
  case 55:
@@ -265,30 +265,31 @@ function _processPackage() {
265
265
  log = _context3.sent;
266
266
  _fs["default"].unlinkSync('zip');
267
267
  if (!(log['#type'] === 'ApiError')) {
268
- _context3.next = 72;
268
+ _context3.next = 73;
269
269
  break;
270
270
  }
271
271
  color.error(log['message']);
272
272
  console.error(log['innerMessage']);
273
+ console.log(log);
273
274
  return _context3.abrupt("return", 1);
274
- case 72:
275
+ case 73:
275
276
  console.log(log);
276
277
  color.warn(contentValidationLog);
277
- case 74:
278
- _context3.next = 80;
278
+ case 75:
279
+ _context3.next = 81;
279
280
  break;
280
- case 76:
281
- _context3.prev = 76;
281
+ case 77:
282
+ _context3.prev = 77;
282
283
  _context3.t1 = _context3["catch"](61);
283
284
  console.error(_context3.t1);
284
285
  return _context3.abrupt("return", 1);
285
- case 80:
286
- return _context3.abrupt("return", 0);
287
286
  case 81:
287
+ return _context3.abrupt("return", 0);
288
+ case 82:
288
289
  case "end":
289
290
  return _context3.stop();
290
291
  }
291
- }, _callee3, null, [[3, 14], [61, 76]]);
292
+ }, _callee3, null, [[3, 14], [61, 77]]);
292
293
  }));
293
294
  return _processPackage.apply(this, arguments);
294
295
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datagrok-tools",
3
- "version": "4.12.23",
3
+ "version": "4.12.24",
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": {