zmdms-utils 0.0.63 → 0.0.65
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/es/_virtual/_commonjsHelpers.js +3 -0
- package/dist/es/_virtual/decimal.js +7 -0
- package/dist/es/baseUrl.js +3 -3
- package/dist/es/constants.d.ts +2 -2
- package/dist/es/constants.js +2 -2
- package/dist/es/node_modules/decimal.js/decimal2.js +4930 -0
- package/dist/es/src/test.js +190 -58
- package/package.json +1 -1
- package/src/baseUrl.ts +3 -3
- package/src/constants.ts +2 -2
- package/src/test.js +111 -78
package/dist/es/baseUrl.js
CHANGED
|
@@ -33,9 +33,9 @@ function getBaseUrl(processObj, options) {
|
|
|
33
33
|
// 退出登录地址
|
|
34
34
|
var logoutUrl = {
|
|
35
35
|
dev: processObj["".concat(logoutKey, "_DEV")] || "/login",
|
|
36
|
-
test: processObj["".concat(logoutKey, "
|
|
37
|
-
stage: processObj["".concat(logoutKey, "
|
|
38
|
-
prod: processObj["".concat(logoutKey, "
|
|
36
|
+
test: processObj["".concat(logoutKey, "_TEST")] || "/login",
|
|
37
|
+
stage: processObj["".concat(logoutKey, "_STAGE")] || "http://testportal.cncico.com:8099/",
|
|
38
|
+
prod: processObj["".concat(logoutKey, "_PROD")] || "http://newportal.cncico.com/",
|
|
39
39
|
};
|
|
40
40
|
var currentKey = ENV.toLowerCase() || "prod";
|
|
41
41
|
return {
|
package/dist/es/constants.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ declare const EMITTER_TYPE: {
|
|
|
14
14
|
treeSearchWhitePath: string;
|
|
15
15
|
treeSearchSet: string;
|
|
16
16
|
};
|
|
17
|
-
declare const TOKEN_KEY
|
|
18
|
-
declare const BASIC_KEY
|
|
17
|
+
declare const TOKEN_KEY: any;
|
|
18
|
+
declare const BASIC_KEY: any;
|
|
19
19
|
|
|
20
20
|
export { BASIC_KEY, EMITTER_CCP_KEY, EMITTER_PCC_KEY, EMITTER_TYPE, TOKEN_KEY };
|
package/dist/es/constants.js
CHANGED
|
@@ -21,9 +21,9 @@ var EMITTER_TYPE = {
|
|
|
21
21
|
};
|
|
22
22
|
// token key 值
|
|
23
23
|
// export const TOKEN_KEY = "Zmdms-Auth";
|
|
24
|
-
var TOKEN_KEY = "Cicoms-Auth";
|
|
24
|
+
var TOKEN_KEY = window.__TOKEN_KEY__ || "Cicoms-Auth";
|
|
25
25
|
// 基础前缀
|
|
26
26
|
// export const BASIC_KEY = "zmdms";
|
|
27
|
-
var BASIC_KEY = "cicoms";
|
|
27
|
+
var BASIC_KEY = window.__BASIC_KEY__ || "cicoms";
|
|
28
28
|
|
|
29
29
|
export { BASIC_KEY, EMITTER_CCP_KEY, EMITTER_PCC_KEY, EMITTER_TYPE, PERSONNEL_CENTER_APPNAME, SALARY_CENTER_APPNAME, TOKEN_KEY };
|