@sasjs/adapter 3.7.12 → 3.7.13

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
@@ -79,5 +79,5 @@
79
79
  "https": "1.0.0",
80
80
  "tough-cookie": "4.0.0"
81
81
  },
82
- "version": "3.7.12"
82
+ "version": "3.7.13"
83
83
  }
@@ -85,25 +85,13 @@ export class Sas9JobExecutor extends BaseJobExecutor {
85
85
  }
86
86
  )
87
87
  .then((res: any) => {
88
- let resString = res
89
-
90
- if (typeof res === 'object') {
91
- resString = JSON.stringify(res)
92
- }
93
-
94
- this.requestClient!.appendRequest(resString, sasJob, config.debug)
95
-
88
+ //appending response to requests array that will be used for requests history reference
89
+ this.requestClient!.appendRequest(res, sasJob, config.debug)
96
90
  return res
97
91
  })
98
92
  .catch((err: any) => {
99
- let errString = err
100
-
101
- if (typeof err === 'object') {
102
- errString = JSON.stringify(errString)
103
- }
104
-
105
- this.requestClient!.appendRequest(errString, sasJob, config.debug)
106
-
93
+ //appending error to requests array that will be used for requests history reference
94
+ this.requestClient!.appendRequest(err, sasJob, config.debug)
107
95
  return err
108
96
  })
109
97
  }