roboto-js 1.4.23 → 1.4.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/dist/cjs/index.cjs +37 -18
- package/dist/esm/index.js +3 -0
- package/package.json +1 -1
- package/src/index.js +3 -0
package/dist/cjs/index.cjs
CHANGED
|
@@ -429,20 +429,39 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
429
429
|
return runTask;
|
|
430
430
|
}()
|
|
431
431
|
}, {
|
|
432
|
-
key: "
|
|
432
|
+
key: "stopJob",
|
|
433
433
|
value: function () {
|
|
434
|
-
var
|
|
434
|
+
var _stopJob = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(params, callbacks) {
|
|
435
435
|
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
436
436
|
while (1) switch (_context17.prev = _context17.next) {
|
|
437
437
|
case 0:
|
|
438
|
-
return _context17.abrupt("return", this.api.
|
|
438
|
+
return _context17.abrupt("return", this.api.stopJob(params, callbacks));
|
|
439
439
|
case 1:
|
|
440
440
|
case "end":
|
|
441
441
|
return _context17.stop();
|
|
442
442
|
}
|
|
443
443
|
}, _callee17, this);
|
|
444
444
|
}));
|
|
445
|
-
function
|
|
445
|
+
function stopJob(_x15, _x16) {
|
|
446
|
+
return _stopJob.apply(this, arguments);
|
|
447
|
+
}
|
|
448
|
+
return stopJob;
|
|
449
|
+
}()
|
|
450
|
+
}, {
|
|
451
|
+
key: "pollTaskProgress",
|
|
452
|
+
value: function () {
|
|
453
|
+
var _pollTaskProgress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(params) {
|
|
454
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
455
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
456
|
+
case 0:
|
|
457
|
+
return _context18.abrupt("return", this.api.pollTaskProgress(params));
|
|
458
|
+
case 1:
|
|
459
|
+
case "end":
|
|
460
|
+
return _context18.stop();
|
|
461
|
+
}
|
|
462
|
+
}, _callee18, this);
|
|
463
|
+
}));
|
|
464
|
+
function pollTaskProgress(_x17) {
|
|
446
465
|
return _pollTaskProgress.apply(this, arguments);
|
|
447
466
|
}
|
|
448
467
|
return pollTaskProgress;
|
|
@@ -452,18 +471,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
452
471
|
}, {
|
|
453
472
|
key: "get",
|
|
454
473
|
value: function () {
|
|
455
|
-
var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
456
|
-
return _regeneratorRuntime().wrap(function
|
|
457
|
-
while (1) switch (
|
|
474
|
+
var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(endpoint, params) {
|
|
475
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
476
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
458
477
|
case 0:
|
|
459
|
-
return
|
|
478
|
+
return _context19.abrupt("return", this.api.get(endpoint, params));
|
|
460
479
|
case 1:
|
|
461
480
|
case "end":
|
|
462
|
-
return
|
|
481
|
+
return _context19.stop();
|
|
463
482
|
}
|
|
464
|
-
},
|
|
483
|
+
}, _callee19, this);
|
|
465
484
|
}));
|
|
466
|
-
function get(
|
|
485
|
+
function get(_x18, _x19) {
|
|
467
486
|
return _get.apply(this, arguments);
|
|
468
487
|
}
|
|
469
488
|
return get;
|
|
@@ -471,18 +490,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
471
490
|
}, {
|
|
472
491
|
key: "post",
|
|
473
492
|
value: function () {
|
|
474
|
-
var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
475
|
-
return _regeneratorRuntime().wrap(function
|
|
476
|
-
while (1) switch (
|
|
493
|
+
var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(endpoint, data) {
|
|
494
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
495
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
477
496
|
case 0:
|
|
478
|
-
return
|
|
497
|
+
return _context20.abrupt("return", this.api.post(endpoint, data));
|
|
479
498
|
case 1:
|
|
480
499
|
case "end":
|
|
481
|
-
return
|
|
500
|
+
return _context20.stop();
|
|
482
501
|
}
|
|
483
|
-
},
|
|
502
|
+
}, _callee20, this);
|
|
484
503
|
}));
|
|
485
|
-
function post(
|
|
504
|
+
function post(_x20, _x21) {
|
|
486
505
|
return _post.apply(this, arguments);
|
|
487
506
|
}
|
|
488
507
|
return post;
|
package/dist/esm/index.js
CHANGED
|
@@ -131,6 +131,9 @@ export default class Roboto {
|
|
|
131
131
|
async runTask(params, callbacks) {
|
|
132
132
|
return this.api.runTask(params, callbacks);
|
|
133
133
|
}
|
|
134
|
+
async stopJob(params, callbacks) {
|
|
135
|
+
return this.api.stopJob(params, callbacks);
|
|
136
|
+
}
|
|
134
137
|
async pollTaskProgress(params) {
|
|
135
138
|
return this.api.pollTaskProgress(params);
|
|
136
139
|
}
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -154,6 +154,9 @@ export default class Roboto{
|
|
|
154
154
|
async runTask(params, callbacks){
|
|
155
155
|
return this.api.runTask(params, callbacks);
|
|
156
156
|
}
|
|
157
|
+
async stopJob(params, callbacks){
|
|
158
|
+
return this.api.stopJob(params, callbacks);
|
|
159
|
+
}
|
|
157
160
|
|
|
158
161
|
async pollTaskProgress(params){
|
|
159
162
|
return this.api.pollTaskProgress(params);
|