@anncic-api/core 1.2.0 → 1.2.2
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 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a0_0x3543(_0x1bd924,_0x50df28){var _0x222b0d=a0_0x222b();return a0_0x3543=function(_0x354303,_0x33e9e5){_0x354303=_0x354303-0x84;var _0x3d406e=_0x222b0d[_0x354303];return _0x3d406e;},a0_0x3543(_0x1bd924,_0x50df28);}var a0_0x5d1696=a0_0x3543;(function(_0x8ca7fd,_0x2c2b3d){var _0x908246=a0_0x3543,_0x196e9a=_0x8ca7fd();while(!![]){try{var _0x22f036=-parseInt(_0x908246(0x8d))/0x1*(-parseInt(_0x908246(0x8c))/0x2)+parseInt(_0x908246(0x8f))/0x3*(parseInt(_0x908246(0x8e))/0x4)+parseInt(_0x908246(0x93))/0x5*(parseInt(_0x908246(0x91))/0x6)+parseInt(_0x908246(0x85))/0x7+parseInt(_0x908246(0x84))/0x8*(parseInt(_0x908246(0x8b))/0x9)+parseInt(_0x908246(0x89))/0xa+parseInt(_0x908246(0x8a))/0xb*(-parseInt(_0x908246(0x92))/0xc);if(_0x22f036===_0x2c2b3d)break;else _0x196e9a['push'](_0x196e9a['shift']());}catch(_0xf5197a){_0x196e9a['push'](_0x196e9a['shift']());}}}(a0_0x222b,0xab1f3));function a0_0x222b(){var _0x2fcc99=['458583iWsjTk','appDir','6RVPwal','24aKdpUt','4307180VOtyvJ','1952NXEwjm','6605242CxXDiL','__esModule','defineProperty','/runtime','5113400FsAFmD','23911129VNxjUM','11241vFfecj','8mmFMFI','339307lzgWfL','28PIWeDW'];a0_0x222b=function(){return _0x2fcc99;};return a0_0x222b();}Object[a0_0x5d1696(0x87)](exports,a0_0x5d1696(0x86),{'value':!![]}),exports['default']=_0x312bf0=>{var _0x589692=a0_0x5d1696;return{'midwayLogger':{'default':{'maxSize':'1m','dir':_0x312bf0[_0x589692(0x90)]+_0x589692(0x88)}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x425c83=a1_0x553e;(function(_0x4c5224,_0x401cb6){const _0x4fe9cc=a1_0x553e,_0x471c76=_0x4c5224();while(!![]){try{const _0x3f9cff=-parseInt(_0x4fe9cc(0x190))/0x1*(-parseInt(_0x4fe9cc(0x16c))/0x2)+-parseInt(_0x4fe9cc(0x186))/0x3*(parseInt(_0x4fe9cc(0x185))/0x4)+-parseInt(_0x4fe9cc(0x176))/0x5*(-parseInt(_0x4fe9cc(0x191))/0x6)+parseInt(_0x4fe9cc(0x180))/0x7+parseInt(_0x4fe9cc(0x17c))/0x8+parseInt(_0x4fe9cc(0x19a))/0x9*(-parseInt(_0x4fe9cc(0x17b))/0xa)+parseInt(_0x4fe9cc(0x172))/0xb;if(_0x3f9cff===_0x401cb6)break;else _0x471c76['push'](_0x471c76['shift']());}catch(_0x186ff2){_0x471c76['push'](_0x471c76['shift']());}}}(a1_0x2b48,0xab55a));var __decorate=this&&this[a1_0x425c83(0x187)]||function(_0x2acee7,_0x5eea00,_0x528e66,_0x24e875){const _0x3f29bc=a1_0x425c83;var _0x5cc15b=arguments[_0x3f29bc(0x18e)],_0x3ae851=_0x5cc15b<0x3?_0x5eea00:_0x24e875===null?_0x24e875=Object[_0x3f29bc(0x174)](_0x5eea00,_0x528e66):_0x24e875,_0x2e3a3b;if(typeof Reflect===_0x3f29bc(0x175)&&typeof Reflect[_0x3f29bc(0x17f)]===_0x3f29bc(0x19c))_0x3ae851=Reflect[_0x3f29bc(0x17f)](_0x2acee7,_0x5eea00,_0x528e66,_0x24e875);else{for(var _0x44af66=_0x2acee7[_0x3f29bc(0x18e)]-0x1;_0x44af66>=0x0;_0x44af66--)if(_0x2e3a3b=_0x2acee7[_0x44af66])_0x3ae851=(_0x5cc15b<0x3?_0x2e3a3b(_0x3ae851):_0x5cc15b>0x3?_0x2e3a3b(_0x5eea00,_0x528e66,_0x3ae851):_0x2e3a3b(_0x5eea00,_0x528e66))||_0x3ae851;}return _0x5cc15b>0x3&&_0x3ae851&&Object[_0x3f29bc(0x178)](_0x5eea00,_0x528e66,_0x3ae851),_0x3ae851;},__metadata=this&&this['__metadata']||function(_0x3cda57,_0x1f2648){const _0x5e671e=a1_0x425c83;if(typeof Reflect===_0x5e671e(0x175)&&typeof Reflect['metadata']===_0x5e671e(0x19c))return Reflect[_0x5e671e(0x189)](_0x3cda57,_0x1f2648);};Object[a1_0x425c83(0x178)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a1_0x425c83(0x192)),core_2=require(a1_0x425c83(0x192)),AnnError_1=require('./exception/AnnError'),AnnErrorRender_1=require('./exception/AnnErrorRender'),ConfigDefault=require(a1_0x425c83(0x194));let CustomConfiguration=class CustomConfiguration{async[a1_0x425c83(0x171)](){const _0x3536c9=a1_0x425c83;this['application'][_0x3536c9(0x17d)]([_0x3536c9(0x195),_0x3536c9(0x197),_0x3536c9(0x184),_0x3536c9(0x17e)])[_0x3536c9(0x196)](_0x337536=>{const _0x1f5d57=_0x3536c9;_0x337536[_0x1f5d57(0x18a)](async(_0x4f16f7,_0x485c52)=>{const _0x3459aa=_0x1f5d57;var _0x398012,_0x8bf6fb,_0x123f9a;try{await _0x485c52();}catch(_0x146910){if(_0x146910 instanceof AnnErrorRender_1['AnnErrorRender'])await _0x146910['render'](_0x4f16f7,_0x337536);else{if(_0x146910 instanceof AnnError_1[_0x3459aa(0x170)]){const _0x32177b=_0x146910['response']||{'code':_0x146910['code']};!(_0x32177b===null||_0x32177b===void 0x0?void 0x0:_0x32177b[_0x3459aa(0x183)])&&(_0x146910===null||_0x146910===void 0x0?void 0x0:_0x146910[_0x3459aa(0x183)])&&(_0x32177b[_0x3459aa(0x183)]=_0x146910[_0x3459aa(0x183)]),this[_0x3459aa(0x198)][_0x3459aa(0x181)]()==_0x3459aa(0x16f)?(!_0x32177b[_0x3459aa(0x19b)]&&(_0x32177b[_0x3459aa(0x19b)]={}),!((_0x398012=_0x32177b===null||_0x32177b===void 0x0?void 0x0:_0x32177b[_0x3459aa(0x19b)])===null||_0x398012===void 0x0?void 0x0:_0x398012['message'])&&(_0x146910===null||_0x146910===void 0x0?void 0x0:_0x146910[_0x3459aa(0x183)])&&(_0x32177b[_0x3459aa(0x19b)]['message']=_0x146910[_0x3459aa(0x183)]),!((_0x8bf6fb=_0x32177b===null||_0x32177b===void 0x0?void 0x0:_0x32177b[_0x3459aa(0x19b)])===null||_0x8bf6fb===void 0x0?void 0x0:_0x8bf6fb[_0x3459aa(0x182)])&&(_0x146910===null||_0x146910===void 0x0?void 0x0:_0x146910[_0x3459aa(0x182)])&&(_0x32177b[_0x3459aa(0x19b)][_0x3459aa(0x182)]=_0x146910[_0x3459aa(0x182)][_0x3459aa(0x193)]('\x20at\x20'))):delete _0x32177b[_0x3459aa(0x19b)],_0x4f16f7[_0x3459aa(0x16d)]=_0x32177b;}else{if(_0x146910 instanceof core_2['httpError']['NotFoundError']){}else{if(_0x146910 instanceof Error){if(this[_0x3459aa(0x198)][_0x3459aa(0x199)]())console[_0x3459aa(0x19b)](_0x146910);else typeof((_0x123f9a=_0x4f16f7===null||_0x4f16f7===void 0x0?void 0x0:_0x4f16f7['logger'])===null||_0x123f9a===void 0x0?void 0x0:_0x123f9a[_0x3459aa(0x19b)])==_0x3459aa(0x19c)&&(_0x146910[_0x3459aa(0x19d)]=_0x4f16f7[_0x3459aa(0x18b)]||'',_0x146910['request']=_0x4f16f7[_0x3459aa(0x16e)]||{},_0x4f16f7['logger']['error'](_0x146910));}}}}}});});}};function a1_0x553e(_0x51c75e,_0x3fe4be){const _0x2b48c8=a1_0x2b48();return a1_0x553e=function(_0x553e78,_0x18ca1a){_0x553e78=_0x553e78-0x16c;let _0x167029=_0x2b48c8[_0x553e78];return _0x167029;},a1_0x553e(_0x51c75e,_0x3fe4be);}function a1_0x2b48(){const _0x36ed4c=['body','request','local','AnnError','onReady','11614207xNqWrl','anncic-api:core','getOwnPropertyDescriptor','object','33365nxgGyE','MidwayApplicationManager','defineProperty','MidwayEnvironmentService','CustomConfiguration','10yeuWYG','2853848aEVhfk','getApplications','egg','decorate','9514659yykFVp','getCurrentEnvironment','stack','message','express','5235176ncQahh','3wrvkUd','__decorate','Configuration','metadata','useMiddleware','_matchedRoute','design:type','application','length','prototype','460901wCucgq','42qanXwG','@midwayjs/core','split','./config/config.default','koa','forEach','faas','environment','isDevelopmentEnvironment','11419533RfCXZI','error','function','matched','2GKWrRJ'];a1_0x2b48=function(){return _0x36ed4c;};return a1_0x2b48();}__decorate([(0x0,core_1['Inject'])(),__metadata(a1_0x425c83(0x18c),core_2[a1_0x425c83(0x177)])],CustomConfiguration['prototype'],a1_0x425c83(0x18d),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a1_0x425c83(0x179)])],CustomConfiguration[a1_0x425c83(0x18f)],a1_0x425c83(0x198),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a1_0x425c83(0x188)])({'namespace':a1_0x425c83(0x173),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x425c83(0x17a)]=CustomConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x92004b=a2_0x26b4;(function(_0xf35b5d,_0x37b53e){const _0x53b5b2=a2_0x26b4,_0x38e767=_0xf35b5d();while(!![]){try{const _0x627eae=-parseInt(_0x53b5b2(0x156))/0x1+parseInt(_0x53b5b2(0x152))/0x2+parseInt(_0x53b5b2(0x158))/0x3+parseInt(_0x53b5b2(0x150))/0x4*(-parseInt(_0x53b5b2(0x15f))/0x5)+-parseInt(_0x53b5b2(0x154))/0x6+parseInt(_0x53b5b2(0x155))/0x7+parseInt(_0x53b5b2(0x15c))/0x8;if(_0x627eae===_0x37b53e)break;else _0x38e767['push'](_0x38e767['shift']());}catch(_0x228e41){_0x38e767['push'](_0x38e767['shift']());}}}(a2_0x1b3d,0x7d43c));Object[a2_0x92004b(0x151)](exports,a2_0x92004b(0x149),{'value':!![]}),exports['getAnnEnumArray']=exports[a2_0x92004b(0x14a)]=exports[a2_0x92004b(0x160)]=exports[a2_0x92004b(0x14d)]=exports[a2_0x92004b(0x157)]=void 0x0;const core_1=require(a2_0x92004b(0x14b)),ANN_ENUM=a2_0x92004b(0x14f);function AnnEnumMsg(_0xe7ce53,_0x13697c){return(_0x1d582d,_0x19e268)=>{const _0x2326ac=a2_0x26b4;var _0x52e666;const _0x217920=_0x1d582d===null||_0x1d582d===void 0x0?void 0x0:_0x1d582d[_0x19e268],_0x5ea66e=(0x0,core_1[_0x2326ac(0x15b)])(ANN_ENUM,_0x1d582d)||{};if(typeof _0x217920==_0x2326ac(0x14c)||_0x217920===null)throw new Error(((_0x1d582d===null||_0x1d582d===void 0x0?void 0x0:_0x1d582d['name'])||_0x1d582d)+_0x2326ac(0x15a)+_0x19e268+_0x2326ac(0x163)+_0x19e268+_0x2326ac(0x164));if(typeof((_0x52e666=_0x5ea66e===null||_0x5ea66e===void 0x0?void 0x0:_0x5ea66e[_0xe7ce53])===null||_0x52e666===void 0x0?void 0x0:_0x52e666[_0x217920])!==_0x2326ac(0x14c))throw new Error(_0x2326ac(0x15d)+_0x13697c+'('+_0xe7ce53+':'+_0x217920+_0x2326ac(0x162));!(_0x5ea66e===null||_0x5ea66e===void 0x0?void 0x0:_0x5ea66e[_0xe7ce53])&&(_0x5ea66e[_0xe7ce53]={}),_0x5ea66e[_0xe7ce53][_0x217920]={'targetKey':_0x19e268,'targetMsg':_0x13697c,'targetCode':_0x217920},(0x0,core_1[_0x2326ac(0x15e)])(ANN_ENUM,_0x5ea66e,_0x1d582d);};}exports['AnnEnumMsg']=AnnEnumMsg;function getAnnEnumMsg(_0x4a4795,_0x2fcde7,_0xdd700e){const _0x32e09a=a2_0x92004b;var _0x4d31fb,_0x320e50;const _0x4e6ca5=(0x0,core_1[_0x32e09a(0x15b)])(ANN_ENUM,_0x4a4795)||{};if(typeof((_0x4d31fb=_0x4e6ca5===null||_0x4e6ca5===void 0x0?void 0x0:_0x4e6ca5[_0x2fcde7])===null||_0x4d31fb===void 0x0?void 0x0:_0x4d31fb[_0xdd700e])===_0x32e09a(0x14c))throw new Error('AnnEnumMsg:\x20'+_0xdd700e+'\x20is\x20not\x20duplicated');return((_0x320e50=_0x4e6ca5[_0x2fcde7][_0xdd700e])===null||_0x320e50===void 0x0?void 0x0:_0x320e50[_0x32e09a(0x159)])||undefined;}function a2_0x26b4(_0x62f515,_0x1f4dcd){const _0x1b3d76=a2_0x1b3d();return a2_0x26b4=function(_0x26b490,_0xa0cfcb){_0x26b490=_0x26b490-0x149;let _0x5aaa62=_0x1b3d76[_0x26b490];return _0x5aaa62;},a2_0x26b4(_0x62f515,_0x1f4dcd);}exports[a2_0x92004b(0x14d)]=getAnnEnumMsg;function getAnnEnumMap(_0x4c50b5,_0x2419c9){const _0x3300b4=a2_0x92004b;var _0x45f617,_0x49051a,_0x3e6f88,_0x382a94;const _0x40ef59={},_0x301087=(0x0,core_1[_0x3300b4(0x15b)])(ANN_ENUM,_0x4c50b5)||{};if(_0x301087===null||_0x301087===void 0x0?void 0x0:_0x301087[_0x2419c9])for(const _0x5cf7cd in _0x301087[_0x2419c9]){if(typeof((_0x49051a=(_0x45f617=_0x301087[_0x2419c9])===null||_0x45f617===void 0x0?void 0x0:_0x45f617[_0x5cf7cd])===null||_0x49051a===void 0x0?void 0x0:_0x49051a[_0x3300b4(0x159)])==='undefined')continue;if(typeof((_0x382a94=(_0x3e6f88=_0x301087[_0x2419c9])===null||_0x3e6f88===void 0x0?void 0x0:_0x3e6f88[_0x5cf7cd])===null||_0x382a94===void 0x0?void 0x0:_0x382a94[_0x3300b4(0x153)])===_0x3300b4(0x14c))continue;_0x40ef59[_0x301087[_0x2419c9][_0x5cf7cd][_0x3300b4(0x159)]]=_0x301087[_0x2419c9][_0x5cf7cd][_0x3300b4(0x153)];}return _0x40ef59;}exports['getAnnEnumMap']=getAnnEnumMap;function a2_0x1b3d(){const _0x200b8d=[')must\x20be\x20\x27static\x20readonly\x20','\x20=\x20number\x20|\x20string;','__esModule','getAnnEnumList','@midwayjs/core','undefined','getAnnEnumMsg','indexOf','ann:enum','6452XTRSVG','defineProperty','1809866CQlqzt','targetCode','6077520sicAIP','1238272XbofhC','947461WuVLoP','AnnEnumMsg','2014041UigVYP','targetMsg','\x20Property(','getClassMetadata','5775216cHIzLG','AnnEnumMsg:\x20','saveClassMetadata','5eADCfO','getAnnEnumMap','push',')\x20is\x20duplicated,please\x20check\x20before\x20adding'];a2_0x1b3d=function(){return _0x200b8d;};return a2_0x1b3d();}function getAnnEnumList(_0x36b88e,_0xaa3ba5){const _0x285c82=a2_0x92004b;var _0x2abd4f,_0x5571b7,_0x3e6778,_0x7537fa;const _0x58b339=[],_0x2a0c90=(0x0,core_1[_0x285c82(0x15b)])(ANN_ENUM,_0x36b88e)||{};if(_0x2a0c90===null||_0x2a0c90===void 0x0?void 0x0:_0x2a0c90[_0xaa3ba5])for(const _0x5189cc in _0x2a0c90[_0xaa3ba5]){if(typeof((_0x5571b7=(_0x2abd4f=_0x2a0c90[_0xaa3ba5])===null||_0x2abd4f===void 0x0?void 0x0:_0x2abd4f[_0x5189cc])===null||_0x5571b7===void 0x0?void 0x0:_0x5571b7[_0x285c82(0x159)])===_0x285c82(0x14c))continue;if(typeof((_0x7537fa=(_0x3e6778=_0x2a0c90[_0xaa3ba5])===null||_0x3e6778===void 0x0?void 0x0:_0x3e6778[_0x5189cc])===null||_0x7537fa===void 0x0?void 0x0:_0x7537fa[_0x285c82(0x153)])===_0x285c82(0x14c))continue;_0x58b339[_0x285c82(0x161)]({'label':_0x2a0c90[_0xaa3ba5][_0x5189cc][_0x285c82(0x159)],'value':_0x2a0c90[_0xaa3ba5][_0x5189cc][_0x285c82(0x153)]});}return _0x58b339;}exports[a2_0x92004b(0x14a)]=getAnnEnumList;function getAnnEnumArray(_0x5a40df,_0x23a302,_0x489272=[]){const _0x2b905c=a2_0x92004b;var _0x42c0b8,_0x85fd73,_0x27eaab,_0x3ab3af;const _0x3ae96e=[],_0x560360=(0x0,core_1[_0x2b905c(0x15b)])(ANN_ENUM,_0x5a40df)||{};if(_0x560360===null||_0x560360===void 0x0?void 0x0:_0x560360[_0x23a302])for(const _0x573114 in _0x560360[_0x23a302]){if(typeof((_0x85fd73=(_0x42c0b8=_0x560360[_0x23a302])===null||_0x42c0b8===void 0x0?void 0x0:_0x42c0b8[_0x573114])===null||_0x85fd73===void 0x0?void 0x0:_0x85fd73[_0x2b905c(0x159)])===_0x2b905c(0x14c))continue;if(typeof((_0x3ab3af=(_0x27eaab=_0x560360[_0x23a302])===null||_0x27eaab===void 0x0?void 0x0:_0x27eaab[_0x573114])===null||_0x3ab3af===void 0x0?void 0x0:_0x3ab3af[_0x2b905c(0x153)])===_0x2b905c(0x14c))continue;_0x489272[_0x2b905c(0x14e)](_0x560360[_0x23a302][_0x573114][_0x2b905c(0x153)])==-0x1&&_0x3ae96e[_0x2b905c(0x161)](_0x560360[_0x23a302][_0x573114][_0x2b905c(0x153)]);}return _0x3ae96e;}exports['getAnnEnumArray']=getAnnEnumArray;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x428217=a3_0x2a73;(function(_0x2c7dac,_0x215bb9){const _0x2ae0e5=a3_0x2a73,_0x232a46=_0x2c7dac();while(!![]){try{const _0x372365=-parseInt(_0x2ae0e5(0xe7))/0x1*(parseInt(_0x2ae0e5(0xf9))/0x2)+-parseInt(_0x2ae0e5(0xf3))/0x3+-parseInt(_0x2ae0e5(0xef))/0x4+parseInt(_0x2ae0e5(0xe8))/0x5*(parseInt(_0x2ae0e5(0xe5))/0x6)+-parseInt(_0x2ae0e5(0xf0))/0x7*(parseInt(_0x2ae0e5(0xe9))/0x8)+parseInt(_0x2ae0e5(0xf4))/0x9+parseInt(_0x2ae0e5(0xea))/0xa*(parseInt(_0x2ae0e5(0xee))/0xb);if(_0x372365===_0x215bb9)break;else _0x232a46['push'](_0x232a46['shift']());}catch(_0x2c4350){_0x232a46['push'](_0x232a46['shift']());}}}(a3_0x5248,0x4aad2));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a3_0x428217(0xec)]=exports[a3_0x428217(0xf7)]=exports['getAnnErrorMsg']=void 0x0;const AnnErrorObj={};function getAnnErrorMsg(_0x683ee3){const _0x5b8512=a3_0x428217;var _0x32b159,_0x5021b0;if(typeof((_0x32b159=AnnErrorObj===null||AnnErrorObj===void 0x0?void 0x0:AnnErrorObj[_0x683ee3])===null||_0x32b159===void 0x0?void 0x0:_0x32b159[_0x5b8512(0xf6)])===_0x5b8512(0xf1))throw new Error(_0x5b8512(0xf2)+_0x683ee3+_0x5b8512(0xeb));return((_0x5021b0=AnnErrorObj[_0x683ee3])===null||_0x5021b0===void 0x0?void 0x0:_0x5021b0['message'])||undefined;}exports[a3_0x428217(0xf5)]=getAnnErrorMsg;function getAnnErrorList(){return AnnErrorObj;}exports[a3_0x428217(0xf7)]=getAnnErrorList;function AnnErrorMsg(_0x16a1d4){return(_0x491e0c,_0x48829b)=>{const _0x39b4ba=a3_0x2a73,_0x161a8a=_0x491e0c===null||_0x491e0c===void 0x0?void 0x0:_0x491e0c[_0x48829b];if(typeof _0x161a8a==='undefined'||_0x161a8a===null)throw new Error(((_0x491e0c===null||_0x491e0c===void 0x0?void 0x0:_0x491e0c[_0x39b4ba(0xed)])||_0x491e0c)+'\x20Property('+_0x48829b+_0x39b4ba(0xe6)+_0x48829b+_0x39b4ba(0xf8));if(typeof(AnnErrorObj===null||AnnErrorObj===void 0x0?void 0x0:AnnErrorObj[_0x161a8a])!==_0x39b4ba(0xf1))throw new Error('AnnErrorMsg:\x20'+_0x16a1d4+'('+_0x161a8a+')\x20is\x20duplicated,please\x20check\x20before\x20adding');AnnErrorObj[_0x161a8a]={'code':_0x161a8a,'message':_0x16a1d4};};}function a3_0x2a73(_0x921912,_0x29b221){const _0x524850=a3_0x5248();return a3_0x2a73=function(_0x2a7336,_0x415632){_0x2a7336=_0x2a7336-0xe5;let _0x581274=_0x524850[_0x2a7336];return _0x581274;},a3_0x2a73(_0x921912,_0x29b221);}function a3_0x5248(){const _0x627aac=['2wCTQQw','1494090jJyUZc',')must\x20be\x20\x27static\x20readonly\x20','594257HamghU','5DYkslu','1832uOrppc','15138730nfnVsS','\x20is\x20not\x20duplicated','AnnErrorMsg','name','11viqENk','1040756qecXxp','16597mFsHpI','undefined','AnnErrorMsg:\x20','1226130UPWHXt','3141909mBUxWc','getAnnErrorMsg','message','getAnnErrorList','\x20=\x20number;'];a3_0x5248=function(){return _0x627aac;};return a3_0x5248();}exports['AnnErrorMsg']=AnnErrorMsg;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x1c1126=a4_0x378f;(function(_0x2c6db3,_0x10ba81){var _0x4a61f1=a4_0x378f,_0x19ba81=_0x2c6db3();while(!![]){try{var _0x1c967c=parseInt(_0x4a61f1(0x75))/0x1*(parseInt(_0x4a61f1(0x86))/0x2)+parseInt(_0x4a61f1(0x88))/0x3*(-parseInt(_0x4a61f1(0x77))/0x4)+parseInt(_0x4a61f1(0x7b))/0x5+parseInt(_0x4a61f1(0x89))/0x6*(parseInt(_0x4a61f1(0x95))/0x7)+-parseInt(_0x4a61f1(0x96))/0x8*(-parseInt(_0x4a61f1(0x8a))/0x9)+parseInt(_0x4a61f1(0x7c))/0xa*(parseInt(_0x4a61f1(0x7d))/0xb)+-parseInt(_0x4a61f1(0x87))/0xc;if(_0x1c967c===_0x10ba81)break;else _0x19ba81['push'](_0x19ba81['shift']());}catch(_0x1cd85a){_0x19ba81['push'](_0x19ba81['shift']());}}}(a4_0x504e,0x8eb73));var __decorate=this&&this['__decorate']||function(_0xd2dbe5,_0x323e5a,_0x2d8e29,_0x49a6ed){var _0x44ab48=a4_0x378f,_0x11622d=arguments[_0x44ab48(0x7f)],_0x156bf9=_0x11622d<0x3?_0x323e5a:_0x49a6ed===null?_0x49a6ed=Object[_0x44ab48(0x76)](_0x323e5a,_0x2d8e29):_0x49a6ed,_0x5cbb93;if(typeof Reflect===_0x44ab48(0x8d)&&typeof Reflect[_0x44ab48(0x8e)]==='function')_0x156bf9=Reflect[_0x44ab48(0x8e)](_0xd2dbe5,_0x323e5a,_0x2d8e29,_0x49a6ed);else{for(var _0x2d44c8=_0xd2dbe5['length']-0x1;_0x2d44c8>=0x0;_0x2d44c8--)if(_0x5cbb93=_0xd2dbe5[_0x2d44c8])_0x156bf9=(_0x11622d<0x3?_0x5cbb93(_0x156bf9):_0x11622d>0x3?_0x5cbb93(_0x323e5a,_0x2d8e29,_0x156bf9):_0x5cbb93(_0x323e5a,_0x2d8e29))||_0x156bf9;}return _0x11622d>0x3&&_0x156bf9&&Object[_0x44ab48(0x7a)](_0x323e5a,_0x2d8e29,_0x156bf9),_0x156bf9;},__metadata=this&&this[a4_0x1c1126(0x82)]||function(_0x545fe1,_0x458800){var _0x1d0770=a4_0x1c1126;if(typeof Reflect===_0x1d0770(0x8d)&&typeof Reflect[_0x1d0770(0x94)]==='function')return Reflect[_0x1d0770(0x94)](_0x545fe1,_0x458800);};Object['defineProperty'](exports,a4_0x1c1126(0x93),{'value':!![]}),exports['AnnError']=void 0x0;function a4_0x378f(_0x1a9d30,_0xe90817){var _0x504ee7=a4_0x504e();return a4_0x378f=function(_0x378f19,_0x4aa4f0){_0x378f19=_0x378f19-0x75;var _0x3e2909=_0x504ee7[_0x378f19];return _0x3e2909;},a4_0x378f(_0x1a9d30,_0xe90817);}const AnnErrorMsg_1=require('../decorator/AnnErrorMsg');function a4_0x504e(){var _0x58eb81=['UNKNOW','NOLOGIN','__esModule','metadata','112133NJNDBV','8kxaEbP','不存在对应数据','435608CqZlRb','getOwnPropertyDescriptor','24132zslQRN','没有权限执行该操作','参数错误','defineProperty','1950550LhGDQk','10XXdCln','141746ybmJwW','design:type','length','name','AnnErrorMsg','__metadata','code','未知错误','PARAMS','2VSEpzJ','16383540lvmaDu','21MFHrYR','312weRFNn','2884473khcVbZ','AnnError','response','object','decorate','NOFIND','NOAUTH'];a4_0x504e=function(){return _0x58eb81;};return a4_0x504e();}class AnnError extends Error{constructor(_0xb77ad2,_0x610a83){var _0x986a15=a4_0x1c1126;super((0x0,AnnErrorMsg_1['getAnnErrorMsg'])(_0xb77ad2)),this[_0x986a15(0x80)]=this['constructor'][_0x986a15(0x80)],(this[_0x986a15(0x83)]=_0xb77ad2,this[_0x986a15(0x8c)]={'code':this[_0x986a15(0x83)],..._0x610a83||{}});}}AnnError['OK']=0x0,AnnError[a4_0x1c1126(0x91)]=0x4c4b40,AnnError[a4_0x1c1126(0x85)]=0x3df360,AnnError[a4_0x1c1126(0x8f)]=0x3da540,AnnError[a4_0x1c1126(0x92)]=0x3d3010,AnnError[a4_0x1c1126(0x90)]=0x3d7e30,__decorate([(0x0,AnnErrorMsg_1['AnnErrorMsg'])('成功'),__metadata(a4_0x1c1126(0x7e),Object)],AnnError,'OK',void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x1c1126(0x81)])(a4_0x1c1126(0x84)),__metadata(a4_0x1c1126(0x7e),Object)],AnnError,a4_0x1c1126(0x91),void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x1c1126(0x81)])(a4_0x1c1126(0x79)),__metadata(a4_0x1c1126(0x7e),Object)],AnnError,a4_0x1c1126(0x85),void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x1c1126(0x81)])(a4_0x1c1126(0x97)),__metadata(a4_0x1c1126(0x7e),Object)],AnnError,a4_0x1c1126(0x8f),void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x1c1126(0x81)])('请登录后重试'),__metadata('design:type',Object)],AnnError,a4_0x1c1126(0x92),void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x1c1126(0x81)])(a4_0x1c1126(0x78)),__metadata(a4_0x1c1126(0x7e),Object)],AnnError,a4_0x1c1126(0x90),void 0x0),exports[a4_0x1c1126(0x8b)]=AnnError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x102b0c=a5_0x4b43;(function(_0x47adeb,_0x44c591){const _0x59dc28=a5_0x4b43,_0x4510c6=_0x47adeb();while(!![]){try{const _0x2e9ced=parseInt(_0x59dc28(0xf8))/0x1*(-parseInt(_0x59dc28(0x101))/0x2)+-parseInt(_0x59dc28(0xf0))/0x3*(parseInt(_0x59dc28(0xfb))/0x4)+parseInt(_0x59dc28(0xf6))/0x5*(parseInt(_0x59dc28(0xf2))/0x6)+parseInt(_0x59dc28(0xf7))/0x7*(-parseInt(_0x59dc28(0x100))/0x8)+-parseInt(_0x59dc28(0xef))/0x9*(-parseInt(_0x59dc28(0xf5))/0xa)+-parseInt(_0x59dc28(0xf1))/0xb+-parseInt(_0x59dc28(0xf9))/0xc*(-parseInt(_0x59dc28(0xfa))/0xd);if(_0x2e9ced===_0x44c591)break;else _0x4510c6['push'](_0x4510c6['shift']());}catch(_0xe5b4ed){_0x4510c6['push'](_0x4510c6['shift']());}}}(a5_0x5db4,0x8f649));Object[a5_0x102b0c(0xff)](exports,a5_0x102b0c(0xfd),{'value':!![]}),exports[a5_0x102b0c(0xee)]=void 0x0;function a5_0x5db4(){const _0x50858f=['24teVLeu','AnnError','name','50rvuLDr','839215XEkmkB','7464954zkwAdS','29QUxeIZ','149892UXLLbO','2353bYkqmX','3636fCztoh','render','__esModule','./AnnError','defineProperty','8kyDSto','78622jcZbGK','\x20is\x20not\x20is\x20not\x20duplicated\x20function\x20render','AnnErrorRender','517329CaKSna','63HjhoOr','4474591QZZpHT'];a5_0x5db4=function(){return _0x50858f;};return a5_0x5db4();}function a5_0x4b43(_0x3419bb,_0x22547e){const _0x5db4aa=a5_0x5db4();return a5_0x4b43=function(_0x4b4317,_0x31c65a){_0x4b4317=_0x4b4317-0xed;let _0x195d04=_0x5db4aa[_0x4b4317];return _0x195d04;},a5_0x4b43(_0x3419bb,_0x22547e);}const AnnError_1=require(a5_0x102b0c(0xfe));class AnnErrorRender extends AnnError_1[a5_0x102b0c(0xf3)]{constructor(_0x2873ef,_0x1f9f83){super(_0x2873ef,_0x1f9f83);}async[a5_0x102b0c(0xfc)](_0x49a17f,_0xeab5b1){const _0x3d2898=a5_0x102b0c;throw this[_0x3d2898(0xf4)]+_0x3d2898(0xed);}}exports[a5_0x102b0c(0xee)]=AnnErrorRender;
|
package/dist/helper/common.d.ts
CHANGED
|
@@ -2,3 +2,5 @@ import * as cryptojs from "crypto-js";
|
|
|
2
2
|
export declare function md5(message: string | cryptojs.lib.WordArray, cfg?: object): string;
|
|
3
3
|
export declare function base64_encode(encodestr: string): string;
|
|
4
4
|
export declare function base64_decode(decodestr: string): string;
|
|
5
|
+
export declare function AES128_encode(secret: string, content: string): string;
|
|
6
|
+
export declare function AES128_decode(secret: string, encryptStr: string): string;
|
package/dist/helper/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a6_0x396f0f=a6_0x3df0;(function(_0x3a57c3,_0x3ab04f){const _0x4c8688=a6_0x3df0,_0x58af61=_0x3a57c3();while(!![]){try{const _0x28b9ae=parseInt(_0x4c8688(0x114))/0x1+-parseInt(_0x4c8688(0x10d))/0x2+-parseInt(_0x4c8688(0x116))/0x3+-parseInt(_0x4c8688(0x10e))/0x4+-parseInt(_0x4c8688(0x110))/0x5*(parseInt(_0x4c8688(0x128))/0x6)+-parseInt(_0x4c8688(0x113))/0x7+parseInt(_0x4c8688(0x112))/0x8;if(_0x28b9ae===_0x3ab04f)break;else _0x58af61['push'](_0x58af61['shift']());}catch(_0x199254){_0x58af61['push'](_0x58af61['shift']());}}}(a6_0x5d8d,0x5c173));Object[a6_0x396f0f(0x11a)](exports,a6_0x396f0f(0x119),{'value':!![]}),exports[a6_0x396f0f(0x115)]=exports[a6_0x396f0f(0x120)]=exports['base64_decode']=exports[a6_0x396f0f(0x126)]=exports['md5']=void 0x0;const cryptojs=require(a6_0x396f0f(0x10f));function md5(_0x120a8e,_0x408931){const _0xc59a4c=a6_0x396f0f;return cryptojs[_0xc59a4c(0x11e)](_0x120a8e,_0x408931)[_0xc59a4c(0x124)]();}function a6_0x5d8d(){const _0x32c8a1=['AES','__esModule','defineProperty','md5','stringify','decrypt','MD5','base64_decode','AES128_encode','mode','pad','parse','toString','Base64','base64_encode','ECB','6VtUtLc','enc','1207794cTwjnp','1383172ubvIlk','crypto-js','747590tdbDqE','Utf8','16519400LErcCn','2676506OHnkwe','434057HgsDMc','AES128_decode','1920639sBjGkP','Pkcs7'];a6_0x5d8d=function(){return _0x32c8a1;};return a6_0x5d8d();}exports[a6_0x396f0f(0x11b)]=md5;function base64_encode(_0x59da12){const _0x51aa43=a6_0x396f0f;return cryptojs[_0x51aa43(0x10c)][_0x51aa43(0x125)][_0x51aa43(0x11c)](cryptojs[_0x51aa43(0x10c)]['Utf8']['parse'](_0x59da12));}exports['base64_encode']=base64_encode;function base64_decode(_0x2c305d){const _0x36ba3e=a6_0x396f0f;return cryptojs['enc'][_0x36ba3e(0x125)][_0x36ba3e(0x123)](_0x2c305d)[_0x36ba3e(0x124)](cryptojs[_0x36ba3e(0x10c)][_0x36ba3e(0x111)]);}exports[a6_0x396f0f(0x11f)]=base64_decode;function AES128_encode(_0x57bc7a,_0x2bb942){const _0x3965ae=a6_0x396f0f;return cryptojs[_0x3965ae(0x118)]['encrypt'](cryptojs['enc'][_0x3965ae(0x111)][_0x3965ae(0x123)](_0x2bb942),cryptojs[_0x3965ae(0x10c)][_0x3965ae(0x111)][_0x3965ae(0x123)](_0x57bc7a),{'mode':cryptojs[_0x3965ae(0x121)][_0x3965ae(0x127)],'padding':cryptojs['pad'][_0x3965ae(0x117)]})['toString']();}exports['AES128_encode']=AES128_encode;function a6_0x3df0(_0x2cb934,_0x41edfe){const _0x5d8d51=a6_0x5d8d();return a6_0x3df0=function(_0x3df001,_0xa4307f){_0x3df001=_0x3df001-0x10c;let _0xb7347e=_0x5d8d51[_0x3df001];return _0xb7347e;},a6_0x3df0(_0x2cb934,_0x41edfe);}function AES128_decode(_0x540732,_0x63632e){const _0x70e7ab=a6_0x396f0f;return cryptojs[_0x70e7ab(0x10c)][_0x70e7ab(0x111)][_0x70e7ab(0x11c)](cryptojs[_0x70e7ab(0x118)][_0x70e7ab(0x11d)](_0x63632e,cryptojs['enc'][_0x70e7ab(0x111)][_0x70e7ab(0x123)](_0x540732),{'mode':cryptojs[_0x70e7ab(0x121)][_0x70e7ab(0x127)],'padding':cryptojs[_0x70e7ab(0x122)][_0x70e7ab(0x117)]}))['toString']();}exports[a6_0x396f0f(0x115)]=AES128_decode;
|
package/dist/helper/fileMd5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a7_0x3b41(){const _0x4bbc3e=['__esModule','6xCddEZ','error','5249804xYxwln','6262820UkqDAc','createHash','digest','bind','242mQJmuC','60845nlWVOQ','3JYRlio','1322612eteWhe','1185708UYhanH','end','crypto','hex','4GePIhF','createReadStream','9EPQuGy','2790584OBaeSL','fileMd5','197605vMMmlN','\x20is\x20not\x20file','isFile'];a7_0x3b41=function(){return _0x4bbc3e;};return a7_0x3b41();}const a7_0x518866=a7_0x5d7b;(function(_0x143a66,_0xc9ecb1){const _0x55df30=a7_0x5d7b,_0x18d00a=_0x143a66();while(!![]){try{const _0x515b41=parseInt(_0x55df30(0x1b9))/0x1+-parseInt(_0x55df30(0x1c7))/0x2*(-parseInt(_0x55df30(0x1c6))/0x3)+parseInt(_0x55df30(0x1cc))/0x4*(parseInt(_0x55df30(0x1c5))/0x5)+parseInt(_0x55df30(0x1bd))/0x6*(parseInt(_0x55df30(0x1bf))/0x7)+parseInt(_0x55df30(0x1b7))/0x8+-parseInt(_0x55df30(0x1b6))/0x9*(-parseInt(_0x55df30(0x1c0))/0xa)+parseInt(_0x55df30(0x1c4))/0xb*(-parseInt(_0x55df30(0x1c8))/0xc);if(_0x515b41===_0xc9ecb1)break;else _0x18d00a['push'](_0x18d00a['shift']());}catch(_0x17cffb){_0x18d00a['push'](_0x18d00a['shift']());}}}(a7_0x3b41,0x671d7));Object['defineProperty'](exports,a7_0x518866(0x1bc),{'value':!![]}),exports[a7_0x518866(0x1b8)]=void 0x0;const fs=require('fs'),crypto=require(a7_0x518866(0x1ca));function fileMd5(_0x2ef784){return new Promise((_0x441055,_0x55ef87)=>{fs['stat'](_0x2ef784,(_0x5b3d88,_0x203c6c)=>{const _0x3a95f3=a7_0x5d7b;if(_0x5b3d88)return _0x55ef87(_0x5b3d88);if(!_0x203c6c[_0x3a95f3(0x1bb)]())return _0x55ef87(new Error(_0x2ef784+_0x3a95f3(0x1ba)));const _0x1e29dd=crypto[_0x3a95f3(0x1c1)]('md5'),_0x115556=fs[_0x3a95f3(0x1b5)](_0x2ef784);_0x115556['on']('data',_0x1e29dd['update'][_0x3a95f3(0x1c3)](_0x1e29dd)),_0x115556['on'](_0x3a95f3(0x1be),_0x33b89a=>_0x55ef87(_0x33b89a)),_0x115556['on'](_0x3a95f3(0x1c9),()=>_0x441055(_0x1e29dd[_0x3a95f3(0x1c2)](_0x3a95f3(0x1cb))));});});}function a7_0x5d7b(_0xd696d9,_0x16bf7e){const _0x3b41c6=a7_0x3b41();return a7_0x5d7b=function(_0x5d7bf8,_0x5afd82){_0x5d7bf8=_0x5d7bf8-0x1b5;let _0x273876=_0x3b41c6[_0x5d7bf8];return _0x273876;},a7_0x5d7b(_0xd696d9,_0x16bf7e);}exports[a7_0x518866(0x1b8)]=fileMd5;
|
package/dist/helper/globDir.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a8_0x9cac2b=a8_0x8c9c;(function(_0x3b3501,_0xcc1678){const _0x49b320=a8_0x8c9c,_0xcfece3=_0x3b3501();while(!![]){try{const _0x399462=-parseInt(_0x49b320(0x114))/0x1+parseInt(_0x49b320(0x11b))/0x2+-parseInt(_0x49b320(0x118))/0x3+parseInt(_0x49b320(0x10c))/0x4+parseInt(_0x49b320(0x11f))/0x5+-parseInt(_0x49b320(0x115))/0x6*(parseInt(_0x49b320(0x107))/0x7)+parseInt(_0x49b320(0x109))/0x8*(parseInt(_0x49b320(0x10b))/0x9);if(_0x399462===_0xcc1678)break;else _0xcfece3['push'](_0xcfece3['shift']());}catch(_0x1732e3){_0xcfece3['push'](_0xcfece3['shift']());}}}(a8_0x1492,0xcbbd4));Object[a8_0x9cac2b(0x111)](exports,a8_0x9cac2b(0x121),{'value':!![]}),exports['globDir']=void 0x0;function a8_0x8c9c(_0x4e611e,_0x489c83){const _0x14924f=a8_0x1492();return a8_0x8c9c=function(_0x8c9c98,_0x37a37f){_0x8c9c98=_0x8c9c98-0x107;let _0x38c3bc=_0x14924f[_0x8c9c98];return _0x38c3bc;},a8_0x8c9c(_0x4e611e,_0x489c83);}const fs=require('fs'),path=require(a8_0x9cac2b(0x10d));class RequireContext{constructor(_0x149dbc,_0x23078d,_0x29cc5a){const _0x7afa37=a8_0x9cac2b;this['modules']=[],this[_0x7afa37(0x112)]=_0x29cc5a,this[_0x7afa37(0x11a)]=!!_0x23078d,this['directory']=this['__findDirectory'](_0x149dbc),this['__findModules'](this['directory']);}['__findDirectory'](_0x41fe8e){const _0x3b0b9e=a8_0x9cac2b;if(path[_0x3b0b9e(0x120)](_0x41fe8e)||!module['parent'])return _0x41fe8e;return path[_0x3b0b9e(0x116)](path['join'](path['parse'](module[_0x3b0b9e(0x10e)][_0x3b0b9e(0x117)])[_0x3b0b9e(0x113)],_0x41fe8e));}[a8_0x9cac2b(0x108)](_0x46bd97){const _0x23db6e=a8_0x9cac2b;if(fs['existsSync'](_0x46bd97))fs['readdirSync'](_0x46bd97)['forEach'](_0x5a1f1b=>{const _0x105c71=a8_0x8c9c,_0x28a597=path['resolve'](_0x46bd97,_0x5a1f1b);if(fs[_0x105c71(0x11d)](_0x28a597)[_0x105c71(0x110)]()){if(this['useSubdirectories']){this[_0x105c71(0x108)](_0x28a597);return;}}else{if(this['regExp']&&!this[_0x105c71(0x112)]['test'](_0x28a597))return;this[_0x105c71(0x119)]['push'](_0x28a597);}});else throw new Error(_0x23db6e(0x10a)+_0x46bd97);}}function a8_0x1492(){const _0x396986=['statSync','keys','1541085BUfVCb','isAbsolute','__esModule','1288539OQrdsY','__findModules','9080nyXCbM','Can\x27t\x20Found\x20Module\x20','15156ITwant','1464048SGGZUm','path','parent','readFileSync','isDirectory','defineProperty','regExp','dir','1385038ePRtDn','36cSdQgU','normalize','filename','1766511UJdecR','modules','useSubdirectories','2654568jsXgwk','globDir'];a8_0x1492=function(){return _0x396986;};return a8_0x1492();}function globDir(_0x33ea57='.',_0x5f3f1c=![],_0x1c9900=/(?:)/,_0x32dbc0){const _0x5dd42b=a8_0x9cac2b,_0x588047=new RequireContext(_0x33ea57,_0x5f3f1c,_0x1c9900);if(_0x32dbc0){const _0x5a011e=_0xc666df=>fs[_0x5dd42b(0x10f)](_0xc666df,_0x32dbc0);return _0x5a011e[_0x5dd42b(0x11e)]=()=>[..._0x588047[_0x5dd42b(0x119)]],_0x5a011e;}else{const _0x49fda4=_0x39f144=>require(_0x39f144);return _0x49fda4['keys']=()=>[..._0x588047['modules']],_0x49fda4;}}exports[a8_0x9cac2b(0x11c)]=globDir;
|
package/dist/helper/include.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a9_0x93c1(){const _0x102789=['1621071XwOOJc','1568682dpuPdr','2004EMzPKG','12iJuhdw','defaultsDeep','29968praRSD','30vmgQOu','481980LCfUvq','136362EVAfTe','644BdSiaE','3650aCJwPs','__esModule','default','get','15467496pJZvzX','defineProperty','include'];a9_0x93c1=function(){return _0x102789;};return a9_0x93c1();}const a9_0x5e1bde=a9_0x30c4;function a9_0x30c4(_0x35840d,_0x252c7c){const _0x93c19=a9_0x93c1();return a9_0x30c4=function(_0x30c4e2,_0x48769b){_0x30c4e2=_0x30c4e2-0x125;let _0x220b3f=_0x93c19[_0x30c4e2];return _0x220b3f;},a9_0x30c4(_0x35840d,_0x252c7c);}(function(_0x922c5f,_0x473f44){const _0x48fac1=a9_0x30c4,_0x1e9e24=_0x922c5f();while(!![]){try{const _0x64ead9=-parseInt(_0x48fac1(0x127))/0x1+-parseInt(_0x48fac1(0x134))/0x2*(parseInt(_0x48fac1(0x128))/0x3)+-parseInt(_0x48fac1(0x133))/0x4*(parseInt(_0x48fac1(0x12a))/0x5)+parseInt(_0x48fac1(0x132))/0x6+-parseInt(_0x48fac1(0x129))/0x7*(-parseInt(_0x48fac1(0x125))/0x8)+-parseInt(_0x48fac1(0x131))/0x9*(parseInt(_0x48fac1(0x126))/0xa)+parseInt(_0x48fac1(0x12e))/0xb;if(_0x64ead9===_0x473f44)break;else _0x1e9e24['push'](_0x1e9e24['shift']());}catch(_0x2bfa66){_0x1e9e24['push'](_0x1e9e24['shift']());}}}(a9_0x93c1,0x55cc0));Object[a9_0x5e1bde(0x12f)](exports,a9_0x5e1bde(0x12b),{'value':!![]}),exports[a9_0x5e1bde(0x130)]=void 0x0;const jiti=require('jiti'),lodash_1=require('lodash');function include(_0x55331a){const _0x1289f1=a9_0x5e1bde,_0x15af09={},_0x50e27f=jiti()(_0x55331a);for(let _0xae04f in _0x50e27f){_0xae04f!=_0x1289f1(0x12c)&&(0x0,lodash_1[_0x1289f1(0x135)])(_0x15af09,{[_0xae04f]:_0x50e27f[_0xae04f]});}return(0x0,lodash_1['defaultsDeep'])(_0x15af09,(0x0,lodash_1[_0x1289f1(0x12d)])(_0x50e27f,_0x1289f1(0x12c),{}));}exports[a9_0x5e1bde(0x130)]=include;
|
package/dist/helper/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(_0x38ca01,_0x540cd4){var _0x29f719=a10_0x4fbb,_0x3137a5=_0x38ca01();while(!![]){try{var _0x5581ee=parseInt(_0x29f719(0x9a))/0x1+parseInt(_0x29f719(0xa2))/0x2+-parseInt(_0x29f719(0xa1))/0x3*(-parseInt(_0x29f719(0xa3))/0x4)+parseInt(_0x29f719(0x99))/0x5*(parseInt(_0x29f719(0x9e))/0x6)+-parseInt(_0x29f719(0x9f))/0x7+-parseInt(_0x29f719(0x9b))/0x8*(parseInt(_0x29f719(0x9c))/0x9)+parseInt(_0x29f719(0xa0))/0xa*(-parseInt(_0x29f719(0x9d))/0xb);if(_0x5581ee===_0x540cd4)break;else _0x3137a5['push'](_0x3137a5['shift']());}catch(_0x111b99){_0x3137a5['push'](_0x3137a5['shift']());}}}(a10_0xbc9a,0x70352));function a10_0x4fbb(_0x4f1c98,_0x211edf){var _0xbc9ac7=a10_0xbc9a();return a10_0x4fbb=function(_0x4fbbce,_0x1011ea){_0x4fbbce=_0x4fbbce-0x99;var _0x3da6e1=_0xbc9ac7[_0x4fbbce];return _0x3da6e1;},a10_0x4fbb(_0x4f1c98,_0x211edf);}function a10_0xbc9a(){var _0x578169=['45412DDgywX','194095rwKPuo','611528jwksnu','32frMenW','1137609aqevAf','15103JgLytr','78npoynd','3231102NTvHmn','7270YTmGNW','174npIGSI','1300628UdnGIZ'];a10_0xbc9a=function(){return _0x578169;};return a10_0xbc9a();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['sleep']=void 0x0;function sleep(_0x1e212f=0xc8){return new Promise(_0x19b358=>setTimeout(_0x19b358,_0x1e212f));}exports['sleep']=sleep;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,9 +9,9 @@ import { include } from './helper/include';
|
|
|
9
9
|
import { globDir } from './helper/globDir';
|
|
10
10
|
import { fileMd5 } from './helper/fileMd5';
|
|
11
11
|
import { AnnError } from './exception/AnnError';
|
|
12
|
-
import { md5, base64_encode, base64_decode } from './helper/common';
|
|
12
|
+
import { md5, base64_encode, base64_decode, AES128_encode, AES128_decode } from './helper/common';
|
|
13
13
|
import { AnnErrorRender } from './exception/AnnErrorRender';
|
|
14
14
|
import { AnnErrorMsg, getAnnErrorMsg, getAnnErrorList } from './decorator/AnnErrorMsg';
|
|
15
15
|
import { AnnEnumMsg, getAnnEnumMsg, getAnnEnumMap, getAnnEnumList, getAnnEnumArray } from './decorator/AnnEnumMsg';
|
|
16
16
|
export { CustomConfiguration as Configuration } from './configuration';
|
|
17
|
-
export { urllib, fsplus, mathjs, lodash, md5, dayjs, sleep, collect, include, globDir, fileMd5, base64_encode, base64_decode, AnnEnumMsg, getAnnEnumMsg, getAnnEnumMap, getAnnEnumList, getAnnEnumArray, AnnErrorMsg, getAnnErrorMsg, getAnnErrorList, AnnError, AnnErrorRender, };
|
|
17
|
+
export { urllib, fsplus, mathjs, lodash, md5, dayjs, sleep, collect, include, globDir, fileMd5, base64_encode, base64_decode, AES128_encode, AES128_decode, AnnEnumMsg, getAnnEnumMsg, getAnnEnumMap, getAnnEnumList, getAnnEnumArray, AnnErrorMsg, getAnnErrorMsg, getAnnErrorList, AnnError, AnnErrorRender, };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x5e16a6=a11_0x2319;(function(_0x4dcb1d,_0x11ad39){const _0x26c572=a11_0x2319,_0xa4f140=_0x4dcb1d();while(!![]){try{const _0xc93a7=parseInt(_0x26c572(0x192))/0x1*(-parseInt(_0x26c572(0x18e))/0x2)+-parseInt(_0x26c572(0x195))/0x3+parseInt(_0x26c572(0x199))/0x4+parseInt(_0x26c572(0x18d))/0x5+parseInt(_0x26c572(0x181))/0x6*(-parseInt(_0x26c572(0x18a))/0x7)+-parseInt(_0x26c572(0x190))/0x8*(-parseInt(_0x26c572(0x197))/0x9)+parseInt(_0x26c572(0x185))/0xa;if(_0xc93a7===_0x11ad39)break;else _0xa4f140['push'](_0xa4f140['shift']());}catch(_0x1df881){_0xa4f140['push'](_0xa4f140['shift']());}}}(a11_0x4ba6,0xd52a5));Object[a11_0x5e16a6(0x179)](exports,a11_0x5e16a6(0x19e),{'value':!![]}),exports[a11_0x5e16a6(0x17f)]=exports['AnnError']=exports[a11_0x5e16a6(0x196)]=exports[a11_0x5e16a6(0x17d)]=exports[a11_0x5e16a6(0x17c)]=exports[a11_0x5e16a6(0x180)]=exports[a11_0x5e16a6(0x183)]=exports[a11_0x5e16a6(0x175)]=exports[a11_0x5e16a6(0x18b)]=exports[a11_0x5e16a6(0x187)]=exports['AES128_decode']=exports[a11_0x5e16a6(0x19d)]=exports[a11_0x5e16a6(0x17b)]=exports['base64_encode']=exports[a11_0x5e16a6(0x19b)]=exports[a11_0x5e16a6(0x193)]=exports['include']=exports[a11_0x5e16a6(0x19a)]=exports[a11_0x5e16a6(0x17e)]=exports[a11_0x5e16a6(0x182)]=exports[a11_0x5e16a6(0x184)]=exports['lodash']=exports['mathjs']=exports[a11_0x5e16a6(0x173)]=exports[a11_0x5e16a6(0x191)]=exports[a11_0x5e16a6(0x18f)]=void 0x0;const dayjs=require(a11_0x5e16a6(0x182));exports[a11_0x5e16a6(0x182)]=dayjs;const urllib=require(a11_0x5e16a6(0x191));exports[a11_0x5e16a6(0x191)]=urllib;const mathjs=require('mathjs');exports[a11_0x5e16a6(0x19c)]=mathjs;const lodash=require(a11_0x5e16a6(0x198));exports['lodash']=lodash;const fsplus=require(a11_0x5e16a6(0x188));exports[a11_0x5e16a6(0x173)]=fsplus;const collect_js_1=require('collect.js');function a11_0x2319(_0x3a3fe4,_0x243b92){const _0x4ba6ce=a11_0x4ba6();return a11_0x2319=function(_0x231946,_0xd0fa8c){_0x231946=_0x231946-0x172;let _0x3a33f3=_0x4ba6ce[_0x231946];return _0x3a33f3;},a11_0x2319(_0x3a3fe4,_0x243b92);}Object[a11_0x5e16a6(0x179)](exports,'collect',{'enumerable':!![],'get':function(){const _0x5c5b7b=a11_0x5e16a6;return collect_js_1[_0x5c5b7b(0x19a)];}});const sleep_1=require('./helper/sleep');Object[a11_0x5e16a6(0x179)](exports,a11_0x5e16a6(0x17e),{'enumerable':!![],'get':function(){return sleep_1['sleep'];}});const include_1=require(a11_0x5e16a6(0x189));Object[a11_0x5e16a6(0x179)](exports,'include',{'enumerable':!![],'get':function(){const _0x23a797=a11_0x5e16a6;return include_1[_0x23a797(0x176)];}});const globDir_1=require(a11_0x5e16a6(0x186));Object[a11_0x5e16a6(0x179)](exports,'globDir',{'enumerable':!![],'get':function(){const _0x1085c9=a11_0x5e16a6;return globDir_1[_0x1085c9(0x193)];}});const fileMd5_1=require(a11_0x5e16a6(0x177));Object['defineProperty'](exports,'fileMd5',{'enumerable':!![],'get':function(){const _0x320b36=a11_0x5e16a6;return fileMd5_1[_0x320b36(0x19b)];}});const AnnError_1=require(a11_0x5e16a6(0x172));Object[a11_0x5e16a6(0x179)](exports,a11_0x5e16a6(0x18c),{'enumerable':!![],'get':function(){return AnnError_1['AnnError'];}});const common_1=require('./helper/common');Object[a11_0x5e16a6(0x179)](exports,'md5',{'enumerable':!![],'get':function(){const _0x55b8c7=a11_0x5e16a6;return common_1[_0x55b8c7(0x184)];}}),Object[a11_0x5e16a6(0x179)](exports,a11_0x5e16a6(0x174),{'enumerable':!![],'get':function(){const _0x30136b=a11_0x5e16a6;return common_1[_0x30136b(0x174)];}}),Object['defineProperty'](exports,'base64_decode',{'enumerable':!![],'get':function(){const _0x14d292=a11_0x5e16a6;return common_1[_0x14d292(0x17b)];}}),Object[a11_0x5e16a6(0x179)](exports,'AES128_encode',{'enumerable':!![],'get':function(){const _0x35bf34=a11_0x5e16a6;return common_1[_0x35bf34(0x19d)];}}),Object['defineProperty'](exports,a11_0x5e16a6(0x194),{'enumerable':!![],'get':function(){const _0x3dc4b8=a11_0x5e16a6;return common_1[_0x3dc4b8(0x194)];}});const AnnErrorRender_1=require('./exception/AnnErrorRender');Object[a11_0x5e16a6(0x179)](exports,a11_0x5e16a6(0x17f),{'enumerable':!![],'get':function(){const _0x5255c6=a11_0x5e16a6;return AnnErrorRender_1[_0x5255c6(0x17f)];}});const AnnErrorMsg_1=require(a11_0x5e16a6(0x17a));function a11_0x4ba6(){const _0x31dde8=['include','./helper/fileMd5','./configuration','defineProperty','./decorator/AnnErrorMsg','base64_decode','AnnErrorMsg','getAnnErrorMsg','sleep','AnnErrorRender','getAnnEnumArray','650778ZRLYWi','dayjs','getAnnEnumList','md5','6176570ACglBy','./helper/globDir','AnnEnumMsg','fs-extra','./helper/include','14SQyLuE','getAnnEnumMsg','AnnError','6155865mlRhCL','339182NlSRMK','Configuration','4568XwreQU','urllib','1SeOQeJ','globDir','AES128_decode','3651315fANYlJ','getAnnErrorList','801NaVPnU','lodash','2308392whWaYm','collect','fileMd5','mathjs','AES128_encode','__esModule','./exception/AnnError','fsplus','base64_encode','getAnnEnumMap'];a11_0x4ba6=function(){return _0x31dde8;};return a11_0x4ba6();}Object[a11_0x5e16a6(0x179)](exports,a11_0x5e16a6(0x17c),{'enumerable':!![],'get':function(){return AnnErrorMsg_1['AnnErrorMsg'];}}),Object[a11_0x5e16a6(0x179)](exports,'getAnnErrorMsg',{'enumerable':!![],'get':function(){const _0x5dcb31=a11_0x5e16a6;return AnnErrorMsg_1[_0x5dcb31(0x17d)];}}),Object[a11_0x5e16a6(0x179)](exports,'getAnnErrorList',{'enumerable':!![],'get':function(){const _0x44bb81=a11_0x5e16a6;return AnnErrorMsg_1[_0x44bb81(0x196)];}});const AnnEnumMsg_1=require('./decorator/AnnEnumMsg');Object[a11_0x5e16a6(0x179)](exports,a11_0x5e16a6(0x187),{'enumerable':!![],'get':function(){const _0x67f5e9=a11_0x5e16a6;return AnnEnumMsg_1[_0x67f5e9(0x187)];}}),Object['defineProperty'](exports,a11_0x5e16a6(0x18b),{'enumerable':!![],'get':function(){const _0x1c0cb9=a11_0x5e16a6;return AnnEnumMsg_1[_0x1c0cb9(0x18b)];}}),Object[a11_0x5e16a6(0x179)](exports,a11_0x5e16a6(0x175),{'enumerable':!![],'get':function(){const _0x4ad80b=a11_0x5e16a6;return AnnEnumMsg_1[_0x4ad80b(0x175)];}}),Object[a11_0x5e16a6(0x179)](exports,'getAnnEnumList',{'enumerable':!![],'get':function(){const _0x485ff9=a11_0x5e16a6;return AnnEnumMsg_1[_0x485ff9(0x183)];}}),Object[a11_0x5e16a6(0x179)](exports,a11_0x5e16a6(0x180),{'enumerable':!![],'get':function(){const _0x1ba3a4=a11_0x5e16a6;return AnnEnumMsg_1[_0x1ba3a4(0x180)];}});var configuration_1=require(a11_0x5e16a6(0x178));Object[a11_0x5e16a6(0x179)](exports,a11_0x5e16a6(0x18f),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}}),(global[a11_0x5e16a6(0x191)]=urllib,global['fsplus']=fsplus,global[a11_0x5e16a6(0x19c)]=mathjs,global[a11_0x5e16a6(0x198)]=lodash),(global[a11_0x5e16a6(0x182)]=dayjs,global[a11_0x5e16a6(0x17e)]=sleep_1[a11_0x5e16a6(0x17e)],global['collect']=collect_js_1[a11_0x5e16a6(0x19a)],global[a11_0x5e16a6(0x176)]=include_1['include'],global[a11_0x5e16a6(0x193)]=globDir_1[a11_0x5e16a6(0x193)]),(global[a11_0x5e16a6(0x184)]=common_1[a11_0x5e16a6(0x184)],global[a11_0x5e16a6(0x19b)]=fileMd5_1[a11_0x5e16a6(0x19b)],global['base64_encode']=common_1[a11_0x5e16a6(0x174)],global[a11_0x5e16a6(0x17b)]=common_1[a11_0x5e16a6(0x17b)],global[a11_0x5e16a6(0x19d)]=common_1[a11_0x5e16a6(0x19d)],global[a11_0x5e16a6(0x194)]=common_1[a11_0x5e16a6(0x194)]),(global[a11_0x5e16a6(0x187)]=AnnEnumMsg_1['AnnEnumMsg'],global['getAnnEnumMsg']=AnnEnumMsg_1[a11_0x5e16a6(0x18b)],global[a11_0x5e16a6(0x175)]=AnnEnumMsg_1[a11_0x5e16a6(0x175)],global[a11_0x5e16a6(0x183)]=AnnEnumMsg_1[a11_0x5e16a6(0x183)],global[a11_0x5e16a6(0x180)]=AnnEnumMsg_1[a11_0x5e16a6(0x180)]),(global[a11_0x5e16a6(0x17c)]=AnnErrorMsg_1[a11_0x5e16a6(0x17c)],global['getAnnErrorMsg']=AnnErrorMsg_1[a11_0x5e16a6(0x17d)],global[a11_0x5e16a6(0x196)]=AnnErrorMsg_1[a11_0x5e16a6(0x196)],global[a11_0x5e16a6(0x18c)]=AnnError_1[a11_0x5e16a6(0x18c)],global['AnnErrorRender']=AnnErrorRender_1[a11_0x5e16a6(0x17f)]);
|
package/index.d.ts
CHANGED
|
@@ -33,6 +33,8 @@ declare global { // 全局变量设置
|
|
|
33
33
|
export function md5(message: string | cryptojs.lib.WordArray, cfg?: object): string;
|
|
34
34
|
export function base64_encode(encodestr: string): string;
|
|
35
35
|
export function base64_decode(decodestr: string): string;
|
|
36
|
+
export function AES128_encode(secret: string, content: string): string;
|
|
37
|
+
export function AES128_decode(secret: string, encryptStr: string): string;
|
|
36
38
|
|
|
37
39
|
export function globDir(directory?: string, useSubdirectories?: boolean, regExp?: RegExp, readFile?: { encoding: BufferEncoding; flag?: string | undefined; } | BufferEncoding): {
|
|
38
40
|
(moduleId: any): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@midwayjs/bootstrap": "^3.6.0",
|
|
20
20
|
"@midwayjs/core": "^3.6.0",
|
|
21
|
-
"@midwayjs/decorator": "^3.6.0",
|
|
22
21
|
"@midwayjs/mock": "^3.6.0",
|
|
23
22
|
"@types/crypto-js": "^4.1.1",
|
|
24
23
|
"@types/fs-extra": "^9.0.13",
|
|
@@ -39,5 +38,5 @@
|
|
|
39
38
|
"devDependencies": {
|
|
40
39
|
"javascript-obfuscator": "2.19.0"
|
|
41
40
|
},
|
|
42
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "95eaacf979d91710cc71f68236cace152e3fd9ef"
|
|
43
42
|
}
|