comprodls-sdk 2.31.0 → 2.31.3

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.
@@ -9561,7 +9561,8 @@ function pushX() {
9561
9561
  **********************************/
9562
9562
 
9563
9563
  function _connect(pubnubCW, options) {
9564
- if (!options.userid) {
9564
+ var bpubnubV7 = true; // If pubnub v7 or higher in package.json, set it true
9565
+ if (bpubnubV7 && !options.userid) {
9565
9566
  var err = {};
9566
9567
  err.message = err.description = 'Mandatory parameter userid not found in request options.';
9567
9568
  err = new DLSError(helpers.errors.ERROR_TYPES.PUSHX_ERROR, err);