roboto-js 1.1.4 → 1.1.6

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.
@@ -158,19 +158,38 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
158
158
  return registerUser;
159
159
  }()
160
160
  }, {
161
- key: "loadCurrentUser",
161
+ key: "loadUser",
162
162
  value: function () {
163
- var _loadCurrentUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
163
+ var _loadUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(params) {
164
164
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
165
165
  while (1) switch (_context5.prev = _context5.next) {
166
166
  case 0:
167
- return _context5.abrupt("return", this.api.loadCurrentUser());
167
+ return _context5.abrupt("return", this.api.loadUser(params));
168
168
  case 1:
169
169
  case "end":
170
170
  return _context5.stop();
171
171
  }
172
172
  }, _callee5, this);
173
173
  }));
174
+ function loadUser(_x3) {
175
+ return _loadUser.apply(this, arguments);
176
+ }
177
+ return loadUser;
178
+ }()
179
+ }, {
180
+ key: "loadCurrentUser",
181
+ value: function () {
182
+ var _loadCurrentUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
183
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
184
+ while (1) switch (_context6.prev = _context6.next) {
185
+ case 0:
186
+ return _context6.abrupt("return", this.api.loadCurrentUser());
187
+ case 1:
188
+ case "end":
189
+ return _context6.stop();
190
+ }
191
+ }, _callee6, this);
192
+ }));
174
193
  function loadCurrentUser() {
175
194
  return _loadCurrentUser.apply(this, arguments);
176
195
  }
@@ -181,19 +200,19 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
181
200
  }, {
182
201
  key: "createFile",
183
202
  value: function () {
184
- var _createFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
203
+ var _createFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
185
204
  var data,
186
- _args6 = arguments;
187
- return _regeneratorRuntime().wrap(function _callee6$(_context6) {
188
- while (1) switch (_context6.prev = _context6.next) {
205
+ _args7 = arguments;
206
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
207
+ while (1) switch (_context7.prev = _context7.next) {
189
208
  case 0:
190
- data = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
191
- return _context6.abrupt("return", this.api.createFile(data));
209
+ data = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
210
+ return _context7.abrupt("return", this.api.createFile(data));
192
211
  case 2:
193
212
  case "end":
194
- return _context6.stop();
213
+ return _context7.stop();
195
214
  }
196
- }, _callee6, this);
215
+ }, _callee7, this);
197
216
  }));
198
217
  function createFile() {
199
218
  return _createFile.apply(this, arguments);
@@ -205,21 +224,21 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
205
224
  }, {
206
225
  key: "create",
207
226
  value: function () {
208
- var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(params) {
227
+ var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(params) {
209
228
  var data,
210
- _args7 = arguments;
211
- return _regeneratorRuntime().wrap(function _callee7$(_context7) {
212
- while (1) switch (_context7.prev = _context7.next) {
229
+ _args8 = arguments;
230
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
231
+ while (1) switch (_context8.prev = _context8.next) {
213
232
  case 0:
214
- data = _args7.length > 1 && _args7[1] !== undefined ? _args7[1] : {};
215
- return _context7.abrupt("return", this.api.create(params, data));
233
+ data = _args8.length > 1 && _args8[1] !== undefined ? _args8[1] : {};
234
+ return _context8.abrupt("return", this.api.create(params, data));
216
235
  case 2:
217
236
  case "end":
218
- return _context7.stop();
237
+ return _context8.stop();
219
238
  }
220
- }, _callee7, this);
239
+ }, _callee8, this);
221
240
  }));
222
- function create(_x3) {
241
+ function create(_x4) {
223
242
  return _create.apply(this, arguments);
224
243
  }
225
244
  return create;
@@ -227,18 +246,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
227
246
  }, {
228
247
  key: "load",
229
248
  value: function () {
230
- var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(type, ids, options) {
231
- return _regeneratorRuntime().wrap(function _callee8$(_context8) {
232
- while (1) switch (_context8.prev = _context8.next) {
249
+ var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(type, ids, options) {
250
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
251
+ while (1) switch (_context9.prev = _context9.next) {
233
252
  case 0:
234
- return _context8.abrupt("return", this.api.load(type, ids, options));
253
+ return _context9.abrupt("return", this.api.load(type, ids, options));
235
254
  case 1:
236
255
  case "end":
237
- return _context8.stop();
256
+ return _context9.stop();
238
257
  }
239
- }, _callee8, this);
258
+ }, _callee9, this);
240
259
  }));
