@pubinfo-pr/module-crypto 0.189.1 → 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.
@@ -1,4 +1,4 @@
1
- import { RequestInstance } from 'pubinfo-pr';
1
+ import type { RequestInstance } from 'pubinfo-pr';
2
2
  export interface CryptoOptions {
3
3
  /**
4
4
  * 接口请求实例
@@ -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-DiezF2QX.js";
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
- __: [5]
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.189.1",
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.0",
24
+ "@pubinfo/pro-components": "^1.8.2",
25
25
  "ant-design-vue": "^4.2.6",
26
- "pubinfo-pr": "0.189.1"
26
+ "pubinfo-pr": "0.197.1"
27
27
  },
28
28
  "dependencies": {
29
- "@vueuse/core": "^13.7.0",
29
+ "@vueuse/core": "^14.1.0",
30
30
  "crypto-js": "^4.2.0",
31
31
  "gm-crypto": "^0.1.12",
32
- "jsencrypt": "^3.3.2"
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.0",
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.189.1"
39
+ "pubinfo-pr": "0.197.1"
40
40
  },
41
41
  "scripts": {
42
42
  "dev": "pubinfo build -w --sourcemap",
@@ -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
  }