@pubinfo-pr/module-crypto 0.189.2 → 0.197.1
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/api/modules/crypto/pubSysConfigController.d.ts +4 -4
- package/dist/api/request.d.ts +1 -1
- package/dist/apiContext.d.ts +2 -2
- package/dist/context.d.ts +2 -2
- package/dist/cryptoAlg/aes.d.ts +1 -1
- package/dist/cryptoAlg/sm4-cbc.d.ts +1 -1
- package/dist/cryptoAlg/sm4-ecb.d.ts +1 -1
- package/dist/cryptoSetting.d.ts +2 -2
- package/dist/{drawerCryptoUrl-DiezF2QX.js → drawerCryptoUrl-CKgf1Uxz.js} +6 -9
- package/dist/{drawerCryptoUrl-DPRsQXAo.js → drawerCryptoUrl-DltbAlje.js} +1 -1
- package/dist/helper.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +426 -253
- package/dist/interface.d.ts +1 -1
- package/dist/{setting-B92b1yHA.js → setting-DkwAGQxz.js} +6 -8
- package/package.json +7 -7
- package/src/cryptoSetting.ts +1 -1
package/dist/interface.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as getCryptoGetCryptoConfig, r as postCryptoEditCryptoConfig, t as ctx } from "./index.js";
|
|
2
|
-
import { n as useToggle, t as drawerCryptoUrl_default } from "./drawerCryptoUrl-
|
|
2
|
+
import { n as useToggle, t as drawerCryptoUrl_default } from "./drawerCryptoUrl-CKgf1Uxz.js";
|
|
3
3
|
import { PubinfoIcon, useAuth } from "pubinfo-pr";
|
|
4
4
|
import { Button, CheckableTag, Form, FormItem, Space, Switch } from "ant-design-vue/es";
|
|
5
5
|
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, onMounted, openBlock, reactive, ref, resolveDirective, toDisplayString, unref, withCtx, withDirectives } from "vue";
|
|
@@ -147,9 +147,8 @@ var _hoisted_1 = {
|
|
|
147
147
|
class: normalizeClass(unref(G) ? "cursor-not-allowed!" : ""),
|
|
148
148
|
onChange: E[1] ||= (e) => !unref(G) && J(!0, e)
|
|
149
149
|
}, {
|
|
150
|
-
default: withCtx(() => E[4] ||= [createTextVNode(" 白名单 ")]),
|
|
151
|
-
_: 1
|
|
152
|
-
__: [4]
|
|
150
|
+
default: withCtx(() => [...E[4] ||= [createTextVNode(" 白名单 ", -1)]]),
|
|
151
|
+
_: 1
|
|
153
152
|
}, 8, [
|
|
154
153
|
"checked",
|
|
155
154
|
"disabled",
|
|
@@ -159,10 +158,9 @@ var _hoisted_1 = {
|
|
|
159
158
|
class: normalizeClass(["mr-0px!", unref(G) ? "cursor-not-allowed!" : ""]),
|
|
160
159
|
onChange: E[2] ||= (e) => !unref(G) && J(!1, e)
|
|
161
160
|
}, {
|
|
162
|
-
default: withCtx(() => E[5] ||= [createTextVNode(" 黑名单 ")]),
|
|
163
|
-
_: 1
|
|
164
|
-
|
|
165
|
-
}, 8, ["checked", "class"])]), createElementVNode("div", _hoisted_6, [createVNode(unref(QuestionCircleOutlined), { class: "mr-5px" }), E[6] ||= createTextVNode("白名单模式下,仅不加密过滤列表中的接口;黑名单模式下,仅加密过滤列表中的接口。 ")])])]),
|
|
161
|
+
default: withCtx(() => [...E[5] ||= [createTextVNode(" 黑名单 ", -1)]]),
|
|
162
|
+
_: 1
|
|
163
|
+
}, 8, ["checked", "class"])]), createElementVNode("div", _hoisted_6, [createVNode(unref(QuestionCircleOutlined), { class: "mr-5px" }), E[6] ||= createTextVNode("白名单模式下,仅不加密过滤列表中的接口;黑名单模式下,仅加密过滤列表中的接口。 ", -1)])])]),
|
|
166
164
|
_: 1
|
|
167
165
|
})]),
|
|
168
166
|
_: 1
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pubinfo-pr/module-crypto",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.197.1",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -21,22 +21,22 @@
|
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@ant-design/icons-vue": "^7.0.1",
|
|
24
|
-
"@pubinfo/pro-components": "^1.8.
|
|
24
|
+
"@pubinfo/pro-components": "^1.8.2",
|
|
25
25
|
"ant-design-vue": "^4.2.6",
|
|
26
|
-
"pubinfo-pr": "0.
|
|
26
|
+
"pubinfo-pr": "0.197.1"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@vueuse/core": "^
|
|
29
|
+
"@vueuse/core": "^14.1.0",
|
|
30
30
|
"crypto-js": "^4.2.0",
|
|
31
31
|
"gm-crypto": "^0.1.12",
|
|
32
|
-
"jsencrypt": "^3.
|
|
32
|
+
"jsencrypt": "^3.5.4"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@ant-design/icons-vue": "^7.0.1",
|
|
36
|
-
"@pubinfo/pro-components": "^1.8.
|
|
36
|
+
"@pubinfo/pro-components": "^1.8.2",
|
|
37
37
|
"@types/crypto-js": "^4.2.2",
|
|
38
38
|
"ant-design-vue": "^4.2.6",
|
|
39
|
-
"pubinfo-pr": "0.
|
|
39
|
+
"pubinfo-pr": "0.197.1"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"dev": "pubinfo build -w --sourcemap",
|
package/src/cryptoSetting.ts
CHANGED
|
@@ -48,7 +48,7 @@ async function encryptMethod(method: RequestMethod, fun: (arg0: string) => Promi
|
|
|
48
48
|
}
|
|
49
49
|
if (method.config.meta && method.config.meta.pathParams) {
|
|
50
50
|
for (const item of method.config.meta.pathParams) {
|
|
51
|
-
method.url = method.url.replace(item, await fun(item));
|
|
51
|
+
method.url = method.url.replace(item, await fun(`${item}`));
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|