datagrok-tools 4.8.1 → 4.8.2

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.
@@ -138,21 +138,28 @@ function test(args) {
138
138
  while (1) {
139
139
  switch (_context.prev = _context.next) {
140
140
  case 0:
141
- _context.next = 2;
141
+ _context.prev = 0;
142
+ _context.next = 3;
142
143
  return testUtils.getBrowserPage(_puppeteer["default"], params);
143
144
 
144
- case 2:
145
+ case 3:
145
146
  out = _context.sent;
146
147
  browser = out.browser;
147
148
  page = out.page;
148
- return _context.abrupt("return", 'Initialization completed.');
149
+ _context.next = 11;
150
+ break;
149
151
 
150
- case 6:
152
+ case 8:
153
+ _context.prev = 8;
154
+ _context.t0 = _context["catch"](0);
155
+ throw _context.t0;
156
+
157
+ case 11:
151
158
  case "end":
152
159
  return _context.stop();
153
160
  }
154
161
  }
155
- }, _callee);
162
+ }, _callee, null, [[0, 8]]);
156
163
  })));
157
164
  }
158
165
 
@@ -235,21 +242,31 @@ function test(args) {
235
242
  }
236
243
 
237
244
  (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
238
- var initMessage, r;
245
+ var r;
239
246
  return _regenerator["default"].wrap(function _callee3$(_context3) {
240
247
  while (1) {
241
248
  switch (_context3.prev = _context3.next) {
242
249
  case 0:
243
- _context3.next = 2;
250
+ _context3.prev = 0;
251
+ _context3.next = 3;
244
252
  return init(P_START_TIMEOUT);
245
253
 
246
- case 2:
247
- initMessage = _context3.sent;
248
- console.log(initMessage);
249
- _context3.next = 6;
250
- return runTest(7200000);
254
+ case 3:
255
+ color.success('Initialization completed.');
256
+ _context3.next = 10;
257
+ break;
251
258
 
252
259
  case 6:
260
+ _context3.prev = 6;
261
+ _context3.t0 = _context3["catch"](0);
262
+ color.error('Initialization failed.');
263
+ throw _context3.t0;
264
+
265
+ case 10:
266
+ _context3.next = 12;
267
+ return runTest(7200000);
268
+
269
+ case 12:
253
270
  r = _context3.sent;
254
271
 
255
272
  if (r.csv && args.csv) {
@@ -272,19 +289,19 @@ function test(args) {
272
289
 
273
290
 
274
291
  if (!(browser != null)) {
275
- _context3.next = 14;
292
+ _context3.next = 20;
276
293
  break;
277
294
  }
278
295
 
279
- _context3.next = 14;
296
+ _context3.next = 20;
280
297
  return browser.close();
281
298
 
282
- case 14:
299
+ case 20:
283
300
  case "end":
284
301
  return _context3.stop();
285
302
  }
286
303
  }
287
- }, _callee3);
304
+ }, _callee3, null, [[0, 6]]);
288
305
  }))();
289
306
  }
290
307
 
@@ -266,20 +266,28 @@ function runWithTimeout(timeout, f) {
266
266
  timeoutId = setTimeout(function () {
267
267
  return reject("Timeout exceeded: ".concat(timeout, " ms"));
268
268
  }, timeout);
269
- _context.next = 3;
269
+ _context.prev = 1;
270
+ _context.next = 4;
270
271
  return f();
271
272
 
272
- case 3:
273
+ case 4:
273
274
  resolveValue = _context.sent;
274
275
  clearTimeout(timeoutId);
275
276
  resolve(resolveValue);
277
+ _context.next = 12;
278
+ break;
279
+
280
+ case 9:
281
+ _context.prev = 9;
282
+ _context.t0 = _context["catch"](1);
283
+ reject(_context.t0);
276
284
 
277
- case 6:
285
+ case 12:
278
286
  case "end":
279
287
  return _context.stop();
280
288
  }
281
289
  }
282
- }, _callee);
290
+ }, _callee, null, [[1, 9]]);
283
291
  }));
284
292
 
285
293
  return function (_x6, _x7) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datagrok-tools",
3
- "version": "4.8.1",
3
+ "version": "4.8.2",
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": {