241
- function load(_x4, _x5, _x6) {
260
+ function load(_x5, _x6, _x7) {
242
261
  return _load.apply(this, arguments);
243
262
  }
244
263
  return load;
@@ -246,18 +265,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
246
265
  }, {
247
266
  key: "query",
248
267
  value: function () {
249
- var _query = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(type, params) {
250
- return _regeneratorRuntime().wrap(function _callee9$(_context9) {
251
- while (1) switch (_context9.prev = _context9.next) {
268
+ var _query = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(type, params) {
269
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
270
+ while (1) switch (_context10.prev = _context10.next) {
252
271
  case 0:
253
- return _context9.abrupt("return", this.api.query(type, params));
272
+ return _context10.abrupt("return", this.api.query(type, params));
254
273
  case 1:
255
274
  case "end":
256
- return _context9.stop();
275
+ return _context10.stop();
257
276
  }
258
- }, _callee9, this);
277
+ }, _callee10, this);
259
278
  }));
260
- function query(_x7, _x8) {
279
+ function query(_x8, _x9) {
261
280
  return _query.apply(this, arguments);
262
281
  }
263
282
  return query;
@@ -267,18 +286,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
267
286
  }, {
268
287
  key: "runTask",
269
288
  value: function () {
270
- var _runTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(params, callbacks) {
271
- return _regeneratorRuntime().wrap(function _callee10$(_context10) {
272
- while (1) switch (_context10.prev = _context10.next) {
289
+ var _runTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(params, callbacks) {
290
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
291
+ while (1) switch (_context11.prev = _context11.next) {
273
292
  case 0:
274
- return _context10.abrupt("return", this.api.runTask(params, callbacks));
293
+ return _context11.abrupt("return", this.api.runTask(params, callbacks));
275
294
  case 1:
276
295
  case "end":
277
- return _context10.stop();
296
+ return _context11.stop();
278
297
  }
279
- }, _callee10, this);
298
+ }, _callee11, this);
280
299
  }));
281
- function runTask(_x9, _x10) {
300
+ function runTask(_x10, _x11) {
282
301
  return _runTask.apply(this, arguments);
283
302
  }
284
303
  return runTask;
@@ -286,18 +305,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
286
305
  }, {
287
306
  key: "pollTaskProgress",
288
307
  value: function () {
289
- var _pollTaskProgress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(params) {
290
- return _regeneratorRuntime().wrap(function _callee11$(_context11) {
291
- while (1) switch (_context11.prev = _context11.next) {
308
+ var _pollTaskProgress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(params) {
309
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
310
+ while (1) switch (_context12.prev = _context12.next) {
292
311
  case 0:
293
- return _context11.abrupt("return", this.api.pollTaskProgress(params));
312
+ return _context12.abrupt("return", this.api.pollTaskProgress(params));
294
313
  case 1:
295
314
  case "end":
296
- return _context11.stop();
315
+ return _context12.stop();
297
316
  }
298
- }, _callee11, this);
317
+ }, _callee12, this);
299
318
  }));
300
- function pollTaskProgress(_x11) {
319
+ function pollTaskProgress(_x12) {
301
320
  return _pollTaskProgress.apply(this, arguments);
302
321
  }
303
322
  return pollTaskProgress;
@@ -307,18 +326,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
307
326
  }, {
308
327
  key: "get",
309
328
  value: function () {
310
- var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(endpoint, params) {
311
- return _regeneratorRuntime().wrap(function _callee12$(_context12) {
312
- while (1) switch (_context12.prev = _context12.next) {
329
+ var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(endpoint, params) {
330
+ return _regeneratorRuntime().wrap(function _callee13$(_context13) {
331
+ while (1) switch (_context13.prev = _context13.next) {
313
332
  case 0:
314
- return _context12.abrupt("return", this.api.get(endpoint, params));
333
+ return _context13.abrupt("return", this.api.get(endpoint, params));
315
334
  case 1:
316
335
  case "end":
317
- return _context12.stop();
336
+ return _context13.stop();
318
337
  }
319
- }, _callee12, this);
338
+ }, _callee13, this);
320
339
  }));
321
- function get(_x12, _x13) {
340
+ function get(_x13, _x14) {
322
341
  return _get.apply(this, arguments);
323
342
  }
324
343
  return get;
@@ -326,18 +345,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
326
345
  }, {
327
346
  key: "post",
328
347
  value: function () {
329
- var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(endpoint, data) {
330
- return _regeneratorRuntime().wrap(function _callee13$(_context13) {
331
- while (1) switch (_context13.prev = _context13.next) {
348
+ var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(endpoint, data) {
349
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
350
+ while (1) switch (_context14.prev = _context14.next) {
332
351
  case 0:
333
- return _context13.abrupt("return", this.api.post(endpoint, data));
352
+ return _context14.abrupt("return", this.api.post(endpoint, data));
334
353
  case 1:
335
354
  case "end":
336
- return _context13.stop();
355
+ return _context14.stop();
337
356
  }
338
- }, _callee13, this);
357
+ }, _callee14, this);
339
358
  }));
340
- function post(_x14, _x15) {
359
+ function post(_x15, _x16) {
341
360
  return _post.apply(this, arguments);
342
361
  }
343
362
  return post;