vineanova-redux-artifacts 1.82.0 → 1.83.0
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/CHANGELOG.md
CHANGED
|
@@ -36,6 +36,8 @@ var ServiceConfigClass = /*#__PURE__*/function () {
|
|
|
36
36
|
var userEmail = get(this.config, 'user.email', null);
|
|
37
37
|
var isDemoUser = userEmail === 'VineaNovaDemoAdmin.com' && serviceType !== 'login';
|
|
38
38
|
var isTest = get(this.config, 'environment.isTest', null);
|
|
39
|
+
var isLocalHost = get(this.config, 'environment.isLocalHost', null);
|
|
40
|
+
isTest = isTest || isLocalHost;
|
|
39
41
|
if (serviceType === 'mock' || isDemoUser) {
|
|
40
42
|
apiUrl = mockApiUrl;
|
|
41
43
|
} else if (serviceType === 'login') {
|
package/package.json
CHANGED
|
@@ -24,7 +24,10 @@ class ServiceConfigClass {
|
|
|
24
24
|
const userEmail = get(this.config, 'user.email', null);
|
|
25
25
|
const isDemoUser =
|
|
26
26
|
userEmail === 'VineaNovaDemoAdmin.com' && serviceType !== 'login';
|
|
27
|
-
|
|
27
|
+
let isTest = get(this.config, 'environment.isTest', null);
|
|
28
|
+
const isLocalHost = get(this.config, 'environment.isLocalHost', null);
|
|
29
|
+
isTest = isTest || isLocalHost;
|
|
30
|
+
|
|
28
31
|
if (serviceType === 'mock' || isDemoUser) {
|
|
29
32
|
apiUrl = mockApiUrl;
|
|
30
33
|
} else if (serviceType === 'login') {
|