@fctc/edu-logic-lib 1.0.0 → 1.0.2
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/chunk-6BLY7NZ6.mjs +124 -0
- package/dist/chunk-6QXB3XX7.mjs +258 -0
- package/dist/chunk-ELARQVCE.mjs +2364 -0
- package/dist/chunk-FVGPSTJ7.js +124 -0
- package/dist/chunk-GGOFXFSX.js +2364 -0
- package/dist/chunk-IXDDYGKE.js +61 -0
- package/dist/chunk-MJLXGYQ4.mjs +102 -0
- package/dist/chunk-MLJQPO4Q.mjs +61 -0
- package/dist/chunk-QLUONJPQ.mjs +604 -0
- package/dist/chunk-RZBHZYXG.js +604 -0
- package/dist/chunk-S7B3VKMJ.mjs +95 -0
- package/dist/chunk-S7YF2I23.js +95 -0
- package/dist/chunk-U4CC2BBB.js +1074 -0
- package/dist/chunk-UY6GNZNB.js +258 -0
- package/dist/chunk-W4W2L2NA.js +102 -0
- package/dist/chunk-WYXAE5LI.mjs +1074 -0
- package/dist/config.js +5 -292
- package/dist/config.mjs +4 -254
- package/dist/constants.js +30 -191
- package/dist/constants.mjs +16 -139
- package/dist/environment.js +6 -901
- package/dist/environment.mjs +9 -864
- package/dist/hooks.js +204 -4522
- package/dist/hooks.mjs +24 -4261
- package/dist/models.js +19 -3264
- package/dist/models.mjs +13 -3219
- package/dist/provider.js +33 -3258
- package/dist/provider.mjs +12 -3198
- package/dist/services.js +9 -4096
- package/dist/services.mjs +16 -4059
- package/dist/store.js +128 -691
- package/dist/store.mjs +51 -526
- package/dist/types.js +1 -18
- package/dist/utils.js +20 -2388
- package/dist/utils.mjs +17 -2344
- package/package.json +9 -6
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/config/axios-client.ts
|
|
2
|
+
var _axios = require('axios'); var _axios2 = _interopRequireDefault(_axios);
|
|
3
|
+
var MAINT_KEY = "MAINTENANCE_ACTIVE";
|
|
4
|
+
var MAINT_AT = "MAINTENANCE_AT";
|
|
5
|
+
var MAINT_LAST_PATH = "MAINTENANCE_LAST_PATH";
|
|
6
|
+
var hasRedirectedToMaintenance = false;
|
|
7
|
+
function setMaintenanceFlags() {
|
|
8
|
+
if (typeof window === "undefined") return;
|
|
9
|
+
const { pathname, search } = window.location;
|
|
10
|
+
const lastPath = pathname + (search || "");
|
|
11
|
+
if (pathname !== "/maintenance" && !window.localStorage.getItem(MAINT_LAST_PATH)) {
|
|
12
|
+
window.localStorage.setItem(MAINT_LAST_PATH, lastPath);
|
|
13
|
+
}
|
|
14
|
+
window.localStorage.setItem(MAINT_KEY, "true");
|
|
15
|
+
window.localStorage.setItem(MAINT_AT, String(Date.now()));
|
|
16
|
+
}
|
|
17
|
+
async function clearMaintenanceAndExit(getToken, opts) {
|
|
18
|
+
if (typeof window === "undefined") return;
|
|
19
|
+
const forceLogin = _optionalChain([opts, 'optionalAccess', _2 => _2.forceLogin]) === true;
|
|
20
|
+
const clearTokenOnForce = _optionalChain([opts, 'optionalAccess', _3 => _3.clearTokenOnForce]) !== false;
|
|
21
|
+
window.localStorage.removeItem(MAINT_KEY);
|
|
22
|
+
window.localStorage.removeItem(MAINT_AT);
|
|
23
|
+
const lastPath = window.localStorage.getItem(MAINT_LAST_PATH);
|
|
24
|
+
window.localStorage.removeItem(MAINT_LAST_PATH);
|
|
25
|
+
try {
|
|
26
|
+
if (forceLogin) {
|
|
27
|
+
if (clearTokenOnForce) {
|
|
28
|
+
try {
|
|
29
|
+
await _optionalChain([opts, 'optionalAccess', _4 => _4.clearToken, 'optionalCall', _5 => _5()]);
|
|
30
|
+
} catch (e) {
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
window.location.replace("/login");
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const token = await getToken();
|
|
37
|
+
if (token) {
|
|
38
|
+
const target = lastPath && lastPath !== "/maintenance" ? lastPath : "/";
|
|
39
|
+
window.location.replace(target);
|
|
40
|
+
} else {
|
|
41
|
+
window.location.replace("/login");
|
|
42
|
+
}
|
|
43
|
+
} catch (e2) {
|
|
44
|
+
window.location.replace("/login");
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
var axiosClient = {
|
|
48
|
+
init(config) {
|
|
49
|
+
const localStorage = config.localStorageUtils;
|
|
50
|
+
const sessionStorage = config.sessionStorageUtils;
|
|
51
|
+
const db = config.db;
|
|
52
|
+
let isRefreshing = false;
|
|
53
|
+
let failedQueue = [];
|
|
54
|
+
const processQueue = (error, token = null) => {
|
|
55
|
+
_optionalChain([failedQueue, 'optionalAccess', _6 => _6.forEach, 'call', _7 => _7((prom) => {
|
|
56
|
+
if (error) {
|
|
57
|
+
prom.reject(error);
|
|
58
|
+
} else {
|
|
59
|
+
prom.resolve(token);
|
|
60
|
+
}
|
|
61
|
+
})]);
|
|
62
|
+
failedQueue = [];
|
|
63
|
+
};
|
|
64
|
+
const instance = _axios2.default.create({
|
|
65
|
+
adapter: _axios2.default.defaults.adapter,
|
|
66
|
+
baseURL: config.baseUrl,
|
|
67
|
+
timeout: 5e4,
|
|
68
|
+
paramsSerializer: (params) => new URLSearchParams(params).toString()
|
|
69
|
+
});
|
|
70
|
+
if (typeof window !== "undefined") {
|
|
71
|
+
const isMaint = window.localStorage.getItem(MAINT_KEY) === "true";
|
|
72
|
+
const onMaintenancePage = window.location.pathname === "/maintenance";
|
|
73
|
+
if (isMaint && !onMaintenancePage) {
|
|
74
|
+
hasRedirectedToMaintenance = true;
|
|
75
|
+
window.location.replace("/maintenance");
|
|
76
|
+
}
|
|
77
|
+
if (isMaint && onMaintenancePage) {
|
|
78
|
+
const healthUrl = config.healthUrl || `${(config.baseUrl || "").replace(/\/+$/, "")}/health`;
|
|
79
|
+
(async () => {
|
|
80
|
+
try {
|
|
81
|
+
await _axios2.default.get(healthUrl, { timeout: 8e3 });
|
|
82
|
+
await clearMaintenanceAndExit(() => localStorage.getAccessToken(), {
|
|
83
|
+
forceLogin: true,
|
|
84
|
+
clearTokenOnForce: true,
|
|
85
|
+
clearToken: () => localStorage.clearToken()
|
|
86
|
+
});
|
|
87
|
+
} catch (e3) {
|
|
88
|
+
}
|
|
89
|
+
})();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
instance.interceptors.request.use(
|
|
93
|
+
async (configReq) => {
|
|
94
|
+
const token = await localStorage.getAccessToken();
|
|
95
|
+
if (token) {
|
|
96
|
+
configReq.headers["Authorization"] = "Bearer " + token;
|
|
97
|
+
}
|
|
98
|
+
return configReq;
|
|
99
|
+
},
|
|
100
|
+
(error) => Promise.reject(error)
|
|
101
|
+
);
|
|
102
|
+
instance.interceptors.response.use(
|
|
103
|
+
(response) => {
|
|
104
|
+
if (typeof window !== "undefined") {
|
|
105
|
+
const isMaint = window.localStorage.getItem(MAINT_KEY) === "true";
|
|
106
|
+
const onMaintenancePage = window.location.pathname === "/maintenance";
|
|
107
|
+
if (isMaint && onMaintenancePage) {
|
|
108
|
+
;
|
|
109
|
+
(async () => {
|
|
110
|
+
await clearMaintenanceAndExit(
|
|
111
|
+
() => localStorage.getAccessToken(),
|
|
112
|
+
{
|
|
113
|
+
forceLogin: true,
|
|
114
|
+
clearTokenOnForce: true,
|
|
115
|
+
clearToken: () => localStorage.clearToken()
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
})();
|
|
119
|
+
} else if (isMaint) {
|
|
120
|
+
window.localStorage.removeItem(MAINT_KEY);
|
|
121
|
+
window.localStorage.removeItem(MAINT_AT);
|
|
122
|
+
window.localStorage.removeItem(MAINT_LAST_PATH);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return handleResponse(response);
|
|
126
|
+
},
|
|
127
|
+
async (error) => {
|
|
128
|
+
const status = _optionalChain([error, 'optionalAccess', _8 => _8.response, 'optionalAccess', _9 => _9.status]);
|
|
129
|
+
if (status === 503) {
|
|
130
|
+
if (typeof window !== "undefined") {
|
|
131
|
+
setMaintenanceFlags();
|
|
132
|
+
if (!hasRedirectedToMaintenance && window.location.pathname !== "/maintenance") {
|
|
133
|
+
hasRedirectedToMaintenance = true;
|
|
134
|
+
window.location.replace("/maintenance");
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return Promise.reject({
|
|
138
|
+
code: 503,
|
|
139
|
+
message: "SERVICE_UNAVAILABLE",
|
|
140
|
+
original: _optionalChain([error, 'optionalAccess', _10 => _10.response, 'optionalAccess', _11 => _11.data])
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
const handleError = async (err) => {
|
|
144
|
+
if (!err.response) {
|
|
145
|
+
return err;
|
|
146
|
+
}
|
|
147
|
+
const { data } = err.response;
|
|
148
|
+
if (data && data.code === 400 && ["invalid_grant"].includes(_optionalChain([data, 'access', _12 => _12.data, 'optionalAccess', _13 => _13.error]))) {
|
|
149
|
+
await clearAuthToken();
|
|
150
|
+
}
|
|
151
|
+
return data;
|
|
152
|
+
};
|
|
153
|
+
const originalRequest = error.config;
|
|
154
|
+
if ((_optionalChain([error, 'access', _14 => _14.response, 'optionalAccess', _15 => _15.status]) === 403 || _optionalChain([error, 'access', _16 => _16.response, 'optionalAccess', _17 => _17.status]) === 401 || _optionalChain([error, 'access', _18 => _18.response, 'optionalAccess', _19 => _19.status]) === 404) && ["TOKEN_EXPIRED", "AUTHEN_FAIL", 401].includes(
|
|
155
|
+
error.response.data.code
|
|
156
|
+
)) {
|
|
157
|
+
if (isRefreshing) {
|
|
158
|
+
return new Promise(function(resolve, reject) {
|
|
159
|
+
failedQueue.push({ resolve, reject });
|
|
160
|
+
}).then((token) => {
|
|
161
|
+
originalRequest.headers["Authorization"] = "Bearer " + token;
|
|
162
|
+
return instance.request(originalRequest);
|
|
163
|
+
}).catch(async (err) => {
|
|
164
|
+
if ((_optionalChain([err, 'access', _20 => _20.response, 'optionalAccess', _21 => _21.status]) === 400 || _optionalChain([err, 'access', _22 => _22.response, 'optionalAccess', _23 => _23.status]) === 401) && ["invalid_grant"].includes(err.response.data.error)) {
|
|
165
|
+
await clearAuthToken();
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
const browserSession = await sessionStorage.getBrowserSession();
|
|
170
|
+
const refreshToken = await localStorage.getRefreshToken();
|
|
171
|
+
const accessTokenExp = await localStorage.getAccessToken();
|
|
172
|
+
isRefreshing = true;
|
|
173
|
+
if (!refreshToken && (!browserSession || browserSession == "unActive")) {
|
|
174
|
+
await clearAuthToken();
|
|
175
|
+
} else {
|
|
176
|
+
const payload = Object.fromEntries(
|
|
177
|
+
Object.entries({
|
|
178
|
+
refresh_token: refreshToken,
|
|
179
|
+
grant_type: "refresh_token",
|
|
180
|
+
client_id: config.config.clientId,
|
|
181
|
+
client_secret: config.config.clientSecret
|
|
182
|
+
}).filter(([_, value]) => !!value)
|
|
183
|
+
);
|
|
184
|
+
return new Promise(function(resolve) {
|
|
185
|
+
_axios2.default.post(
|
|
186
|
+
`${config.baseUrl}${"/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`,
|
|
187
|
+
payload,
|
|
188
|
+
{
|
|
189
|
+
headers: {
|
|
190
|
+
"Content-Type": "multipart/form-data",
|
|
191
|
+
Authorization: `Bearer ${accessTokenExp}`
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
).then(async (res) => {
|
|
195
|
+
const data = res.data;
|
|
196
|
+
await localStorage.setToken(data.access_token);
|
|
197
|
+
await localStorage.setRefreshToken(data.refresh_token);
|
|
198
|
+
_axios2.default.defaults.headers.common["Authorization"] = "Bearer " + data.access_token;
|
|
199
|
+
originalRequest.headers["Authorization"] = "Bearer " + data.access_token;
|
|
200
|
+
processQueue(null, data.access_token);
|
|
201
|
+
resolve(instance.request(originalRequest));
|
|
202
|
+
}).catch(async (err) => {
|
|
203
|
+
if (err && (_optionalChain([err, 'optionalAccess', _24 => _24.error_code]) === "AUTHEN_FAIL" || _optionalChain([err, 'optionalAccess', _25 => _25.error_code]) === "TOKEN_EXPIRED" || _optionalChain([err, 'optionalAccess', _26 => _26.error_code]) === "TOKEN_INCORRECT" || _optionalChain([err, 'optionalAccess', _27 => _27.code]) === "ERR_BAD_REQUEST")) {
|
|
204
|
+
await clearAuthToken();
|
|
205
|
+
}
|
|
206
|
+
if (err && err.response) {
|
|
207
|
+
const { error_code } = _optionalChain([err, 'access', _28 => _28.response, 'optionalAccess', _29 => _29.data]) || {};
|
|
208
|
+
if (error_code === "AUTHEN_FAIL") {
|
|
209
|
+
await clearAuthToken();
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
processQueue(err, null);
|
|
213
|
+
}).finally(() => {
|
|
214
|
+
isRefreshing = false;
|
|
215
|
+
});
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return Promise.reject(await handleError(error));
|
|
220
|
+
}
|
|
221
|
+
);
|
|
222
|
+
const handleResponse = (res) => {
|
|
223
|
+
if (res && res.data) {
|
|
224
|
+
return res.data;
|
|
225
|
+
}
|
|
226
|
+
return res;
|
|
227
|
+
};
|
|
228
|
+
const clearAuthToken = async () => {
|
|
229
|
+
await localStorage.clearToken();
|
|
230
|
+
if (typeof window !== "undefined") {
|
|
231
|
+
window.location.href = `/login`;
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
function formatUrl(url, db2) {
|
|
235
|
+
return url + (db2 ? "?db=" + db2 : "");
|
|
236
|
+
}
|
|
237
|
+
const responseBody = (response) => response;
|
|
238
|
+
const requests = {
|
|
239
|
+
get: (url, headers) => instance.get(formatUrl(url, db), headers).then(responseBody),
|
|
240
|
+
post: (url, body, headers) => instance.post(formatUrl(url, db), body, { headers }).then(responseBody),
|
|
241
|
+
post_excel: (url, body, headers) => instance.post(formatUrl(url, db), body, {
|
|
242
|
+
responseType: "arraybuffer",
|
|
243
|
+
headers: {
|
|
244
|
+
"Content-Type": typeof window !== "undefined" ? "application/json" : "application/javascript",
|
|
245
|
+
Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
246
|
+
}
|
|
247
|
+
}).then(responseBody),
|
|
248
|
+
put: (url, body, headers) => instance.put(formatUrl(url, db), body, headers).then(responseBody),
|
|
249
|
+
patch: (url, body) => instance.patch(formatUrl(url, db), body).then(responseBody),
|
|
250
|
+
delete: (url, body) => instance.delete(formatUrl(url, db), body).then(responseBody)
|
|
251
|
+
};
|
|
252
|
+
return requests;
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
exports.axiosClient = axiosClient;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunkUY6GNZNBjs = require('./chunk-UY6GNZNB.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var _chunkRZBHZYXGjs = require('./chunk-RZBHZYXG.js');
|
|
14
|
+
|
|
15
|
+
// src/environment/EnvStore.ts
|
|
16
|
+
var EnvStore = class {
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
constructor(envStore2, localStorageUtils, sessionStorageUtils) {
|
|
29
|
+
this.envStore = envStore2;
|
|
30
|
+
this.localStorageUtils = localStorageUtils;
|
|
31
|
+
this.sessionStorageUtils = sessionStorageUtils;
|
|
32
|
+
this.setup();
|
|
33
|
+
}
|
|
34
|
+
setup() {
|
|
35
|
+
const env2 = this.envStore.getState().env;
|
|
36
|
+
this.baseUrl = _optionalChain([env2, 'optionalAccess', _ => _.baseUrl]);
|
|
37
|
+
this.requests = _optionalChain([env2, 'optionalAccess', _2 => _2.requests]);
|
|
38
|
+
this.context = _optionalChain([env2, 'optionalAccess', _3 => _3.context]);
|
|
39
|
+
this.defaultCompany = _optionalChain([env2, 'optionalAccess', _4 => _4.defaultCompany]);
|
|
40
|
+
this.config = _optionalChain([env2, 'optionalAccess', _5 => _5.config]);
|
|
41
|
+
this.companies = _optionalChain([env2, 'optionalAccess', _6 => _6.companies]) || [];
|
|
42
|
+
this.user = _optionalChain([env2, 'optionalAccess', _7 => _7.user]);
|
|
43
|
+
this.db = _optionalChain([env2, 'optionalAccess', _8 => _8.db]);
|
|
44
|
+
}
|
|
45
|
+
setupEnv(envConfig) {
|
|
46
|
+
const dispatch = this.envStore.dispatch;
|
|
47
|
+
const env2 = {
|
|
48
|
+
...envConfig,
|
|
49
|
+
localStorageUtils: this.localStorageUtils,
|
|
50
|
+
sessionStorageUtils: this.sessionStorageUtils
|
|
51
|
+
};
|
|
52
|
+
const requests = _chunkUY6GNZNBjs.axiosClient.init(env2);
|
|
53
|
+
dispatch(_chunkRZBHZYXGjs.setEnv.call(void 0, { ...env2, requests }));
|
|
54
|
+
this.setup();
|
|
55
|
+
}
|
|
56
|
+
setUid(uid) {
|
|
57
|
+
const dispatch = this.envStore.dispatch;
|
|
58
|
+
dispatch(_chunkRZBHZYXGjs.setUid.call(void 0, uid));
|
|
59
|
+
this.setup();
|
|
60
|
+
}
|
|
61
|
+
setLang(lang) {
|
|
62
|
+
const dispatch = this.envStore.dispatch;
|
|
63
|
+
dispatch(_chunkRZBHZYXGjs.setLang.call(void 0, lang));
|
|
64
|
+
this.setup();
|
|
65
|
+
}
|
|
66
|
+
setAllowCompanies(allowCompanies) {
|
|
67
|
+
const dispatch = this.envStore.dispatch;
|
|
68
|
+
dispatch(_chunkRZBHZYXGjs.setAllowCompanies.call(void 0, allowCompanies));
|
|
69
|
+
this.setup();
|
|
70
|
+
}
|
|
71
|
+
setCompanies(companies) {
|
|
72
|
+
const dispatch = this.envStore.dispatch;
|
|
73
|
+
dispatch(_chunkRZBHZYXGjs.setCompanies.call(void 0, companies));
|
|
74
|
+
this.setup();
|
|
75
|
+
}
|
|
76
|
+
setDefaultCompany(company) {
|
|
77
|
+
const dispatch = this.envStore.dispatch;
|
|
78
|
+
dispatch(_chunkRZBHZYXGjs.setDefaultCompany.call(void 0, company));
|
|
79
|
+
this.setup();
|
|
80
|
+
}
|
|
81
|
+
setUserInfo(userInfo) {
|
|
82
|
+
const dispatch = this.envStore.dispatch;
|
|
83
|
+
dispatch(_chunkRZBHZYXGjs.setUser.call(void 0, userInfo));
|
|
84
|
+
this.setup();
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
var env = null;
|
|
88
|
+
function initEnv({}) {
|
|
89
|
+
env = exports.env = new EnvStore(_chunkRZBHZYXGjs.envStore);
|
|
90
|
+
return env;
|
|
91
|
+
}
|
|
92
|
+
function getEnv() {
|
|
93
|
+
if (!env) env = exports.env = new EnvStore(_chunkRZBHZYXGjs.envStore);
|
|
94
|
+
return env;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
exports.EnvStore = EnvStore; exports.env = env; exports.initEnv = initEnv; exports.getEnv = getEnv;
|