uapi-json 1.17.0 → 1.17.1

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/docs/Terminal.md CHANGED
@@ -26,6 +26,8 @@ on how to use emulation.
26
26
  In case you want to handle some specific errors from uAPI, you can provde `uapiErrorHandler` function
27
27
  in options.
28
28
 
29
+ Function should return response from retried command or any other command.
30
+
29
31
  Footprint of the functions should be as follows:
30
32
  ```javascript
31
33
  async (
@@ -33,6 +35,8 @@ async (
33
35
  { command, error: err }
34
36
  ) => {
35
37
  // your code goes here
38
+ // response is an array of strings (lines of terminal response)
39
+ return response;
36
40
  }
37
41
  ```
38
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uapi-json",
3
- "version": "1.17.0",
3
+ "version": "1.17.1",
4
4
  "description": "Travelport Universal API",
5
5
  "main": "src/",
6
6
  "files": [
@@ -170,7 +170,7 @@ module.exports = function (settings) {
170
170
  } catch (e) {
171
171
  if (!isErrorRetriable(e) || times <= 0) {
172
172
  if (uapiErrorHandler) {
173
- await uapiErrorHandler(
173
+ return uapiErrorHandler(
174
174
  executeCommandWithRetry,
175
175
  { command, error: e }
176
176
  );