@stackfactor/client-api 1.1.47 → 1.1.49

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.
Files changed (2) hide show
  1. package/lib/utils.js +6 -3
  2. package/package.json +1 -1
package/lib/utils.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable no-undef */
2
- import dotenv from "dotenv";
2
+ //import dotenv from "dotenv";
3
3
  // Load environment variables from .env file
4
- dotenv.config();
4
+ //dotenv.config();
5
5
 
6
6
  /**
7
7
  * Convert object to array
@@ -20,7 +20,10 @@ export const objectToArray = (data) => {
20
20
  */
21
21
  export const getBaseUrl = () => {
22
22
  console.log("Environment", process.env.REACT_APP_NODE_ENV);
23
- if (!process.env.REACT_APP_NODE_ENV) {
23
+ if (
24
+ !process.env.REACT_APP_NODE_ENV ||
25
+ process.env.REACT_APP_NODE_ENV === "development"
26
+ ) {
24
27
  return "http://localhost:3100/";
25
28
  } else if (process.env.REACT_APP_NODE_ENV === "testing") {
26
29
  return "https://qaapi.stackfactor.ai/";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.1.47",
3
+ "version": "1.1.49",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {