@veritree/services 2.18.1-5 → 2.18.1-6

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/package.json +1 -1
  2. package/src/helpers/api.js +2 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/services",
3
- "version": "2.18.1-5",
3
+ "version": "2.18.1-6",
4
4
  "description": "A collection of javascript functions/services to talk to veritree API",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -11,12 +11,7 @@ import { getSession } from "./session";
11
11
  function addVersionArg(url) {
12
12
  if (!url || url.includes("_result=1")) return url;
13
13
 
14
- const version =
15
- process && process.env
16
- ? process.env.API_VERITREE_VERSION
17
- ? process.env.API_VERITREE_VERSION
18
- : "5.0.0"
19
- : "5.0.0" || "5.0.0";
14
+ const version = "5.0.0";
20
15
  const urlHasArgs = url.includes("?");
21
16
  const urlVersionArg = urlHasArgs ? `&_v=${version}` : `?_v=${version}`;
22
17
 
@@ -65,12 +60,7 @@ function getConfig(method, data, as) {
65
60
 
66
61
  export default class Api {
67
62
  constructor(resource) {
68
- this.baseUrl =
69
- process && process.env
70
- ? process.env.API_VERITREE_URL
71
- ? `${process.env.API_VERITREE_URL}/api`
72
- : null
73
- : null;
63
+ this.baseUrl = null;
74
64
  this.resource = resource ? resource : "";
75
65
  this.orgId = null;
76
66
  this.orgType = null;