@anncic-api/core 1.5.5 → 1.5.7
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/dist/config/config.default.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/AnnEnumMsg.js +1 -1
- package/dist/decorator/AnnErrorMsg.js +1 -1
- package/dist/exception/AnnError.js +1 -1
- package/dist/exception/AnnErrorRender.js +1 -1
- package/dist/helper/common.d.ts +2 -0
- package/dist/helper/common.js +1 -1
- package/dist/helper/fileMd5.js +1 -1
- package/dist/helper/globDir.js +1 -1
- package/dist/helper/include.js +1 -1
- package/dist/helper/sleep.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/index.d.ts +2 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x464af1=a0_0x64e9;function a0_0x5767(){var _0x4868fb=['appDir','3762636pQExcu','372968iEUoLI','search','defineProperty','5qtOSRN','28PftDaX','2701332WtbfuR','10MMSspK','1347GVrCnr','103814ZKgEtY','4588bzsxpl','default','4264830TwxPfW','(((.+)+)+)+$','651525OAGUrS','apply','22MBjFbP','toString'];a0_0x5767=function(){return _0x4868fb;};return a0_0x5767();}function a0_0x64e9(_0x5a17bf,_0x24c7ad){var _0xcd89cc=a0_0x5767();return a0_0x64e9=function(_0x2f7add,_0x5e30de){_0x2f7add=_0x2f7add-0x151;var _0x576780=_0xcd89cc[_0x2f7add];return _0x576780;},a0_0x64e9(_0x5a17bf,_0x24c7ad);}(function(_0x47c661,_0x22bb5a){var _0xa79e8d=a0_0x64e9,_0x189c22=_0x47c661();while(!![]){try{var _0x3a14ba=parseInt(_0xa79e8d(0x160))/0x1*(parseInt(_0xa79e8d(0x152))/0x2)+-parseInt(_0xa79e8d(0x151))/0x3*(parseInt(_0xa79e8d(0x153))/0x4)+parseInt(_0xa79e8d(0x157))/0x5+parseInt(_0xa79e8d(0x162))/0x6+-parseInt(_0xa79e8d(0x161))/0x7*(parseInt(_0xa79e8d(0x15d))/0x8)+parseInt(_0xa79e8d(0x155))/0x9*(-parseInt(_0xa79e8d(0x163))/0xa)+parseInt(_0xa79e8d(0x159))/0xb*(parseInt(_0xa79e8d(0x15c))/0xc);if(_0x3a14ba===_0x22bb5a)break;else _0x189c22['push'](_0x189c22['shift']());}catch(_0xe5eba3){_0x189c22['push'](_0x189c22['shift']());}}}(a0_0x5767,0x473e3));var a0_0x5e30de=(function(){var _0x1d4649=!![];return function(_0xc1f03c,_0x5e1794){var _0x27ccac=_0x1d4649?function(){var _0x5ca965=a0_0x64e9;if(_0x5e1794){var _0x33d643=_0x5e1794[_0x5ca965(0x158)](_0xc1f03c,arguments);return _0x5e1794=null,_0x33d643;}}:function(){};return _0x1d4649=![],_0x27ccac;};}()),a0_0x2f7add=a0_0x5e30de(this,function(){var _0x50ca3f=a0_0x64e9;return a0_0x2f7add[_0x50ca3f(0x15a)]()[_0x50ca3f(0x15e)](_0x50ca3f(0x156))[_0x50ca3f(0x15a)]()['constructor'](a0_0x2f7add)[_0x50ca3f(0x15e)](_0x50ca3f(0x156));});a0_0x2f7add();'use strict';Object[a0_0x464af1(0x15f)](exports,'__esModule',{'value':!![]}),exports[a0_0x464af1(0x154)]=_0x5c4cf3=>{var _0xa9675e=a0_0x464af1;return{'midwayLogger':{'default':{'maxSize':'1m','dir':_0x5c4cf3[_0xa9675e(0x15b)]+'/runtime'}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a1_0x3052(_0x25b045,_0x9a0535){const _0x18d3f3=a1_0x2082();return a1_0x3052=function(_0x264042,_0x601378){_0x264042=_0x264042-0x129;let _0x20828b=_0x18d3f3[_0x264042];return _0x20828b;},a1_0x3052(_0x25b045,_0x9a0535);}const a1_0x295daf=a1_0x3052;(function(_0x1146cd,_0x3974bd){const _0x49c341=a1_0x3052,_0x25f775=_0x1146cd();while(!![]){try{const _0xb50830=parseInt(_0x49c341(0x14d))/0x1+-parseInt(_0x49c341(0x14e))/0x2*(parseInt(_0x49c341(0x140))/0x3)+-parseInt(_0x49c341(0x160))/0x4+parseInt(_0x49c341(0x135))/0x5+-parseInt(_0x49c341(0x138))/0x6*(-parseInt(_0x49c341(0x15b))/0x7)+parseInt(_0x49c341(0x12f))/0x8*(parseInt(_0x49c341(0x13a))/0x9)+parseInt(_0x49c341(0x12a))/0xa*(-parseInt(_0x49c341(0x12e))/0xb);if(_0xb50830===_0x3974bd)break;else _0x25f775['push'](_0x25f775['shift']());}catch(_0x2fcf8f){_0x25f775['push'](_0x25f775['shift']());}}}(a1_0x2082,0x6fa58));const a1_0x601378=(function(){let _0x20c233=!![];return function(_0x50399b,_0x549a18){const _0x18173e=_0x20c233?function(){const _0x355cdd=a1_0x3052;if(_0x549a18){const _0x314d4d=_0x549a18[_0x355cdd(0x167)](_0x50399b,arguments);return _0x549a18=null,_0x314d4d;}}:function(){};return _0x20c233=![],_0x18173e;};}()),a1_0x264042=a1_0x601378(this,function(){const _0x49501f=a1_0x3052;return a1_0x264042[_0x49501f(0x12b)]()['search']('(((.+)+)+)+$')[_0x49501f(0x12b)]()['constructor'](a1_0x264042)['search'](_0x49501f(0x129));});a1_0x264042();'use strict';var __decorate=this&&this[a1_0x295daf(0x156)]||function(_0x8ec203,_0x3765ef,_0x3076ff,_0x591449){const _0xab6807=a1_0x295daf;var _0x45ed44=arguments[_0xab6807(0x161)],_0x4abdaa=_0x45ed44<0x3?_0x3765ef:_0x591449===null?_0x591449=Object['getOwnPropertyDescriptor'](_0x3765ef,_0x3076ff):_0x591449,_0x8c1ba3;if(typeof Reflect==='object'&&typeof Reflect[_0xab6807(0x15a)]===_0xab6807(0x133))_0x4abdaa=Reflect[_0xab6807(0x15a)](_0x8ec203,_0x3765ef,_0x3076ff,_0x591449);else{for(var _0x33d738=_0x8ec203['length']-0x1;_0x33d738>=0x0;_0x33d738--)if(_0x8c1ba3=_0x8ec203[_0x33d738])_0x4abdaa=(_0x45ed44<0x3?_0x8c1ba3(_0x4abdaa):_0x45ed44>0x3?_0x8c1ba3(_0x3765ef,_0x3076ff,_0x4abdaa):_0x8c1ba3(_0x3765ef,_0x3076ff))||_0x4abdaa;}return _0x45ed44>0x3&&_0x4abdaa&&Object[_0xab6807(0x15d)](_0x3765ef,_0x3076ff,_0x4abdaa),_0x4abdaa;},__metadata=this&&this[a1_0x295daf(0x136)]||function(_0x1a98d7,_0x2670d3){const _0x26daba=a1_0x295daf;if(typeof Reflect===_0x26daba(0x157)&&typeof Reflect[_0x26daba(0x13f)]===_0x26daba(0x133))return Reflect[_0x26daba(0x13f)](_0x1a98d7,_0x2670d3);};Object[a1_0x295daf(0x15d)](exports,a1_0x295daf(0x155),{'value':!![]}),exports[a1_0x295daf(0x14f)]=void 0x0;const core_1=require(a1_0x295daf(0x14c)),core_2=require(a1_0x295daf(0x14c)),AnnError_1=require(a1_0x295daf(0x142)),AnnErrorRender_1=require(a1_0x295daf(0x134)),ConfigDefault=require(a1_0x295daf(0x12d));function a1_0x2082(){const _0xfb35b0=['logger','1233AYUjmf','request','_matchedRoute','onReady','isDevelopmentEnvironment','metadata','9rIhjfa','NotFoundError','./exception/AnnError','Inject','stack','网络丢失,请稍后重试。','faas','prototype','getCurrentEnvironment','Configuration','AnnErrorRender','response','@midwayjs/core','237947POwuKW','292698mhRgvZ','CustomConfiguration','httpError','environment','error','local','body','__esModule','__decorate','object','MidwayEnvironmentService','application','decorate','14nXLNlI','koa','defineProperty','anncic-api:core','express','3402356GKKGYB','length','UNKNOW','AnnError','message','design:type','render','apply','(((.+)+)+)+$','30990xsCHzh','toString','split','./config/config.default','253LhRsGO','37448nppZtK','forEach','getApplications','\x20at\x20','function','./exception/AnnErrorRender','3850355EnSXyN','__metadata','egg','506706cjFGmU'];a1_0x2082=function(){return _0xfb35b0;};return a1_0x2082();}let CustomConfiguration=class CustomConfiguration{async[a1_0x295daf(0x13d)](){const _0x351b71=a1_0x295daf;this[_0x351b71(0x159)][_0x351b71(0x131)]([_0x351b71(0x15c),_0x351b71(0x146),_0x351b71(0x15f),_0x351b71(0x137)])[_0x351b71(0x130)](_0x3700b5=>{_0x3700b5['useMiddleware'](async(_0x3fe5fe,_0x228618)=>{const _0x154446=a1_0x3052;var _0x5c74e3,_0x1fdc5f,_0x2b059a;try{await _0x228618();}catch(_0x92758f){if(_0x92758f instanceof AnnErrorRender_1[_0x154446(0x14a)])await _0x92758f[_0x154446(0x166)](_0x3fe5fe,_0x3700b5);else{if(_0x92758f instanceof AnnError_1[_0x154446(0x163)]){const _0x22be8c=_0x92758f[_0x154446(0x14b)]||{'code':_0x92758f['code']};!(_0x22be8c===null||_0x22be8c===void 0x0?void 0x0:_0x22be8c[_0x154446(0x164)])&&(_0x92758f===null||_0x92758f===void 0x0?void 0x0:_0x92758f[_0x154446(0x164)])&&(_0x22be8c[_0x154446(0x164)]=_0x92758f[_0x154446(0x164)]),this[_0x154446(0x151)][_0x154446(0x148)]()==_0x154446(0x153)?(!_0x22be8c[_0x154446(0x152)]&&(_0x22be8c[_0x154446(0x152)]={}),!((_0x5c74e3=_0x22be8c===null||_0x22be8c===void 0x0?void 0x0:_0x22be8c[_0x154446(0x152)])===null||_0x5c74e3===void 0x0?void 0x0:_0x5c74e3['message'])&&(_0x92758f===null||_0x92758f===void 0x0?void 0x0:_0x92758f[_0x154446(0x164)])&&(_0x22be8c[_0x154446(0x152)][_0x154446(0x164)]=_0x92758f[_0x154446(0x164)]),!((_0x1fdc5f=_0x22be8c===null||_0x22be8c===void 0x0?void 0x0:_0x22be8c['error'])===null||_0x1fdc5f===void 0x0?void 0x0:_0x1fdc5f[_0x154446(0x144)])&&(_0x92758f===null||_0x92758f===void 0x0?void 0x0:_0x92758f[_0x154446(0x144)])&&(_0x22be8c[_0x154446(0x152)][_0x154446(0x144)]=_0x92758f[_0x154446(0x144)][_0x154446(0x12c)](_0x154446(0x132)))):delete _0x22be8c[_0x154446(0x152)],_0x3fe5fe[_0x154446(0x154)]=_0x22be8c;}else{if(_0x92758f instanceof core_2[_0x154446(0x150)][_0x154446(0x141)]){}else{if(_0x92758f instanceof Error){if(this['environment'][_0x154446(0x13e)]())console['error'](_0x92758f);else typeof((_0x2b059a=_0x3fe5fe===null||_0x3fe5fe===void 0x0?void 0x0:_0x3fe5fe[_0x154446(0x139)])===null||_0x2b059a===void 0x0?void 0x0:_0x2b059a['error'])==_0x154446(0x133)&&(_0x92758f['matched']=(_0x3fe5fe===null||_0x3fe5fe===void 0x0?void 0x0:_0x3fe5fe[_0x154446(0x13c)])||'',_0x92758f['request']=(_0x3fe5fe===null||_0x3fe5fe===void 0x0?void 0x0:_0x3fe5fe[_0x154446(0x13b)])||{},_0x3fe5fe[_0x154446(0x139)][_0x154446(0x152)](_0x92758f));_0x3fe5fe[_0x154446(0x154)]={'code':AnnError_1[_0x154446(0x163)][_0x154446(0x162)],'message':_0x154446(0x145)};}}}}}});});}};__decorate([(0x0,core_1[a1_0x295daf(0x143)])(),__metadata('design:type',core_2['MidwayApplicationManager'])],CustomConfiguration['prototype'],a1_0x295daf(0x159),void 0x0),__decorate([(0x0,core_1[a1_0x295daf(0x143)])(),__metadata(a1_0x295daf(0x165),core_2[a1_0x295daf(0x158)])],CustomConfiguration[a1_0x295daf(0x147)],'environment',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a1_0x295daf(0x149)])({'namespace':a1_0x295daf(0x15e),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x20d0eb=a2_0x2d11;function a2_0x2d11(_0x5be6c0,_0xb26264){const _0x5647e8=a2_0x17fd();return a2_0x2d11=function(_0x422217,_0x18e344){_0x422217=_0x422217-0x142;let _0x17fd58=_0x5647e8[_0x422217];return _0x17fd58;},a2_0x2d11(_0x5be6c0,_0xb26264);}function a2_0x17fd(){const _0x1563cc=['AnnEnumMsg','2665271dhpdKB','targetCode','6wEgFfX','621958dvDtUE','1496148fbbAMK','\x20=\x20number\x20|\x20string;',')must\x20be\x20\x27static\x20readonly\x20','undefined','push','apply','821700VQVZFw','@midwayjs/core','toString','constructor',')\x20is\x20duplicated,please\x20check\x20before\x20adding','defineProperty','\x20is\x20not\x20duplicated','\x20Property(','indexOf','targetMsg','name','getAnnEnumList','4kGCCEL','search','496992zZFXAC','getAnnEnumArray','(((.+)+)+)+$','4057155DHgKsF','getClassMetadata','AnnEnumMsg:\x20','ann:enum','getAnnEnumMsg','getAnnEnumMap','1774735TRbhcK'];a2_0x17fd=function(){return _0x1563cc;};return a2_0x17fd();}(function(_0x2a6311,_0xc3ee8b){const _0x254f45=a2_0x2d11,_0x51b6e2=_0x2a6311();while(!![]){try{const _0x48a636=parseInt(_0x254f45(0x162))/0x1+-parseInt(_0x254f45(0x146))/0x2+parseInt(_0x254f45(0x163))/0x3*(parseInt(_0x254f45(0x152))/0x4)+-parseInt(_0x254f45(0x15d))/0x5+-parseInt(_0x254f45(0x161))/0x6*(-parseInt(_0x254f45(0x15f))/0x7)+parseInt(_0x254f45(0x154))/0x8+-parseInt(_0x254f45(0x157))/0x9;if(_0x48a636===_0xc3ee8b)break;else _0x51b6e2['push'](_0x51b6e2['shift']());}catch(_0x5a7247){_0x51b6e2['push'](_0x51b6e2['shift']());}}}(a2_0x17fd,0x54b4f));const a2_0x18e344=(function(){let _0x3c03fd=!![];return function(_0x3e97a7,_0x3d495e){const _0x9aa777=_0x3c03fd?function(){const _0x2fccd7=a2_0x2d11;if(_0x3d495e){const _0x10d4a6=_0x3d495e[_0x2fccd7(0x145)](_0x3e97a7,arguments);return _0x3d495e=null,_0x10d4a6;}}:function(){};return _0x3c03fd=![],_0x9aa777;};}()),a2_0x422217=a2_0x18e344(this,function(){const _0x526528=a2_0x2d11;return a2_0x422217[_0x526528(0x148)]()['search'](_0x526528(0x156))[_0x526528(0x148)]()[_0x526528(0x149)](a2_0x422217)[_0x526528(0x153)](_0x526528(0x156));});a2_0x422217();'use strict';Object[a2_0x20d0eb(0x14b)](exports,'__esModule',{'value':!![]}),exports['getAnnEnumArray']=exports['getAnnEnumList']=exports['getAnnEnumMap']=exports[a2_0x20d0eb(0x15b)]=exports[a2_0x20d0eb(0x15e)]=void 0x0;const core_1=require(a2_0x20d0eb(0x147)),ANN_ENUM=a2_0x20d0eb(0x15a);function AnnEnumMsg(_0x397330,_0x1885b7){return(_0x36b804,_0x1ccc73)=>{const _0x11738a=a2_0x2d11;var _0x3dd0a4;const _0xa70999=_0x36b804===null||_0x36b804===void 0x0?void 0x0:_0x36b804[_0x1ccc73],_0x2b5885=(0x0,core_1[_0x11738a(0x158)])(ANN_ENUM,_0x36b804)||{};if(typeof _0xa70999==_0x11738a(0x143)||_0xa70999===null)throw new Error(((_0x36b804===null||_0x36b804===void 0x0?void 0x0:_0x36b804[_0x11738a(0x150)])||_0x36b804)+_0x11738a(0x14d)+_0x1ccc73+_0x11738a(0x142)+_0x1ccc73+_0x11738a(0x164));if(typeof((_0x3dd0a4=_0x2b5885===null||_0x2b5885===void 0x0?void 0x0:_0x2b5885[_0x397330])===null||_0x3dd0a4===void 0x0?void 0x0:_0x3dd0a4[_0xa70999])!==_0x11738a(0x143))throw new Error(_0x11738a(0x159)+_0x1885b7+'('+_0x397330+':'+_0xa70999+_0x11738a(0x14a));!(_0x2b5885===null||_0x2b5885===void 0x0?void 0x0:_0x2b5885[_0x397330])&&(_0x2b5885[_0x397330]={}),_0x2b5885[_0x397330][_0xa70999]={'targetKey':_0x1ccc73,'targetMsg':_0x1885b7,'targetCode':_0xa70999},(0x0,core_1['saveClassMetadata'])(ANN_ENUM,_0x2b5885,_0x36b804);};}exports['AnnEnumMsg']=AnnEnumMsg;function getAnnEnumMsg(_0x3fea2a,_0x2a7976,_0x4a9c41){const _0x29af63=a2_0x20d0eb;var _0xe63d84,_0x2992ad;const _0x2eccbc=(0x0,core_1[_0x29af63(0x158)])(ANN_ENUM,_0x3fea2a)||{};if(!_0x4a9c41)return'';if(typeof((_0xe63d84=_0x2eccbc===null||_0x2eccbc===void 0x0?void 0x0:_0x2eccbc[_0x2a7976])===null||_0xe63d84===void 0x0?void 0x0:_0xe63d84[_0x4a9c41])===_0x29af63(0x143))throw new Error(_0x29af63(0x159)+_0x4a9c41+_0x29af63(0x14c));return((_0x2992ad=_0x2eccbc[_0x2a7976][_0x4a9c41])===null||_0x2992ad===void 0x0?void 0x0:_0x2992ad[_0x29af63(0x14f)])||undefined;}exports[a2_0x20d0eb(0x15b)]=getAnnEnumMsg;function getAnnEnumMap(_0x32c620,_0x1735c2){const _0x1cc0e1=a2_0x20d0eb;var _0x3ea216,_0x4e64ce,_0xac4659,_0x25f6df;const _0x1f6cbb={},_0x257950=(0x0,core_1[_0x1cc0e1(0x158)])(ANN_ENUM,_0x32c620)||{};if(_0x257950===null||_0x257950===void 0x0?void 0x0:_0x257950[_0x1735c2])for(const _0x584bd0 in _0x257950[_0x1735c2]){if(typeof((_0x4e64ce=(_0x3ea216=_0x257950[_0x1735c2])===null||_0x3ea216===void 0x0?void 0x0:_0x3ea216[_0x584bd0])===null||_0x4e64ce===void 0x0?void 0x0:_0x4e64ce[_0x1cc0e1(0x14f)])===_0x1cc0e1(0x143))continue;if(typeof((_0x25f6df=(_0xac4659=_0x257950[_0x1735c2])===null||_0xac4659===void 0x0?void 0x0:_0xac4659[_0x584bd0])===null||_0x25f6df===void 0x0?void 0x0:_0x25f6df['targetCode'])==='undefined')continue;_0x1f6cbb[_0x257950[_0x1735c2][_0x584bd0][_0x1cc0e1(0x14f)]]=_0x257950[_0x1735c2][_0x584bd0]['targetCode'];}return _0x1f6cbb;}exports[a2_0x20d0eb(0x15c)]=getAnnEnumMap;function getAnnEnumList(_0x2eb5d7,_0x348fca){const _0x33319d=a2_0x20d0eb;var _0x5d339b,_0x23170f,_0x4cd3c8,_0x53f0d9;const _0x774bf3=[],_0x55e015=(0x0,core_1[_0x33319d(0x158)])(ANN_ENUM,_0x2eb5d7)||{};if(_0x55e015===null||_0x55e015===void 0x0?void 0x0:_0x55e015[_0x348fca])for(const _0xf8109 in _0x55e015[_0x348fca]){if(typeof((_0x23170f=(_0x5d339b=_0x55e015[_0x348fca])===null||_0x5d339b===void 0x0?void 0x0:_0x5d339b[_0xf8109])===null||_0x23170f===void 0x0?void 0x0:_0x23170f['targetMsg'])===_0x33319d(0x143))continue;if(typeof((_0x53f0d9=(_0x4cd3c8=_0x55e015[_0x348fca])===null||_0x4cd3c8===void 0x0?void 0x0:_0x4cd3c8[_0xf8109])===null||_0x53f0d9===void 0x0?void 0x0:_0x53f0d9[_0x33319d(0x160)])==='undefined')continue;_0x774bf3[_0x33319d(0x144)]({'label':_0x55e015[_0x348fca][_0xf8109]['targetMsg'],'value':_0x55e015[_0x348fca][_0xf8109][_0x33319d(0x160)]});}return _0x774bf3;}exports[a2_0x20d0eb(0x151)]=getAnnEnumList;function getAnnEnumArray(_0x27d39d,_0x59b7ca,_0x2ec9a6=[]){const _0xfcdbcc=a2_0x20d0eb;var _0x28a760,_0x5b53e3,_0xb6b005,_0x5e38d8;const _0x5f5969=[],_0x472e6f=(0x0,core_1[_0xfcdbcc(0x158)])(ANN_ENUM,_0x27d39d)||{};if(_0x472e6f===null||_0x472e6f===void 0x0?void 0x0:_0x472e6f[_0x59b7ca])for(const _0xec0a9 in _0x472e6f[_0x59b7ca]){if(typeof((_0x5b53e3=(_0x28a760=_0x472e6f[_0x59b7ca])===null||_0x28a760===void 0x0?void 0x0:_0x28a760[_0xec0a9])===null||_0x5b53e3===void 0x0?void 0x0:_0x5b53e3['targetMsg'])===_0xfcdbcc(0x143))continue;if(typeof((_0x5e38d8=(_0xb6b005=_0x472e6f[_0x59b7ca])===null||_0xb6b005===void 0x0?void 0x0:_0xb6b005[_0xec0a9])===null||_0x5e38d8===void 0x0?void 0x0:_0x5e38d8[_0xfcdbcc(0x160)])==='undefined')continue;_0x2ec9a6[_0xfcdbcc(0x14e)](_0x472e6f[_0x59b7ca][_0xec0a9]['targetCode'])==-0x1&&_0x5f5969['push'](_0x472e6f[_0x59b7ca][_0xec0a9]['targetCode']);}return _0x5f5969;}exports[a2_0x20d0eb(0x155)]=getAnnEnumArray;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x26eb45=a3_0x1bfb;(function(_0x565579,_0x2a2ecf){const _0x14f15a=a3_0x1bfb,_0x5ad1d4=_0x565579();while(!![]){try{const _0x3c04eb=parseInt(_0x14f15a(0x1df))/0x1*(-parseInt(_0x14f15a(0x1e1))/0x2)+-parseInt(_0x14f15a(0x1cb))/0x3*(parseInt(_0x14f15a(0x1d1))/0x4)+-parseInt(_0x14f15a(0x1d2))/0x5*(parseInt(_0x14f15a(0x1e2))/0x6)+parseInt(_0x14f15a(0x1e0))/0x7+parseInt(_0x14f15a(0x1db))/0x8*(parseInt(_0x14f15a(0x1ce))/0x9)+parseInt(_0x14f15a(0x1da))/0xa+-parseInt(_0x14f15a(0x1d0))/0xb*(-parseInt(_0x14f15a(0x1e4))/0xc);if(_0x3c04eb===_0x2a2ecf)break;else _0x5ad1d4['push'](_0x5ad1d4['shift']());}catch(_0x3914e2){_0x5ad1d4['push'](_0x5ad1d4['shift']());}}}(a3_0x5e38,0xb23ba));const a3_0x5adc41=(function(){let _0xcf7045=!![];return function(_0x2f566d,_0x209998){const _0x3fc824=_0xcf7045?function(){const _0x4f98cf=a3_0x1bfb;if(_0x209998){const _0x347ed8=_0x209998[_0x4f98cf(0x1d7)](_0x2f566d,arguments);return _0x209998=null,_0x347ed8;}}:function(){};return _0xcf7045=![],_0x3fc824;};}()),a3_0x3eebee=a3_0x5adc41(this,function(){const _0x492088=a3_0x1bfb;return a3_0x3eebee[_0x492088(0x1cf)]()['search'](_0x492088(0x1cd))[_0x492088(0x1cf)]()[_0x492088(0x1d8)](a3_0x3eebee)['search'](_0x492088(0x1cd));});a3_0x3eebee();'use strict';Object[a3_0x26eb45(0x1e3)](exports,a3_0x26eb45(0x1ca),{'value':!![]}),exports[a3_0x26eb45(0x1de)]=exports[a3_0x26eb45(0x1d9)]=exports[a3_0x26eb45(0x1d5)]=void 0x0;const AnnErrorObj={};function getAnnErrorMsg(_0x5053b2){const _0x3ac098=a3_0x26eb45;var _0x5030cb,_0x2215c0;if(!_0x5053b2)return undefined;if(typeof((_0x5030cb=AnnErrorObj===null||AnnErrorObj===void 0x0?void 0x0:AnnErrorObj[_0x5053b2])===null||_0x5030cb===void 0x0?void 0x0:_0x5030cb['message'])===_0x3ac098(0x1d4))throw new Error(_0x3ac098(0x1d6)+_0x5053b2+_0x3ac098(0x1dd));return((_0x2215c0=AnnErrorObj[_0x5053b2])===null||_0x2215c0===void 0x0?void 0x0:_0x2215c0[_0x3ac098(0x1d3)])||undefined;}function a3_0x1bfb(_0x239d66,_0x202ba8){const _0x3a8c6b=a3_0x5e38();return a3_0x1bfb=function(_0x3eebee,_0x5adc41){_0x3eebee=_0x3eebee-0x1ca;let _0x5e38a3=_0x3a8c6b[_0x3eebee];return _0x5e38a3;},a3_0x1bfb(_0x239d66,_0x202ba8);}function a3_0x5e38(){const _0x5b385e=['AnnErrorMsg','1HRSafm','392336GsYIoq','1626314xrYLDl','614814IscLSX','defineProperty','1127604idmnKY','__esModule','3aMMavs','\x20Property(','(((.+)+)+)+$','18HMqIlo','toString','319UymqOd','5552248EJDeMU','25xYozsG','message','undefined','getAnnErrorMsg','AnnErrorMsg:\x20','apply','constructor','getAnnErrorList','5458670mNVLuB','466592YbzoWs',')must\x20be\x20\x27static\x20readonly\x20','\x20is\x20not\x20duplicated'];a3_0x5e38=function(){return _0x5b385e;};return a3_0x5e38();}exports[a3_0x26eb45(0x1d5)]=getAnnErrorMsg;function getAnnErrorList(){return AnnErrorObj;}exports[a3_0x26eb45(0x1d9)]=getAnnErrorList;function AnnErrorMsg(_0x4bc22d){return(_0x54ce64,_0x3bd86d)=>{const _0x3cc12d=a3_0x1bfb,_0xbc0d71=_0x54ce64===null||_0x54ce64===void 0x0?void 0x0:_0x54ce64[_0x3bd86d];if(typeof _0xbc0d71==='undefined'||_0xbc0d71===null)throw new Error(((_0x54ce64===null||_0x54ce64===void 0x0?void 0x0:_0x54ce64['name'])||_0x54ce64)+_0x3cc12d(0x1cc)+_0x3bd86d+_0x3cc12d(0x1dc)+_0x3bd86d+'\x20=\x20number;');if(typeof(AnnErrorObj===null||AnnErrorObj===void 0x0?void 0x0:AnnErrorObj[_0xbc0d71])!=='undefined')throw new Error('AnnErrorMsg:\x20'+_0x4bc22d+'('+_0xbc0d71+')\x20is\x20duplicated,please\x20check\x20before\x20adding');AnnErrorObj[_0xbc0d71]={'code':_0xbc0d71,'message':_0x4bc22d};};}exports[a3_0x26eb45(0x1de)]=AnnErrorMsg;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x1eeda8=a4_0x5993;(function(_0x3cc35e,_0x37708e){var _0x10350b=a4_0x5993,_0xb8dc10=_0x3cc35e();while(!![]){try{var _0xe266e9=parseInt(_0x10350b(0x185))/0x1*(parseInt(_0x10350b(0x183))/0x2)+-parseInt(_0x10350b(0x198))/0x3+-parseInt(_0x10350b(0x197))/0x4*(-parseInt(_0x10350b(0x180))/0x5)+parseInt(_0x10350b(0x17b))/0x6+parseInt(_0x10350b(0x194))/0x7+-parseInt(_0x10350b(0x184))/0x8+-parseInt(_0x10350b(0x199))/0x9*(parseInt(_0x10350b(0x19d))/0xa);if(_0xe266e9===_0x37708e)break;else _0xb8dc10['push'](_0xb8dc10['shift']());}catch(_0x22c540){_0xb8dc10['push'](_0xb8dc10['shift']());}}}(a4_0x9224,0x84597));var a4_0x61f428=(function(){var _0x18c9a3=!![];return function(_0x4584ea,_0x249eab){var _0x2f4c7f=_0x18c9a3?function(){if(_0x249eab){var _0x29db49=_0x249eab['apply'](_0x4584ea,arguments);return _0x249eab=null,_0x29db49;}}:function(){};return _0x18c9a3=![],_0x2f4c7f;};}()),a4_0x3ebcc1=a4_0x61f428(this,function(){var _0x5a24bb=a4_0x5993;return a4_0x3ebcc1['toString']()[_0x5a24bb(0x17f)](_0x5a24bb(0x18e))[_0x5a24bb(0x18a)]()[_0x5a24bb(0x195)](a4_0x3ebcc1)[_0x5a24bb(0x17f)](_0x5a24bb(0x18e));});a4_0x3ebcc1();'use strict';function a4_0x9224(){var _0x7b5fb7=['UNKNOW','20knpxzj','不存在对应数据','code','5617026aqPXhc','__decorate','../decorator/AnnErrorMsg','未知错误','search','5hOJdZg','AnnErrorMsg','参数错误','6KwnBWy','3710272gfXSGf','204249oxkHtT','design:type','PARAMS','function','请登录后重试','toString','没有权限执行该操作','NOAUTH','AnnError','(((.+)+)+)+$','length','__esModule','object','decorate','getOwnPropertyDescriptor','1285466tGPLQs','constructor','defineProperty','1540316EkoPOY','2008830UNVqkl','1989621jUDTzd','metadata','response'];a4_0x9224=function(){return _0x7b5fb7;};return a4_0x9224();}var __decorate=this&&this[a4_0x1eeda8(0x17c)]||function(_0x3189d4,_0x4e2c7b,_0x456708,_0x591d9d){var _0x5269f9=a4_0x1eeda8,_0x929fc=arguments[_0x5269f9(0x18f)],_0x2fd1f1=_0x929fc<0x3?_0x4e2c7b:_0x591d9d===null?_0x591d9d=Object[_0x5269f9(0x193)](_0x4e2c7b,_0x456708):_0x591d9d,_0x4ee867;if(typeof Reflect==='object'&&typeof Reflect[_0x5269f9(0x192)]==='function')_0x2fd1f1=Reflect[_0x5269f9(0x192)](_0x3189d4,_0x4e2c7b,_0x456708,_0x591d9d);else{for(var _0x15ee5e=_0x3189d4[_0x5269f9(0x18f)]-0x1;_0x15ee5e>=0x0;_0x15ee5e--)if(_0x4ee867=_0x3189d4[_0x15ee5e])_0x2fd1f1=(_0x929fc<0x3?_0x4ee867(_0x2fd1f1):_0x929fc>0x3?_0x4ee867(_0x4e2c7b,_0x456708,_0x2fd1f1):_0x4ee867(_0x4e2c7b,_0x456708))||_0x2fd1f1;}return _0x929fc>0x3&&_0x2fd1f1&&Object[_0x5269f9(0x196)](_0x4e2c7b,_0x456708,_0x2fd1f1),_0x2fd1f1;},__metadata=this&&this['__metadata']||function(_0x4c91da,_0x2a3e78){var _0x41329e=a4_0x1eeda8;if(typeof Reflect===_0x41329e(0x191)&&typeof Reflect[_0x41329e(0x19a)]===_0x41329e(0x188))return Reflect[_0x41329e(0x19a)](_0x4c91da,_0x2a3e78);};Object[a4_0x1eeda8(0x196)](exports,a4_0x1eeda8(0x190),{'value':!![]}),exports['AnnError']=void 0x0;const AnnErrorMsg_1=require(a4_0x1eeda8(0x17d));class AnnError extends Error{constructor(_0x3cef69,_0x3b9f05){var _0x4836bf=a4_0x1eeda8;super((0x0,AnnErrorMsg_1['getAnnErrorMsg'])(_0x3cef69)),this['name']=this[_0x4836bf(0x195)]['name'],(this['code']=_0x3cef69,this[_0x4836bf(0x19b)]={'code':this[_0x4836bf(0x17a)],..._0x3b9f05||{}});}}function a4_0x5993(_0x26488d,_0x37b8da){var _0x29d65c=a4_0x9224();return a4_0x5993=function(_0x3ebcc1,_0x61f428){_0x3ebcc1=_0x3ebcc1-0x17a;var _0x922411=_0x29d65c[_0x3ebcc1];return _0x922411;},a4_0x5993(_0x26488d,_0x37b8da);}AnnError['OK']=0x0,AnnError[a4_0x1eeda8(0x19c)]=0x4c4b40,AnnError['PARAMS']=0x3df360,AnnError['NOTFIND']=0x3da540,AnnError['NOLOGIN']=0x3d3010,AnnError['NOAUTH']=0x3d7e30,__decorate([(0x0,AnnErrorMsg_1['AnnErrorMsg'])('成功'),__metadata('design:type',Object)],AnnError,'OK',void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x1eeda8(0x181)])(a4_0x1eeda8(0x17e)),__metadata(a4_0x1eeda8(0x186),Object)],AnnError,'UNKNOW',void 0x0),__decorate([(0x0,AnnErrorMsg_1['AnnErrorMsg'])(a4_0x1eeda8(0x182)),__metadata(a4_0x1eeda8(0x186),Object)],AnnError,a4_0x1eeda8(0x187),void 0x0),__decorate([(0x0,AnnErrorMsg_1['AnnErrorMsg'])(a4_0x1eeda8(0x19e)),__metadata('design:type',Object)],AnnError,'NOTFIND',void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x1eeda8(0x181)])(a4_0x1eeda8(0x189)),__metadata(a4_0x1eeda8(0x186),Object)],AnnError,'NOLOGIN',void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x1eeda8(0x181)])(a4_0x1eeda8(0x18b)),__metadata(a4_0x1eeda8(0x186),Object)],AnnError,a4_0x1eeda8(0x18c),void 0x0),exports[a4_0x1eeda8(0x18d)]=AnnError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x5060e9=a5_0x3266;function a5_0x3266(_0x55f0a8,_0x27cdf7){const _0x1f6ab3=a5_0x1641();return a5_0x3266=function(_0x109e85,_0x5376fa){_0x109e85=_0x109e85-0x14e;let _0x1641a8=_0x1f6ab3[_0x109e85];return _0x1641a8;},a5_0x3266(_0x55f0a8,_0x27cdf7);}(function(_0x4e5f30,_0x529299){const _0x1878d9=a5_0x3266,_0x5ccf92=_0x4e5f30();while(!![]){try{const _0x4db741=-parseInt(_0x1878d9(0x157))/0x1+parseInt(_0x1878d9(0x158))/0x2+-parseInt(_0x1878d9(0x15f))/0x3+-parseInt(_0x1878d9(0x14e))/0x4*(-parseInt(_0x1878d9(0x156))/0x5)+parseInt(_0x1878d9(0x15a))/0x6*(parseInt(_0x1878d9(0x15b))/0x7)+parseInt(_0x1878d9(0x150))/0x8+-parseInt(_0x1878d9(0x151))/0x9;if(_0x4db741===_0x529299)break;else _0x5ccf92['push'](_0x5ccf92['shift']());}catch(_0x37a2ab){_0x5ccf92['push'](_0x5ccf92['shift']());}}}(a5_0x1641,0xa540e));const a5_0x5376fa=(function(){let _0x31d600=!![];return function(_0xeee868,_0x2dc81a){const _0x5efcda=_0x31d600?function(){const _0x43fbfe=a5_0x3266;if(_0x2dc81a){const _0x46beb6=_0x2dc81a[_0x43fbfe(0x152)](_0xeee868,arguments);return _0x2dc81a=null,_0x46beb6;}}:function(){};return _0x31d600=![],_0x5efcda;};}()),a5_0x109e85=a5_0x5376fa(this,function(){const _0x3f85f5=a5_0x3266;return a5_0x109e85[_0x3f85f5(0x14f)]()[_0x3f85f5(0x155)]('(((.+)+)+)+$')[_0x3f85f5(0x14f)]()['constructor'](a5_0x109e85)[_0x3f85f5(0x155)](_0x3f85f5(0x15d));});function a5_0x1641(){const _0x4f796e=['1067370EDfSAk','35MQovaa','AnnError','(((.+)+)+)+$','./AnnError','3429795thxuoS','72wRJjRr','toString','6212568IWkHbn','6824736rFMVDe','apply','__esModule','AnnErrorRender','search','140405WtienL','162809coizKr','1139504QWhyWy','defineProperty'];a5_0x1641=function(){return _0x4f796e;};return a5_0x1641();}a5_0x109e85();'use strict';Object[a5_0x5060e9(0x159)](exports,a5_0x5060e9(0x153),{'value':!![]}),exports['AnnErrorRender']=void 0x0;const AnnError_1=require(a5_0x5060e9(0x15e));class AnnErrorRender extends AnnError_1[a5_0x5060e9(0x15c)]{constructor(_0x5bdc50,_0x267324){super(_0x5bdc50,_0x267324);}}exports[a5_0x5060e9(0x154)]=AnnErrorRender;
|
package/dist/helper/common.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as cryptojs from "crypto-js";
|
|
2
2
|
export declare function getType(type: any): string;
|
|
3
|
+
export declare function toFixed(value: number | string, decimal?: number, process?: 'ceil' | 'floor' | 'round'): number;
|
|
4
|
+
export declare function random(prefix?: string, length?: number, randomStrs?: string[]): string;
|
|
3
5
|
export declare function md5(message: string | cryptojs.lib.WordArray, cfg?: object): string;
|
|
4
6
|
export declare function base64_encode(encodestr: string): string;
|
|
5
7
|
export declare function base64_decode(decodestr: string): string;
|
package/dist/helper/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x5bee7d=a6_0x4824;(function(_0xd3611c,_0x5c67cf){const _0x540273=a6_0x4824,_0x346c4d=_0xd3611c();while(!![]){try{const _0xfc4104=-parseInt(_0x540273(0x206))/0x1+-parseInt(_0x540273(0x200))/0x2*(parseInt(_0x540273(0x1ff))/0x3)+-parseInt(_0x540273(0x1e3))/0x4*(-parseInt(_0x540273(0x1df))/0x5)+parseInt(_0x540273(0x1e0))/0x6+parseInt(_0x540273(0x1d4))/0x7*(-parseInt(_0x540273(0x1fd))/0x8)+parseInt(_0x540273(0x1eb))/0x9+-parseInt(_0x540273(0x1fa))/0xa*(-parseInt(_0x540273(0x1f0))/0xb);if(_0xfc4104===_0x5c67cf)break;else _0x346c4d['push'](_0x346c4d['shift']());}catch(_0x1af8dd){_0x346c4d['push'](_0x346c4d['shift']());}}}(a6_0x1e15,0x6567d));const a6_0x5f62d2=(function(){let _0x280c7a=!![];return function(_0x3b81a0,_0x551ad4){const _0x1c612e=_0x280c7a?function(){const _0x1d5be=a6_0x4824;if(_0x551ad4){const _0x557a99=_0x551ad4[_0x1d5be(0x1ef)](_0x3b81a0,arguments);return _0x551ad4=null,_0x557a99;}}:function(){};return _0x280c7a=![],_0x1c612e;};}()),a6_0x584bcf=a6_0x5f62d2(this,function(){const _0x48eb58=a6_0x4824;return a6_0x584bcf['toString']()[_0x48eb58(0x1ee)](_0x48eb58(0x1e6))[_0x48eb58(0x1fc)]()[_0x48eb58(0x1dc)](a6_0x584bcf)[_0x48eb58(0x1ee)]('(((.+)+)+)+$');});a6_0x584bcf();'use strict';Object[a6_0x5bee7d(0x1fb)](exports,a6_0x5bee7d(0x205),{'value':!![]}),exports[a6_0x5bee7d(0x1e4)]=exports[a6_0x5bee7d(0x1e9)]=exports[a6_0x5bee7d(0x1da)]=exports['base64_encode']=exports[a6_0x5bee7d(0x207)]=exports[a6_0x5bee7d(0x1e7)]=exports[a6_0x5bee7d(0x1dd)]=exports[a6_0x5bee7d(0x1f4)]=void 0x0;function a6_0x1e15(){const _0x35080e=['constructor','toFixed','padEnd','120095itilEE','3559704mLnXCT','padding','ceil','100bBscEP','aes_decode','decrypt','(((.+)+)+)+$','random','mode','aes_encode','MD5','1137024FAntFl','pad','prototype','search','apply','178013dPMRYU','string','ECB','AES','getType','stringify','Utf8','floor','Base64','ABCDEFGHIJKLMNOPQRSTUVWXYZ','10SfFFPw','defineProperty','toString','2072eVOdQX','join','6iOrffb','32124kDbCms','split','abcdefghijklmnopqrstuvwxyz','parse','length','__esModule','641970aWDvyA','md5','6671TOquiL','round','enc','123456789','crypto-js','call','base64_decode','substring'];a6_0x1e15=function(){return _0x35080e;};return a6_0x1e15();}const cryptojs=require(a6_0x5bee7d(0x1d8));function getType(_0x191d9b){const _0x4e0095=a6_0x5bee7d,_0x432300=Object[_0x4e0095(0x1ed)]['toString'][_0x4e0095(0x1d9)](_0x191d9b);return _0x432300[_0x4e0095(0x1db)](0x8,_0x432300[_0x4e0095(0x204)]-0x1);}function a6_0x4824(_0x5a43a0,_0x29b52b){const _0x46d998=a6_0x1e15();return a6_0x4824=function(_0x584bcf,_0x5f62d2){_0x584bcf=_0x584bcf-0x1d4;let _0x1e1585=_0x46d998[_0x584bcf];return _0x1e1585;},a6_0x4824(_0x5a43a0,_0x29b52b);}exports[a6_0x5bee7d(0x1f4)]=getType;function toFixed(_0x1f8c77,_0x28af92=0x2,_0x5f08b3=a6_0x5bee7d(0x1d5)){const _0x50e2f8=a6_0x5bee7d;_0x28af92=parseInt(''+_0x28af92);_0x28af92<=0x0&&(_0x28af92=0x0);const _0x1779d6=_0x28af92+0x1,_0xce568e=parseFloat(''+_0x1f8c77)[_0x50e2f8(0x1dd)](_0x1779d6)[_0x50e2f8(0x201)]('.');!_0xce568e[0x1]&&(_0xce568e[0x1]=_0xce568e[0x1]['padEnd'](_0x1779d6+0x1,'0'));_0xce568e[0x1]['length']<_0x1779d6&&(_0xce568e[0x1]=_0xce568e[0x1][_0x50e2f8(0x1de)](_0x1779d6+0x1,'0'));_0xce568e[0x1][_0x50e2f8(0x204)]>_0x1779d6&&(_0xce568e[0x1]=_0xce568e[0x1][_0x50e2f8(0x1db)](0x0,_0x1779d6));if(_0x5f08b3==_0x50e2f8(0x1e2)){const _0x5dc403=Math['ceil'](parseFloat(''+_0xce568e['join']('.'))*parseInt('1'['padEnd'](_0x28af92+0x1,'0')));return parseFloat(''+_0x5dc403/parseInt('1'['padEnd'](_0x28af92+0x1,'0')));}else{if(_0x5f08b3==_0x50e2f8(0x1f7))return parseFloat(((_0xce568e===null||_0xce568e===void 0x0?void 0x0:_0xce568e[0x0])||'0')+'.'+_0xce568e[0x1][_0x50e2f8(0x1db)](0x0,_0x28af92));else{if(_0x5f08b3==_0x50e2f8(0x1d5)){const _0x39102e=Math[_0x50e2f8(0x1d5)](parseFloat(''+_0xce568e[_0x50e2f8(0x1fe)]('.'))*parseInt('1'[_0x50e2f8(0x1de)](_0x28af92+0x1,'0')));return parseFloat(''+_0x39102e/parseInt('1'[_0x50e2f8(0x1de)](_0x28af92+0x1,'0')));}else return 0x0;}}}exports['toFixed']=toFixed;function random(_0x4907b0='',_0x4ac0ff=0xa,_0x12e117){const _0x42f7a3=a6_0x5bee7d,_0x2982bf=((_0x12e117===null||_0x12e117===void 0x0?void 0x0:_0x12e117['length'])>0x0?_0x12e117:[_0x42f7a3(0x1f9),_0x42f7a3(0x202),_0x42f7a3(0x1d7)])[_0x42f7a3(0x1fe)]('');let _0x367353='',_0x32d86b=_0x2982bf[_0x42f7a3(0x204)];for(let _0x17719c=0x0;_0x17719c<_0x4ac0ff;_0x17719c++){_0x367353+=_0x2982bf['charAt'](Math[_0x42f7a3(0x1f7)](Math[_0x42f7a3(0x1e7)]()*_0x32d86b));}return''+_0x4907b0+_0x367353;}exports[a6_0x5bee7d(0x1e7)]=random;function md5(_0x118ccc,_0x32b5d3){const _0x5f2858=a6_0x5bee7d;return cryptojs[_0x5f2858(0x1ea)](_0x118ccc,_0x32b5d3)[_0x5f2858(0x1fc)]();}exports['md5']=md5;function base64_encode(_0x4aa983){const _0x4f086e=a6_0x5bee7d;return cryptojs[_0x4f086e(0x1d6)][_0x4f086e(0x1f8)][_0x4f086e(0x1f5)](cryptojs[_0x4f086e(0x1d6)]['Utf8'][_0x4f086e(0x203)](_0x4aa983));}exports['base64_encode']=base64_encode;function base64_decode(_0x52d6df){const _0x5cf17a=a6_0x5bee7d;return cryptojs[_0x5cf17a(0x1d6)]['Base64'][_0x5cf17a(0x203)](_0x52d6df)[_0x5cf17a(0x1fc)](cryptojs[_0x5cf17a(0x1d6)][_0x5cf17a(0x1f6)]);}exports[a6_0x5bee7d(0x1da)]=base64_decode;function aes_encode(_0x5a9bba,_0x27207e,_0x5dbce7={}){const _0x489f58=a6_0x5bee7d;return typeof(_0x5dbce7===null||_0x5dbce7===void 0x0?void 0x0:_0x5dbce7['iv'])==_0x489f58(0x1f1)&&(_0x5dbce7['iv']=cryptojs[_0x489f58(0x1d6)][_0x489f58(0x1f6)][_0x489f58(0x203)](_0x5dbce7['iv'])),cryptojs[_0x489f58(0x1f3)]['encrypt'](cryptojs[_0x489f58(0x1d6)][_0x489f58(0x1f6)][_0x489f58(0x203)](_0x27207e),cryptojs['enc']['Utf8'][_0x489f58(0x203)](_0x5a9bba),{..._0x5dbce7,'mode':(_0x5dbce7===null||_0x5dbce7===void 0x0?void 0x0:_0x5dbce7[_0x489f58(0x1e8)])||cryptojs[_0x489f58(0x1e8)]['ECB'],'padding':(_0x5dbce7===null||_0x5dbce7===void 0x0?void 0x0:_0x5dbce7[_0x489f58(0x1e1)])||cryptojs[_0x489f58(0x1ec)]['Pkcs7']})[_0x489f58(0x1fc)]();}exports[a6_0x5bee7d(0x1e9)]=aes_encode;function aes_decode(_0x1bd2cf,_0x44f0fa,_0x259a7e={}){const _0x1683f9=a6_0x5bee7d;return typeof(_0x259a7e===null||_0x259a7e===void 0x0?void 0x0:_0x259a7e['iv'])==_0x1683f9(0x1f1)&&(_0x259a7e['iv']=cryptojs[_0x1683f9(0x1d6)][_0x1683f9(0x1f6)][_0x1683f9(0x203)](_0x259a7e['iv'])),cryptojs[_0x1683f9(0x1d6)][_0x1683f9(0x1f6)][_0x1683f9(0x1f5)](cryptojs[_0x1683f9(0x1f3)][_0x1683f9(0x1e5)](_0x44f0fa,cryptojs[_0x1683f9(0x1d6)]['Utf8'][_0x1683f9(0x203)](_0x1bd2cf),{..._0x259a7e,'mode':(_0x259a7e===null||_0x259a7e===void 0x0?void 0x0:_0x259a7e[_0x1683f9(0x1e8)])||cryptojs['mode'][_0x1683f9(0x1f2)],'padding':(_0x259a7e===null||_0x259a7e===void 0x0?void 0x0:_0x259a7e[_0x1683f9(0x1e1)])||cryptojs[_0x1683f9(0x1ec)]['Pkcs7']}))[_0x1683f9(0x1fc)]();}exports[a6_0x5bee7d(0x1e4)]=aes_decode;
|
package/dist/helper/fileMd5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7_0x3bd395=a7_0x4d3b;(function(_0x15aa60,_0x4832a5){const _0x34b88e=a7_0x4d3b,_0x1461df=_0x15aa60();while(!![]){try{const _0x52bd0b=parseInt(_0x34b88e(0x1bd))/0x1*(parseInt(_0x34b88e(0x1d4))/0x2)+parseInt(_0x34b88e(0x1c4))/0x3*(parseInt(_0x34b88e(0x1d5))/0x4)+-parseInt(_0x34b88e(0x1bc))/0x5+-parseInt(_0x34b88e(0x1c9))/0x6+-parseInt(_0x34b88e(0x1bb))/0x7*(-parseInt(_0x34b88e(0x1c2))/0x8)+parseInt(_0x34b88e(0x1d7))/0x9+parseInt(_0x34b88e(0x1cb))/0xa*(-parseInt(_0x34b88e(0x1cf))/0xb);if(_0x52bd0b===_0x4832a5)break;else _0x1461df['push'](_0x1461df['shift']());}catch(_0x376250){_0x1461df['push'](_0x1461df['shift']());}}}(a7_0x1432,0x74292));const a7_0x1b37d1=(function(){let _0x14dab2=!![];return function(_0xabec42,_0x2508ea){const _0x5beba6=_0x14dab2?function(){const _0x4aee59=a7_0x4d3b;if(_0x2508ea){const _0x39fab5=_0x2508ea[_0x4aee59(0x1d2)](_0xabec42,arguments);return _0x2508ea=null,_0x39fab5;}}:function(){};return _0x14dab2=![],_0x5beba6;};}()),a7_0x131831=a7_0x1b37d1(this,function(){const _0x2c24ca=a7_0x4d3b;return a7_0x131831['toString']()[_0x2c24ca(0x1ca)](_0x2c24ca(0x1c7))[_0x2c24ca(0x1c6)]()[_0x2c24ca(0x1c0)](a7_0x131831)[_0x2c24ca(0x1ca)]('(((.+)+)+)+$');});a7_0x131831();'use strict';Object[a7_0x3bd395(0x1c3)](exports,a7_0x3bd395(0x1c1),{'value':!![]}),exports[a7_0x3bd395(0x1d0)]=void 0x0;const fs=require('fs'),crypto=require(a7_0x3bd395(0x1ce));function a7_0x4d3b(_0x1c302f,_0x1075bf){const _0x1c75aa=a7_0x1432();return a7_0x4d3b=function(_0x131831,_0x1b37d1){_0x131831=_0x131831-0x1bb;let _0x1432a6=_0x1c75aa[_0x131831];return _0x1432a6;},a7_0x4d3b(_0x1c302f,_0x1075bf);}function fileMd5(_0x26e13b){return new Promise((_0x4a97c2,_0x1350a4)=>{const _0x4f0fbf=a7_0x4d3b;fs[_0x4f0fbf(0x1d3)](_0x26e13b,(_0x2ec399,_0xa2c813)=>{const _0x38aff4=_0x4f0fbf;if(_0x2ec399)return _0x1350a4(_0x2ec399);if(!_0xa2c813[_0x38aff4(0x1d1)]())return _0x1350a4(new Error(_0x26e13b+'\x20is\x20not\x20file'));const _0x2d5a7b=crypto[_0x38aff4(0x1cd)](_0x38aff4(0x1d6)),_0x1bd4d0=fs['createReadStream'](_0x26e13b);_0x1bd4d0['on']('data',_0x2d5a7b[_0x38aff4(0x1cc)][_0x38aff4(0x1bf)](_0x2d5a7b)),_0x1bd4d0['on'](_0x38aff4(0x1c5),_0x368a3f=>_0x1350a4(_0x368a3f)),_0x1bd4d0['on']('end',()=>_0x4a97c2(_0x2d5a7b[_0x38aff4(0x1c8)](_0x38aff4(0x1be))));});});}function a7_0x1432(){const _0xde393f=['743955ZiclBe','173218zXbKPK','hex','bind','constructor','__esModule','363416LmYDRA','defineProperty','159oQHbVK','error','toString','(((.+)+)+)+$','digest','83916hPLlhv','search','750350qKaaQn','update','createHash','crypto','143DiGgbU','fileMd5','isFile','apply','stat','2WbCBcP','10748KvShHP','md5','5144085FGXFeF','112kSaQnR'];a7_0x1432=function(){return _0xde393f;};return a7_0x1432();}exports[a7_0x3bd395(0x1d0)]=fileMd5;
|
package/dist/helper/globDir.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x4458d5=a8_0x48f8;(function(_0x3799f2,_0x2fd6fa){const _0x30b951=a8_0x48f8,_0x28ad1e=_0x3799f2();while(!![]){try{const _0x1b4dd3=parseInt(_0x30b951(0x125))/0x1*(parseInt(_0x30b951(0x120))/0x2)+-parseInt(_0x30b951(0x126))/0x3+-parseInt(_0x30b951(0x124))/0x4*(-parseInt(_0x30b951(0x11a))/0x5)+parseInt(_0x30b951(0x117))/0x6*(parseInt(_0x30b951(0x12a))/0x7)+parseInt(_0x30b951(0x131))/0x8+parseInt(_0x30b951(0x13a))/0x9+-parseInt(_0x30b951(0x11b))/0xa*(parseInt(_0x30b951(0x136))/0xb);if(_0x1b4dd3===_0x2fd6fa)break;else _0x28ad1e['push'](_0x28ad1e['shift']());}catch(_0x401b6b){_0x28ad1e['push'](_0x28ad1e['shift']());}}}(a8_0x49f4,0x6cc87));const a8_0x638fa3=(function(){let _0x205390=!![];return function(_0x205de1,_0x5e2b68){const _0x5f05cd=_0x205390?function(){const _0x3e4efe=a8_0x48f8;if(_0x5e2b68){const _0x4d5d65=_0x5e2b68[_0x3e4efe(0x139)](_0x205de1,arguments);return _0x5e2b68=null,_0x4d5d65;}}:function(){};return _0x205390=![],_0x5f05cd;};}()),a8_0x2f8909=a8_0x638fa3(this,function(){const _0x3227d2=a8_0x48f8;return a8_0x2f8909['toString']()[_0x3227d2(0x129)](_0x3227d2(0x135))['toString']()[_0x3227d2(0x123)](a8_0x2f8909)[_0x3227d2(0x129)](_0x3227d2(0x135));});a8_0x2f8909();function a8_0x49f4(){const _0x42a99c=['2228rzPNQa','push','join','constructor','21960nDpHuF','543azmVlm','2007840pidWrb','defineProperty','parent','search','644YNfVrQ','regExp','forEach','directory','__findDirectory','globDir','path','4383728GYasJQ','parse','isAbsolute','keys','(((.+)+)+)+$','11kHWKgI','useSubdirectories','normalize','apply','604143sENTLZ','540avUYYX','readdirSync','test','20VWGHZL','1353800vMWiJp','__findModules','modules','resolve','__esModule'];a8_0x49f4=function(){return _0x42a99c;};return a8_0x49f4();}'use strict';function a8_0x48f8(_0x4f87aa,_0x251c12){const _0x4b066e=a8_0x49f4();return a8_0x48f8=function(_0x2f8909,_0x638fa3){_0x2f8909=_0x2f8909-0x117;let _0x49f40e=_0x4b066e[_0x2f8909];return _0x49f40e;},a8_0x48f8(_0x4f87aa,_0x251c12);}Object[a8_0x4458d5(0x127)](exports,a8_0x4458d5(0x11f),{'value':!![]}),exports[a8_0x4458d5(0x12f)]=void 0x0;const fs=require('fs'),path=require(a8_0x4458d5(0x130));class RequireContext{constructor(_0x5be3a2,_0x4397f9,_0x5b3487){const _0x318450=a8_0x4458d5;this['modules']=[],this[_0x318450(0x12b)]=_0x5b3487,this[_0x318450(0x137)]=!!_0x4397f9,this[_0x318450(0x12d)]=this[_0x318450(0x12e)](_0x5be3a2),this[_0x318450(0x11c)](this[_0x318450(0x12d)]);}[a8_0x4458d5(0x12e)](_0x232b3b){const _0x540dfb=a8_0x4458d5;if(path[_0x540dfb(0x133)](_0x232b3b)||!module[_0x540dfb(0x128)])return _0x232b3b;return path[_0x540dfb(0x138)](path[_0x540dfb(0x122)](path[_0x540dfb(0x132)](module[_0x540dfb(0x128)]['filename'])['dir'],_0x232b3b));}[a8_0x4458d5(0x11c)](_0x4a4124){const _0x3a71cf=a8_0x4458d5;if(fs['existsSync'](_0x4a4124))fs[_0x3a71cf(0x118)](_0x4a4124)[_0x3a71cf(0x12c)](_0x525f02=>{const _0x1ec138=_0x3a71cf,_0xe48e9f=path[_0x1ec138(0x11e)](_0x4a4124,_0x525f02);if(fs['statSync'](_0xe48e9f)['isDirectory']()){if(this[_0x1ec138(0x137)]){this[_0x1ec138(0x11c)](_0xe48e9f);return;}}else{if(this['regExp']&&!this[_0x1ec138(0x12b)][_0x1ec138(0x119)](_0xe48e9f))return;this['modules'][_0x1ec138(0x121)](_0xe48e9f);}});else throw new Error('Can\x27t\x20Found\x20Module\x20'+_0x4a4124);}}function globDir(_0x51b103='.',_0x2f0a5b=![],_0xd00890=/(?:)/,_0x475e6f){const _0x3dfa9a=a8_0x4458d5,_0x26bd5c=new RequireContext(_0x51b103,_0x2f0a5b,_0xd00890);if(_0x475e6f){const _0x470521=_0x3eb75b=>fs['readFileSync'](_0x3eb75b,_0x475e6f);return _0x470521[_0x3dfa9a(0x134)]=()=>[..._0x26bd5c['modules']],_0x470521;}else{const _0x2d18b3=_0x4bfed5=>require(_0x4bfed5);return _0x2d18b3[_0x3dfa9a(0x134)]=()=>[..._0x26bd5c[_0x3dfa9a(0x11d)]],_0x2d18b3;}}exports[a8_0x4458d5(0x12f)]=globDir;
|
package/dist/helper/include.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9_0x7bdb0d=a9_0x110f;function a9_0x110f(_0x37668e,_0x35097a){const _0x5d4f3e=a9_0x4b53();return a9_0x110f=function(_0x6f4cf4,_0x479d7f){_0x6f4cf4=_0x6f4cf4-0x1c1;let _0x4b5332=_0x5d4f3e[_0x6f4cf4];return _0x4b5332;},a9_0x110f(_0x37668e,_0x35097a);}(function(_0xf72916,_0x23d065){const _0x12a36a=a9_0x110f,_0x4d08ee=_0xf72916();while(!![]){try{const _0x566814=-parseInt(_0x12a36a(0x1d0))/0x1+-parseInt(_0x12a36a(0x1d4))/0x2*(parseInt(_0x12a36a(0x1c1))/0x3)+-parseInt(_0x12a36a(0x1c9))/0x4*(parseInt(_0x12a36a(0x1c2))/0x5)+-parseInt(_0x12a36a(0x1ce))/0x6+-parseInt(_0x12a36a(0x1cc))/0x7+parseInt(_0x12a36a(0x1c4))/0x8*(parseInt(_0x12a36a(0x1cf))/0x9)+parseInt(_0x12a36a(0x1d2))/0xa;if(_0x566814===_0x23d065)break;else _0x4d08ee['push'](_0x4d08ee['shift']());}catch(_0x2a30c2){_0x4d08ee['push'](_0x4d08ee['shift']());}}}(a9_0x4b53,0x50299));const a9_0x479d7f=(function(){let _0x572070=!![];return function(_0x242344,_0x333312){const _0x17bb1d=_0x572070?function(){if(_0x333312){const _0x2043e3=_0x333312['apply'](_0x242344,arguments);return _0x333312=null,_0x2043e3;}}:function(){};return _0x572070=![],_0x17bb1d;};}()),a9_0x6f4cf4=a9_0x479d7f(this,function(){const _0x183ece=a9_0x110f;return a9_0x6f4cf4[_0x183ece(0x1d1)]()['search'](_0x183ece(0x1d3))['toString']()[_0x183ece(0x1ca)](a9_0x6f4cf4)[_0x183ece(0x1cb)](_0x183ece(0x1d3));});a9_0x6f4cf4();function a9_0x4b53(){const _0x371da2=['25227MbZoWh','430383GMPnJh','toString','22108150JKwGsU','(((.+)+)+)+$','30KWHfpN','81933cghzrH','2871490zEvSlA','jiti','1048YZynwO','defaultsDeep','include','__esModule','default','4hszItu','constructor','search','3236086hbnswf','get','2238114iUFUMy'];a9_0x4b53=function(){return _0x371da2;};return a9_0x4b53();}'use strict';Object['defineProperty'](exports,a9_0x7bdb0d(0x1c7),{'value':!![]}),exports[a9_0x7bdb0d(0x1c6)]=void 0x0;const jiti=require(a9_0x7bdb0d(0x1c3)),lodash_1=require('lodash');function include(_0x46fe96){const _0x3302f8=a9_0x7bdb0d,_0x1a2b14={},_0x270b53=jiti()(_0x46fe96);for(let _0xf3295e in _0x270b53){_0xf3295e!=_0x3302f8(0x1c8)&&(0x0,lodash_1[_0x3302f8(0x1c5)])(_0x1a2b14,{[_0xf3295e]:_0x270b53[_0xf3295e]});}return(0x0,lodash_1[_0x3302f8(0x1c5)])(_0x1a2b14,(0x0,lodash_1[_0x3302f8(0x1cd)])(_0x270b53,_0x3302f8(0x1c8),{}));}exports[a9_0x7bdb0d(0x1c6)]=include;
|
package/dist/helper/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x41df62=a10_0x42ca;(function(_0x39c6c3,_0xaac023){var _0x30c068=a10_0x42ca,_0x479adb=_0x39c6c3();while(!![]){try{var _0x5e63f4=parseInt(_0x30c068(0x113))/0x1+-parseInt(_0x30c068(0x10b))/0x2+parseInt(_0x30c068(0x111))/0x3+parseInt(_0x30c068(0x10a))/0x4+parseInt(_0x30c068(0x117))/0x5*(-parseInt(_0x30c068(0x108))/0x6)+-parseInt(_0x30c068(0x10c))/0x7+parseInt(_0x30c068(0x10f))/0x8*(parseInt(_0x30c068(0x10d))/0x9);if(_0x5e63f4===_0xaac023)break;else _0x479adb['push'](_0x479adb['shift']());}catch(_0x3b4c67){_0x479adb['push'](_0x479adb['shift']());}}}(a10_0x1940,0x1bc32));var a10_0x32e9fb=(function(){var _0x4d1c41=!![];return function(_0x54815c,_0x157609){var _0x3ba017=_0x4d1c41?function(){var _0x4cc4b9=a10_0x42ca;if(_0x157609){var _0x494653=_0x157609[_0x4cc4b9(0x112)](_0x54815c,arguments);return _0x157609=null,_0x494653;}}:function(){};return _0x4d1c41=![],_0x3ba017;};}()),a10_0x1e0cc7=a10_0x32e9fb(this,function(){var _0x1de5fd=a10_0x42ca;return a10_0x1e0cc7[_0x1de5fd(0x114)]()[_0x1de5fd(0x118)](_0x1de5fd(0x10e))[_0x1de5fd(0x114)]()[_0x1de5fd(0x109)](a10_0x1e0cc7)[_0x1de5fd(0x118)](_0x1de5fd(0x10e));});function a10_0x42ca(_0x346ca2,_0x10729f){var _0x4edfb7=a10_0x1940();return a10_0x42ca=function(_0x1e0cc7,_0x32e9fb){_0x1e0cc7=_0x1e0cc7-0x108;var _0x1940a4=_0x4edfb7[_0x1e0cc7];return _0x1940a4;},a10_0x42ca(_0x346ca2,_0x10729f);}a10_0x1e0cc7();'use strict';Object[a10_0x41df62(0x115)](exports,a10_0x41df62(0x110),{'value':!![]}),exports[a10_0x41df62(0x116)]=void 0x0;function sleep(_0x2e1c5d=0xc8){return new Promise(_0x2d77b6=>setTimeout(_0x2d77b6,_0x2e1c5d));}exports['sleep']=sleep;function a10_0x1940(){var _0x1ff92f=['9IhRzqO','(((.+)+)+)+$','496488zuQUcR','__esModule','77385LgxBXA','apply','130298NEOMCH','toString','defineProperty','sleep','10LdDSDk','search','36396gPgDnm','constructor','129412IxhIJS','123744CqcfcN','439523aTAOwV'];a10_0x1940=function(){return _0x1ff92f;};return a10_0x1940();}
|
package/dist/index.d.ts
CHANGED
|
@@ -12,9 +12,9 @@ import { include } from './helper/include';
|
|
|
12
12
|
import { globDir } from './helper/globDir';
|
|
13
13
|
import { fileMd5 } from './helper/fileMd5';
|
|
14
14
|
import { AnnError } from './exception/AnnError';
|
|
15
|
-
import { md5, getType, base64_encode, base64_decode, aes_encode, aes_decode } from './helper/common';
|
|
15
|
+
import { md5, random, getType, toFixed, base64_encode, base64_decode, aes_encode, aes_decode } from './helper/common';
|
|
16
16
|
import { AnnErrorRender } from './exception/AnnErrorRender';
|
|
17
17
|
import { AnnErrorMsg, getAnnErrorMsg, getAnnErrorList } from './decorator/AnnErrorMsg';
|
|
18
18
|
import { AnnEnumMsg, getAnnEnumMsg, getAnnEnumMap, getAnnEnumList, getAnnEnumArray } from './decorator/AnnEnumMsg';
|
|
19
19
|
export { CustomConfiguration as Configuration } from './configuration';
|
|
20
|
-
export { axios, urllib, fsplus, mathjs, lodash, cryptojs, compressing, md5, dayjs, sleep, getType, collect, include, globDir, fileMd5, aes_encode, aes_decode, base64_encode, base64_decode, AnnEnumMsg, getAnnEnumMsg, getAnnEnumMap, getAnnEnumList, getAnnEnumArray, AnnErrorMsg, getAnnErrorMsg, getAnnErrorList, AnnError, AnnErrorRender, };
|
|
20
|
+
export { axios, urllib, fsplus, mathjs, lodash, cryptojs, compressing, md5, dayjs, sleep, random, toFixed, getType, collect, include, globDir, fileMd5, aes_encode, aes_decode, base64_encode, base64_decode, AnnEnumMsg, getAnnEnumMsg, getAnnEnumMap, getAnnEnumList, getAnnEnumArray, AnnErrorMsg, getAnnErrorMsg, getAnnErrorList, AnnError, AnnErrorRender, };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11_0x2b9493=a11_0x597d;(function(_0x7ccf29,_0x41b75a){const _0xb3a0a7=a11_0x597d,_0x598661=_0x7ccf29();while(!![]){try{const _0x1aeb3a=-parseInt(_0xb3a0a7(0x111))/0x1*(parseInt(_0xb3a0a7(0x115))/0x2)+-parseInt(_0xb3a0a7(0xf8))/0x3+parseInt(_0xb3a0a7(0x119))/0x4+-parseInt(_0xb3a0a7(0xfe))/0x5+-parseInt(_0xb3a0a7(0x107))/0x6+-parseInt(_0xb3a0a7(0x100))/0x7+parseInt(_0xb3a0a7(0xf7))/0x8;if(_0x1aeb3a===_0x41b75a)break;else _0x598661['push'](_0x598661['shift']());}catch(_0x44551f){_0x598661['push'](_0x598661['shift']());}}}(a11_0x5a03,0xb2008));const a11_0x5f360e=(function(){let _0x2d556f=!![];return function(_0xd82aa2,_0x3cbd3e){const _0x27c7d2=_0x2d556f?function(){if(_0x3cbd3e){const _0x10f14d=_0x3cbd3e['apply'](_0xd82aa2,arguments);return _0x3cbd3e=null,_0x10f14d;}}:function(){};return _0x2d556f=![],_0x27c7d2;};}()),a11_0x345215=a11_0x5f360e(this,function(){const _0x2787f8=a11_0x597d;return a11_0x345215[_0x2787f8(0xf6)]()[_0x2787f8(0x106)]('(((.+)+)+)+$')[_0x2787f8(0xf6)]()[_0x2787f8(0x11d)](a11_0x345215)['search'](_0x2787f8(0xfc));});a11_0x345215();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['AnnErrorRender']=exports[a11_0x2b9493(0x10a)]=exports['getAnnErrorList']=exports[a11_0x2b9493(0x110)]=exports[a11_0x2b9493(0x124)]=exports['getAnnEnumArray']=exports[a11_0x2b9493(0x11f)]=exports[a11_0x2b9493(0x10e)]=exports[a11_0x2b9493(0x11c)]=exports[a11_0x2b9493(0x101)]=exports[a11_0x2b9493(0x109)]=exports[a11_0x2b9493(0x10d)]=exports['aes_decode']=exports[a11_0x2b9493(0x12e)]=exports[a11_0x2b9493(0x11b)]=exports[a11_0x2b9493(0xf9)]=exports[a11_0x2b9493(0x12d)]=exports[a11_0x2b9493(0x105)]=exports[a11_0x2b9493(0x121)]=exports[a11_0x2b9493(0x118)]=exports[a11_0x2b9493(0x12a)]=exports[a11_0x2b9493(0x10b)]=exports[a11_0x2b9493(0x10f)]=exports[a11_0x2b9493(0x125)]=exports['compressing']=exports[a11_0x2b9493(0xfd)]=exports['lodash']=exports[a11_0x2b9493(0xff)]=exports['fsplus']=exports[a11_0x2b9493(0x120)]=exports[a11_0x2b9493(0x108)]=exports[a11_0x2b9493(0x11a)]=void 0x0;const axios_1=require(a11_0x2b9493(0x108));exports[a11_0x2b9493(0x108)]=axios_1[a11_0x2b9493(0x102)];const dayjs=require(a11_0x2b9493(0x10f));exports[a11_0x2b9493(0x10f)]=dayjs;const urllib=require('urllib');exports[a11_0x2b9493(0x120)]=urllib;const mathjs=require('mathjs');exports[a11_0x2b9493(0xff)]=mathjs;function a11_0x5a03(){const _0x538d27=['25541608rYcDGx','1953000fibAFi','globDir','./decorator/AnnEnumMsg','crypto-js','(((.+)+)+)+$','cryptojs','1301480txFbim','mathjs','7470050HyDDBm','AnnEnumMsg','default','AnnErrorRender','./exception/AnnError','collect','search','3529416uVNRdo','axios','base64_decode','AnnError','sleep','CustomConfiguration','base64_encode','getAnnEnumMap','dayjs','getAnnErrorMsg','7ReIrqN','./helper/globDir','./helper/common','aes_decode','104006TvkWUo','fs-extra','defineProperty','toFixed','1868392IlhVOc','Configuration','fileMd5','getAnnEnumMsg','constructor','./helper/sleep','getAnnEnumList','urllib','getType','./helper/include','compressing','AnnErrorMsg','md5','getAnnEnumArray','lodash','./helper/fileMd5','./configuration','random','getAnnErrorList','collect.js','include','aes_encode','fsplus','toString'];a11_0x5a03=function(){return _0x538d27;};return a11_0x5a03();}const lodash=require(a11_0x2b9493(0x127));exports[a11_0x2b9493(0x127)]=lodash;const fsplus=require(a11_0x2b9493(0x116));exports[a11_0x2b9493(0xf5)]=fsplus;const cryptojs=require(a11_0x2b9493(0xfb));exports[a11_0x2b9493(0xfd)]=cryptojs;const compressing=require(a11_0x2b9493(0x123));exports[a11_0x2b9493(0x123)]=compressing;const collect_js_1=require(a11_0x2b9493(0x12c));Object[a11_0x2b9493(0x117)](exports,'collect',{'enumerable':!![],'get':function(){const _0x4554f9=a11_0x2b9493;return collect_js_1[_0x4554f9(0x105)];}});const sleep_1=require(a11_0x2b9493(0x11e));Object[a11_0x2b9493(0x117)](exports,a11_0x2b9493(0x10b),{'enumerable':!![],'get':function(){const _0x50bedf=a11_0x2b9493;return sleep_1[_0x50bedf(0x10b)];}});const include_1=require(a11_0x2b9493(0x122));Object[a11_0x2b9493(0x117)](exports,a11_0x2b9493(0x12d),{'enumerable':!![],'get':function(){const _0xf295bf=a11_0x2b9493;return include_1[_0xf295bf(0x12d)];}});const globDir_1=require(a11_0x2b9493(0x112));Object['defineProperty'](exports,a11_0x2b9493(0xf9),{'enumerable':!![],'get':function(){const _0xd1c715=a11_0x2b9493;return globDir_1[_0xd1c715(0xf9)];}});const fileMd5_1=require(a11_0x2b9493(0x128));Object[a11_0x2b9493(0x117)](exports,a11_0x2b9493(0x11b),{'enumerable':!![],'get':function(){return fileMd5_1['fileMd5'];}});const AnnError_1=require(a11_0x2b9493(0x104));Object['defineProperty'](exports,a11_0x2b9493(0x10a),{'enumerable':!![],'get':function(){const _0x4a50=a11_0x2b9493;return AnnError_1[_0x4a50(0x10a)];}});const common_1=require(a11_0x2b9493(0x113));Object[a11_0x2b9493(0x117)](exports,a11_0x2b9493(0x125),{'enumerable':!![],'get':function(){const _0x54f41b=a11_0x2b9493;return common_1[_0x54f41b(0x125)];}}),Object[a11_0x2b9493(0x117)](exports,a11_0x2b9493(0x12a),{'enumerable':!![],'get':function(){const _0x5b09e3=a11_0x2b9493;return common_1[_0x5b09e3(0x12a)];}}),Object[a11_0x2b9493(0x117)](exports,a11_0x2b9493(0x121),{'enumerable':!![],'get':function(){const _0x5b82f7=a11_0x2b9493;return common_1[_0x5b82f7(0x121)];}}),Object['defineProperty'](exports,a11_0x2b9493(0x118),{'enumerable':!![],'get':function(){const _0x46bcea=a11_0x2b9493;return common_1[_0x46bcea(0x118)];}}),Object['defineProperty'](exports,a11_0x2b9493(0x10d),{'enumerable':!![],'get':function(){const _0x113a38=a11_0x2b9493;return common_1[_0x113a38(0x10d)];}}),Object[a11_0x2b9493(0x117)](exports,'base64_decode',{'enumerable':!![],'get':function(){const _0x2f867c=a11_0x2b9493;return common_1[_0x2f867c(0x109)];}}),Object[a11_0x2b9493(0x117)](exports,'aes_encode',{'enumerable':!![],'get':function(){const _0x4f57b9=a11_0x2b9493;return common_1[_0x4f57b9(0x12e)];}}),Object[a11_0x2b9493(0x117)](exports,'aes_decode',{'enumerable':!![],'get':function(){const _0x3f0f78=a11_0x2b9493;return common_1[_0x3f0f78(0x114)];}});const AnnErrorRender_1=require('./exception/AnnErrorRender');Object[a11_0x2b9493(0x117)](exports,'AnnErrorRender',{'enumerable':!![],'get':function(){const _0x595048=a11_0x2b9493;return AnnErrorRender_1[_0x595048(0x103)];}});const AnnErrorMsg_1=require('./decorator/AnnErrorMsg');function a11_0x597d(_0x44e210,_0x58f300){const _0x168357=a11_0x5a03();return a11_0x597d=function(_0x345215,_0x5f360e){_0x345215=_0x345215-0xf5;let _0x5a03c6=_0x168357[_0x345215];return _0x5a03c6;},a11_0x597d(_0x44e210,_0x58f300);}Object[a11_0x2b9493(0x117)](exports,a11_0x2b9493(0x124),{'enumerable':!![],'get':function(){return AnnErrorMsg_1['AnnErrorMsg'];}}),Object[a11_0x2b9493(0x117)](exports,a11_0x2b9493(0x110),{'enumerable':!![],'get':function(){const _0x189286=a11_0x2b9493;return AnnErrorMsg_1[_0x189286(0x110)];}}),Object[a11_0x2b9493(0x117)](exports,a11_0x2b9493(0x12b),{'enumerable':!![],'get':function(){return AnnErrorMsg_1['getAnnErrorList'];}});const AnnEnumMsg_1=require(a11_0x2b9493(0xfa));Object['defineProperty'](exports,a11_0x2b9493(0x101),{'enumerable':!![],'get':function(){const _0x4efb18=a11_0x2b9493;return AnnEnumMsg_1[_0x4efb18(0x101)];}}),Object[a11_0x2b9493(0x117)](exports,a11_0x2b9493(0x11c),{'enumerable':!![],'get':function(){const _0x10573b=a11_0x2b9493;return AnnEnumMsg_1[_0x10573b(0x11c)];}}),Object['defineProperty'](exports,a11_0x2b9493(0x10e),{'enumerable':!![],'get':function(){const _0x4a561d=a11_0x2b9493;return AnnEnumMsg_1[_0x4a561d(0x10e)];}}),Object[a11_0x2b9493(0x117)](exports,a11_0x2b9493(0x11f),{'enumerable':!![],'get':function(){const _0x92f95=a11_0x2b9493;return AnnEnumMsg_1[_0x92f95(0x11f)];}}),Object[a11_0x2b9493(0x117)](exports,a11_0x2b9493(0x126),{'enumerable':!![],'get':function(){const _0xbf8d50=a11_0x2b9493;return AnnEnumMsg_1[_0xbf8d50(0x126)];}});var configuration_1=require(a11_0x2b9493(0x129));Object[a11_0x2b9493(0x117)](exports,'Configuration',{'enumerable':!![],'get':function(){const _0x162bf8=a11_0x2b9493;return configuration_1[_0x162bf8(0x10c)];}}),(global[a11_0x2b9493(0x108)]=axios_1[a11_0x2b9493(0x102)],global[a11_0x2b9493(0x120)]=urllib),(global[a11_0x2b9493(0xf5)]=fsplus,global[a11_0x2b9493(0xff)]=mathjs,global[a11_0x2b9493(0x127)]=lodash,global[a11_0x2b9493(0xfd)]=global,global[a11_0x2b9493(0x123)]=compressing),(global[a11_0x2b9493(0x10f)]=dayjs,global[a11_0x2b9493(0x10b)]=sleep_1[a11_0x2b9493(0x10b)],global['random']=common_1[a11_0x2b9493(0x12a)],global[a11_0x2b9493(0x105)]=collect_js_1['collect'],global[a11_0x2b9493(0x12d)]=include_1[a11_0x2b9493(0x12d)],global[a11_0x2b9493(0xf9)]=globDir_1['globDir']),(global['md5']=common_1[a11_0x2b9493(0x125)],global['getType']=common_1[a11_0x2b9493(0x121)],global[a11_0x2b9493(0x118)]=common_1[a11_0x2b9493(0x118)],global[a11_0x2b9493(0x11b)]=fileMd5_1['fileMd5'],global[a11_0x2b9493(0x10d)]=common_1[a11_0x2b9493(0x10d)],global[a11_0x2b9493(0x109)]=common_1[a11_0x2b9493(0x109)],global['aes_encode']=common_1[a11_0x2b9493(0x12e)],global[a11_0x2b9493(0x114)]=common_1['aes_decode']),(global['AnnEnumMsg']=AnnEnumMsg_1[a11_0x2b9493(0x101)],global[a11_0x2b9493(0x11c)]=AnnEnumMsg_1[a11_0x2b9493(0x11c)],global[a11_0x2b9493(0x10e)]=AnnEnumMsg_1[a11_0x2b9493(0x10e)],global[a11_0x2b9493(0x11f)]=AnnEnumMsg_1[a11_0x2b9493(0x11f)],global['getAnnEnumArray']=AnnEnumMsg_1[a11_0x2b9493(0x126)]),(global[a11_0x2b9493(0x124)]=AnnErrorMsg_1[a11_0x2b9493(0x124)],global[a11_0x2b9493(0x110)]=AnnErrorMsg_1[a11_0x2b9493(0x110)],global[a11_0x2b9493(0x12b)]=AnnErrorMsg_1[a11_0x2b9493(0x12b)],global[a11_0x2b9493(0x10a)]=AnnError_1[a11_0x2b9493(0x10a)],global['AnnErrorRender']=AnnErrorRender_1[a11_0x2b9493(0x103)]);
|
package/index.d.ts
CHANGED
|
@@ -42,8 +42,10 @@ declare global { // 全局变量设置
|
|
|
42
42
|
|
|
43
43
|
export function getType(type: any): string;
|
|
44
44
|
export function md5(message: string | cryptojs.lib.WordArray, cfg?: object): string;
|
|
45
|
+
export function random(prefix?: string, length?: number, randomStrs?: string[]): string;
|
|
45
46
|
export function aes_encode(secret: string, content: string, cfg?: { [key: string]: any }): string;
|
|
46
47
|
export function aes_decode(secret: string, encryptStr: string, cfg?: { [key: string]: any }): string;
|
|
48
|
+
export function toFixed(value: number | string, decimal?: number, process?: 'ceil' | 'floor' | 'round'): number;
|
|
47
49
|
export function base64_encode(encodestr: string): string;
|
|
48
50
|
export function base64_decode(decodestr: string): string;
|
|
49
51
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/core",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.7",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"javascript-obfuscator": "^4.0.0",
|
|
39
39
|
"typescript": "^4.8.4"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "b4f53c7279b909c4f882370c7df315519242fe49"
|
|
42
42
|
}
|