@itentialopensource/adapter-f5_bigiq 0.3.1 → 0.3.2

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/CHANGELOG.md CHANGED
@@ -1,4 +1,12 @@
1
1
 
2
+ ## 0.3.2 [07-20-2023]
3
+
4
+ * Remove additional headers
5
+
6
+ See merge request itentialopensource/adapters/controller-orchestrator/adapter-f5_bigiq!4
7
+
8
+ ---
9
+
2
10
  ## 0.3.1 [07-20-2023]
3
11
 
4
12
  * Delete big-ip endpoints and add a big-iq task
package/adapter.js CHANGED
@@ -26464,29 +26464,12 @@ class F5BigIQ extends AdapterBaseCl {
26464
26464
  }
26465
26465
  });
26466
26466
 
26467
- // if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
26468
- let thisHeaderData = null;
26469
- // if the additional headers was passed in as a string parse the json into an object
26470
- if (thisHeaderData !== null && thisHeaderData.constructor === String) {
26471
- try {
26472
- // parse the additional headers object that was passed in
26473
- thisHeaderData = JSON.parse(thisHeaderData);
26474
- } catch (err) {
26475
- const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
26476
- log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
26477
- return callback(null, errorObj);
26478
- }
26479
- } else if (thisHeaderData === null) {
26480
- thisHeaderData = { contentType: '' };
26481
- }
26482
-
26483
26467
  // set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
26484
26468
  // see adapter code documentation for more information on the request object's fields
26485
26469
  const reqObj = {
26486
26470
  payload: bodyVars,
26487
26471
  uriPathVars: pathVars,
26488
- uriQuery: queryParams,
26489
- addlHeaders: thisHeaderData
26472
+ uriQuery: queryParams
26490
26473
  };
26491
26474
 
26492
26475
  try {
@@ -26557,29 +26540,12 @@ class F5BigIQ extends AdapterBaseCl {
26557
26540
  }
26558
26541
  });
26559
26542
 
26560
- // if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
26561
- let thisHeaderData = null;
26562
- // if the additional headers was passed in as a string parse the json into an object
26563
- if (thisHeaderData !== null && thisHeaderData.constructor === String) {
26564
- try {
26565
- // parse the additional headers object that was passed in
26566
- thisHeaderData = JSON.parse(thisHeaderData);
26567
- } catch (err) {
26568
- const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
26569
- log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
26570
- return callback(null, errorObj);
26571
- }
26572
- } else if (thisHeaderData === null) {
26573
- thisHeaderData = { contentType: '' };
26574
- }
26575
-
26576
26543
  // set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
26577
26544
  // see adapter code documentation for more information on the request object's fields
26578
26545
  const reqObj = {
26579
26546
  payload: bodyVars,
26580
26547
  uriPathVars: pathVars,
26581
- uriQuery: queryParams,
26582
- addlHeaders: thisHeaderData
26548
+ uriQuery: queryParams
26583
26549
  };
26584
26550
 
26585
26551
  try {
@@ -26738,29 +26704,12 @@ class F5BigIQ extends AdapterBaseCl {
26738
26704
  }
26739
26705
  });
26740
26706
 
26741
- // if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
26742
- let thisHeaderData = null;
26743
- // if the additional headers was passed in as a string parse the json into an object
26744
- if (thisHeaderData !== null && thisHeaderData.constructor === String) {
26745
- try {
26746
- // parse the additional headers object that was passed in
26747
- thisHeaderData = JSON.parse(thisHeaderData);
26748
- } catch (err) {
26749
- const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
26750
- log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
26751
- return callback(null, errorObj);
26752
- }
26753
- } else if (thisHeaderData === null) {
26754
- thisHeaderData = { contentType: '' };
26755
- }
26756
-
26757
26707
  // set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
26758
26708
  // see adapter code documentation for more information on the request object's fields
26759
26709
  const reqObj = {
26760
26710
  payload: bodyVars,
26761
26711
  uriPathVars: pathVars,
26762
- uriQuery: queryParams,
26763
- addlHeaders: thisHeaderData
26712
+ uriQuery: queryParams
26764
26713
  };
26765
26714
 
26766
26715
  try {
@@ -26837,29 +26786,12 @@ class F5BigIQ extends AdapterBaseCl {
26837
26786
  }
26838
26787
  });
26839
26788
 
26840
- // if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
26841
- let thisHeaderData = null;
26842
- // if the additional headers was passed in as a string parse the json into an object
26843
- if (thisHeaderData !== null && thisHeaderData.constructor === String) {
26844
- try {
26845
- // parse the additional headers object that was passed in
26846
- thisHeaderData = JSON.parse(thisHeaderData);
26847
- } catch (err) {
26848
- const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
26849
- log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
26850
- return callback(null, errorObj);
26851
- }
26852
- } else if (thisHeaderData === null) {
26853
- thisHeaderData = { contentType: '' };
26854
- }
26855
-
26856
26789
  // set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
26857
26790
  // see adapter code documentation for more information on the request object's fields
26858
26791
  const reqObj = {
26859
26792
  payload: bodyVars,
26860
26793
  uriPathVars: pathVars,
26861
- uriQuery: queryParams,
26862
- addlHeaders: thisHeaderData
26794
+ uriQuery: queryParams
26863
26795
  };
26864
26796
 
26865
26797
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-f5_bigiq",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "This adapter integrates with system described as: f5Big-iqApi.",
5
5
  "main": "adapter.js",
6
6
  "systemName": "f5 BIG-IQ",
Binary file