@pnt-team/pnt-component-frontend 0.0.35 → 0.0.38
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/README.md +71 -64
- package/lib/cjs/components/PntSecureBox/index.d.ts +11 -0
- package/lib/cjs/components/PntSecureBox/index.js +11 -2
- package/lib/cjs/hooks/useHighSecurity.d.ts +47 -5
- package/lib/cjs/hooks/useHighSecurity.js +25 -12
- package/lib/cjs/hooks/useOsPlatformList.d.ts +14 -16
- package/lib/cjs/hooks/useOsPlatformList.js +5 -21
- package/lib/esm/components/PntSecureBox/index.d.ts +11 -0
- package/lib/esm/components/PntSecureBox/index.js +14 -3
- package/lib/esm/hooks/useHighSecurity.d.ts +47 -5
- package/lib/esm/hooks/useHighSecurity.js +25 -12
- package/lib/esm/hooks/useOsPlatformList.d.ts +14 -16
- package/lib/esm/hooks/useOsPlatformList.js +5 -10
- package/lib/umd/pnt-component-frontend.min.js +1 -1
- package/package.json +1 -1
- package/lib/cjs/api/index.d.ts +0 -17
- package/lib/cjs/api/index.js +0 -45
- package/lib/cjs/configs/host.d.ts +0 -12
- package/lib/cjs/configs/host.js +0 -39
- package/lib/cjs/configs/token.d.ts +0 -2
- package/lib/cjs/configs/token.js +0 -25
- package/lib/esm/api/index.d.ts +0 -17
- package/lib/esm/api/index.js +0 -11
- package/lib/esm/configs/host.d.ts +0 -12
- package/lib/esm/configs/host.js +0 -19
- package/lib/esm/configs/token.d.ts +0 -2
- package/lib/esm/configs/token.js +0 -5
package/package.json
CHANGED
package/lib/cjs/api/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { commonEesType } from "../utils/request";
|
|
2
|
-
/**
|
|
3
|
-
* 高敏信息解密
|
|
4
|
-
* @returns
|
|
5
|
-
*/
|
|
6
|
-
interface SecurityItem {
|
|
7
|
-
key: string;
|
|
8
|
-
value: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* 对数据进行高安全解密处理
|
|
12
|
-
*
|
|
13
|
-
* @param data 需要解密的数据
|
|
14
|
-
* @returns 解密后的数据
|
|
15
|
-
*/
|
|
16
|
-
export declare function highSecurity(data: any): Promise<commonEesType<SecurityItem[]>>;
|
|
17
|
-
export {};
|
package/lib/cjs/api/index.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/api/index.ts
|
|
30
|
-
var api_exports = {};
|
|
31
|
-
__export(api_exports, {
|
|
32
|
-
highSecurity: () => highSecurity
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(api_exports);
|
|
35
|
-
var import_request = __toESM(require("../utils/request"));
|
|
36
|
-
function highSecurity(data) {
|
|
37
|
-
return import_request.default.post(
|
|
38
|
-
"/api/v3/business/game_info/high-security-decrypt?audience=/laas-pnt",
|
|
39
|
-
data
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
43
|
-
0 && (module.exports = {
|
|
44
|
-
highSecurity
|
|
45
|
-
});
|
package/lib/cjs/configs/host.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/configs/host.ts
|
|
20
|
-
var host_exports = {};
|
|
21
|
-
__export(host_exports, {
|
|
22
|
-
default: () => host_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(host_exports);
|
|
25
|
-
var host_default = {
|
|
26
|
-
development: {
|
|
27
|
-
// 开发环境接口请求
|
|
28
|
-
API: "/api"
|
|
29
|
-
},
|
|
30
|
-
test: {
|
|
31
|
-
// 测试环境接口地址
|
|
32
|
-
API: "http://43.134.150.67"
|
|
33
|
-
},
|
|
34
|
-
production: {
|
|
35
|
-
// 正式环境接口地址
|
|
36
|
-
API: "http://43.134.150.67"
|
|
37
|
-
// 任意ip即可, pnt主应用会自动替换,
|
|
38
|
-
}
|
|
39
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50SWQiOiJ1cy0xMDRmZTliNDZmZGY0NTM0YmU2NjNlYzllYWE5ZWEyZSIsImFjY291bnROYW1lIjoidl9id3dlaXdhbmciLCJleHAiOjE3NTcwNjczMzUsImV4cFRva2VuIjoxNzU3MDY2NTM1LCJqdGkiOiI2OWY3Njc3My1lMDk0LTQwZTYtYTNlMS00NWI3ZjQyN2Q2OTMifQ.X81cdIwj3nothPmY6dfJLPNKLKKvnLU3vkNlHFITsRs";
|
|
2
|
-
export default _default;
|
package/lib/cjs/configs/token.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/configs/token.ts
|
|
20
|
-
var token_exports = {};
|
|
21
|
-
__export(token_exports, {
|
|
22
|
-
default: () => token_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(token_exports);
|
|
25
|
-
var token_default = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50SWQiOiJ1cy0xMDRmZTliNDZmZGY0NTM0YmU2NjNlYzllYWE5ZWEyZSIsImFjY291bnROYW1lIjoidl9id3dlaXdhbmciLCJleHAiOjE3NTcwNjczMzUsImV4cFRva2VuIjoxNzU3MDY2NTM1LCJqdGkiOiI2OWY3Njc3My1lMDk0LTQwZTYtYTNlMS00NWI3ZjQyN2Q2OTMifQ.X81cdIwj3nothPmY6dfJLPNKLKKvnLU3vkNlHFITsRs";
|
package/lib/esm/api/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { commonEesType } from "../utils/request";
|
|
2
|
-
/**
|
|
3
|
-
* 高敏信息解密
|
|
4
|
-
* @returns
|
|
5
|
-
*/
|
|
6
|
-
interface SecurityItem {
|
|
7
|
-
key: string;
|
|
8
|
-
value: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* 对数据进行高安全解密处理
|
|
12
|
-
*
|
|
13
|
-
* @param data 需要解密的数据
|
|
14
|
-
* @returns 解密后的数据
|
|
15
|
-
*/
|
|
16
|
-
export declare function highSecurity(data: any): Promise<commonEesType<SecurityItem[]>>;
|
|
17
|
-
export {};
|
package/lib/esm/api/index.js
DELETED
package/lib/esm/configs/host.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// src/configs/host.ts
|
|
2
|
-
var host_default = {
|
|
3
|
-
development: {
|
|
4
|
-
// 开发环境接口请求
|
|
5
|
-
API: "/api"
|
|
6
|
-
},
|
|
7
|
-
test: {
|
|
8
|
-
// 测试环境接口地址
|
|
9
|
-
API: "http://43.134.150.67"
|
|
10
|
-
},
|
|
11
|
-
production: {
|
|
12
|
-
// 正式环境接口地址
|
|
13
|
-
API: "http://43.134.150.67"
|
|
14
|
-
// 任意ip即可, pnt主应用会自动替换,
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
export {
|
|
18
|
-
host_default as default
|
|
19
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50SWQiOiJ1cy0xMDRmZTliNDZmZGY0NTM0YmU2NjNlYzllYWE5ZWEyZSIsImFjY291bnROYW1lIjoidl9id3dlaXdhbmciLCJleHAiOjE3NTcwNjczMzUsImV4cFRva2VuIjoxNzU3MDY2NTM1LCJqdGkiOiI2OWY3Njc3My1lMDk0LTQwZTYtYTNlMS00NWI3ZjQyN2Q2OTMifQ.X81cdIwj3nothPmY6dfJLPNKLKKvnLU3vkNlHFITsRs";
|
|
2
|
-
export default _default;
|
package/lib/esm/configs/token.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// src/configs/token.ts
|
|
2
|
-
var token_default = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50SWQiOiJ1cy0xMDRmZTliNDZmZGY0NTM0YmU2NjNlYzllYWE5ZWEyZSIsImFjY291bnROYW1lIjoidl9id3dlaXdhbmciLCJleHAiOjE3NTcwNjczMzUsImV4cFRva2VuIjoxNzU3MDY2NTM1LCJqdGkiOiI2OWY3Njc3My1lMDk0LTQwZTYtYTNlMS00NWI3ZjQyN2Q2OTMifQ.X81cdIwj3nothPmY6dfJLPNKLKKvnLU3vkNlHFITsRs";
|
|
3
|
-
export {
|
|
4
|
-
token_default as default
|
|
5
|
-
};
|