UNPKG

@fast-china/axios

Version:

Fast Axios 请求工具库.

3 lines (2 loc) 602 B
"use strict";var e=Object.defineProperty,t=(t,r,n)=>((t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n)(t,"symbol"!=typeof r?r+"":r,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.CryptoManage=class{constructor(){t(this,"_handle"),t(this,"encrypt"),t(this,"decrypt"),this._handle={encrypt:(e,t)=>{},decrypt:(e,t)=>null};const e=(e,t)=>{this._handle.encrypt(e,t)};e.use=e=>{this._handle.encrypt=e},this.encrypt=e;const r=(e,t)=>this._handle.decrypt(e,t);r.use=e=>{this._handle.decrypt=e},this.decrypt=r}}; //# sourceMappingURL=crypto.js.map