roboto-js 1.4.33 → 1.4.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.
@@ -749,23 +749,20 @@ var RbtApi = exports["default"] = /*#__PURE__*/function () {
749
749
  console.log("Returning cached request for params:", _paramsKey);
750
750
  return _context16.abrupt("return", this.requestCache[_paramsKey]);
751
751
  case 10:
752
- _context16.next = 12;
753
- return this.axios.post('/object_service/queryObjects', [mergedParams]);
754
- case 12:
755
- responsePromise = _context16.sent;
756
- // Store the promise in the cache
752
+ //
753
+ responsePromise = this.axios.post('/object_service/queryObjects', [mergedParams]); // Store the promise in the cache
757
754
  this.requestCache[_paramsKey] = responsePromise;
758
- _context16.next = 16;
755
+ _context16.next = 14;
759
756
  return responsePromise;
760
- case 16:
757
+ case 14:
761
758
  response = _context16.sent;
762
759
  delete this.requestCache[_paramsKey];
763
760
  if (!(response.data.ok === false)) {
764
- _context16.next = 20;
761
+ _context16.next = 18;
765
762
  break;
766
763
  }
767
764
  return _context16.abrupt("return", this._handleError(response));
768
- case 20:
765
+ case 18:
769
766
  // Process items into RbtObject instances
770
767
  if (Array.isArray(response.data.items)) {
771
768
  response.data.items = response.data.items.map(function (record) {
@@ -775,16 +772,16 @@ var RbtApi = exports["default"] = /*#__PURE__*/function () {
775
772
  });
776
773
  }
777
774
  return _context16.abrupt("return", response.data.items);
778
- case 24:
779
- _context16.prev = 24;
775
+ case 22:
776
+ _context16.prev = 22;
780
777
  _context16.t0 = _context16["catch"](1);
781
778
  delete this.requestCache[paramsKey];
782
779
  return _context16.abrupt("return", this._handleError(_context16.t0));
783
- case 28:
780
+ case 26:
784
781
  case "end":
785
782
  return _context16.stop();
786
783
  }
787
- }, _callee16, this, [[1, 24]]);
784
+ }, _callee16, this, [[1, 22]]);
788
785
  }));
789
786
  function query(_x11) {
790
787
  return _query.apply(this, arguments);
@@ -364,7 +364,7 @@ export default class RbtApi {
364
364
  }
365
365
  //
366
366
 
367
- const responsePromise = await this.axios.post('/object_service/queryObjects', [mergedParams]);
367
+ const responsePromise = this.axios.post('/object_service/queryObjects', [mergedParams]);
368
368
 
369
369
  // Store the promise in the cache
370
370
  this.requestCache[paramsKey] = responsePromise;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roboto-js",
3
- "version": "1.4.33",
3
+ "version": "1.4.34",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.cjs",
package/src/rbt_api.js CHANGED
@@ -424,14 +424,14 @@ export default class RbtApi {
424
424
  }
425
425
  //
426
426
 
427
- const responsePromise = await this.axios.post('/object_service/queryObjects', [mergedParams]);
427
+ const responsePromise = this.axios.post('/object_service/queryObjects', [mergedParams]);
428
428
 
429
429
  // Store the promise in the cache
430
430
  this.requestCache[paramsKey] = responsePromise;
431
431
 
432
432
  const response = await responsePromise;
433
433
  delete this.requestCache[paramsKey];
434
-
434
+
435
435
  if (response.data.ok === false) {
436
436
  return this._handleError(response);
437
437
  }