@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.d.cts CHANGED
@@ -84882,8 +84882,8 @@ declare const MAX_NUMBER_OF_BATCH_SCAN_OBJECTS = 5;
84882
84882
  declare const MAX_CONNECTION_POOL_SIZE = 100;
84883
84883
  declare const MAX_NUMBER_OF_RETRIES = 5;
84884
84884
  declare const HTTP_FORCE_RETRY_STATUS_CODES: number[];
84885
- declare const SDK_VERSION = "0.8.1";
84886
- declare const USER_AGENT = "PAN-AIRS/0.8.1-typescript-sdk";
84885
+ declare const SDK_VERSION = "0.8.2";
84886
+ declare const USER_AGENT = "PAN-AIRS/0.8.2-typescript-sdk";
84887
84887
  declare const DEFAULT_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aisec";
84888
84888
  declare const DEFAULT_TOKEN_ENDPOINT = "https://auth.apps.paloaltonetworks.com/oauth2/access_token";
84889
84889
  declare const MGMT_CLIENT_ID = "PANW_MGMT_CLIENT_ID";
package/dist/index.d.ts CHANGED
@@ -84882,8 +84882,8 @@ declare const MAX_NUMBER_OF_BATCH_SCAN_OBJECTS = 5;
84882
84882
  declare const MAX_CONNECTION_POOL_SIZE = 100;
84883
84883
  declare const MAX_NUMBER_OF_RETRIES = 5;
84884
84884
  declare const HTTP_FORCE_RETRY_STATUS_CODES: number[];
84885
- declare const SDK_VERSION = "0.8.1";
84886
- declare const USER_AGENT = "PAN-AIRS/0.8.1-typescript-sdk";
84885
+ declare const SDK_VERSION = "0.8.2";
84886
+ declare const USER_AGENT = "PAN-AIRS/0.8.2-typescript-sdk";
84887
84887
  declare const DEFAULT_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aisec";
84888
84888
  declare const DEFAULT_TOKEN_ENDPOINT = "https://auth.apps.paloaltonetworks.com/oauth2/access_token";
84889
84889
  declare const MGMT_CLIENT_ID = "PANW_MGMT_CLIENT_ID";
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ var MAX_NUMBER_OF_BATCH_SCAN_OBJECTS = 5;
29
29
  var MAX_CONNECTION_POOL_SIZE = 100;
30
30
  var MAX_NUMBER_OF_RETRIES = 5;
31
31
  var HTTP_FORCE_RETRY_STATUS_CODES = [500, 502, 503, 504];
32
- var SDK_VERSION = "0.8.1";
32
+ var SDK_VERSION = "0.8.2";
33
33
  var USER_AGENT = `PAN-AIRS/${SDK_VERSION}-typescript-sdk`;
34
34
  var DEFAULT_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aisec";
35
35
  var DEFAULT_TOKEN_ENDPOINT = "https://auth.apps.paloaltonetworks.com/oauth2/access_token";
@@ -348,7 +348,7 @@ async function request(spec) {
348
348
  }
349
349
  let parsed;
350
350
  try {
351
- parsed = text ? JSON.parse(text) : void 0;
351
+ parsed = text ? JSON.parse(text) : {};
352
352
  } catch {
353
353
  throw new AISecSDKException("Response body is not valid JSON", "AISEC_RESPONSE_VALIDATION" /* RESPONSE_VALIDATION */);
354
354
  }