component-shipinlv 0.1.18 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/lib/getApiUrl.js +4 -4
- package/package.json +1 -1
package/dist/lib/getApiUrl.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import ApiUrlsInfo, { currentEnv } from "../config/apiUrls";
|
2
2
|
var ApiUrls = function ApiUrls() {
|
3
|
-
var _window
|
4
|
-
return ((_window
|
3
|
+
var _window, _window2;
|
4
|
+
return ((_window = window) === null || _window === void 0 || (_window = _window.WebBaseConfig) === null || _window === void 0 || (_window = _window[(_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.WebBaseConfig) === null || _window2 === void 0 ? void 0 : _window2.webKind]) === null || _window === void 0 ? void 0 : _window.apiUrls) || ApiUrlsInfo;
|
5
5
|
};
|
6
6
|
var envData = function envData() {
|
7
|
-
var
|
8
|
-
return ((
|
7
|
+
var _window3;
|
8
|
+
return ((_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.WebBaseConfig) === null || _window3 === void 0 ? void 0 : _window3.currentEnv) || currentEnv;
|
9
9
|
};
|
10
10
|
var getApiUrl = function getApiUrl() {
|
11
11
|
var _domain;
|