mirror of
https://github.com/YMFE/yapi.git
synced 2025-04-06 15:00:26 +08:00
feat: add jsrsasign Lib
This commit is contained in:
parent
bebd760c0d
commit
01a4a29be4
@ -7,6 +7,7 @@ const HTTP_METHOD = constants.HTTP_METHOD;
|
||||
const axios = require('axios');
|
||||
const qs = require('qs');
|
||||
const CryptoJS = require('crypto-js');
|
||||
const jsrsasign = require('jsrsasign');
|
||||
|
||||
const isNode = typeof global == 'object' && global.global === global;
|
||||
const ContentTypeMap = {
|
||||
@ -240,6 +241,7 @@ async function crossRequest(defaultOptions, preScript, afterScript) {
|
||||
context.utils = Object.freeze({
|
||||
_: _,
|
||||
CryptoJS: CryptoJS,
|
||||
jsrsasign: jsrsasign,
|
||||
base64: utils.base64,
|
||||
md5: utils.md5,
|
||||
sha1: utils.sha1,
|
||||
@ -286,7 +288,7 @@ async function crossRequest(defaultOptions, preScript, afterScript) {
|
||||
}
|
||||
resolve(data);
|
||||
};
|
||||
|
||||
|
||||
window.crossRequest(options);
|
||||
});
|
||||
}
|
||||
|
@ -48,6 +48,7 @@
|
||||
"json5": "0.5.1",
|
||||
"jsondiffpatch": "0.3.11",
|
||||
"jsonwebtoken": "7.4.1",
|
||||
"jsrsasign": "^8.0.12",
|
||||
"koa": "2.0.0",
|
||||
"koa-body": "^2.5.0",
|
||||
"koa-bodyparser": "3.2.0",
|
||||
|
@ -1 +1 @@
|
||||
window.WEBPACK_ASSETS = {"index.js":{"js":"index@6e1336585241cc6d65c1.js","css":"index@6e1336585241cc6d65c1.css"},"lib":{"js":"lib@e3cdc9ed43cbd6485837.js"},"lib2":{"js":"lib2@8fc8401eeec08b4915e2.js"},"lib3":{"js":"lib3@4dcb9678a6fbd32b87cd.js"},"manifest":{"js":"manifest@f2f4bd774d6c221b3d5f.js"}}
|
||||
window.WEBPACK_ASSETS = {"index.js":{"js":"index@e534b73b41745da579e5.js","css":"index@e534b73b41745da579e5.css"},"lib":{"js":"lib@6eb533df7b98eca8f6d2.js"},"lib2":{"js":"lib2@8fc8401eeec08b4915e2.js"},"lib3":{"js":"lib3@4dcb9678a6fbd32b87cd.js"},"manifest":{"js":"manifest@f2f4bd774d6c221b3d5f.js"}}
|
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
static/prd/index@e534b73b41745da579e5.js.gz
Normal file
BIN
static/prd/index@e534b73b41745da579e5.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
static/prd/lib@6eb533df7b98eca8f6d2.js.gz
Normal file
BIN
static/prd/lib@6eb533df7b98eca8f6d2.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user