roboto-js 1.1.9 → 1.1.10

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.
@@ -824,34 +824,35 @@ var RbtApi = exports["default"] = /*#__PURE__*/function () {
824
824
  while (1) switch (_context16.prev = _context16.next) {
825
825
  case 0:
826
826
  params = _args16.length > 1 && _args16[1] !== undefined ? _args16[1] : {};
827
- _context16.prev = 1;
827
+ debugger;
828
+ _context16.prev = 2;
828
829
  // Add the authToken to the headers
829
830
  headers = {
830
831
  authtoken: this.authtoken
831
832
  }; // Make the GET request using Axios
832
- _context16.next = 5;
833
+ _context16.next = 6;
833
834
  return this.axios.get(endpoint, {
834
835
  params: params,
835
836
  headers: headers
836
837
  });
837
- case 5:
838
+ case 6:
838
839
  response = _context16.sent;
839
840
  if (!(response.data.ok === false)) {
840
- _context16.next = 8;
841
+ _context16.next = 9;
841
842
  break;
842
843
  }
843
844
  return _context16.abrupt("return", this._handleError(response));
844
- case 8:
845
+ case 9:
845
846
  return _context16.abrupt("return", response.data);
846
- case 11:
847
- _context16.prev = 11;
848
- _context16.t0 = _context16["catch"](1);
847
+ case 12:
848
+ _context16.prev = 12;
849
+ _context16.t0 = _context16["catch"](2);
849
850
  return _context16.abrupt("return", this._handleError(_context16.t0));
850
- case 14:
851
+ case 15:
851
852
  case "end":
852
853
  return _context16.stop();
853
854
  }
854
- }, _callee16, this, [[1, 11]]);
855
+ }, _callee16, this, [[2, 12]]);
855
856
  }));
856
857
  function get(_x12) {
857
858
  return _get.apply(this, arguments);
@@ -824,34 +824,35 @@ var RbtApi = exports["default"] = /*#__PURE__*/function () {
824
824
  while (1) switch (_context16.prev = _context16.next) {
825
825
  case 0:
826
826
  params = _args16.length > 1 && _args16[1] !== undefined ? _args16[1] : {};
827
- _context16.prev = 1;
827
+ debugger;
828
+ _context16.prev = 2;
828
829
  // Add the authToken to the headers
829
830
  headers = {
830
831
  authtoken: this.authtoken
831
832
  }; // Make the GET request using Axios
832
- _context16.next = 5;
833
+ _context16.next = 6;
833
834
  return this.axios.get(endpoint, {
834
835
  params: params,
835
836
  headers: headers
836
837
  });
837
- case 5:
838
+ case 6:
838
839
  response = _context16.sent;
839
840
  if (!(response.data.ok === false)) {
840
- _context16.next = 8;
841
+ _context16.next = 9;
841
842
  break;
842
843
  }
843
844
  return _context16.abrupt("return", this._handleError(response));
844
- case 8:
845
+ case 9:
845
846
  return _context16.abrupt("return", response.data);
846
- case 11:
847
- _context16.prev = 11;
848
- _context16.t0 = _context16["catch"](1);
847
+ case 12:
848
+ _context16.prev = 12;
849
+ _context16.t0 = _context16["catch"](2);
849
850
  return _context16.abrupt("return", this._handleError(_context16.t0));
850
- case 14:
851
+ case 15:
851
852
  case "end":
852
853
  return _context16.stop();
853
854
  }
854
- }, _callee16, this, [[1, 11]]);
855
+ }, _callee16, this, [[2, 12]]);
855
856
  }));
856
857
  function get(_x12) {
857
858
  return _get.apply(this, arguments);
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "roboto-js",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.cjs",
7
+ "exports": {
8
+ "import": "./dist/esm/index.js",
9
+ "require": "./dist/cjs/index.cjs"
10
+ },
7
11
  "scripts": {
8
12
  "build": "npm run build:cjs && npm run build:esm",
9
13
  "build:cjs": "babel src --out-dir dist/cjs --presets=@babel/preset-env --extensions \".js,.jsx\" --out-file-extension .cjs && npm run postbuild:cjs",
package/src/rbt_api.js CHANGED
@@ -470,6 +470,7 @@ export default class RbtApi {
470
470
  * @returns {Promise<Object>} - The response data from the API.
471
471
  */
472
472
  async get(endpoint, params = {}) {
473
+ debugger;
473
474
  try {
474
475
 
475
476
  // Add the authToken to the headers