video-request
v1.2.2
Published
```javascript import VideoRequest from "@video/request/lib/index";
Downloads
2
Readme
示例
import VideoRequest from "@video/request/lib/index";
const request = new VideoRequest({
prefixUrl: "/frdo-fe-bff/api",
signature: {
appid: "appid",
appName: "web",
appVersion: "1.0.0",
privateKey: `aassd${window.btoa("private key content")}`,
},
});
request.post({
url: "/example",
dataMaskKeys: `12345${window.btoa("phone")}`,
parameters: {
phone: `12345${window.btoa("17783701658")}`,
},
});
更新日志
v1.0.0
- 初次发布,提供前端 BFF 层鉴权请求体
v1.0.2
- 解决 jsrsasign 和 @cmiot/checker 模块类型错误
v1.0.3
- 解决 md5 模块类型错误
v1.1.0
- 优化 RSA 算法性能
v1.1.1
- 删除调试用的 console
v1.2.0
- 更换签名算法 rsa->md5
- 修复 headers.phoneName 字段可能不存在的问题
- 编译加入 @babel/preset-env
v1.2.1
- 添加 whatwg-fetch