mts-booking-library 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
package/lib/mtsStorage.js CHANGED
@@ -44,8 +44,7 @@ var useMtsBookingState = function () {
44
44
  exports.useMtsBookingState = useMtsBookingState;
45
45
  var useTestState = function () {
46
46
  if (typeof localStorage === "undefined" || localStorage === null) {
47
- var LocalStorage = require("node-localstorage").LocalStorage;
48
- global.localStorage = new LocalStorage("./scratch");
47
+ throw new Error("localStorage is not available");
49
48
  }
50
49
  return useMtsBookingLocalState;
51
50
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mts-booking-library",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Library for using MyTicketSolution Booking API",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",