@stackfactor/client-api 1.1.80 → 1.1.82

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.
@@ -1,19 +1,14 @@
1
1
  import axios from "axios";
2
2
  import { RESPONSE_TYPE } from "./constants.js";
3
- import https from "https";
4
3
  import utils from "./utils.js";
5
4
 
6
5
  const baseUrl = utils.getBaseUrl();
7
6
 
8
7
  const client = axios.create({
9
8
  baseURL: baseUrl,
10
- httpsAgent: new https.Agent({
11
- rejectUnauthorized: false,
12
- }),
9
+ withCredentials: true,
13
10
  });
14
11
 
15
- client.defaults.withCredentials = true;
16
-
17
12
  /**
18
13
  * Returns the error as a string
19
14
  * @param {Object} error
package/lib/utils.js CHANGED
@@ -23,7 +23,7 @@ const getBaseUrl = () => {
23
23
  case "development":
24
24
  case null:
25
25
  case undefined:
26
- return "http://localhost:3100/";
26
+ return "https://localhost/";
27
27
  case "testing":
28
28
  return "https://qaapi.stackfactor.ai/";
29
29
  case "production":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.1.80",
3
+ "version": "1.1.82",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {