@open-tender/store 0.7.12 → 0.7.13

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/.DS_Store CHANGED
Binary file
@@ -71,7 +71,6 @@ var PosAPI = /** @class */ (function () {
71
71
  case 0:
72
72
  _b.trys.push([0, 3, , 4]);
73
73
  url = "".concat(this.apiUrl).concat(endpoint);
74
- console.log('fetching', url);
75
74
  return [4 /*yield*/, fetch(url, {
76
75
  method: method,
77
76
  headers: makeHeaders(this.terminalId),
@@ -79,8 +78,6 @@ var PosAPI = /** @class */ (function () {
79
78
  })];
80
79
  case 1:
81
80
  res = _b.sent();
82
- console.log('res', res);
83
- console.log('res.ok', res.ok);
84
81
  contentType = (_a = res.headers.get('Content-Type')) === null || _a === void 0 ? void 0 : _a.split(';')[0];
85
82
  if (!contentType) {
86
83
  return [2 /*return*/, reject(errors_1.errorsApi.internalServerError)];
@@ -88,7 +85,6 @@ var PosAPI = /** @class */ (function () {
88
85
  return [4 /*yield*/, parseResponse(res, contentType)];
89
86
  case 2:
90
87
  parsed = _b.sent();
91
- console.log('parsed', parsed);
92
88
  if (!res.ok) {
93
89
  error = handleError(res.status, parsed);
94
90
  return [2 /*return*/, reject(error)];
@@ -96,7 +92,6 @@ var PosAPI = /** @class */ (function () {
96
92
  return [2 /*return*/, resolve(parsed)];
97
93
  case 3:
98
94
  err_1 = _b.sent();
99
- console.log(err_1);
100
95
  return [2 /*return*/, reject(errors_1.errorsApi.internalServerError)];
101
96
  case 4: return [2 /*return*/];
102
97
  }
@@ -69,7 +69,6 @@ var PosAPI = /** @class */ (function () {
69
69
  case 0:
70
70
  _b.trys.push([0, 3, , 4]);
71
71
  url = "".concat(this.apiUrl).concat(endpoint);
72
- console.log('fetching', url);
73
72
  return [4 /*yield*/, fetch(url, {
74
73
  method: method,
75
74
  headers: makeHeaders(this.terminalId),
@@ -77,8 +76,6 @@ var PosAPI = /** @class */ (function () {
77
76
  })];
78
77
  case 1:
79
78
  res = _b.sent();
80
- console.log('res', res);
81
- console.log('res.ok', res.ok);
82
79
  contentType = (_a = res.headers.get('Content-Type')) === null || _a === void 0 ? void 0 : _a.split(';')[0];
83
80
  if (!contentType) {
84
81
  return [2 /*return*/, reject(errorsApi.internalServerError)];
@@ -86,7 +83,6 @@ var PosAPI = /** @class */ (function () {
86
83
  return [4 /*yield*/, parseResponse(res, contentType)];
87
84
  case 2:
88
85
  parsed = _b.sent();
89
- console.log('parsed', parsed);
90
86
  if (!res.ok) {
91
87
  error = handleError(res.status, parsed);
92
88
  return [2 /*return*/, reject(error)];
@@ -94,7 +90,6 @@ var PosAPI = /** @class */ (function () {
94
90
  return [2 /*return*/, resolve(parsed)];
95
91
  case 3:
96
92
  err_1 = _b.sent();
97
- console.log(err_1);
98
93
  return [2 /*return*/, reject(errorsApi.internalServerError)];
99
94
  case 4: return [2 /*return*/];
100
95
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/store",
3
- "version": "0.7.12",
3
+ "version": "0.7.13",
4
4
  "description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",