@pubinfo-nightly/module-crypto 2026.3.22 → 2026.3.24
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 {
|
|
1
|
+
import { r as e } from "./index.js";
|
|
2
2
|
import { Button as t, Drawer as n, Form as r, FormItem as i, Input as a, Space as o, Textarea as s } from "ant-design-vue/es";
|
|
3
3
|
import { createBlock as c, createTextVNode as l, createVNode as u, defineComponent as d, isRef as f, openBlock as p, ref as m, shallowRef as h, toValue as g, unref as _, withCtx as v } from "vue";
|
|
4
4
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { ModuleOptions } from 'pubinfo-nightly';
|
|
|
2
2
|
import type { CryptoOptions } from './interface';
|
|
3
3
|
import 'uno.css';
|
|
4
4
|
export declare function crypto(options: CryptoOptions): ModuleOptions;
|
|
5
|
+
export { ctx as cryptoContext } from './context.ts';
|
|
5
6
|
export { setupAes } from './cryptoAlg/aes.ts';
|
|
6
7
|
export { setupSm4Cbc } from './cryptoAlg/sm4-cbc.ts';
|
|
7
8
|
export { setupSm4Ecb } from './cryptoAlg/sm4-ecb.ts';
|
package/dist/index.js
CHANGED
|
@@ -23,8 +23,8 @@ var i = Object.create, a = Object.defineProperty, o = Object.getOwnPropertyDescr
|
|
|
23
23
|
icons: {},
|
|
24
24
|
layouts: {},
|
|
25
25
|
pages: {
|
|
26
|
-
"src/pages/setting.vue": () => import("./setting-
|
|
27
|
-
"src/pages/components/drawerCryptoUrl.vue": () => import("./drawerCryptoUrl-
|
|
26
|
+
"src/pages/setting.vue": () => import("./setting-DqRQHDJJ.js"),
|
|
27
|
+
"src/pages/components/drawerCryptoUrl.vue": () => import("./drawerCryptoUrl-BtGF8N07.js").then((e) => e.n)
|
|
28
28
|
}
|
|
29
29
|
}, g = e("crypto-api"), _ = r(g.use, "request");
|
|
30
30
|
//#endregion
|
|
@@ -7844,4 +7844,4 @@ function Dn(e) {
|
|
|
7844
7844
|
};
|
|
7845
7845
|
}
|
|
7846
7846
|
//#endregion
|
|
7847
|
-
export { Dn as crypto,
|
|
7847
|
+
export { Dn as crypto, x as cryptoContext, v as n, d as r, xe as setupAes, Cn as setupSm4Cbc, En as setupSm4Ecb, y as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r, t as i } from "./drawerCryptoUrl-
|
|
1
|
+
import { cryptoContext as e, n as t, t as n } from "./index.js";
|
|
2
|
+
import { r, t as i } from "./drawerCryptoUrl-BtGF8N07.js";
|
|
3
3
|
import { PubinfoIcon as a, useAuth as o } from "pubinfo-nightly";
|
|
4
4
|
import { Button as s, CheckableTag as ee, Form as c, FormItem as l, Space as te, Switch as u } from "ant-design-vue/es";
|
|
5
5
|
import { createBlock as d, createCommentVNode as ne, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, normalizeClass as _, onMounted as v, openBlock as y, reactive as b, ref as x, resolveDirective as re, toDisplayString as S, unref as C, withCtx as w, withDirectives as T } from "vue";
|
|
@@ -32,7 +32,7 @@ var k = /* @__PURE__ */ function(e) {
|
|
|
32
32
|
}), [q, J] = r(!1);
|
|
33
33
|
v(Y);
|
|
34
34
|
async function Y() {
|
|
35
|
-
await
|
|
35
|
+
await n().then((e) => {
|
|
36
36
|
J(!1), e && e.data && e.success && (K.isCrypto = e.data.cryptoEnabled || !1, K.whiteListUrls = e.data.cryptoWhitePath, K.mode = e.data.cryptoMode === void 0 ? !0 : e.data.cryptoMode);
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -44,13 +44,13 @@ var k = /* @__PURE__ */ function(e) {
|
|
|
44
44
|
J(!0);
|
|
45
45
|
try {
|
|
46
46
|
await V.value?.validate();
|
|
47
|
-
let { isCrypto:
|
|
48
|
-
cryptoEnabled:
|
|
47
|
+
let { isCrypto: n, mode: r, whiteListUrls: i } = K, a = {
|
|
48
|
+
cryptoEnabled: n,
|
|
49
49
|
cryptoMode: r,
|
|
50
50
|
cryptoWhitePath: i
|
|
51
51
|
}, { success: o } = await t({ json: JSON.stringify(a) });
|
|
52
|
-
o && (O.success("配置更改成功"),
|
|
53
|
-
...
|
|
52
|
+
o && (O.success("配置更改成功"), e.callAsync({
|
|
53
|
+
...e.use(),
|
|
54
54
|
isCrypto: K.isCrypto,
|
|
55
55
|
cryptoMode: K.mode,
|
|
56
56
|
whiteListUrls: K.whiteListUrls
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pubinfo-nightly/module-crypto",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2026.03.
|
|
4
|
+
"version": "2026.03.24",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@ant-design/icons-vue": "^7.0.1",
|
|
24
24
|
"@pubinfo/pro-components": "^1.8.2",
|
|
25
25
|
"ant-design-vue": "^4.2.6",
|
|
26
|
-
"pubinfo-nightly": "2026.03.
|
|
26
|
+
"pubinfo-nightly": "2026.03.24"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@vueuse/core": "^14.2.1",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
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-nightly": "2026.03.
|
|
39
|
+
"pubinfo-nightly": "2026.03.24"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"dev": "pubinfo build -w --sourcemap",
|
package/src/index.ts
CHANGED
|
@@ -54,6 +54,7 @@ export function crypto(options: CryptoOptions): ModuleOptions {
|
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
export { ctx as cryptoContext } from './context.ts';
|
|
57
58
|
export { setupAes } from './cryptoAlg/aes.ts';
|
|
58
59
|
export { setupSm4Cbc } from './cryptoAlg/sm4-cbc.ts';
|
|
59
60
|
export { setupSm4Ecb } from './cryptoAlg/sm4-ecb.ts';
|