mts-booking-library 1.2.30 → 1.2.31
Sign up to get free protection for your applications and to get access to all the features.
@@ -238,7 +238,7 @@ var JourneyBooking = /** @class */ (function (_super) {
|
|
238
238
|
if (request.departureStopName === undefined || request.destinationStopName === undefined) {
|
239
239
|
throw Error("Fields departureStopName and destinationStopName are required");
|
240
240
|
}
|
241
|
-
searchParams = new URLSearchParams(__assign({ departureStopName: request.departureStopName, destinationStopName: request.destinationStopName, passengersNumber: request.passengersNumber.toString(), date: request.date, roundTripDate: request.roundTripDate ? request.roundTripDate : "null", currency: request.currency
|
241
|
+
searchParams = new URLSearchParams(__assign({ departureStopName: request.departureStopName, destinationStopName: request.destinationStopName, passengersNumber: request.passengersNumber.toString(), date: request.date, roundTripDate: request.roundTripDate ? request.roundTripDate : "null", currency: request.currency }, (this.cartId && { cartId: this.cartId.toString() })));
|
242
242
|
url = "".concat(this.config.API_ENDPOINT, "/booking/journeys?").concat(searchParams);
|
243
243
|
return [2 /*return*/, this.callGetApi(url).then(function (response) {
|
244
244
|
return (0, ErrorResponse_1.objectIsMTSErrorResponse)(response) ? response : response.journeys;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "mts-booking-library",
|
3
|
-
"version": "1.2.
|
3
|
+
"version": "1.2.31",
|
4
4
|
"description": "Library for use MyTicketSolution Booking API",
|
5
5
|
"main": "lib/index.js",
|
6
6
|
"types": "lib/index.d.ts",
|
@@ -14,9 +14,9 @@
|
|
14
14
|
},
|
15
15
|
"license": "ISC",
|
16
16
|
"devDependencies": {
|
17
|
-
"@types/jest": "^29.5.
|
17
|
+
"@types/jest": "^29.5.12",
|
18
18
|
"jest": "^29.7.0",
|
19
|
-
"ts-jest": "^29.1.
|
19
|
+
"ts-jest": "^29.1.2",
|
20
20
|
"typescript": "^5.3.3"
|
21
21
|
},
|
22
22
|
"files": [
|
@@ -28,7 +28,7 @@
|
|
28
28
|
],
|
29
29
|
"author": "M",
|
30
30
|
"dependencies": {
|
31
|
-
"axios": "^1.6.
|
31
|
+
"axios": "^1.6.7",
|
32
32
|
"node-localstorage": "^3.0.5"
|
33
33
|
}
|
34
34
|
}
|