@anncic-api/core 1.1.4 → 1.1.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.d.ts +2 -3
- package/dist/decorator/AnnEnumMsg.js +1 -1
- package/dist/decorator/AnnErrorMsg.d.ts +4 -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/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 +5 -2
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x44de52=a0_0x4417;function a0_0x4417(_0x3b8520,_0x5daf14){var _0x545e30=a0_0x545e();return a0_0x4417=function(_0x4417b5,_0x75e8a6){_0x4417b5=_0x4417b5-0xde;var _0x2e638f=_0x545e30[_0x4417b5];return _0x2e638f;},a0_0x4417(_0x3b8520,_0x5daf14);}(function(_0xe5099a,_0x24bcde){var _0x2b39df=a0_0x4417,_0x2600bf=_0xe5099a();while(!![]){try{var _0x1aecc9=parseInt(_0x2b39df(0xe6))/0x1*(-parseInt(_0x2b39df(0xe4))/0x2)+parseInt(_0x2b39df(0xe1))/0x3*(parseInt(_0x2b39df(0xea))/0x4)+-parseInt(_0x2b39df(0xe7))/0x5*(-parseInt(_0x2b39df(0xeb))/0x6)+parseInt(_0x2b39df(0xe2))/0x7+parseInt(_0x2b39df(0xdf))/0x8+parseInt(_0x2b39df(0xde))/0x9+-parseInt(_0x2b39df(0xe9))/0xa;if(_0x1aecc9===_0x24bcde)break;else _0x2600bf['push'](_0x2600bf['shift']());}catch(_0x60fa6b){_0x2600bf['push'](_0x2600bf['shift']());}}}(a0_0x545e,0xa0b19));Object['defineProperty'](exports,a0_0x44de52(0xe0),{'value':!![]}),exports[a0_0x44de52(0xe8)]=_0x3de65c=>{var _0x1959c8=a0_0x44de52;return{'midwayLogger':{'default':{'maxSize':'1m','dir':_0x3de65c[_0x1959c8(0xe3)]+_0x1959c8(0xe5)}}};};function a0_0x545e(){var _0xc15fc9=['1662mVckPa','1893222iKWjqb','3909240pupXsE','__esModule','402pavEBR','4220069Kimyzf','appDir','2oFVsjn','/runtime','196520uKhShg','20545mxAMoM','default','20638660LJSLBh','14284vgPVed'];a0_0x545e=function(){return _0xc15fc9;};return a0_0x545e();}
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x20550d=a1_0x17c2;(function(_0x1f877b,_0x875d25){const _0x491b34=a1_0x17c2,_0x146c2f=_0x1f877b();while(!![]){try{const _0x40c11b=-parseInt(_0x491b34(0x18c))/0x1+parseInt(_0x491b34(0x15e))/0x2*(-parseInt(_0x491b34(0x178))/0x3)+-parseInt(_0x491b34(0x174))/0x4+-parseInt(_0x491b34(0x17f))/0x5*(-parseInt(_0x491b34(0x16e))/0x6)+-parseInt(_0x491b34(0x189))/0x7*(parseInt(_0x491b34(0x167))/0x8)+-parseInt(_0x491b34(0x17e))/0x9+parseInt(_0x491b34(0x183))/0xa;if(_0x40c11b===_0x875d25)break;else _0x146c2f['push'](_0x146c2f['shift']());}catch(_0x78ac81){_0x146c2f['push'](_0x146c2f['shift']());}}}(a1_0xb05d,0x545a8));var __decorate=this&&this['__decorate']||function(_0x3f2a09,_0x2e0a3e,_0x1018d3,_0x554273){const _0x3c346c=a1_0x17c2;var _0x2dd098=arguments[_0x3c346c(0x173)],_0x3928a5=_0x2dd098<0x3?_0x2e0a3e:_0x554273===null?_0x554273=Object[_0x3c346c(0x17d)](_0x2e0a3e,_0x1018d3):_0x554273,_0x3ceb7a;if(typeof Reflect===_0x3c346c(0x17c)&&typeof Reflect[_0x3c346c(0x18b)]===_0x3c346c(0x16b))_0x3928a5=Reflect[_0x3c346c(0x18b)](_0x3f2a09,_0x2e0a3e,_0x1018d3,_0x554273);else{for(var _0x3cda45=_0x3f2a09['length']-0x1;_0x3cda45>=0x0;_0x3cda45--)if(_0x3ceb7a=_0x3f2a09[_0x3cda45])_0x3928a5=(_0x2dd098<0x3?_0x3ceb7a(_0x3928a5):_0x2dd098>0x3?_0x3ceb7a(_0x2e0a3e,_0x1018d3,_0x3928a5):_0x3ceb7a(_0x2e0a3e,_0x1018d3))||_0x3928a5;}return _0x2dd098>0x3&&_0x3928a5&&Object['defineProperty'](_0x2e0a3e,_0x1018d3,_0x3928a5),_0x3928a5;},__metadata=this&&this[a1_0x20550d(0x166)]||function(_0x10fb61,_0x2d15b6){const _0x261345=a1_0x20550d;if(typeof Reflect===_0x261345(0x17c)&&typeof Reflect[_0x261345(0x18a)]===_0x261345(0x16b))return Reflect['metadata'](_0x10fb61,_0x2d15b6);};Object['defineProperty'](exports,a1_0x20550d(0x163),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const decorator_1=require('@midwayjs/decorator'),core_1=require(a1_0x20550d(0x18e)),AnnError_1=require(a1_0x20550d(0x187)),AnnErrorRender_1=require(a1_0x20550d(0x160)),ConfigDefault=require('./config/config.default');function a1_0x17c2(_0x471ac1,_0x30cc3a){const _0xb05da5=a1_0xb05d();return a1_0x17c2=function(_0x17c21b,_0x513493){_0x17c21b=_0x17c21b-0x15e;let _0x4794e4=_0xb05da5[_0x17c21b];return _0x4794e4;},a1_0x17c2(_0x471ac1,_0x30cc3a);}let CustomConfiguration=class CustomConfiguration{async[a1_0x20550d(0x181)](){const _0x4990f0=a1_0x20550d;this[_0x4990f0(0x185)]['getApplications']([_0x4990f0(0x17a),'faas',_0x4990f0(0x188),_0x4990f0(0x172)])[_0x4990f0(0x165)](_0x4d77c1=>{_0x4d77c1['useMiddleware'](async(_0x8cbe52,_0x299637)=>{const _0x17b254=a1_0x17c2;var _0x5cbe61;try{await _0x299637();}catch(_0x497ca7){if(_0x497ca7 instanceof AnnErrorRender_1[_0x17b254(0x161)])await _0x497ca7[_0x17b254(0x16d)](_0x8cbe52,_0x4d77c1);else{if(_0x497ca7 instanceof AnnError_1['AnnError']){const _0x21879b=_0x497ca7[_0x17b254(0x179)]||{};_0x21879b[_0x17b254(0x186)]=_0x497ca7[_0x17b254(0x186)],!_0x21879b[_0x17b254(0x16a)]&&(_0x21879b[_0x17b254(0x16a)]={}),!_0x21879b[_0x17b254(0x16a)][_0x17b254(0x176)]&&_0x497ca7[_0x17b254(0x176)]&&(_0x21879b[_0x17b254(0x16a)][_0x17b254(0x176)]=_0x497ca7[_0x17b254(0x176)]),this[_0x17b254(0x164)]['isDevelopmentEnvironment']&&(!_0x21879b[_0x17b254(0x16a)][_0x17b254(0x180)]&&_0x497ca7[_0x17b254(0x180)]&&(_0x21879b[_0x17b254(0x16a)][_0x17b254(0x180)]=_0x497ca7[_0x17b254(0x180)][_0x17b254(0x18d)](_0x17b254(0x169)))),_0x8cbe52[_0x17b254(0x171)]=_0x21879b;}else{if(_0x497ca7 instanceof Error){if(this[_0x17b254(0x164)][_0x17b254(0x16c)]())console[_0x17b254(0x16a)](_0x497ca7);else typeof((_0x5cbe61=_0x8cbe52===null||_0x8cbe52===void 0x0?void 0x0:_0x8cbe52[_0x17b254(0x170)])===null||_0x5cbe61===void 0x0?void 0x0:_0x5cbe61[_0x17b254(0x16a)])==_0x17b254(0x16b)&&(_0x497ca7[_0x17b254(0x168)]=_0x8cbe52[_0x17b254(0x15f)]||'',_0x497ca7[_0x17b254(0x182)]=_0x8cbe52[_0x17b254(0x182)]||{},_0x8cbe52[_0x17b254(0x170)][_0x17b254(0x16a)](_0x497ca7));}}}}});});}};__decorate([(0x0,decorator_1[a1_0x20550d(0x175)])(),__metadata(a1_0x20550d(0x16f),core_1['MidwayApplicationManager'])],CustomConfiguration[a1_0x20550d(0x184)],'application',void 0x0),__decorate([(0x0,decorator_1[a1_0x20550d(0x175)])(),__metadata('design:type',core_1[a1_0x20550d(0x162)])],CustomConfiguration['prototype'],a1_0x20550d(0x164),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x20550d(0x177)])({'namespace':a1_0x20550d(0x17b),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;function a1_0xb05d(){const _0xc054e0=['error','function','isDevelopmentEnvironment','render','6936pSfnZY','design:type','logger','body','egg','length','1189844nJQUnE','Inject','message','Configuration','15MApSWW','response','koa','anncic-api:core','object','getOwnPropertyDescriptor','5306220fhiiWc','1940nkOPRW','stack','onReady','request','11620770johBvV','prototype','application','code','./exception/AnnError','express','3605fWNIeX','metadata','decorate','128757uAxzIg','split','@midwayjs/core','9902SQIVxi','_matchedRoute','./exception/AnnErrorRender','AnnErrorRender','MidwayEnvironmentService','__esModule','environment','forEach','__metadata','3488GzAMis','matched','\x20at\x20'];a1_0xb05d=function(){return _0xc054e0;};return a1_0xb05d();}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare function AnnEnumMsg(field: string, message: string): PropertyDecorator;
|
|
2
2
|
export declare function getAnnEnumMsg(target: any, field: string, code: number | string): string;
|
|
3
|
-
export declare function
|
|
4
|
-
[key: string]: string;
|
|
5
|
-
[key: number]: string;
|
|
3
|
+
export declare function getAnnEnumMap(target: any, field: string): {
|
|
4
|
+
[key: string]: string | number;
|
|
6
5
|
};
|
|
7
6
|
export declare function getAnnEnumArray(target: any, field: string, filters?: Array<number | string>): (string | number)[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a2_0x509ccd=a2_0x31fe;(function(_0x43ccd4,_0x24a4de){const _0x193534=a2_0x31fe,_0x116c78=_0x43ccd4();while(!![]){try{const _0x1ca531=-parseInt(_0x193534(0x1b3))/0x1*(-parseInt(_0x193534(0x1b0))/0x2)+parseInt(_0x193534(0x1b1))/0x3*(-parseInt(_0x193534(0x1a6))/0x4)+parseInt(_0x193534(0x1a1))/0x5+-parseInt(_0x193534(0x1a9))/0x6+parseInt(_0x193534(0x1a2))/0x7+parseInt(_0x193534(0x1ae))/0x8+parseInt(_0x193534(0x1a3))/0x9*(-parseInt(_0x193534(0x1a8))/0xa);if(_0x1ca531===_0x24a4de)break;else _0x116c78['push'](_0x116c78['shift']());}catch(_0x4cb1c1){_0x116c78['push'](_0x116c78['shift']());}}}(a2_0x2a56,0xd9282));function a2_0x31fe(_0x5051cb,_0x584b65){const _0x2a5646=a2_0x2a56();return a2_0x31fe=function(_0x31fefb,_0xcdda66){_0x31fefb=_0x31fefb-0x1a1;let _0x5a8c6c=_0x2a5646[_0x31fefb];return _0x5a8c6c;},a2_0x31fe(_0x5051cb,_0x584b65);}Object['defineProperty'](exports,a2_0x509ccd(0x1ad),{'value':!![]}),exports[a2_0x509ccd(0x1b2)]=exports[a2_0x509ccd(0x1b8)]=exports[a2_0x509ccd(0x1b6)]=exports[a2_0x509ccd(0x1b4)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),ANN_ENUM=a2_0x509ccd(0x1b5);function AnnEnumMsg(_0x2e7d1b,_0xa71a5c){return(_0x11d105,_0x36630f)=>{const _0x2de55b=a2_0x31fe;var _0x47c195;const _0x2222e6=_0x11d105===null||_0x11d105===void 0x0?void 0x0:_0x11d105[_0x36630f],_0xcc5b0b=(0x0,decorator_1[_0x2de55b(0x1a5)])(ANN_ENUM,_0x11d105)||{};if(typeof _0x2222e6=='undefined'||_0x2222e6===null)throw new Error(((_0x11d105===null||_0x11d105===void 0x0?void 0x0:_0x11d105['name'])||_0x11d105)+_0x2de55b(0x1aa)+_0x36630f+')must\x20be\x20\x27static\x20readonly\x20'+_0x36630f+_0x2de55b(0x1b7));if((_0x47c195=_0xcc5b0b===null||_0xcc5b0b===void 0x0?void 0x0:_0xcc5b0b[_0x2e7d1b])===null||_0x47c195===void 0x0?void 0x0:_0x47c195[_0x2222e6])throw new Error('AnnEnumMsg:\x20'+_0xa71a5c+'('+_0x2e7d1b+':'+_0x2222e6+_0x2de55b(0x1a4));!(_0xcc5b0b===null||_0xcc5b0b===void 0x0?void 0x0:_0xcc5b0b[_0x2e7d1b])&&(_0xcc5b0b[_0x2e7d1b]={}),_0xcc5b0b[_0x2e7d1b][_0x2222e6]={'targetKey':_0x36630f,'targetMsg':_0xa71a5c,'targetCode':_0x2222e6},(0x0,decorator_1['saveClassMetadata'])(ANN_ENUM,_0xcc5b0b,_0x11d105);};}exports[a2_0x509ccd(0x1b4)]=AnnEnumMsg;function getAnnEnumMsg(_0x4fb2d2,_0x1d35a7,_0xe28523){const _0x54d746=a2_0x509ccd;var _0x519ea7,_0x279939;const _0x1c721f=(0x0,decorator_1[_0x54d746(0x1a5)])(ANN_ENUM,_0x4fb2d2)||{};if(!((_0x519ea7=_0x1c721f===null||_0x1c721f===void 0x0?void 0x0:_0x1c721f[_0x1d35a7])===null||_0x519ea7===void 0x0?void 0x0:_0x519ea7[_0xe28523]))throw new Error(_0x54d746(0x1ab)+_0xe28523+_0x54d746(0x1af));return((_0x279939=_0x1c721f[_0x1d35a7][_0xe28523])===null||_0x279939===void 0x0?void 0x0:_0x279939[_0x54d746(0x1a7)])||undefined;}exports[a2_0x509ccd(0x1b6)]=getAnnEnumMsg;function a2_0x2a56(){const _0x74530e=['AnnEnumMsg:\x20','targetCode','__esModule','5889120RBixBM','\x20is\x20not\x20duplicated','452538OwskVC','27pcdxEb','getAnnEnumArray','4LPuLNa','AnnEnumMsg','ann:enum','getAnnEnumMsg','\x20=\x20number\x20|\x20string;','getAnnEnumMap','7883970xbjBFV','4050242EkLIgc','1269GpCJOi',')\x20is\x20duplicated,please\x20check\x20before\x20adding','getClassMetadata','49596eTubHS','targetMsg','179310VFXFiB','1603680yXtirT','\x20Property('];a2_0x2a56=function(){return _0x74530e;};return a2_0x2a56();}function getAnnEnumMap(_0x1218da,_0x437b75){const _0x307270=a2_0x509ccd;var _0x4cfd89,_0x5a0bab,_0x27a846,_0x79ad79;const _0x544a81={},_0x3cd2bc=(0x0,decorator_1[_0x307270(0x1a5)])(ANN_ENUM,_0x1218da)||{};if(_0x3cd2bc===null||_0x3cd2bc===void 0x0?void 0x0:_0x3cd2bc[_0x437b75])for(const _0x4bf499 in _0x3cd2bc[_0x437b75]){((_0x5a0bab=(_0x4cfd89=_0x3cd2bc[_0x437b75])===null||_0x4cfd89===void 0x0?void 0x0:_0x4cfd89[_0x4bf499])===null||_0x5a0bab===void 0x0?void 0x0:_0x5a0bab[_0x307270(0x1a7)])&&((_0x79ad79=(_0x27a846=_0x3cd2bc[_0x437b75])===null||_0x27a846===void 0x0?void 0x0:_0x27a846[_0x4bf499])===null||_0x79ad79===void 0x0?void 0x0:_0x79ad79['targetCode'])&&(_0x544a81[_0x3cd2bc[_0x437b75][_0x4bf499][_0x307270(0x1a7)]]=_0x3cd2bc[_0x437b75][_0x4bf499][_0x307270(0x1ac)]);}return _0x544a81;}exports['getAnnEnumMap']=getAnnEnumMap;function getAnnEnumArray(_0x1356c3,_0xb85100,_0x2f487c=[]){const _0x532eed=a2_0x509ccd;var _0x59e07f,_0x20ac5b,_0x259379,_0x362921;const _0x770cd0=[],_0x267b36=(0x0,decorator_1[_0x532eed(0x1a5)])(ANN_ENUM,_0x1356c3)||{};if(_0x267b36===null||_0x267b36===void 0x0?void 0x0:_0x267b36[_0xb85100])for(const _0x386148 in _0x267b36[_0xb85100]){if(!((_0x20ac5b=(_0x59e07f=_0x267b36[_0xb85100])===null||_0x59e07f===void 0x0?void 0x0:_0x59e07f[_0x386148])===null||_0x20ac5b===void 0x0?void 0x0:_0x20ac5b[_0x532eed(0x1a7)])||!((_0x362921=(_0x259379=_0x267b36[_0xb85100])===null||_0x259379===void 0x0?void 0x0:_0x259379[_0x386148])===null||_0x362921===void 0x0?void 0x0:_0x362921[_0x532eed(0x1ac)]))continue;_0x2f487c['indexOf'](_0x267b36[_0xb85100][_0x386148]['targetCode'])==-0x1&&_0x770cd0['push'](_0x267b36[_0xb85100][_0x386148][_0x532eed(0x1ac)]);}return _0x770cd0;}exports['getAnnEnumArray']=getAnnEnumArray;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export declare function getAnnErrorMsg(code: number): string;
|
|
2
2
|
export declare function getAnnErrorList(): {
|
|
3
|
-
[key: number]:
|
|
3
|
+
[key: number]: {
|
|
4
|
+
code: string | number;
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
4
7
|
};
|
|
5
8
|
export declare function AnnErrorMsg(message: string): PropertyDecorator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a3_0x40bf(){const _0x2a2639=['56ZmVqen','4480608NIjJQZ','AnnErrorMsg:\x20','412052KpkbGt','getAnnErrorMsg','__esModule','2827719SfHUVJ','message','\x20Property(','undefined',')must\x20be\x20\x27static\x20readonly\x20','4bEgoFr','18755TaoxQf','30fuZFtI','\x20=\x20number;','name',')\x20is\x20duplicated,please\x20check\x20before\x20adding','1130919ZMTKyw','defineProperty','795081gUkpSJ','37234098FMcxLF','getAnnErrorList','844qhNmbV'];a3_0x40bf=function(){return _0x2a2639;};return a3_0x40bf();}function a3_0x2924(_0x4c3fa5,_0x54f3c9){const _0x40bf7e=a3_0x40bf();return a3_0x2924=function(_0x29249a,_0xc44b79){_0x29249a=_0x29249a-0xa8;let _0x22f6ca=_0x40bf7e[_0x29249a];return _0x22f6ca;},a3_0x2924(_0x4c3fa5,_0x54f3c9);}const a3_0x56fbf3=a3_0x2924;(function(_0x1bcc1a,_0x5a1941){const _0x3d5f3b=a3_0x2924,_0x1ec268=_0x1bcc1a();while(!![]){try{const _0x59bd1a=parseInt(_0x3d5f3b(0xac))/0x1*(parseInt(_0x3d5f3b(0xbb))/0x2)+-parseInt(_0x3d5f3b(0xb2))/0x3+parseInt(_0x3d5f3b(0xb7))/0x4*(-parseInt(_0x3d5f3b(0xad))/0x5)+-parseInt(_0x3d5f3b(0xb9))/0x6+-parseInt(_0x3d5f3b(0xb4))/0x7*(parseInt(_0x3d5f3b(0xb8))/0x8)+-parseInt(_0x3d5f3b(0xbe))/0x9*(parseInt(_0x3d5f3b(0xae))/0xa)+parseInt(_0x3d5f3b(0xb5))/0xb;if(_0x59bd1a===_0x5a1941)break;else _0x1ec268['push'](_0x1ec268['shift']());}catch(_0x23cf5e){_0x1ec268['push'](_0x1ec268['shift']());}}}(a3_0x40bf,0x87c86));Object[a3_0x56fbf3(0xb3)](exports,a3_0x56fbf3(0xbd),{'value':!![]}),exports['AnnErrorMsg']=exports[a3_0x56fbf3(0xb6)]=exports[a3_0x56fbf3(0xbc)]=void 0x0;const AnnErrorObj={};function getAnnErrorMsg(_0xfecf06){const _0x5e37c2=a3_0x56fbf3;var _0x235397;if(!(AnnErrorObj===null||AnnErrorObj===void 0x0?void 0x0:AnnErrorObj[_0xfecf06]))throw new Error('AnnErrorMsg:\x20'+_0xfecf06+'\x20is\x20not\x20duplicated');return((_0x235397=AnnErrorObj[_0xfecf06])===null||_0x235397===void 0x0?void 0x0:_0x235397[_0x5e37c2(0xa8)])||undefined;}exports[a3_0x56fbf3(0xbc)]=getAnnErrorMsg;function getAnnErrorList(){return AnnErrorObj;}exports[a3_0x56fbf3(0xb6)]=getAnnErrorList;function AnnErrorMsg(_0x299c1b){return(_0x4f4396,_0x359cad)=>{const _0xc6112=a3_0x2924,_0x501dd4=_0x4f4396===null||_0x4f4396===void 0x0?void 0x0:_0x4f4396[_0x359cad];if(typeof _0x501dd4===_0xc6112(0xaa)||_0x501dd4===null)throw new Error(((_0x4f4396===null||_0x4f4396===void 0x0?void 0x0:_0x4f4396[_0xc6112(0xb0)])||_0x4f4396)+_0xc6112(0xa9)+_0x359cad+_0xc6112(0xab)+_0x359cad+_0xc6112(0xaf));if(AnnErrorObj===null||AnnErrorObj===void 0x0?void 0x0:AnnErrorObj[_0x501dd4])throw new Error(_0xc6112(0xba)+_0x299c1b+'('+_0x501dd4+_0xc6112(0xb1));AnnErrorObj[_0x501dd4]={'code':_0x501dd4,'message':_0x299c1b};};}exports['AnnErrorMsg']=AnnErrorMsg;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x1dc547=a4_0x2a7b;(function(_0x231dd2,_0xe6a201){var _0x4fdafc=a4_0x2a7b,_0x234768=_0x231dd2();while(!![]){try{var _0x3c1141=-parseInt(_0x4fdafc(0x18d))/0x1+-parseInt(_0x4fdafc(0x18b))/0x2+-parseInt(_0x4fdafc(0x189))/0x3*(parseInt(_0x4fdafc(0x192))/0x4)+-parseInt(_0x4fdafc(0x190))/0x5*(-parseInt(_0x4fdafc(0x195))/0x6)+-parseInt(_0x4fdafc(0x19b))/0x7+-parseInt(_0x4fdafc(0x18f))/0x8*(-parseInt(_0x4fdafc(0x183))/0x9)+parseInt(_0x4fdafc(0x17e))/0xa*(parseInt(_0x4fdafc(0x187))/0xb);if(_0x3c1141===_0xe6a201)break;else _0x234768['push'](_0x234768['shift']());}catch(_0x468d56){_0x234768['push'](_0x234768['shift']());}}}(a4_0x4192,0x43687));var __decorate=this&&this[a4_0x1dc547(0x184)]||function(_0x1a19db,_0x14d0aa,_0x2a211e,_0x103d66){var _0x19b24f=a4_0x1dc547,_0x50d6f0=arguments[_0x19b24f(0x196)],_0x43df66=_0x50d6f0<0x3?_0x14d0aa:_0x103d66===null?_0x103d66=Object['getOwnPropertyDescriptor'](_0x14d0aa,_0x2a211e):_0x103d66,_0xa9040a;if(typeof Reflect===_0x19b24f(0x198)&&typeof Reflect['decorate']===_0x19b24f(0x182))_0x43df66=Reflect[_0x19b24f(0x17f)](_0x1a19db,_0x14d0aa,_0x2a211e,_0x103d66);else{for(var _0x289561=_0x1a19db[_0x19b24f(0x196)]-0x1;_0x289561>=0x0;_0x289561--)if(_0xa9040a=_0x1a19db[_0x289561])_0x43df66=(_0x50d6f0<0x3?_0xa9040a(_0x43df66):_0x50d6f0>0x3?_0xa9040a(_0x14d0aa,_0x2a211e,_0x43df66):_0xa9040a(_0x14d0aa,_0x2a211e))||_0x43df66;}return _0x50d6f0>0x3&&_0x43df66&&Object[_0x19b24f(0x19c)](_0x14d0aa,_0x2a211e,_0x43df66),_0x43df66;},__metadata=this&&this[a4_0x1dc547(0x181)]||function(_0x54fc87,_0x2f6e16){var _0x3b3f01=a4_0x1dc547;if(typeof Reflect===_0x3b3f01(0x198)&&typeof Reflect[_0x3b3f01(0x188)]==='function')return Reflect[_0x3b3f01(0x188)](_0x54fc87,_0x2f6e16);};function a4_0x4192(){var _0x16f153=['__metadata','function','153VpIkEh','__decorate','NOAUTH','AnnError','1177zcPqdq','metadata','15zYnKZB','UNKNOW','726412CIJnfx','__esModule','20045OlzzSL','AnnErrorMsg','182880mgzJsH','5MTrpkR','name','189352OYJwoi','不存在对应数据','NOFIND','2169276aSudxH','length','../decorator/AnnErrorMsg','object','code','未知错误','100107ksXFtv','defineProperty','getAnnErrorMsg','参数错误','response','14970TTYpNs','decorate','design:type'];a4_0x4192=function(){return _0x16f153;};return a4_0x4192();}Object[a4_0x1dc547(0x19c)](exports,a4_0x1dc547(0x18c),{'value':!![]}),exports[a4_0x1dc547(0x186)]=void 0x0;const AnnErrorMsg_1=require(a4_0x1dc547(0x197));function a4_0x2a7b(_0x31ee38,_0x2c0817){var _0x419231=a4_0x4192();return a4_0x2a7b=function(_0x2a7b46,_0x269e67){_0x2a7b46=_0x2a7b46-0x17c;var _0xc0c4bd=_0x419231[_0x2a7b46];return _0xc0c4bd;},a4_0x2a7b(_0x31ee38,_0x2c0817);}class AnnError extends Error{constructor(_0x538cd4,_0x416699){var _0x116f2c=a4_0x1dc547;super((0x0,AnnErrorMsg_1[_0x116f2c(0x19d)])(_0x538cd4)),this[_0x116f2c(0x191)]=this['constructor']['name'],(this[_0x116f2c(0x199)]=_0x538cd4,this[_0x116f2c(0x17d)]=_0x416699||{});}}AnnError[a4_0x1dc547(0x18a)]=0x186a0,AnnError['PARAMS']=0x18e70,AnnError[a4_0x1dc547(0x194)]=0x19258,AnnError[a4_0x1dc547(0x185)]=0x19640,__decorate([(0x0,AnnErrorMsg_1['AnnErrorMsg'])(a4_0x1dc547(0x19a)),__metadata(a4_0x1dc547(0x180),Object)],AnnError,a4_0x1dc547(0x18a),void 0x0),__decorate([(0x0,AnnErrorMsg_1['AnnErrorMsg'])(a4_0x1dc547(0x17c)),__metadata(a4_0x1dc547(0x180),Object)],AnnError,'PARAMS',void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x1dc547(0x18e)])(a4_0x1dc547(0x193)),__metadata(a4_0x1dc547(0x180),Object)],AnnError,a4_0x1dc547(0x194),void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x1dc547(0x18e)])('没有权限执行该操作'),__metadata(a4_0x1dc547(0x180),Object)],AnnError,a4_0x1dc547(0x185),void 0x0),exports['AnnError']=AnnError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a5_0x122186=a5_0x1a48;function a5_0x1a48(_0x5f384d,_0x4e57f6){const _0x5d97e2=a5_0x5d97();return a5_0x1a48=function(_0x1a4890,_0x1408f2){_0x1a4890=_0x1a4890-0xbb;let _0x2a75ca=_0x5d97e2[_0x1a4890];return _0x2a75ca;},a5_0x1a48(_0x5f384d,_0x4e57f6);}function a5_0x5d97(){const _0x37004f=['49iCvyBw','387NxTuee','1690gWvHJb','1191976QArmTm','3604355jGXHua','name','8860190MrZaPa','3ltwRbl','529734ylfJgb','9RvLBQO','./AnnError','88514LiTtXa','149196mbnaic','11isggpH','31168hTEDVT'];a5_0x5d97=function(){return _0x37004f;};return a5_0x5d97();}(function(_0x51912b,_0x454ca4){const _0x1acd4f=a5_0x1a48,_0x2e48e8=_0x51912b();while(!![]){try{const _0x3b69a2=parseInt(_0x1acd4f(0xc7))/0x1*(parseInt(_0x1acd4f(0xbc))/0x2)+-parseInt(_0x1acd4f(0xc9))/0x3*(-parseInt(_0x1acd4f(0xc3))/0x4)+-parseInt(_0x1acd4f(0xc4))/0x5+-parseInt(_0x1acd4f(0xc8))/0x6*(parseInt(_0x1acd4f(0xc0))/0x7)+-parseInt(_0x1acd4f(0xbf))/0x8*(-parseInt(_0x1acd4f(0xc1))/0x9)+-parseInt(_0x1acd4f(0xc6))/0xa*(parseInt(_0x1acd4f(0xbe))/0xb)+-parseInt(_0x1acd4f(0xbd))/0xc*(-parseInt(_0x1acd4f(0xc2))/0xd);if(_0x3b69a2===_0x454ca4)break;else _0x2e48e8['push'](_0x2e48e8['shift']());}catch(_0x333d26){_0x2e48e8['push'](_0x2e48e8['shift']());}}}(a5_0x5d97,0x8efba));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['AnnErrorRender']=void 0x0;const AnnError_1=require(a5_0x122186(0xbb));class AnnErrorRender extends AnnError_1['AnnError']{constructor(_0x2a3592,_0x5f245e){super(_0x2a3592,_0x5f245e);}async['render'](_0x270bf4,_0x59e119){const _0x1d960c=a5_0x122186;throw this[_0x1d960c(0xc5)]+'\x20is\x20not\x20is\x20not\x20duplicated\x20function\x20render';}}exports['AnnErrorRender']=AnnErrorRender;
|
package/dist/helper/fileMd5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a6_0x44a5dd=a6_0x241b;function a6_0x241b(_0x4d3c84,_0x3dca5f){const _0x1e722e=a6_0x1e72();return a6_0x241b=function(_0x241ba1,_0x2ffe3f){_0x241ba1=_0x241ba1-0x79;let _0x128b02=_0x1e722e[_0x241ba1];return _0x128b02;},a6_0x241b(_0x4d3c84,_0x3dca5f);}(function(_0x1c840f,_0x42de49){const _0x5e2b8a=a6_0x241b,_0x3881c2=_0x1c840f();while(!![]){try{const _0x2cfc4b=-parseInt(_0x5e2b8a(0x7d))/0x1+-parseInt(_0x5e2b8a(0x8d))/0x2+-parseInt(_0x5e2b8a(0x7a))/0x3*(parseInt(_0x5e2b8a(0x8c))/0x4)+-parseInt(_0x5e2b8a(0x85))/0x5+parseInt(_0x5e2b8a(0x87))/0x6+-parseInt(_0x5e2b8a(0x8e))/0x7*(parseInt(_0x5e2b8a(0x7e))/0x8)+-parseInt(_0x5e2b8a(0x86))/0x9*(-parseInt(_0x5e2b8a(0x79))/0xa);if(_0x2cfc4b===_0x42de49)break;else _0x3881c2['push'](_0x3881c2['shift']());}catch(_0x15cf75){_0x3881c2['push'](_0x3881c2['shift']());}}}(a6_0x1e72,0x777eb));function a6_0x1e72(){const _0xd8d07f=['31002921ToOnoV','1344084ftSeEt','createReadStream','update','defineProperty','fileMd5','8kcSFHo','1250916ixoYBZ','7jfPJet','hex','10uLLbNa','1312950rOxgbw','stat','error','736286wtcPDi','4808944hhUWIt','__esModule','data','digest','md5','bind','crypto','1705850QcqATl'];a6_0x1e72=function(){return _0xd8d07f;};return a6_0x1e72();}Object[a6_0x44a5dd(0x8a)](exports,a6_0x44a5dd(0x7f),{'value':!![]}),exports[a6_0x44a5dd(0x8b)]=void 0x0;const fs=require('fs'),crypto=require(a6_0x44a5dd(0x84));function fileMd5(_0x419067){return new Promise((_0xed0d54,_0x519d4d)=>{const _0x41d1d4=a6_0x241b;fs[_0x41d1d4(0x7b)](_0x419067,(_0x5493f8,_0x573fdc)=>{const _0x170270=_0x41d1d4;if(_0x5493f8)return _0x519d4d(_0x5493f8);if(!_0x573fdc['isFile']())return _0x519d4d(new Error(_0x419067+'\x20is\x20not\x20file'));const _0x83263f=crypto['createHash'](_0x170270(0x82)),_0x10cfb2=fs[_0x170270(0x88)](_0x419067);_0x10cfb2['on'](_0x170270(0x80),_0x83263f[_0x170270(0x89)][_0x170270(0x83)](_0x83263f)),_0x10cfb2['on'](_0x170270(0x7c),_0x94cc88=>_0x519d4d(_0x94cc88)),_0x10cfb2['on']('end',()=>_0xed0d54(_0x83263f[_0x170270(0x81)](_0x170270(0x8f))));});});}exports['fileMd5']=fileMd5;
|
package/dist/helper/globDir.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a7_0x276157=a7_0x3238;(function(_0x1bd0ab,_0x5f2649){const _0x45b446=a7_0x3238,_0x17dda6=_0x1bd0ab();while(!![]){try{const _0x439e56=parseInt(_0x45b446(0x17d))/0x1+parseInt(_0x45b446(0x189))/0x2+-parseInt(_0x45b446(0x18a))/0x3*(parseInt(_0x45b446(0x194))/0x4)+parseInt(_0x45b446(0x181))/0x5*(-parseInt(_0x45b446(0x190))/0x6)+-parseInt(_0x45b446(0x187))/0x7*(-parseInt(_0x45b446(0x193))/0x8)+parseInt(_0x45b446(0x17f))/0x9*(-parseInt(_0x45b446(0x183))/0xa)+-parseInt(_0x45b446(0x17e))/0xb*(-parseInt(_0x45b446(0x185))/0xc);if(_0x439e56===_0x5f2649)break;else _0x17dda6['push'](_0x17dda6['shift']());}catch(_0x59f2a5){_0x17dda6['push'](_0x17dda6['shift']());}}}(a7_0x1366,0xaef03));Object['defineProperty'](exports,a7_0x276157(0x18d),{'value':!![]}),exports[a7_0x276157(0x19f)]=void 0x0;function a7_0x3238(_0x3906f8,_0x2a9e77){const _0x1366ea=a7_0x1366();return a7_0x3238=function(_0x323874,_0x223fa4){_0x323874=_0x323874-0x17d;let _0x4860ed=_0x1366ea[_0x323874];return _0x4860ed;},a7_0x3238(_0x3906f8,_0x2a9e77);}function a7_0x1366(){const _0x13011d=['directory','globDir','209933NqGfoy','11697323JunJMZ','63sLiUAd','__findDirectory','20lYvubY','forEach','1390810vbZzVH','Can\x27t\x20Found\x20Module\x20','24ybtcPS','isAbsolute','21UpzXVM','__findModules','1183048XVobvq','3quleIt','regExp','readdirSync','__esModule','path','push','2075874ZAoSkq','modules','statSync','2601496eHUsSv','3319096swlIhk','join','parse','dir','filename','readFileSync','test','useSubdirectories','parent','keys'];a7_0x1366=function(){return _0x13011d;};return a7_0x1366();}const fs=require('fs'),path=require(a7_0x276157(0x18e));class RequireContext{constructor(_0x112933,_0x2b4695,_0x44bccd){const _0x3f4d40=a7_0x276157;this[_0x3f4d40(0x191)]=[],this[_0x3f4d40(0x18b)]=_0x44bccd,this['useSubdirectories']=!!_0x2b4695,this[_0x3f4d40(0x19e)]=this[_0x3f4d40(0x180)](_0x112933),this[_0x3f4d40(0x188)](this[_0x3f4d40(0x19e)]);}['__findDirectory'](_0x2c5fd9){const _0x1a6315=a7_0x276157;if(path[_0x1a6315(0x186)](_0x2c5fd9)||!module[_0x1a6315(0x19c)])return _0x2c5fd9;return path['normalize'](path[_0x1a6315(0x195)](path[_0x1a6315(0x196)](module[_0x1a6315(0x19c)][_0x1a6315(0x198)])[_0x1a6315(0x197)],_0x2c5fd9));}[a7_0x276157(0x188)](_0x3d11b5){const _0x115f29=a7_0x276157;if(fs['existsSync'](_0x3d11b5))fs[_0x115f29(0x18c)](_0x3d11b5)[_0x115f29(0x182)](_0x26e245=>{const _0x2ffe00=_0x115f29,_0x1807a6=path['resolve'](_0x3d11b5,_0x26e245);if(fs[_0x2ffe00(0x192)](_0x1807a6)['isDirectory']()){if(this[_0x2ffe00(0x19b)]){this[_0x2ffe00(0x188)](_0x1807a6);return;}}else{if(this['regExp']&&!this[_0x2ffe00(0x18b)][_0x2ffe00(0x19a)](_0x1807a6))return;this[_0x2ffe00(0x191)][_0x2ffe00(0x18f)](_0x1807a6);}});else throw new Error(_0x115f29(0x184)+_0x3d11b5);}}function globDir(_0x41f75d='.',_0x1cfac9=![],_0xad6f75=/(?:)/,_0x529071){const _0x41d102=a7_0x276157,_0x42a48b=new RequireContext(_0x41f75d,_0x1cfac9,_0xad6f75);if(_0x529071){const _0xf5a88a=_0x274bd9=>fs[_0x41d102(0x199)](_0x274bd9,_0x529071);return _0xf5a88a[_0x41d102(0x19d)]=()=>[..._0x42a48b[_0x41d102(0x191)]],_0xf5a88a;}else{const _0x112024=_0x445e7b=>require(_0x445e7b);return _0x112024['keys']=()=>[..._0x42a48b[_0x41d102(0x191)]],_0x112024;}}exports[a7_0x276157(0x19f)]=globDir;
|
package/dist/helper/include.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a8_0x2dc87e=a8_0x5660;(function(_0x18c5fb,_0x4aa8ce){const _0x3b5793=a8_0x5660,_0x4067bd=_0x18c5fb();while(!![]){try{const _0x1afe5f=-parseInt(_0x3b5793(0xb4))/0x1+-parseInt(_0x3b5793(0xae))/0x2*(-parseInt(_0x3b5793(0xb5))/0x3)+-parseInt(_0x3b5793(0xaa))/0x4*(-parseInt(_0x3b5793(0xad))/0x5)+parseInt(_0x3b5793(0xac))/0x6+-parseInt(_0x3b5793(0xab))/0x7+-parseInt(_0x3b5793(0xb3))/0x8*(-parseInt(_0x3b5793(0xb7))/0x9)+-parseInt(_0x3b5793(0xba))/0xa;if(_0x1afe5f===_0x4aa8ce)break;else _0x4067bd['push'](_0x4067bd['shift']());}catch(_0x2c18f5){_0x4067bd['push'](_0x4067bd['shift']());}}}(a8_0x2238,0xb019b));Object[a8_0x2dc87e(0xb0)](exports,a8_0x2dc87e(0xb1),{'value':!![]}),exports[a8_0x2dc87e(0xbb)]=void 0x0;const jiti=require(a8_0x2dc87e(0xb9)),lodash_1=require(a8_0x2dc87e(0xb6));function a8_0x2238(){const _0x17d10e=['29940nrTNkh','lodash','58338usJozF','defaultsDeep','jiti','8605810gKYFeA','include','495852ajcUmM','5562403pNzxEk','16176KmhWix','55aDyCeq','242DixwfH','get','defineProperty','__esModule','default','1064CSYZZb','1059458RLGMRA'];a8_0x2238=function(){return _0x17d10e;};return a8_0x2238();}function include(_0x388e63){const _0x2c0014=a8_0x2dc87e,_0xdc3cca={},_0x414031=jiti()(_0x388e63);for(let _0x1c8e8d in _0x414031){_0x1c8e8d!=_0x2c0014(0xb2)&&(0x0,lodash_1[_0x2c0014(0xb8)])(_0xdc3cca,{[_0x1c8e8d]:_0x414031[_0x1c8e8d]});}return(0x0,lodash_1[_0x2c0014(0xb8)])(_0xdc3cca,(0x0,lodash_1[_0x2c0014(0xaf)])(_0x414031,_0x2c0014(0xb2),{}));}function a8_0x5660(_0x3e9f75,_0x5b205e){const _0x22388e=a8_0x2238();return a8_0x5660=function(_0x566058,_0x33096e){_0x566058=_0x566058-0xaa;let _0xc49a13=_0x22388e[_0x566058];return _0xc49a13;},a8_0x5660(_0x3e9f75,_0x5b205e);}exports['include']=include;
|
package/dist/helper/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x4f32ec=a9_0x3499;(function(_0x488362,_0x22b451){var _0xf408a7=a9_0x3499,_0xac1bc2=_0x488362();while(!![]){try{var _0x10c26f=-parseInt(_0xf408a7(0x1e7))/0x1*(parseInt(_0xf408a7(0x1df))/0x2)+-parseInt(_0xf408a7(0x1e3))/0x3*(parseInt(_0xf408a7(0x1de))/0x4)+-parseInt(_0xf408a7(0x1e2))/0x5+parseInt(_0xf408a7(0x1e9))/0x6*(-parseInt(_0xf408a7(0x1dd))/0x7)+parseInt(_0xf408a7(0x1e5))/0x8*(-parseInt(_0xf408a7(0x1e6))/0x9)+parseInt(_0xf408a7(0x1e4))/0xa*(-parseInt(_0xf408a7(0x1e1))/0xb)+parseInt(_0xf408a7(0x1e8))/0xc;if(_0x10c26f===_0x22b451)break;else _0xac1bc2['push'](_0xac1bc2['shift']());}catch(_0x4e5ebc){_0xac1bc2['push'](_0xac1bc2['shift']());}}}(a9_0x5e83,0xda8a9));function a9_0x3499(_0x3dc10c,_0x85a374){var _0x5e83ce=a9_0x5e83();return a9_0x3499=function(_0x34998c,_0x274f0a){_0x34998c=_0x34998c-0x1dd;var _0xd7b327=_0x5e83ce[_0x34998c];return _0xd7b327;},a9_0x3499(_0x3dc10c,_0x85a374);}Object[a9_0x4f32ec(0x1ea)](exports,'__esModule',{'value':!![]}),exports[a9_0x4f32ec(0x1e0)]=void 0x0;function sleep(_0x454aa9=0xc8){return new Promise(_0x19f099=>setTimeout(_0x19f099,_0x454aa9));}function a9_0x5e83(){var _0x30aa14=['32esrwGX','2360133FdlmCh','1BHCfgD','68255424aKpiqN','342txjiGF','defineProperty','51688JamOEQ','12EzkLzE','1952522kCOcYn','sleep','1873971kTsEEh','6290215UszZZi','66501gmSRnn','60KSIzJP'];a9_0x5e83=function(){return _0x30aa14;};return a9_0x5e83();}exports[a9_0x4f32ec(0x1e0)]=sleep;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,6 @@ import { fileMd5 } from './helper/fileMd5';
|
|
|
11
11
|
import { AnnError } from './exception/AnnError';
|
|
12
12
|
import { AnnErrorRender } from './exception/AnnErrorRender';
|
|
13
13
|
import { AnnErrorMsg, getAnnErrorMsg, getAnnErrorList } from './decorator/AnnErrorMsg';
|
|
14
|
-
import { AnnEnumMsg, getAnnEnumMsg,
|
|
14
|
+
import { AnnEnumMsg, getAnnEnumMsg, getAnnEnumMap, getAnnEnumArray } from './decorator/AnnEnumMsg';
|
|
15
15
|
export { CustomConfiguration as Configuration } from './configuration';
|
|
16
|
-
export { urllib, fsplus, mathjs, lodash, dayjs, sleep, collect, include, globDir, fileMd5, AnnEnumMsg, getAnnEnumMsg,
|
|
16
|
+
export { urllib, fsplus, mathjs, lodash, dayjs, sleep, collect, include, globDir, fileMd5, AnnEnumMsg, getAnnEnumMsg, getAnnEnumMap, getAnnEnumArray, AnnErrorMsg, getAnnErrorMsg, getAnnErrorList, AnnError, AnnErrorRender, };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a10_0x100b4d=a10_0x4246;(function(_0x551760,_0x26b9ee){const _0x19e65c=a10_0x4246,_0x5a61b3=_0x551760();while(!![]){try{const _0x1ae47d=parseInt(_0x19e65c(0x142))/0x1*(parseInt(_0x19e65c(0x148))/0x2)+parseInt(_0x19e65c(0x13a))/0x3*(-parseInt(_0x19e65c(0x147))/0x4)+-parseInt(_0x19e65c(0x152))/0x5*(-parseInt(_0x19e65c(0x13e))/0x6)+parseInt(_0x19e65c(0x135))/0x7+-parseInt(_0x19e65c(0x12c))/0x8*(parseInt(_0x19e65c(0x151))/0x9)+parseInt(_0x19e65c(0x146))/0xa+-parseInt(_0x19e65c(0x14f))/0xb*(parseInt(_0x19e65c(0x150))/0xc);if(_0x1ae47d===_0x26b9ee)break;else _0x5a61b3['push'](_0x5a61b3['shift']());}catch(_0x122af9){_0x5a61b3['push'](_0x5a61b3['shift']());}}}(a10_0x58ee,0x97af3));Object[a10_0x100b4d(0x145)](exports,a10_0x100b4d(0x12a),{'value':!![]}),exports[a10_0x100b4d(0x139)]=exports[a10_0x100b4d(0x14b)]=exports[a10_0x100b4d(0x144)]=exports['getAnnErrorMsg']=exports[a10_0x100b4d(0x138)]=exports[a10_0x100b4d(0x133)]=exports[a10_0x100b4d(0x153)]=exports[a10_0x100b4d(0x134)]=exports['AnnEnumMsg']=exports['fileMd5']=exports[a10_0x100b4d(0x130)]=exports[a10_0x100b4d(0x12d)]=exports[a10_0x100b4d(0x140)]=exports[a10_0x100b4d(0x132)]=exports[a10_0x100b4d(0x131)]=exports[a10_0x100b4d(0x12e)]=exports[a10_0x100b4d(0x14e)]=exports[a10_0x100b4d(0x143)]=exports['urllib']=exports[a10_0x100b4d(0x154)]=void 0x0;const dayjs=require(a10_0x100b4d(0x131));exports['dayjs']=dayjs;const urllib=require('urllib');exports[a10_0x100b4d(0x13b)]=urllib;function a10_0x58ee(){const _0x62d7f8=['./helper/sleep','AnnError','./helper/globDir','CustomConfiguration','mathjs','11XjFbUO','4613268jKzWcr','5751135BRgANy','5eQSVQz','getAnnEnumMap','Configuration','__esModule','getAnnErrorMsg','8UzVPVH','include','lodash','./configuration','globDir','dayjs','sleep','getAnnEnumArray','getAnnEnumMsg','7361914jOgQWP','./decorator/AnnEnumMsg','./exception/AnnError','AnnErrorMsg','AnnErrorRender','885LNXHLi','urllib','./helper/fileMd5','fileMd5','1877202lfInrD','AnnEnumMsg','collect','./decorator/AnnErrorMsg','74268hPbvup','fsplus','getAnnErrorList','defineProperty','5686150TRLjUx','6932mCCzjl','6HmNavM','./exception/AnnErrorRender'];a10_0x58ee=function(){return _0x62d7f8;};return a10_0x58ee();}const mathjs=require(a10_0x100b4d(0x14e));exports[a10_0x100b4d(0x14e)]=mathjs;const lodash=require(a10_0x100b4d(0x12e));exports[a10_0x100b4d(0x12e)]=lodash;function a10_0x4246(_0x15b343,_0x23c13e){const _0x58eee3=a10_0x58ee();return a10_0x4246=function(_0x424650,_0x41a154){_0x424650=_0x424650-0x12a;let _0x52f0f1=_0x58eee3[_0x424650];return _0x52f0f1;},a10_0x4246(_0x15b343,_0x23c13e);}const fsplus=require('fs-extra');exports[a10_0x100b4d(0x143)]=fsplus;const collect_js_1=require('collect.js');Object[a10_0x100b4d(0x145)](exports,a10_0x100b4d(0x140),{'enumerable':!![],'get':function(){const _0xf109ba=a10_0x100b4d;return collect_js_1[_0xf109ba(0x140)];}});const sleep_1=require(a10_0x100b4d(0x14a));Object[a10_0x100b4d(0x145)](exports,a10_0x100b4d(0x132),{'enumerable':!![],'get':function(){return sleep_1['sleep'];}});const include_1=require('./helper/include');Object['defineProperty'](exports,'include',{'enumerable':!![],'get':function(){return include_1['include'];}});const globDir_1=require(a10_0x100b4d(0x14c));Object[a10_0x100b4d(0x145)](exports,a10_0x100b4d(0x130),{'enumerable':!![],'get':function(){const _0x51a915=a10_0x100b4d;return globDir_1[_0x51a915(0x130)];}});const fileMd5_1=require(a10_0x100b4d(0x13c));Object[a10_0x100b4d(0x145)](exports,a10_0x100b4d(0x13d),{'enumerable':!![],'get':function(){const _0x2f67a6=a10_0x100b4d;return fileMd5_1[_0x2f67a6(0x13d)];}});const AnnError_1=require(a10_0x100b4d(0x137));Object[a10_0x100b4d(0x145)](exports,a10_0x100b4d(0x14b),{'enumerable':!![],'get':function(){const _0x541741=a10_0x100b4d;return AnnError_1[_0x541741(0x14b)];}});const AnnErrorRender_1=require(a10_0x100b4d(0x149));Object[a10_0x100b4d(0x145)](exports,a10_0x100b4d(0x139),{'enumerable':!![],'get':function(){const _0x39ff78=a10_0x100b4d;return AnnErrorRender_1[_0x39ff78(0x139)];}});const AnnErrorMsg_1=require(a10_0x100b4d(0x141));Object[a10_0x100b4d(0x145)](exports,a10_0x100b4d(0x138),{'enumerable':!![],'get':function(){return AnnErrorMsg_1['AnnErrorMsg'];}}),Object[a10_0x100b4d(0x145)](exports,'getAnnErrorMsg',{'enumerable':!![],'get':function(){const _0x315eeb=a10_0x100b4d;return AnnErrorMsg_1[_0x315eeb(0x12b)];}}),Object[a10_0x100b4d(0x145)](exports,'getAnnErrorList',{'enumerable':!![],'get':function(){const _0x55e87f=a10_0x100b4d;return AnnErrorMsg_1[_0x55e87f(0x144)];}});const AnnEnumMsg_1=require(a10_0x100b4d(0x136));Object['defineProperty'](exports,'AnnEnumMsg',{'enumerable':!![],'get':function(){return AnnEnumMsg_1['AnnEnumMsg'];}}),Object[a10_0x100b4d(0x145)](exports,a10_0x100b4d(0x134),{'enumerable':!![],'get':function(){return AnnEnumMsg_1['getAnnEnumMsg'];}}),Object[a10_0x100b4d(0x145)](exports,a10_0x100b4d(0x153),{'enumerable':!![],'get':function(){const _0x335f7c=a10_0x100b4d;return AnnEnumMsg_1[_0x335f7c(0x153)];}}),Object[a10_0x100b4d(0x145)](exports,a10_0x100b4d(0x133),{'enumerable':!![],'get':function(){const _0x5cada4=a10_0x100b4d;return AnnEnumMsg_1[_0x5cada4(0x133)];}});var configuration_1=require(a10_0x100b4d(0x12f));Object[a10_0x100b4d(0x145)](exports,a10_0x100b4d(0x154),{'enumerable':!![],'get':function(){const _0x78b7bf=a10_0x100b4d;return configuration_1[_0x78b7bf(0x14d)];}}),(global[a10_0x100b4d(0x13b)]=urllib,global[a10_0x100b4d(0x143)]=fsplus,global[a10_0x100b4d(0x14e)]=mathjs,global[a10_0x100b4d(0x12e)]=lodash),(global[a10_0x100b4d(0x131)]=dayjs,global[a10_0x100b4d(0x132)]=sleep_1[a10_0x100b4d(0x132)],global['collect']=collect_js_1[a10_0x100b4d(0x140)],global[a10_0x100b4d(0x12d)]=include_1[a10_0x100b4d(0x12d)],global[a10_0x100b4d(0x130)]=globDir_1[a10_0x100b4d(0x130)],global[a10_0x100b4d(0x13d)]=fileMd5_1[a10_0x100b4d(0x13d)]),(global[a10_0x100b4d(0x13f)]=AnnEnumMsg_1[a10_0x100b4d(0x13f)],global[a10_0x100b4d(0x134)]=AnnEnumMsg_1['getAnnEnumMsg'],global['getAnnEnumMap']=AnnEnumMsg_1[a10_0x100b4d(0x153)],global[a10_0x100b4d(0x133)]=AnnEnumMsg_1['getAnnEnumArray']),(global[a10_0x100b4d(0x138)]=AnnErrorMsg_1[a10_0x100b4d(0x138)],global[a10_0x100b4d(0x12b)]=AnnErrorMsg_1[a10_0x100b4d(0x12b)],global['getAnnErrorList']=AnnErrorMsg_1[a10_0x100b4d(0x144)],global[a10_0x100b4d(0x14b)]=AnnError_1[a10_0x100b4d(0x14b)],global['AnnErrorRender']=AnnErrorRender_1[a10_0x100b4d(0x139)]);
|
package/index.d.ts
CHANGED
|
@@ -36,13 +36,16 @@ declare global { // 全局变量设置
|
|
|
36
36
|
|
|
37
37
|
export function AnnEnumMsg(field: string, message: string): PropertyDecorator;
|
|
38
38
|
export function getAnnEnumMsg(target: any, field: string, code: number | string): string;
|
|
39
|
-
export function
|
|
39
|
+
export function getAnnEnumMap(target: any, field: string): { [key: string]: string | number; };
|
|
40
40
|
export function getAnnEnumArray(target: any, field: string, filters?: Array<number | string>): (string | number)[];
|
|
41
41
|
|
|
42
42
|
export function AnnErrorMsg(message: string): PropertyDecorator;
|
|
43
43
|
export function getAnnErrorMsg(code: number): string;
|
|
44
44
|
export function getAnnErrorList(): {
|
|
45
|
-
[key: number]:
|
|
45
|
+
[key: number]: {
|
|
46
|
+
code: string | number;
|
|
47
|
+
message: string;
|
|
48
|
+
};
|
|
46
49
|
};
|
|
47
50
|
|
|
48
51
|
export class AnnError extends Error {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"javascript-obfuscator": "2.19.0",
|
|
42
42
|
"typescript": "^4.7.4"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "589d64d0ada153a22757a44b6f114a90c4bc0b10"
|
|
45
45
|
}
|