@cdot65/prisma-airs-sdk 0.8.1 → 0.8.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/dist/index.cjs CHANGED
@@ -481,7 +481,7 @@ var MAX_NUMBER_OF_BATCH_SCAN_OBJECTS = 5;
481
481
  var MAX_CONNECTION_POOL_SIZE = 100;
482
482
  var MAX_NUMBER_OF_RETRIES = 5;
483
483
  var HTTP_FORCE_RETRY_STATUS_CODES = [500, 502, 503, 504];
484
- var SDK_VERSION = "0.8.1";
484
+ var SDK_VERSION = "0.8.2";
485
485
  var USER_AGENT = `PAN-AIRS/${SDK_VERSION}-typescript-sdk`;
486
486
  var DEFAULT_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aisec";
487
487
  var DEFAULT_TOKEN_ENDPOINT = "https://auth.apps.paloaltonetworks.com/oauth2/access_token";
@@ -800,7 +800,7 @@ async function request(spec) {
800
800
  }
801
801
  let parsed;
802
802
  try {
803
- parsed = text ? JSON.parse(text) : void 0;
803
+ parsed = text ? JSON.parse(text) : {};
804
804
  } catch {
805
805
  throw new AISecSDKException("Response body is not valid JSON", "AISEC_RESPONSE_VALIDATION" /* RESPONSE_VALIDATION */);
806
806
  }