@codetanzania/emis-api-client
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -0,1 +1,7 @@ | ||
#### 0.1.2 (2019-01-14) | ||
##### Bug Fixes | ||
* ReferenceError: process is not defined in react ([7a58433f](https://github.com/CodeTanzania/emis-api-client/commit/7a58433f938cbe0f7aff53fe7eef8c6072c58c3d)) | ||
#### 0.1.0 (2019-01-12) | ||
@@ -2,0 +8,0 @@ |
@@ -33,3 +33,4 @@ import axios from 'axios'; | ||
if (!client) { | ||
const { env } = process; | ||
// Dont destructure: Fix:ReferenceError: process is not defined in react | ||
const env = process.env; // eslint-disable-line | ||
const { EMIS_API_URL, REACT_APP_EMIS_API_URL } = env; | ||
@@ -36,0 +37,0 @@ const BASE_URL = API_BASE_URL || EMIS_API_URL || REACT_APP_EMIS_API_URL; |
@@ -39,3 +39,4 @@ 'use strict'; | ||
if (!client) { | ||
const { env } = process; | ||
// Dont destructure: Fix:ReferenceError: process is not defined in react | ||
const env = process.env; // eslint-disable-line | ||
const { EMIS_API_URL, REACT_APP_EMIS_API_URL } = env; | ||
@@ -42,0 +43,0 @@ const BASE_URL = API_BASE_URL || EMIS_API_URL || REACT_APP_EMIS_API_URL; |
{ | ||
"name": "@codetanzania/emis-api-client", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "http client for EMIS API.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -33,3 +33,4 @@ import axios from 'axios'; | ||
if (!client) { | ||
const { env } = process; | ||
// Dont destructure: Fix:ReferenceError: process is not defined in react | ||
const env = process.env; // eslint-disable-line | ||
const { EMIS_API_URL, REACT_APP_EMIS_API_URL } = env; | ||
@@ -36,0 +37,0 @@ const BASE_URL = API_BASE_URL || EMIS_API_URL || REACT_APP_EMIS_API_URL; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
45815
1223
0
3