primary_care_admin_binder 0.1.188 → 0.1.190

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.js CHANGED
@@ -2406,10 +2406,10 @@ function getBinderUrls() {
2406
2406
  return {
2407
2407
  // Database & Metadata
2408
2408
  dbtype: getBinderEnv("REACT_APP_BASE_URL_HOST").split(".")[0],
2409
- dbName: getBinderEnv("REACT_APP_DATABASE_NAME"),
2409
+ dbName: getBinderEnv("REACT_APP_APPNAME"),
2410
2410
  dbNameNg: getBinderEnv("REACT_APP_NG_DATABASE_NAME"),
2411
2411
  ruleDBName: getBinderEnv("REACT_APP_RULE_BUILDER_DB") || "RuleBuilder",
2412
- metaDatadbName: getBinderEnv("REACT_APP_METADATA_DB_NAME"),
2412
+ metaDatadbName: getBinderEnv("REACT_APP_META_APP_NAME"),
2413
2413
  metaDataId: getBinderEnv("REACT_APP_METADATAID"),
2414
2414
  tenantId: getBinderEnv("REACT_APP_TENANTID"),
2415
2415
  // Arango APIs
@@ -8283,9 +8283,10 @@ var fetchData = /*#__PURE__*/function () {
8283
8283
  while (1) switch (_context.n) {
8284
8284
  case 0:
8285
8285
  url = _args.length > 1 && _args[1] !== undefined ? _args[1] : __baseUrl__;
8286
- jwtTokenFromStorage = localStorage.getItem("token");
8286
+ jwtTokenFromStorage = localStorage.getItem("jwttoken");
8287
8287
  __options = {
8288
8288
  method: "POST",
8289
+ credentials: "include",
8289
8290
  headers: jwtTokenFromStorage ? {
8290
8291
  "Content-Type": "application/json",
8291
8292
  "jwtToken": jwtTokenFromStorage
@@ -8392,8 +8393,9 @@ var fetchDataApi = /*#__PURE__*/function () {
8392
8393
  case 0:
8393
8394
  url = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : __baseUrl__;
8394
8395
  input = _args2.length > 1 ? _args2[1] : undefined;
8395
- jwtToken = localStorage.getItem("userInfo"); // get jwt token from local storage
8396
+ jwtToken = localStorage.getItem("jwttoken"); // get jwt token from local storage
8396
8397
  __options = input || {};
8398
+ __options.credentials = "include";
8397
8399
  if (__options.headers) {
8398
8400
  __options.headers.jwttoken = jwtToken;
8399
8401
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primary_care_admin_binder",
3
- "version": "0.1.188",
3
+ "version": "0.1.190",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",