datagrok-tools 4.13.33 → 4.13.34

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,12 @@
1
1
  # Datagrok-tools changelog
2
2
 
3
3
 
4
+ ## 4.13.34 (2024-11-1)
5
+
6
+ ### Features
7
+
8
+ * Config bug fixes
9
+
4
10
  ## 4.13.33 (2024-10-31)
5
11
 
6
12
  ### Features
@@ -38,9 +38,7 @@ var confTemplate = _jsYaml["default"].load(_fs["default"].readFileSync(confTempl
38
38
  var curDir = process.cwd();
39
39
  var packDir = _path["default"].join(curDir, 'package.json');
40
40
  var packageFiles = ['src/package.ts', 'src/detectors.ts', 'src/package.js', 'src/detectors.js', 'src/package-test.ts', 'src/package-test.js', 'package.js', 'detectors.js'];
41
- var config = _jsYaml["default"].load(_fs["default"].readFileSync(confPath, {
42
- encoding: 'utf-8'
43
- }));
41
+ var config;
44
42
  function processPackage(_x, _x2, _x3, _x4, _x5, _x6) {
45
43
  return _processPackage.apply(this, arguments);
46
44
  }
@@ -309,8 +307,11 @@ function _publish() {
309
307
  return _regenerator["default"].wrap(function _callee3$(_context3) {
310
308
  while (1) switch (_context3.prev = _context3.next) {
311
309
  case 0:
310
+ config = _jsYaml["default"].load(_fs["default"].readFileSync(confPath, {
311
+ encoding: 'utf-8'
312
+ }));
312
313
  if (!(args.refresh || args.all)) {
313
- _context3.next = 22;
314
+ _context3.next = 23;
314
315
  break;
315
316
  }
316
317
  if (_path["default"].basename(curDir) !== 'packages') curDir = _path["default"].dirname(curDir);
@@ -322,29 +323,29 @@ function _publish() {
322
323
  packagesToLoad = ['all'];
323
324
  console.log(url);
324
325
  if (!args.refresh) {
325
- _context3.next = 17;
326
+ _context3.next = 18;
326
327
  break;
327
328
  }
328
329
  _context3.t0 = Object;
329
- _context3.next = 13;
330
+ _context3.next = 14;
330
331
  return (0, _nodeFetch["default"])(url);
331
- case 13:
332
- _context3.next = 15;
332
+ case 14:
333
+ _context3.next = 16;
333
334
  return _context3.sent.json();
334
- case 15:
335
+ case 16:
335
336
  _context3.t1 = _context3.sent;
336
337
  packagesToLoad = _context3.t0.keys.call(_context3.t0, _context3.t1);
337
- case 17:
338
+ case 18:
338
339
  console.log('Loading packages:');
339
- _context3.next = 20;
340
+ _context3.next = 21;
340
341
  return (0, _testUtils.loadPackages)(curDir, packagesToLoad.join(' '), host, false, false, false, args.release);
341
- case 20:
342
- _context3.next = 24;
342
+ case 21:
343
+ _context3.next = 25;
343
344
  break;
344
- case 22:
345
- _context3.next = 24;
345
+ case 23:
346
+ _context3.next = 25;
346
347
  return publishPackage(args);
347
- case 24:
348
+ case 25:
348
349
  case "end":
349
350
  return _context3.stop();
350
351
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datagrok-tools",
3
- "version": "4.13.33",
3
+ "version": "4.13.34",
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": {