Skip to content

Commit

Permalink
Merge pull request YMFE#851 from caysnuts/master
Browse files Browse the repository at this point in the history
feat: add jsrsasign Lib
  • Loading branch information
hellosean1025 authored Feb 27, 2019
2 parents bebd760 + 01a4a29 commit b1aa7ce
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion common/postmanLib.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -286,7 +288,7 @@ async function crossRequest(defaultOptions, preScript, afterScript) {
}
resolve(data);
};

window.crossRequest(options);
});
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion static/prd/assets.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed static/prd/[email protected]
Binary file not shown.
File renamed without changes.
File renamed without changes.

Large diffs are not rendered by default.

Binary file added static/prd/[email protected]
Binary file not shown.

Large diffs are not rendered by default.

Binary file added static/prd/[email protected]
Binary file not shown.
Binary file removed static/prd/[email protected]
Binary file not shown.

0 comments on commit b1aa7ce

Please sign in to comment.