@ikonintegration/ikapi 3.0.7 → 3.0.8

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": "@ikonintegration/ikapi",
3
- "version": "3.0.7",
3
+ "version": "3.0.8",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "module": "main.js",
@@ -10,6 +10,7 @@ export default class IKResponse {
10
10
  this._isStream = false; //
11
11
  this._contextRawBody = false;
12
12
  this._throwOnErrors = false;
13
+ this.disableTransactionID = false;
13
14
  //
14
15
  this._headers = {
15
16
  "Access-Control-Allow-Origin": "*",
@@ -27,7 +28,7 @@ export default class IKResponse {
27
28
  if (this._isStream) return this._pipe(context);
28
29
 
29
30
  //append default fields
30
- if (transaction.request.getRequestID() && this._body) this.appendIntoBody('transactionID', transaction.request.getRequestID()); //append transaction ID
31
+ if (transaction.request.getRequestID() && this._body && !this.disableTransactionID) this.appendIntoBody('transactionID', transaction.request.getRequestID()); //append transaction ID
31
32
  //Raw response support
32
33
  if (this._contextRawBody) return this.rawContext(context, transaction);
33
34