uapi-json 1.17.5 → 1.17.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uapi-json",
3
- "version": "1.17.5",
3
+ "version": "1.17.6",
4
4
  "description": "Travelport Universal API",
5
5
  "main": "src/",
6
6
  "files": [
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "author": "Mark Orel <mail.ormark@gmail.com>",
31
31
  "contributors": [
32
- "Dmitry Chertousov <d.chertousov@gmail.com>",
32
+ "Dmytro Chertousov <d.chertousov@gmail.com>",
33
33
  "Artem Pylypchuk <articicejuice@gmail.com>",
34
34
  "Yevhenii Huselietov <d46k16@gmail.com>",
35
35
  "Mark Omarov <dev.mark.omarov@gmail.com>",
@@ -37,11 +37,11 @@
37
37
  ],
38
38
  "license": "MIT",
39
39
  "dependencies": {
40
- "axios": "^1.9.0",
40
+ "axios": "^1.12.2",
41
41
  "galileo-screen": "1.0.5",
42
42
  "handlebars": "^4.7.8",
43
43
  "handlebars-helper-equal": "^1.0.0",
44
- "joi": "^17.13.3",
44
+ "joi": "^18.0.1",
45
45
  "moment": "^2.30.1",
46
46
  "node-errors-helpers": "^1.0.0",
47
47
  "pretty-data": "^0.40.0",
@@ -52,12 +52,12 @@
52
52
  "chai": "^4.5.0",
53
53
  "eslint": "^8.39.0",
54
54
  "eslint-config-airbnb-base": "^15.0.0",
55
- "eslint-plugin-import": "^2.29.0",
56
- "mocha": "^11.5.0",
55
+ "eslint-plugin-import": "^2.32.0",
56
+ "mocha": "^11.7.4",
57
57
  "nyc": "^17.1.0",
58
58
  "proxyquire": "^2.1.3",
59
59
  "readline2": "^1.0.1",
60
- "sinon": "^20.0.0",
60
+ "sinon": "^21.0.0",
61
61
  "sinon-chai": "^3.7.0"
62
62
  }
63
63
  }
@@ -50,6 +50,7 @@ Object.assign(TerminalRuntimeError, createErrorsList({
50
50
  InvalidAccount: ['Invalid account', errorCodes.Validation],
51
51
  TerminalUnexpectedError: ['Unexpected error message is returned by Travelport system. Please check PNR and try again later.', errorCodes.Validation],
52
52
  TerminalUnexpectedFinancialError: ['Unexpected error message is returned by Travelport system. Please check PNR and new Fare calculation. If the problem persists, contact your local helpdesk.', errorCodes.Validation],
53
+ InvalidResponseFromHCA: 'Invalid response from HCA',
53
54
  }, TerminalRuntimeError));
54
55
 
55
56
  module.exports = {
@@ -24,12 +24,12 @@ function errorHandler(rsp) {
24
24
  screen: faultString,
25
25
  pcc: utils.getErrorPcc(rsp.faultstring),
26
26
  });
27
+ case '2614':
28
+ throw new TerminalRuntimeError.InvalidResponseFromHCA({ screen: faultString });
27
29
  case '6207': // Error retrieving AccessProfile Unable to retrieve enough Dynamic GTIDs for this transaction
28
30
  case '6119': // Host system error
29
31
  case '14058': // Could not locate Session Token Information Session May Have Timed Out
30
- throw new RequestRuntimeError.UAPIServiceError({
31
- screen: faultString,
32
- });
32
+ throw new RequestRuntimeError.UAPIServiceError({ screen: faultString });
33
33
  default:
34
34
  throw new RequestRuntimeError.UnhandledError(null, new TerminalRuntimeError(rsp));
35
35
  }