@lingxiteam/assets 0.11.30-alpha.7 → 0.11.30-alpha.9

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.
@@ -22,7 +22,7 @@ function getChildren(obj) {
22
22
  }
23
23
  var resolveRequestPath = function resolveRequestPath(path) {
24
24
  if (path) {
25
- var prefix = process.env.REACT_APP_REQUEST_PREFIX || process.env.REACT_APP_REQ_PREFIX || process.env.UMI_APP_REQ_PREFIX || process.env.LINGXI_APP_REQ_PREFIX || '';
25
+ var prefix = process.env.REACT_APP_REQUEST_PREFIX || process.env.REACT_APP_REQ_PREFIX || process.env.UMI_APP_REQ_PREFIX || process.env.LINGXI_APP_REQ_PREFIX || process.env.REQ_PREFIX || '';
26
26
  return "".concat(prefix.replace(/\/$/, ''), "/").concat(path.replace(/^\//, ''));
27
27
  }
28
28
  return '';
@@ -22,5 +22,7 @@ declare const _default: {
22
22
  createHttpSignStr: (url: string, options: any) => string;
23
23
  getApiPath: (url: string) => any;
24
24
  };
25
+ RSAEncrypt: (value: string, publicKey: string, handle?: any) => any;
26
+ RSADecrypt: (value: string, privKey: string, handle?: any) => any;
25
27
  };
26
28
  export default _default;
@@ -1,10 +1,13 @@
1
1
  import httpEncryption from './httpEncryption';
2
2
  import sign from './encipher/sign';
3
+ import { RSAEncrypt, RSADecrypt } from '../security/encipher/rsa';
3
4
  window.lingxiSecurity = {
4
5
  httpEncryption: httpEncryption,
5
6
  sign: sign
6
7
  };
7
8
  export default {
8
9
  httpEncryption: httpEncryption,
9
- sign: sign
10
+ sign: sign,
11
+ RSAEncrypt: RSAEncrypt,
12
+ RSADecrypt: RSADecrypt
10
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingxiteam/assets",
3
- "version": "0.11.30-alpha.7",
3
+ "version": "0.11.30-alpha.9",
4
4
  "description": "灵犀低代码平台移动端 - 工具类",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",