@pubinfo-pr/module-crypto 0.1.1 → 0.171.2

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.
@@ -5,18 +5,18 @@ import { basic as request } from '../../request';
5
5
  * @method POST
6
6
  * @author @pubinfo/openapi
7
7
  */
8
- export declare function postCryptoEditCryptoConfig<R = API.ResponseDataBoolean, T = API.ResponseDataBoolean>(body: API.EditCryptoConfigDto, options?: Parameters<typeof request.Post<R, T>>[2]): any;
8
+ export declare function postCryptoEditCryptoConfig<R = API.ResponseDataBoolean, T = API.ResponseDataBoolean>(body: API.EditCryptoConfigDto, options?: Parameters<typeof request.Post<R, T>>[2]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo-pr').AG, R, T>>;
9
9
  /**
10
10
  * @description 获取加解密配置
11
11
  * @url /crypto/getCryptoConfig
12
12
  * @method GET
13
13
  * @author @pubinfo/openapi
14
14
  */
15
- export declare function getCryptoGetCryptoConfig<R = API.ResponseDataCryptoConfig, T = API.ResponseDataCryptoConfig>(options?: Parameters<typeof request.Get<R, T>>[1]): any;
15
+ export declare function getCryptoGetCryptoConfig<R = API.ResponseDataCryptoConfig, T = API.ResponseDataCryptoConfig>(options?: Parameters<typeof request.Get<R, T>>[1]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo-pr').AG, R, T>>;
16
16
  /**
17
17
  * @description 获取公钥及加解密配置
18
18
  * @url /crypto/getPublicKeyAndConfig
19
19
  * @method GET
20
20
  * @author @pubinfo/openapi
21
21
  */
22
- export declare function getCryptoGetPublicKeyAndConfig<R = API.ResponseDataCryptoConfigExt, T = API.ResponseDataCryptoConfigExt>(options?: Parameters<typeof request.Get<R, T>>[1]): any;
22
+ export declare function getCryptoGetPublicKeyAndConfig<R = API.ResponseDataCryptoConfigExt, T = API.ResponseDataCryptoConfigExt>(options?: Parameters<typeof request.Get<R, T>>[1]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo-pr').AG, R, T>>;
@@ -1 +1 @@
1
- export declare const basic: any;
1
+ export declare const basic: import('pubinfo-pr').RequestInstance;
@@ -1 +1,2 @@
1
- export declare const apictx: any;
1
+ import { InternalContext } from './interface';
2
+ export declare const apictx: import('unctx').UseContext<InternalContext>;
package/dist/context.d.ts CHANGED
@@ -1 +1,10 @@
1
- export declare const ctx: any;
1
+ import { cryptoInternal } from './interface';
2
+ export declare const ctx: import('unctx').UseContext<{
3
+ isCrypto: boolean;
4
+ cryptoSetting: cryptoInternal;
5
+ whiteListUrls?: API.UrlEntry[];
6
+ publicKey?: string;
7
+ key?: string;
8
+ cryptoMode: boolean;
9
+ iv?: string;
10
+ }>;
package/dist/index.js CHANGED
@@ -8966,7 +8966,7 @@ li("crypto", Sr.icons);
8966
8966
  function ps(i) {
8967
8967
  const { request: r, cryptoSetting: t } = i;
8968
8968
  return pi.set({ request: r }), g0.set({ isCrypto: !1, cryptoMode: !1, cryptoSetting: Eo() }), ci("crypto", Sr.pages), li("crypto", Sr.icons), {
8969
- name: "pubinfo:crypto",
8969
+ name: "pubinfo-pr:crypto",
8970
8970
  enforce: "pre",
8971
8971
  async setup() {
8972
8972
  const e = Xo(rn()), { data: n } = await e, o = ei(32), u = ei(32);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pubinfo-pr/module-crypto",
3
3
  "type": "module",
4
- "version": "0.1.1",
4
+ "version": "0.171.2",
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.0",
25
25
  "ant-design-vue": "^4.2.6",
26
- "pubinfo-pr": "0.1.1"
26
+ "pubinfo-pr": "0.171.2"
27
27
  },
28
28
  "dependencies": {
29
29
  "@vueuse/core": "^13.7.0",
@@ -36,7 +36,7 @@
36
36
  "@pubinfo/pro-components": "^1.8.0",
37
37
  "@types/crypto-js": "^4.2.2",
38
38
  "ant-design-vue": "^4.2.6",
39
- "pubinfo-pr": "0.1.1"
39
+ "pubinfo-pr": "0.171.2"
40
40
  },
41
41
  "scripts": {
42
42
  "dev": "pubinfo build -w --sourcemap",
package/src/index.ts CHANGED
@@ -18,7 +18,7 @@ export function crypto(options: CryptoOptions): ModuleOptions {
18
18
  defineIconModule('crypto', modules.icons);
19
19
 
20
20
  return {
21
- name: 'pubinfo:crypto',
21
+ name: 'pubinfo-pr:crypto',
22
22
  enforce: 'pre',
23
23
  async setup() {
24
24
  // 获取页面配置