mts-booking-library 1.3.17 → 1.3.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.objectIsMTSErrorResponse = void 0;
4
4
  var objectIsMTSErrorResponse = function (error) {
5
- return (typeof error === "object" && "mtsCode" in error && "httpStatus" in error && "message" in error);
5
+ if (typeof error !== "object" || error === null) {
6
+ return false;
7
+ }
8
+ return "mtsCode" in error && "httpStatus" in error && "message" in error;
6
9
  };
7
10
  exports.objectIsMTSErrorResponse = objectIsMTSErrorResponse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mts-booking-library",
3
- "version": "1.3.17",
3
+ "version": "1.3.18",
4
4
  "description": "Library for using MyTicketSolution Booking API",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",