@indfnd/utils 0.1.3 → 0.1.4
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 +12 -0
- package/dist/ind-utils.es.js +4 -2
- package/dist/ind-utils.umd.cjs +12 -12
- package/global.d.ts +2 -0
- package/package.json +1 -1
- package/src/api/platform/user.ts +5 -3
- package/types/api/com.d.ts +2 -2
- package/types/api/index-desc.d.ts +4 -6
- package/types/api/index.d.ts +6 -6
- package/types/api/item.d.ts +4 -4
- package/types/api/platform/dict.d.ts +4 -4
- package/types/api/platform/index.d.ts +5 -5
- package/types/api/platform/menu.d.ts +11 -17
- package/types/api/platform/oss.d.ts +6 -12
- package/types/api/platform/user.d.ts +12 -17
- package/types/api/platform/user.d.ts.map +1 -1
- package/types/api/user.d.ts +2 -2
- package/types/config/base.config.d.ts +30 -30
- package/types/config/dev.config.d.ts +3 -3
- package/types/config/index.d.ts +57 -57
- package/types/config/prod.config.d.ts +3 -3
- package/types/index.d.ts +4 -4
- package/types/utils/base64.d.ts +22 -22
- package/types/utils/blob.d.ts +3 -3
- package/types/utils/cache/dict-cache.d.ts +3 -3
- package/types/utils/cache/index-desc.d.ts +4 -4
- package/types/utils/cache/index.d.ts +4 -4
- package/types/utils/cache/permission-cache.d.ts +4 -4
- package/types/utils/cache/user-cache.d.ts +4 -4
- package/types/utils/date.d.ts +4 -4
- package/types/utils/enum.d.ts +39 -43
- package/types/utils/event.d.ts +5 -13
- package/types/utils/excel.d.ts +4 -4
- package/types/utils/half-year.d.ts +6 -6
- package/types/utils/index.d.ts +20 -20
- package/types/utils/is-type.d.ts +33 -33
- package/types/utils/mime-type.d.ts +67 -67
- package/types/utils/number.d.ts +8 -8
- package/types/utils/quarter.d.ts +7 -7
- package/types/utils/request/axios.extends.d.ts +3 -7
- package/types/utils/request/cache-rules.d.ts +3 -3
- package/types/utils/request/content-type.d.ts +9 -9
- package/types/utils/request/index.d.ts +8 -8
- package/types/utils/request/interceptors.d.ts +4 -4
- package/types/utils/request/url-params.d.ts +6 -6
- package/types/utils/sm3/index.d.ts +6 -6
- package/types/utils/sm3/sm3.d.ts +3 -3
- package/types/utils/storage.d.ts +8 -8
- package/types/utils/table.d.ts +31 -40
- package/types/utils/token.d.ts +3 -3
- package/types/utils/uuid.d.ts +4 -4
- package/types/utils/validate.d.ts +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.4](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.1.3...v0.1.4) (2024-04-13)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 登录加密升级 ([f3935fb](http://git.inspur.com/imp-ec/ind-front/ind-utils/commit/f3935fb18994dc7d28e564bcdebc38c0afd04bf0))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* 依赖 ([3860882](http://git.inspur.com/imp-ec/ind-front/ind-utils/commit/386088251d89702cda5b9f2cdd76882addf8cae0))
|
|
16
|
+
|
|
5
17
|
### [0.1.3](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.1.2...v0.1.3) (2024-04-06)
|
|
6
18
|
|
|
7
19
|
|
package/dist/ind-utils.es.js
CHANGED
|
@@ -11106,8 +11106,10 @@ function putOssFileApi(filename, blob) {
|
|
|
11106
11106
|
}
|
|
11107
11107
|
const CONTEXT$2 = config.authServerContext;
|
|
11108
11108
|
function loginApi({ userName, password, validCodeId, validCodeInput }) {
|
|
11109
|
-
let
|
|
11110
|
-
|
|
11109
|
+
let publicKey = `MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDD2iolFHi+6bUh+V6JPr2gFJQsC0QNsq2EwI0MAPlI5AaizBHRVMjX1H73ptuDSiT3QZh4kk74w+eDLyYj4JXo1SvvDw5w378SLhUIDzH0zrlt3oleT3kiPQxC17yM3Os/wrtHO7IC+KGo9qrg+LJFyR/fYYHcyH9i+JAejBEnJQIDAQAB`;
|
|
11110
|
+
let nodeRSA = new window.NodeRSA(publicKey, "pkcs8-public");
|
|
11111
|
+
let rsaPaswword = nodeRSA.encrypt(password, "base64");
|
|
11112
|
+
let upw = window.Base64.encode(rsaPaswword);
|
|
11111
11113
|
const data = { usn: userName, upw, validCodeId, validCodeInput };
|
|
11112
11114
|
return instance.formPost(CONTEXT$2 + "/sso/auth/login", data);
|
|
11113
11115
|
}
|