@anncic-api/typeorm 1.3.5 → 1.3.9
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/configuration.js +1 -1
- package/dist/decorator/InjectEntity.js +1 -1
- package/dist/decorator/InjectRepository.js +1 -1
- package/dist/decorator/ProvideEntity.js +1 -1
- package/dist/decorator/ProvideRepository.js +1 -1
- package/dist/decorator/ProvideSearch.js +1 -1
- package/dist/decorator/VirtualColumn.js +1 -1
- package/dist/definition/Repository.js +1 -1
- package/dist/helper/getDataSourceEntity.js +1 -1
- package/dist/index.js +1 -1
- package/dist/interface.js +1 -1
- package/package.json +2 -2
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x217636=a0_0x58dc;(function(_0x33bebd,_0x309479){const _0xaeac6f=a0_0x58dc,_0x408dfb=_0x33bebd();while(!![]){try{const _0x590360=-parseInt(_0xaeac6f(0xe0))/0x1*(parseInt(_0xaeac6f(0xd6))/0x2)+parseInt(_0xaeac6f(0xe7))/0x3+parseInt(_0xaeac6f(0xb6))/0x4+parseInt(_0xaeac6f(0xd8))/0x5+parseInt(_0xaeac6f(0xd2))/0x6*(parseInt(_0xaeac6f(0xd1))/0x7)+-parseInt(_0xaeac6f(0xee))/0x8*(-parseInt(_0xaeac6f(0xc3))/0x9)+-parseInt(_0xaeac6f(0xce))/0xa;if(_0x590360===_0x309479)break;else _0x408dfb['push'](_0x408dfb['shift']());}catch(_0x1b5951){_0x408dfb['push'](_0x408dfb['shift']());}}}(a0_0x4a1b,0x63a7a));var __decorate=this&&this[a0_0x217636(0xc2)]||function(_0x19c704,_0xa0049a,_0x2cae15,_0x3070f0){const _0x5992d2=a0_0x217636;var _0x4ff20e=arguments[_0x5992d2(0xe5)],_0x41f762=_0x4ff20e<0x3?_0xa0049a:_0x3070f0===null?_0x3070f0=Object['getOwnPropertyDescriptor'](_0xa0049a,_0x2cae15):_0x3070f0,_0x506954;if(typeof Reflect===_0x5992d2(0xc0)&&typeof Reflect[_0x5992d2(0xd3)]===_0x5992d2(0xd7))_0x41f762=Reflect['decorate'](_0x19c704,_0xa0049a,_0x2cae15,_0x3070f0);else{for(var _0x579392=_0x19c704[_0x5992d2(0xe5)]-0x1;_0x579392>=0x0;_0x579392--)if(_0x506954=_0x19c704[_0x579392])_0x41f762=(_0x4ff20e<0x3?_0x506954(_0x41f762):_0x4ff20e>0x3?_0x506954(_0xa0049a,_0x2cae15,_0x41f762):_0x506954(_0xa0049a,_0x2cae15))||_0x41f762;}return _0x4ff20e>0x3&&_0x41f762&&Object[_0x5992d2(0xb7)](_0xa0049a,_0x2cae15,_0x41f762),_0x41f762;},__metadata=this&&this[a0_0x217636(0xc4)]||function(_0xe4d9e6,_0x14f87f){const _0x234e2d=a0_0x217636;if(typeof Reflect===_0x234e2d(0xc0)&&typeof Reflect['metadata']===_0x234e2d(0xd7))return Reflect[_0x234e2d(0xb9)](_0xe4d9e6,_0x14f87f);};function a0_0x4a1b(){const _0x5dbae4=['body','find','16QcNxxe','function','1728880STsVjt','typeorm','config','design:type','\x20is\x20not\x20ProvideRepository\x20Entify','registerPropertyHandler','getClassMetadata','TypeORMDataSourceManager','48937SKxuFi','getRepository','EntityNotFoundError','@midwayjs/core','TypeORMError','length','数据不存在','723087pvkwEd','prototype','Inject','middlewareError','@midwayjs/typeorm','MidwayDecoratorService','REPOSITORY_KEY','376hWylMr','warn','1108856byHsyL','defineProperty','CustomConfiguration','metadata','ENTIFY_KEY','MidwayConfigService','production','push','name','getEnv','object','decorator','__decorate','82791WAULKC','__metadata','handlercache','onReady','target','./definition/Repository','getDataSource','getDataSourceNameByModel','anncic-api:typeorm','useMiddleware','message','6758580sGUdOr','Repository','getAsync','57008uNCNkN','132RDFMVv','decorate'];a0_0x4a1b=function(){return _0x5dbae4;};return a0_0x4a1b();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x217636(0xb8)]=void 0x0;const typeorm_1=require(a0_0x217636(0xeb)),core_1=require(a0_0x217636(0xe3)),core_2=require('@midwayjs/core'),typeorm_2=require(a0_0x217636(0xd9)),Repository_1=require(a0_0x217636(0xc8)),interface_1=require('./interface'),typeorm=require('@midwayjs/typeorm');function a0_0x58dc(_0x3767f2,_0x490d32){const _0x4a1b14=a0_0x4a1b();return a0_0x58dc=function(_0x58dc41,_0x53c5b9){_0x58dc41=_0x58dc41-0xb6;let _0x52963b=_0x4a1b14[_0x58dc41];return _0x52963b;},a0_0x58dc(_0x3767f2,_0x490d32);}let CustomConfiguration=class CustomConfiguration{constructor(){const _0x3e20a4=a0_0x217636;this[_0x3e20a4(0xc5)]=[];}async[a0_0x217636(0xc6)](_0x2bac00,_0x2910a0){const _0x4c4764=a0_0x217636,_0x32081f=await _0x2bac00[_0x4c4764(0xd0)](typeorm_1[_0x4c4764(0xdf)]);this[_0x4c4764(0xc1)]['registerPropertyHandler'](interface_1[_0x4c4764(0xba)],(_0x54246b,{entity:_0x1f0265,connection:_0x275ca0})=>{const _0x34c1eb=_0x4c4764;let _0x15ec4b=this[_0x34c1eb(0xc5)][_0x34c1eb(0xd5)](_0x21d122=>_0x21d122[_0x34c1eb(0xc7)]===_0x1f0265);return!_0x15ec4b&&(_0x15ec4b=new Repository_1[(_0x34c1eb(0xcf))](_0x2910a0,_0x32081f[_0x34c1eb(0xc9)](_0x275ca0||_0x32081f[_0x34c1eb(0xca)](_0x1f0265))['getRepository'](_0x1f0265)),this[_0x34c1eb(0xc5)]['push'](_0x15ec4b)),_0x15ec4b;}),this['decorator'][_0x4c4764(0xdd)](interface_1[_0x4c4764(0xed)],(_0x5f27c4,{repository:_0x528f97,connection:_0x2faf19})=>{const _0x882e1f=_0x4c4764,{entity:_0x237850}=(0x0,core_1[_0x882e1f(0xde)])(interface_1['REPOSITORY_KEY'],_0x528f97)||{};if(!_0x237850)throw new Error('anncic-api-typeorm\x20Error\x20'+((_0x528f97===null||_0x528f97===void 0x0?void 0x0:_0x528f97[_0x882e1f(0xbe)])||_0x528f97)+_0x882e1f(0xdc));let _0x1f5365=this['handlercache'][_0x882e1f(0xd5)](_0x28d2e3=>_0x28d2e3===_0x528f97);return!_0x1f5365&&(_0x1f5365=new _0x528f97(_0x2910a0,_0x32081f[_0x882e1f(0xc9)](_0x2faf19||_0x32081f[_0x882e1f(0xca)](_0x237850))[_0x882e1f(0xe1)](_0x237850)),this[_0x882e1f(0xc5)][_0x882e1f(0xbd)](_0x1f5365)),_0x1f5365;}),_0x2910a0[_0x4c4764(0xcc)](this[_0x4c4764(0xea)](_0x2910a0));}['middlewareError'](_0x2cacaa){return async(_0x1cd92b,_0x3fab7c)=>{const _0x55eeed=a0_0x58dc;try{await _0x3fab7c();}catch(_0x4da5ce){if(_0x4da5ce instanceof typeorm_2[_0x55eeed(0xe4)])_0x4da5ce instanceof typeorm_2[_0x55eeed(0xe2)]?_0x1cd92b[_0x55eeed(0xd4)]={'code':0x194,'msg':_0x55eeed(0xe6)}:(_0x1cd92b[_0x55eeed(0xd4)]={'code':0x1f4,'msg':_0x4da5ce[_0x55eeed(0xcd)]},_0x2cacaa[_0x55eeed(0xbf)]()!=_0x55eeed(0xbc)&&console[_0x55eeed(0xef)](_0x4da5ce));else throw _0x4da5ce;}};}};__decorate([(0x0,core_1[a0_0x217636(0xe9)])(),__metadata('design:type',core_2[a0_0x217636(0xbb)])],CustomConfiguration[a0_0x217636(0xe8)],a0_0x217636(0xda),void 0x0),__decorate([(0x0,core_1[a0_0x217636(0xe9)])(),__metadata(a0_0x217636(0xdb),core_2[a0_0x217636(0xec)])],CustomConfiguration[a0_0x217636(0xe8)],'decorator',void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[typeorm],'conflictCheck':![],'namespace':a0_0x217636(0xcb)})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x6c48a6=a1_0x5ebf;(function(_0x57bbcf,_0x576712){const _0x1b2303=a1_0x5ebf,_0x279583=_0x57bbcf();while(!![]){try{const _0x30c182=-parseInt(_0x1b2303(0x116))/0x1+parseInt(_0x1b2303(0x113))/0x2+-parseInt(_0x1b2303(0x119))/0x3*(-parseInt(_0x1b2303(0x11c))/0x4)+-parseInt(_0x1b2303(0x11e))/0x5*(parseInt(_0x1b2303(0x115))/0x6)+parseInt(_0x1b2303(0x11f))/0x7*(-parseInt(_0x1b2303(0x117))/0x8)+-parseInt(_0x1b2303(0x111))/0x9+parseInt(_0x1b2303(0x11a))/0xa;if(_0x30c182===_0x576712)break;else _0x279583['push'](_0x279583['shift']());}catch(_0x31972b){_0x279583['push'](_0x279583['shift']());}}}(a1_0x1ed2,0x3cc2c));Object[a1_0x6c48a6(0x118)](exports,'__esModule',{'value':!![]}),exports[a1_0x6c48a6(0x11d)]=void 0x0;const core_1=require(a1_0x6c48a6(0x120)),interface_1=require('../interface');function a1_0x5ebf(_0x3a28fa,_0xe9d3c3){const _0x1ed257=a1_0x1ed2();return a1_0x5ebf=function(_0x5ebffc,_0x1db6ff){_0x5ebffc=_0x5ebffc-0x111;let _0x303ff3=_0x1ed257[_0x5ebffc];return _0x303ff3;},a1_0x5ebf(_0x3a28fa,_0xe9d3c3);}function a1_0x1ed2(){const _0x5a7dd2=['394574jYCPDk','104xtsLpN','defineProperty','101091QDGBlE','7841380iNADVc','default','16aJRtnq','InjectEntity','25735ZHMxJX','141589hoCjus','@midwayjs/core','783711GtNJWP','ENTIFY_KEY','746160QcZucG','createCustomPropertyDecorator','348VAwdKH'];a1_0x1ed2=function(){return _0x5a7dd2;};return a1_0x1ed2();}function InjectEntity(_0x5483ea,_0x5d4ae0=a1_0x6c48a6(0x11b)){const _0x308189=a1_0x6c48a6;return(0x0,core_1[_0x308189(0x114)])(interface_1[_0x308189(0x112)],{'entity':_0x5483ea,'connection':_0x5d4ae0});}exports[a1_0x6c48a6(0x11d)]=InjectEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a2_0x4562b9=a2_0x6b33;function a2_0x6b33(_0x4efa3d,_0x5aaba1){const _0x57c0a9=a2_0x57c0();return a2_0x6b33=function(_0x6b331d,_0x4ddf3e){_0x6b331d=_0x6b331d-0x1b8;let _0x579908=_0x57c0a9[_0x6b331d];return _0x579908;},a2_0x6b33(_0x4efa3d,_0x5aaba1);}(function(_0x32956e,_0x4cd9f6){const _0x330d01=a2_0x6b33,_0x4648d2=_0x32956e();while(!![]){try{const _0x362461=parseInt(_0x330d01(0x1c0))/0x1+parseInt(_0x330d01(0x1c3))/0x2+parseInt(_0x330d01(0x1c7))/0x3+-parseInt(_0x330d01(0x1be))/0x4*(parseInt(_0x330d01(0x1c6))/0x5)+-parseInt(_0x330d01(0x1bc))/0x6+parseInt(_0x330d01(0x1c1))/0x7+-parseInt(_0x330d01(0x1b8))/0x8*(parseInt(_0x330d01(0x1b9))/0x9);if(_0x362461===_0x4cd9f6)break;else _0x4648d2['push'](_0x4648d2['shift']());}catch(_0x379947){_0x4648d2['push'](_0x4648d2['shift']());}}}(a2_0x57c0,0xe0744));Object[a2_0x4562b9(0x1c8)](exports,a2_0x4562b9(0x1bb),{'value':!![]}),exports[a2_0x4562b9(0x1c4)]=void 0x0;const core_1=require(a2_0x4562b9(0x1c2)),interface_1=require(a2_0x4562b9(0x1c5));function a2_0x57c0(){const _0x22f5e6=['__esModule','7515090taghLu','REPOSITORY_KEY','23976DLoMLG','default','84882vwTxAn','11340203gGVetI','@midwayjs/core','1232104JDgIov','InjectRepository','../interface','985kCbkiy','5134659mZSOrx','defineProperty','8fJvLhm','6118371zWcVPS','createCustomPropertyDecorator'];a2_0x57c0=function(){return _0x22f5e6;};return a2_0x57c0();}function InjectRepository(_0x3c6fee,_0x3e0f36=a2_0x4562b9(0x1bf)){const _0x1ee40e=a2_0x4562b9;return(0x0,core_1[_0x1ee40e(0x1ba)])(interface_1[_0x1ee40e(0x1bd)],{'repository':_0x3c6fee,'connection':_0x3e0f36});}exports['InjectRepository']=InjectRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x460c77=a3_0x9451;(function(_0x390ebf,_0x3badc0){const _0x1ff87b=a3_0x9451,_0x477a88=_0x390ebf();while(!![]){try{const _0x5158f6=parseInt(_0x1ff87b(0x148))/0x1+-parseInt(_0x1ff87b(0x14f))/0x2+parseInt(_0x1ff87b(0x147))/0x3+parseInt(_0x1ff87b(0x156))/0x4+parseInt(_0x1ff87b(0x157))/0x5*(-parseInt(_0x1ff87b(0x159))/0x6)+parseInt(_0x1ff87b(0x152))/0x7+parseInt(_0x1ff87b(0x143))/0x8*(-parseInt(_0x1ff87b(0x141))/0x9);if(_0x5158f6===_0x3badc0)break;else _0x477a88['push'](_0x477a88['shift']());}catch(_0x34699f){_0x477a88['push'](_0x477a88['shift']());}}}(a3_0x12f5,0x4026f));Object[a3_0x460c77(0x145)](exports,a3_0x460c77(0x154),{'value':!![]}),exports[a3_0x460c77(0x14d)]=void 0x0;const typeorm_1=require(a3_0x460c77(0x142)),core_1=require(a3_0x460c77(0x149)),interface_1=require(a3_0x460c77(0x153));function ProvideEntity(_0x2446e1,_0x1b9c54={}){return _0x477404=>{const _0x1257e6=a3_0x9451;_0x1b9c54['name']=_0x2446e1[_0x1257e6(0x155)];const _0x267f1c=[];if(!(_0x2446e1===null||_0x2446e1===void 0x0?void 0x0:_0x2446e1[_0x1257e6(0x144)]))_0x267f1c[_0x1257e6(0x14b)](_0x1257e6(0x146));else{if(typeof(_0x2446e1===null||_0x2446e1===void 0x0?void 0x0:_0x2446e1['dataSource'])==_0x1257e6(0x158))_0x267f1c[_0x1257e6(0x14b)](_0x2446e1===null||_0x2446e1===void 0x0?void 0x0:_0x2446e1[_0x1257e6(0x144)]);else{if(Array[_0x1257e6(0x14a)](_0x2446e1===null||_0x2446e1===void 0x0?void 0x0:_0x2446e1['dataSource']))for(let _0x5d49da of _0x2446e1[_0x1257e6(0x144)]||[_0x1257e6(0x146)]){_0x267f1c['push'](_0x5d49da);}}}(0x0,core_1[_0x1257e6(0x14e)])(interface_1[_0x1257e6(0x150)],_0x477404),(0x0,core_1['saveClassMetadata'])(interface_1[_0x1257e6(0x151)],{'tableName':_0x2446e1['tableName'],'dataSource':_0x267f1c},_0x477404),(0x0,typeorm_1[_0x1257e6(0x14c)])(_0x2446e1[_0x1257e6(0x155)],_0x1b9c54)(_0x477404);};}function a3_0x9451(_0x42b36b,_0x4bd052){const _0x12f5c5=a3_0x12f5();return a3_0x9451=function(_0x945100,_0x5df276){_0x945100=_0x945100-0x141;let _0x453c1b=_0x12f5c5[_0x945100];return _0x453c1b;},a3_0x9451(_0x42b36b,_0x4bd052);}function a3_0x12f5(){const _0x513774=['787912cCHbgZ','ENTIFY_MODULE','ENTIFY_MODULE_SOURCE','1728349oNiodU','../interface','__esModule','tableName','1961580RxSoYa','135kvdoqt','string','60234Fmduqt','9SpCPjv','typeorm','1206248IIxUWf','dataSource','defineProperty','default','857010fpGgUS','55585QRuwSE','@midwayjs/core','isArray','push','Entity','ProvideEntity','saveModule'];a3_0x12f5=function(){return _0x513774;};return a3_0x12f5();}exports[a3_0x460c77(0x14d)]=ProvideEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x3a9e48=a4_0x5829;(function(_0x4e3af9,_0x424809){const _0x249ffe=a4_0x5829,_0x6485fd=_0x4e3af9();while(!![]){try{const _0x4c8b99=parseInt(_0x249ffe(0xf2))/0x1*(-parseInt(_0x249ffe(0xfa))/0x2)+parseInt(_0x249ffe(0xf5))/0x3+parseInt(_0x249ffe(0xfd))/0x4*(parseInt(_0x249ffe(0xf4))/0x5)+-parseInt(_0x249ffe(0xf9))/0x6*(parseInt(_0x249ffe(0xf3))/0x7)+-parseInt(_0x249ffe(0xf1))/0x8*(-parseInt(_0x249ffe(0xef))/0x9)+-parseInt(_0x249ffe(0xee))/0xa+-parseInt(_0x249ffe(0xeb))/0xb*(-parseInt(_0x249ffe(0xf0))/0xc);if(_0x4c8b99===_0x424809)break;else _0x6485fd['push'](_0x6485fd['shift']());}catch(_0x17f283){_0x6485fd['push'](_0x6485fd['shift']());}}}(a4_0x161f,0x85824));Object[a4_0x3a9e48(0xec)](exports,a4_0x3a9e48(0xfc),{'value':!![]}),exports[a4_0x3a9e48(0xfb)]=void 0x0;function a4_0x161f(){const _0x31cb0c=['3281495sTbRWu','5zYWRyp','114864kQqLJi','../interface','@midwayjs/core','Request','6wSQOOh','12OyNWVN','ProvideRepository','__esModule','4037656ZfMuzV','Provide','11KGswLU','defineProperty','saveClassMetadata','9318090Stbkyn','2259ybYjbU','11610024zEEHfT','15168iFeLgo','90609wvVHga'];a4_0x161f=function(){return _0x31cb0c;};return a4_0x161f();}const core_1=require(a4_0x3a9e48(0xf7)),interface_1=require(a4_0x3a9e48(0xf6));function a4_0x5829(_0xcd869f,_0x286878){const _0x161f8e=a4_0x161f();return a4_0x5829=function(_0x5829c7,_0x261abc){_0x5829c7=_0x5829c7-0xeb;let _0x3de458=_0x161f8e[_0x5829c7];return _0x3de458;},a4_0x5829(_0xcd869f,_0x286878);}function ProvideRepository(_0x4ecff9){return _0x2b345e=>{const _0xd169ef=a4_0x5829;(0x0,core_1['Scope'])(core_1['ScopeEnum'][_0xd169ef(0xf8)],{'allowDowngrade':!![]})(_0x2b345e),((0x0,core_1[_0xd169ef(0xfe)])()(_0x2b345e),(0x0,core_1[_0xd169ef(0xed)])(interface_1['REPOSITORY_KEY'],{'entity':_0x4ecff9},_0x2b345e));};}exports['ProvideRepository']=ProvideRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x457697=a5_0x3aed;(function(_0x2f8351,_0x26c268){const _0x5dd25e=a5_0x3aed,_0x3418e0=_0x2f8351();while(!![]){try{const _0xa93179=parseInt(_0x5dd25e(0x132))/0x1*(parseInt(_0x5dd25e(0x12b))/0x2)+-parseInt(_0x5dd25e(0x129))/0x3+-parseInt(_0x5dd25e(0x12a))/0x4*(-parseInt(_0x5dd25e(0x130))/0x5)+-parseInt(_0x5dd25e(0x122))/0x6+-parseInt(_0x5dd25e(0x131))/0x7*(-parseInt(_0x5dd25e(0x11f))/0x8)+parseInt(_0x5dd25e(0x11d))/0x9*(-parseInt(_0x5dd25e(0x120))/0xa)+parseInt(_0x5dd25e(0x128))/0xb;if(_0xa93179===_0x26c268)break;else _0x3418e0['push'](_0x3418e0['shift']());}catch(_0x415b8f){_0x3418e0['push'](_0x3418e0['shift']());}}}(a5_0x3993,0x4a303));Object['defineProperty'](exports,a5_0x457697(0x126),{'value':!![]}),exports[a5_0x457697(0x125)]=exports['ProvideSearch']=void 0x0;function a5_0x3aed(_0x4d7c4e,_0x4c6875){const _0x399386=a5_0x3993();return a5_0x3aed=function(_0x3aed33,_0x4cf118){_0x3aed33=_0x3aed33-0x11d;let _0x1e6872=_0x399386[_0x3aed33];return _0x1e6872;},a5_0x3aed(_0x4d7c4e,_0x4c6875);}const core_1=require('@midwayjs/core'),interface_1=require(a5_0x457697(0x124));function ProvideSearch(_0x30e74c){return _0x3b48e9=>{const _0x2085e0=a5_0x3aed;(0x0,core_1[_0x2085e0(0x12c)])(interface_1[_0x2085e0(0x12e)],_0x3b48e9),(0x0,core_1[_0x2085e0(0x12f)])(core_1[_0x2085e0(0x121)][_0x2085e0(0x123)])(_0x3b48e9),(0x0,core_1[_0x2085e0(0x127)])(interface_1[_0x2085e0(0x12e)],_0x30e74c,_0x3b48e9);};}exports[a5_0x457697(0x11e)]=ProvideSearch;function Search(_0x4a6276,_0x39d318){return(_0x4b93b5,_0x10baa3,_0x5dddc4)=>{const _0x2cde25=a5_0x3aed;(0x0,core_1[_0x2cde25(0x127)])(interface_1[_0x2cde25(0x12d)],{'field':_0x4a6276,'comment':_0x39d318,'target':_0x4b93b5,'methodName':_0x10baa3,'descriptor':_0x5dddc4},_0x4b93b5);};}function a5_0x3993(){const _0x14b4b2=['ScopeEnum','2955342rCWhmZ','Singleton','../interface','Search','__esModule','attachClassMetadata','7855309bzeJrU','645303FmRqPP','5256DYlYes','187582ESerMe','saveModule','MODEL_SEARCH_KEY','MODEL_KEY','Scope','1140znqMtE','1484YBIGPu','3YZdiGD','2637ccCoHC','ProvideSearch','10208fPTRAq','18910XFMXvt'];a5_0x3993=function(){return _0x14b4b2;};return a5_0x3993();}exports[a5_0x457697(0x125)]=Search;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a6_0x531f07=a6_0x5e82;(function(_0xf74ff1,_0x4a1c30){const _0x36968d=a6_0x5e82,_0x3cf902=_0xf74ff1();while(!![]){try{const _0x38bb27=parseInt(_0x36968d(0x1b7))/0x1*(-parseInt(_0x36968d(0x1bd))/0x2)+-parseInt(_0x36968d(0x1c0))/0x3+-parseInt(_0x36968d(0x1c1))/0x4*(parseInt(_0x36968d(0x1c3))/0x5)+-parseInt(_0x36968d(0x1c4))/0x6+parseInt(_0x36968d(0x1b8))/0x7*(-parseInt(_0x36968d(0x1ba))/0x8)+-parseInt(_0x36968d(0x1bf))/0x9+parseInt(_0x36968d(0x1c2))/0xa;if(_0x38bb27===_0x4a1c30)break;else _0x3cf902['push'](_0x3cf902['shift']());}catch(_0x541dd0){_0x3cf902['push'](_0x3cf902['shift']());}}}(a6_0x5647,0x1a60c));function a6_0x5647(){const _0x414ce0=['4ICBAfH','VirtualColumn','377019rvaUVX','341547ChguDX','548ZidtXB','7351420COxyoC','4005HjZmYh','455448oJXTKK','defineProperty','@midwayjs/core','55766HUfqSb','7OjVrje','saveClassMetadata','1393448KOukzY','getClassMetadata','ENTITY_VIRTUAL_COLUMN_KEY'];a6_0x5647=function(){return _0x414ce0;};return a6_0x5647();}Object[a6_0x531f07(0x1c5)](exports,'__esModule',{'value':!![]}),exports[a6_0x531f07(0x1be)]=void 0x0;const core_1=require(a6_0x531f07(0x1c6)),interface_1=require('../interface');function a6_0x5e82(_0x191359,_0x1c14c6){const _0x5647dc=a6_0x5647();return a6_0x5e82=function(_0x5e82d2,_0x480480){_0x5e82d2=_0x5e82d2-0x1b7;let _0x3985ad=_0x5647dc[_0x5e82d2];return _0x3985ad;},a6_0x5e82(_0x191359,_0x1c14c6);}function VirtualColumn(_0x53f8f0,_0x565bfa){return(_0x4a0f2e,_0x155dfd)=>{const _0x675ff3=a6_0x5e82,_0x438221=(0x0,core_1[_0x675ff3(0x1bb)])(interface_1[_0x675ff3(0x1bc)],_0x4a0f2e)||{};_0x438221[_0x155dfd]={'comment':_0x53f8f0,..._0x565bfa},(0x0,core_1[_0x675ff3(0x1b9)])(interface_1[_0x675ff3(0x1bc)],_0x438221,_0x4a0f2e);};}exports[a6_0x531f07(0x1be)]=VirtualColumn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a7_0x4e9ed5=a7_0x4828;function a7_0x4828(_0x27996e,_0x401fde){const _0x352851=a7_0x3528();return a7_0x4828=function(_0x48289c,_0x1af4fe){_0x48289c=_0x48289c-0x146;let _0x1af3cf=_0x352851[_0x48289c];return _0x1af3cf;},a7_0x4828(_0x27996e,_0x401fde);}(function(_0xbaedcc,_0x139d18){const _0x28e87a=a7_0x4828,_0x1f6339=_0xbaedcc();while(!![]){try{const _0x128d1c=-parseInt(_0x28e87a(0x180))/0x1*(-parseInt(_0x28e87a(0x18d))/0x2)+parseInt(_0x28e87a(0x17f))/0x3+parseInt(_0x28e87a(0x179))/0x4+parseInt(_0x28e87a(0x182))/0x5*(parseInt(_0x28e87a(0x146))/0x6)+parseInt(_0x28e87a(0x14c))/0x7*(-parseInt(_0x28e87a(0x17a))/0x8)+parseInt(_0x28e87a(0x15f))/0x9*(-parseInt(_0x28e87a(0x169))/0xa)+-parseInt(_0x28e87a(0x17b))/0xb*(parseInt(_0x28e87a(0x171))/0xc);if(_0x128d1c===_0x139d18)break;else _0x1f6339['push'](_0x1f6339['shift']());}catch(_0x2505cc){_0x1f6339['push'](_0x1f6339['shift']());}}}(a7_0x3528,0x4bee3));Object['defineProperty'](exports,a7_0x4e9ed5(0x14d),{'value':!![]}),exports[a7_0x4e9ed5(0x166)]=void 0x0;const core_1=require(a7_0x4e9ed5(0x18e)),typeorm_1=require('typeorm'),interface_1=require(a7_0x4e9ed5(0x14b));class Repository extends typeorm_1[a7_0x4e9ed5(0x166)]{constructor(_0xbf956,_0xd56a52){const _0x58f40e=a7_0x4e9ed5;super(_0xd56a52[_0x58f40e(0x17d)],_0xd56a52['manager'],_0xd56a52['queryRunner']),this[_0x58f40e(0x17e)]=[];for(const _0x12408b of(0x0,core_1[_0x58f40e(0x18f)])(interface_1[_0x58f40e(0x168)],this[_0x58f40e(0x17d)])||[]){const _0x4410bd={'model':_0x12408b,'searchs':[]};for(const _0x49cf93 of(0x0,core_1['getClassMetadata'])(interface_1[_0x58f40e(0x151)],_0x12408b)||[]){_0x4410bd[_0x58f40e(0x14f)][_0x58f40e(0x153)](_0x49cf93);}this[_0x58f40e(0x17e)]['push'](_0x4410bd);}this[_0x58f40e(0x164)]=_0xbf956;}async[a7_0x4e9ed5(0x18c)](_0x79cf45,_0x5d8dc6,_0x47f8b8={}){const _0x132463=a7_0x4e9ed5;var _0xcf0085,_0x2f7f58,_0x2730b6,_0x5b5d4f,_0x5ec3e8,_0x26dac8;const _0x3a3e01=this[_0x132463(0x147)](undefined,_0x47f8b8===null||_0x47f8b8===void 0x0?void 0x0:_0x47f8b8[_0x132463(0x185)]),_0x13f3ed=[];for(const _0x4c1e12 of this[_0x132463(0x17e)]){if((_0x4c1e12===null||_0x4c1e12===void 0x0?void 0x0:_0x4c1e12[_0x132463(0x160)])&&((_0xcf0085=_0x4c1e12===null||_0x4c1e12===void 0x0?void 0x0:_0x4c1e12[_0x132463(0x14f)])===null||_0xcf0085===void 0x0?void 0x0:_0xcf0085['length'])>0x0){const _0x31d3dc=await this[_0x132463(0x164)]['getApplicationContext']()['getAsync'](_0x4c1e12['model']);for(const _0x550015 of _0x4c1e12[_0x132463(0x14f)]){(_0x550015===null||_0x550015===void 0x0?void 0x0:_0x550015[_0x132463(0x14e)])&&(_0x550015===null||_0x550015===void 0x0?void 0x0:_0x550015[_0x132463(0x173)])&&typeof _0x31d3dc[_0x550015[_0x132463(0x173)]]==_0x132463(0x172)&&(typeof(_0x79cf45===null||_0x79cf45===void 0x0?void 0x0:_0x79cf45[_0x550015['field']])!='undefined'&&!((_0x2f7f58=_0x79cf45===null||_0x79cf45===void 0x0?void 0x0:_0x79cf45[_0x550015['field']])===null||_0x2f7f58===void 0x0?void 0x0:_0x2f7f58[_0x132463(0x174)]('operator'))&&(_0x13f3ed[_0x132463(0x15b)](_0x550015['field'])==-0x1&&_0x13f3ed['push'](_0x550015['field']),await _0x31d3dc[_0x550015[_0x132463(0x173)]]['bind'](_0x31d3dc)(_0x3a3e01,_0x79cf45[_0x550015['field']],_0x79cf45,_0x5d8dc6,_0x47f8b8===null||_0x47f8b8===void 0x0?void 0x0:_0x47f8b8['queryRunner'])));}}}for(const _0x261c80 in _0x79cf45){if(typeof _0x79cf45[_0x261c80]!=_0x132463(0x186)&&_0x13f3ed[_0x132463(0x15b)](_0x261c80)==-0x1){const _0x4b52bb=this[_0x132463(0x181)]['findColumnWithPropertyName'](_0x261c80);if(_0x4b52bb){if((_0x2730b6=_0x79cf45===null||_0x79cf45===void 0x0?void 0x0:_0x79cf45[_0x261c80])===null||_0x2730b6===void 0x0?void 0x0:_0x2730b6['hasOwnProperty'](_0x132463(0x15a))){const _0x7b474=(_0x5b5d4f=_0x79cf45[_0x261c80])===null||_0x5b5d4f===void 0x0?void 0x0:_0x5b5d4f[_0x132463(0x15e)],_0x4bfa3a=(_0x5ec3e8=_0x79cf45[_0x261c80])===null||_0x5ec3e8===void 0x0?void 0x0:_0x5ec3e8[_0x132463(0x15a)][_0x132463(0x156)]()[_0x132463(0x159)](),_0x302d75=_0x132463(0x16d)+_0x261c80+'_'+Math['ceil'](Math['random']()*0xa)+Math[_0x132463(0x170)](Math[_0x132463(0x16e)]()*0xa)+Math['ceil'](Math[_0x132463(0x16e)]()*0xa)+Math[_0x132463(0x170)](Math['random']()*0xa);if(['=','!=','<>','>','>=','<','<=',_0x132463(0x176),_0x132463(0x16a)][_0x132463(0x15b)](_0x4bfa3a)!=-0x1)typeof _0x7b474!=_0x132463(0x186)&&_0x3a3e01['andWhere'](_0x3a3e01[_0x132463(0x155)]+'.'+_0x261c80+'\x20'+_0x4bfa3a+'\x20:'+_0x302d75,{[_0x302d75]:_0x7b474});else{if(['IN',_0x132463(0x154)]['indexOf'](_0x4bfa3a)!=-0x1){if(typeof _0x7b474!=_0x132463(0x186)){const _0x163ba0=Array[_0x132463(0x178)](_0x7b474)?_0x7b474:typeof _0x7b474=='string'?_0x7b474['split'](','):[_0x7b474];_0x3a3e01[_0x132463(0x187)](_0x3a3e01[_0x132463(0x155)]+'.'+_0x261c80+'\x20'+_0x4bfa3a+'(:'+_0x302d75+')',{[_0x302d75]:_0x163ba0});}}else{if([_0x132463(0x149),_0x132463(0x15c)][_0x132463(0x15b)](_0x4bfa3a)!=-0x1)typeof _0x7b474!=_0x132463(0x186)&&_0x3a3e01[_0x132463(0x187)](_0x4bfa3a+'(:'+_0x302d75+','+_0x3a3e01[_0x132463(0x155)]+'.'+_0x261c80+')',{[_0x302d75]:_0x7b474});else{if([_0x132463(0x162),'NOT\x20BETWEEN']['indexOf'](_0x4bfa3a)!=-0x1){if(typeof _0x7b474!='undefined'){const _0x28be00=Array[_0x132463(0x178)](_0x7b474)?_0x7b474:typeof _0x7b474==_0x132463(0x16b)?_0x7b474['split'](','):[_0x7b474];_0x28be00[_0x132463(0x161)]>0x1&&_0x3a3e01['andWhere'](_0x3a3e01[_0x132463(0x155)]+'.'+_0x261c80+'\x20'+_0x4bfa3a+'\x20:'+_0x302d75+_0x132463(0x165)+_0x302d75+'_2',{[''+_0x302d75]:_0x28be00[0x0],[_0x302d75+'_2']:_0x28be00[0x1]});}}else['ISNULL',_0x132463(0x189)]['indexOf'](_0x4bfa3a)!=-0x1&&_0x3a3e01['andWhere'](_0x4bfa3a+'('+_0x3a3e01[_0x132463(0x155)]+'.'+_0x261c80+')');}}}}else{if(_0x13f3ed[_0x132463(0x15b)](_0x261c80)==-0x1){const _0x50558f=typeof _0x4b52bb[_0x132463(0x14a)]==_0x132463(0x172)?(_0x26dac8=_0x4b52bb===null||_0x4b52bb===void 0x0?void 0x0:_0x4b52bb[_0x132463(0x14a)])===null||_0x26dac8===void 0x0?void 0x0:_0x26dac8['name']:_0x4b52bb[_0x132463(0x14a)][_0x132463(0x157)]();_0x50558f==_0x132463(0x148)?_0x3a3e01['andWhere'](_0x3a3e01[_0x132463(0x155)]+'.'+_0x261c80+_0x132463(0x16f)+_0x261c80,{['_auto_'+_0x261c80]:'%'+_0x79cf45[_0x261c80]+'%'}):_0x3a3e01[_0x132463(0x187)](_0x3a3e01[_0x132463(0x155)]+'.'+_0x261c80+_0x132463(0x152)+_0x261c80,{['_auto_'+_0x261c80]:_0x79cf45[_0x261c80]});}}}}}(_0x5d8dc6===null||_0x5d8dc6===void 0x0?void 0x0:_0x5d8dc6[_0x132463(0x167)])&&_0x3a3e01[_0x132463(0x15d)](Math[_0x132463(0x177)](_0x5d8dc6['_size']));(_0x5d8dc6===null||_0x5d8dc6===void 0x0?void 0x0:_0x5d8dc6[_0x132463(0x184)])&&(_0x5d8dc6===null||_0x5d8dc6===void 0x0?void 0x0:_0x5d8dc6[_0x132463(0x167)])&&_0x3a3e01['skip']((Math[_0x132463(0x177)](_0x5d8dc6['_page'])-0x1)*Math['abs'](_0x5d8dc6['_size']));if(_0x5d8dc6===null||_0x5d8dc6===void 0x0?void 0x0:_0x5d8dc6['_order']){if(_0x5d8dc6[_0x132463(0x183)][_0x132463(0x15b)]('.')!==-0x1)_0x3a3e01['orderBy'](''+_0x5d8dc6['_order'],(_0x5d8dc6===null||_0x5d8dc6===void 0x0?void 0x0:_0x5d8dc6[_0x132463(0x163)])?_0x132463(0x18b):_0x132463(0x175));else _0x13f3ed[_0x132463(0x15b)](_0x5d8dc6[_0x132463(0x183)])==-0x1&&(this[_0x132463(0x181)]['findColumnWithPropertyName'](_0x5d8dc6[_0x132463(0x183)])?_0x3a3e01[_0x132463(0x150)](_0x3a3e01[_0x132463(0x155)]+'.'+_0x5d8dc6[_0x132463(0x183)],(_0x5d8dc6===null||_0x5d8dc6===void 0x0?void 0x0:_0x5d8dc6['_isreverse'])?'ASC':_0x132463(0x175)):_0x3a3e01['orderBy'](''+_0x5d8dc6['_order'],(_0x5d8dc6===null||_0x5d8dc6===void 0x0?void 0x0:_0x5d8dc6['_isreverse'])?_0x132463(0x18b):_0x132463(0x175)));}return typeof(_0x47f8b8===null||_0x47f8b8===void 0x0?void 0x0:_0x47f8b8[_0x132463(0x18a)])==_0x132463(0x172)&&await(_0x47f8b8===null||_0x47f8b8===void 0x0?void 0x0:_0x47f8b8[_0x132463(0x18a)](_0x3a3e01)),_0x3a3e01;}async['mergeSave'](_0x43ecef,..._0x344662){const _0xe49043=a7_0x4e9ed5,_0x59bc34=this[_0xe49043(0x188)](_0x43ecef,..._0x344662);return await this['save'](_0x59bc34);}async[a7_0x4e9ed5(0x158)](_0x51b4f2,..._0x3e717d){const _0x4d3344=a7_0x4e9ed5,_0x35957c=this[_0x4d3344(0x188)](this['create'](_0x51b4f2),..._0x3e717d);return await this[_0x4d3344(0x17c)](_0x35957c);}async['transaction'](_0x293a1c,_0x528fcc){const _0x595a9b=a7_0x4e9ed5;return this['manager'][_0x595a9b(0x16c)](_0x293a1c,_0x528fcc);}}exports['Repository']=Repository;function a7_0x3528(){const _0x4794d1=['NOT\x20IN','alias','trim','toString','createSave','toUpperCase','operator','indexOf','NOT\x20FIND\x20IN\x20SET','take','condition','680247oGZeOE','model','length','BETWEEN','_isreverse','app','\x20AND\x20:','Repository','_size','MODEL_KEY','10hudTUx','NOT\x20LIKE','string','transaction','_auto_','random','\x20like\x20:_auto_','ceil','3384ebniNF','function','methodName','hasOwnProperty','DESC','LIKE','abs','isArray','1753064QybxJY','24GqMYoU','20779YZqAYE','save','target','modelSearchs','1674555BZOOtZ','40117RSNZJN','metadata','15JxPppf','_order','_page','queryRunner','undefined','andWhere','merge','NOT\x20ISNULL','excess','ASC','search','2AQxqGI','@midwayjs/core','getClassMetadata','601794JrerwA','createQueryBuilder','String','FIND\x20IN\x20SET','type','../interface','975737UGvHgu','__esModule','field','searchs','orderBy','MODEL_SEARCH_KEY','\x20=\x20:_auto_','push'];a7_0x3528=function(){return _0x4794d1;};return a7_0x3528();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a8_0x5cd1cc=a8_0x5b86;function a8_0x33f9(){const _0x12fad5=['default','listModule','find','2349464BjYXeP','getDataSourceEntity','ENTIFY_MODULE_SOURCE','__esModule','defineProperty','896090FQdHvF','6180850qafNpw','72PLgcRp','3259506sODYkD','21iZZmZl','9120DQaIuO','634363tzljWp','6ogNoeD','ENTIFY_MODULE','98681fuXVCG','dataSource','getClassMetadata','39ryKyPK','push','513028pqwxNO'];a8_0x33f9=function(){return _0x12fad5;};return a8_0x33f9();}(function(_0x42d449,_0xda43db){const _0x50c974=a8_0x5b86,_0x1cd5dc=_0x42d449();while(!![]){try{const _0x54f0d0=-parseInt(_0x50c974(0x182))/0x1*(parseInt(_0x50c974(0x183))/0x2)+-parseInt(_0x50c974(0x188))/0x3*(parseInt(_0x50c974(0x18a))/0x4)+-parseInt(_0x50c974(0x194))/0x5+parseInt(_0x50c974(0x196))/0x6+parseInt(_0x50c974(0x180))/0x7*(-parseInt(_0x50c974(0x18e))/0x8)+parseInt(_0x50c974(0x195))/0x9*(-parseInt(_0x50c974(0x193))/0xa)+-parseInt(_0x50c974(0x185))/0xb*(-parseInt(_0x50c974(0x181))/0xc);if(_0x54f0d0===_0xda43db)break;else _0x1cd5dc['push'](_0x1cd5dc['shift']());}catch(_0x1821f3){_0x1cd5dc['push'](_0x1cd5dc['shift']());}}}(a8_0x33f9,0xe9912));Object[a8_0x5cd1cc(0x192)](exports,a8_0x5cd1cc(0x191),{'value':!![]}),exports[a8_0x5cd1cc(0x18f)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require('../interface');function getDataSourceEntity(_0x301a24=a8_0x5cd1cc(0x18b)){const _0x4e3c07=a8_0x5cd1cc;var _0x50003b;const _0xb3809e=[];for(const _0x1c49e8 of(0x0,core_1[_0x4e3c07(0x18c)])(interface_1[_0x4e3c07(0x184)])){const _0x1b9c43=(0x0,core_1[_0x4e3c07(0x187)])(interface_1[_0x4e3c07(0x190)],_0x1c49e8);((_0x50003b=_0x1b9c43===null||_0x1b9c43===void 0x0?void 0x0:_0x1b9c43[_0x4e3c07(0x186)])===null||_0x50003b===void 0x0?void 0x0:_0x50003b[_0x4e3c07(0x18d)](_0xd5ee6c=>_0xd5ee6c==_0x301a24))&&_0xb3809e[_0x4e3c07(0x189)](_0x1c49e8);}return _0xb3809e;}function a8_0x5b86(_0x3a25de,_0x5af464){const _0x33f943=a8_0x33f9();return a8_0x5b86=function(_0x5b8631,_0x4bf3ae){_0x5b8631=_0x5b8631-0x180;let _0x335392=_0x33f943[_0x5b8631];return _0x335392;},a8_0x5b86(_0x3a25de,_0x5af464);}exports['getDataSourceEntity']=getDataSourceEntity;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x67c915=a9_0x56f5;(function(_0x20685d,_0x395797){var _0xbbed8e=a9_0x56f5,_0x58738e=_0x20685d();while(!![]){try{var _0x470bd6=-parseInt(_0xbbed8e(0x20b))/0x1+parseInt(_0xbbed8e(0x1fd))/0x2+parseInt(_0xbbed8e(0x1fa))/0x3+-parseInt(_0xbbed8e(0x1ed))/0x4*(parseInt(_0xbbed8e(0x1fc))/0x5)+-parseInt(_0xbbed8e(0x204))/0x6*(-parseInt(_0xbbed8e(0x1f7))/0x7)+parseInt(_0xbbed8e(0x213))/0x8+-parseInt(_0xbbed8e(0x20a))/0x9;if(_0x470bd6===_0x395797)break;else _0x58738e['push'](_0x58738e['shift']());}catch(_0xea16c){_0x58738e['push'](_0x58738e['shift']());}}}(a9_0x4659,0xb9fd2));var __createBinding=this&&this[a9_0x67c915(0x1f3)]||(Object[a9_0x67c915(0x201)]?function(_0x52229d,_0x4efcab,_0x41e7a2,_0x3d30f3){var _0x576844=a9_0x67c915;if(_0x3d30f3===undefined)_0x3d30f3=_0x41e7a2;var _0x437e2d=Object[_0x576844(0x206)](_0x4efcab,_0x41e7a2);(!_0x437e2d||(_0x576844(0x1ec)in _0x437e2d?!_0x4efcab[_0x576844(0x20d)]:_0x437e2d[_0x576844(0x205)]||_0x437e2d[_0x576844(0x20e)]))&&(_0x437e2d={'enumerable':!![],'get':function(){return _0x4efcab[_0x41e7a2];}}),Object[_0x576844(0x207)](_0x52229d,_0x3d30f3,_0x437e2d);}:function(_0x15941b,_0x7e0666,_0x2b650b,_0x1b4688){if(_0x1b4688===undefined)_0x1b4688=_0x2b650b;_0x15941b[_0x1b4688]=_0x7e0666[_0x2b650b];}),__exportStar=this&&this[a9_0x67c915(0x208)]||function(_0x2032d6,_0x12e82f){var _0x1c687a=a9_0x67c915;for(var _0x2067dc in _0x2032d6)if(_0x2067dc!==_0x1c687a(0x20f)&&!Object['prototype'][_0x1c687a(0x212)]['call'](_0x12e82f,_0x2067dc))__createBinding(_0x12e82f,_0x2032d6,_0x2067dc);};Object['defineProperty'](exports,a9_0x67c915(0x20d),{'value':!![]}),exports['ScopeEnum']=exports[a9_0x67c915(0x1f8)]=exports[a9_0x67c915(0x1f4)]=exports['Provide']=exports[a9_0x67c915(0x1f0)]=exports[a9_0x67c915(0x1fe)]=exports[a9_0x67c915(0x1f2)]=exports[a9_0x67c915(0x202)]=exports[a9_0x67c915(0x20c)]=exports['ProvideEntity']=exports[a9_0x67c915(0x203)]=exports['InjectEntity']=exports[a9_0x67c915(0x1f9)]=exports[a9_0x67c915(0x216)]=void 0x0,__exportStar(require('typeorm'),exports),__exportStar(require(a9_0x67c915(0x214)),exports);var Repository_1=require(a9_0x67c915(0x210));Object[a9_0x67c915(0x207)](exports,a9_0x67c915(0x216),{'enumerable':!![],'get':function(){var _0x2020fc=a9_0x67c915;return Repository_1[_0x2020fc(0x216)];}});function a9_0x56f5(_0x1babb9,_0x1b96d5){var _0x465923=a9_0x4659();return a9_0x56f5=function(_0x56f589,_0x5eb3e4){_0x56f589=_0x56f589-0x1eb;var _0x28a035=_0x465923[_0x56f589];return _0x28a035;},a9_0x56f5(_0x1babb9,_0x1b96d5);}var VirtualColumn_1=require(a9_0x67c915(0x209));Object[a9_0x67c915(0x207)](exports,a9_0x67c915(0x1f9),{'enumerable':!![],'get':function(){var _0x5470ab=a9_0x67c915;return VirtualColumn_1[_0x5470ab(0x1f9)];}});function a9_0x4659(){var _0x49e0a4=['defineProperty','__exportStar','./decorator/VirtualColumn','3785544KmySgG','610664ceTeGg','ProvideRepository','__esModule','configurable','default','./definition/Repository','./decorator/ProvideRepository','hasOwnProperty','2111832yvuhos','./interface','./decorator/InjectRepository','Repository','./decorator/InjectEntity','get','4388572kHLPKn','./configuration','ProvideEntity','Configuration','CustomConfiguration','Search','__createBinding','Inject','./helper/getDataSourceEntity','ScopeEnum','9024561ngjaHR','Scope','VirtualColumn','2687997eShAWn','InjectEntity','5yXGGkW','882064udBIuv','getDataSourceEntity','Provide','./decorator/ProvideEntity','create','ProvideSearch','InjectRepository','6vWXlAs','writable','getOwnPropertyDescriptor'];a9_0x4659=function(){return _0x49e0a4;};return a9_0x4659();}var InjectEntity_1=require(a9_0x67c915(0x1eb));Object[a9_0x67c915(0x207)](exports,a9_0x67c915(0x1fb),{'enumerable':!![],'get':function(){var _0x23a34f=a9_0x67c915;return InjectEntity_1[_0x23a34f(0x1fb)];}});var InjectRepository_1=require(a9_0x67c915(0x215));Object[a9_0x67c915(0x207)](exports,a9_0x67c915(0x203),{'enumerable':!![],'get':function(){return InjectRepository_1['InjectRepository'];}});var ProvideEntity_1=require(a9_0x67c915(0x200));Object[a9_0x67c915(0x207)](exports,a9_0x67c915(0x1ef),{'enumerable':!![],'get':function(){var _0x197af4=a9_0x67c915;return ProvideEntity_1[_0x197af4(0x1ef)];}});var ProvideRepository_1=require(a9_0x67c915(0x211));Object[a9_0x67c915(0x207)](exports,'ProvideRepository',{'enumerable':!![],'get':function(){var _0x5e5a95=a9_0x67c915;return ProvideRepository_1[_0x5e5a95(0x20c)];}});var ProvideSearch_1=require('./decorator/ProvideSearch');Object[a9_0x67c915(0x207)](exports,a9_0x67c915(0x202),{'enumerable':!![],'get':function(){return ProvideSearch_1['ProvideSearch'];}}),Object[a9_0x67c915(0x207)](exports,'Search',{'enumerable':!![],'get':function(){var _0x4a41ca=a9_0x67c915;return ProvideSearch_1[_0x4a41ca(0x1f2)];}});var getDataSourceEntity_1=require(a9_0x67c915(0x1f5));Object[a9_0x67c915(0x207)](exports,a9_0x67c915(0x1fe),{'enumerable':!![],'get':function(){var _0x422ff5=a9_0x67c915;return getDataSourceEntity_1[_0x422ff5(0x1fe)];}});var configuration_1=require(a9_0x67c915(0x1ee));Object[a9_0x67c915(0x207)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x3b0cb3=a9_0x67c915;return configuration_1[_0x3b0cb3(0x1f1)];}});var core_1=require('@midwayjs/core');Object[a9_0x67c915(0x207)](exports,a9_0x67c915(0x1ff),{'enumerable':!![],'get':function(){return core_1['Provide'];}}),Object[a9_0x67c915(0x207)](exports,'Inject',{'enumerable':!![],'get':function(){var _0x4cd09a=a9_0x67c915;return core_1[_0x4cd09a(0x1f4)];}}),Object[a9_0x67c915(0x207)](exports,a9_0x67c915(0x1f8),{'enumerable':!![],'get':function(){var _0x29b440=a9_0x67c915;return core_1[_0x29b440(0x1f8)];}}),Object[a9_0x67c915(0x207)](exports,a9_0x67c915(0x1f6),{'enumerable':!![],'get':function(){var _0x5b147c=a9_0x67c915;return core_1[_0x5b147c(0x1f6)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a10_0x3c6ea3=a10_0x4358;(function(_0x33658b,_0x26ffe9){const _0x3c58ad=a10_0x4358,_0x3dafe0=_0x33658b();while(!![]){try{const _0x26efc2=-parseInt(_0x3c58ad(0x1a3))/0x1+parseInt(_0x3c58ad(0x19c))/0x2*(-parseInt(_0x3c58ad(0x1ae))/0x3)+-parseInt(_0x3c58ad(0x194))/0x4*(parseInt(_0x3c58ad(0x1a8))/0x5)+parseInt(_0x3c58ad(0x178))/0x6+parseInt(_0x3c58ad(0x1a0))/0x7+parseInt(_0x3c58ad(0x183))/0x8*(parseInt(_0x3c58ad(0x19e))/0x9)+-parseInt(_0x3c58ad(0x1af))/0xa*(parseInt(_0x3c58ad(0x1b0))/0xb);if(_0x26efc2===_0x26ffe9)break;else _0x3dafe0['push'](_0x3dafe0['shift']());}catch(_0x5519ee){_0x3dafe0['push'](_0x3dafe0['shift']());}}}(a10_0x18b2,0xc3512));Object[a10_0x3c6ea3(0x19d)](exports,a10_0x3c6ea3(0x19f),{'value':!![]}),exports[a10_0x3c6ea3(0x177)]=exports[a10_0x3c6ea3(0x1a7)]=exports[a10_0x3c6ea3(0x17d)]=exports['MODEL_KEY']=exports[a10_0x3c6ea3(0x193)]=exports[a10_0x3c6ea3(0x1a9)]=exports[a10_0x3c6ea3(0x18a)]=exports[a10_0x3c6ea3(0x180)]=void 0x0;const core_1=require(a10_0x3c6ea3(0x17e)),typeorm_1=require(a10_0x3c6ea3(0x1a4)),typeorm_2=require(a10_0x3c6ea3(0x1a4));function a10_0x4358(_0x3807bf,_0xb9d0e0){const _0x18b2ef=a10_0x18b2();return a10_0x4358=function(_0x435841,_0x6e0111){_0x435841=_0x435841-0x177;let _0x28b9ea=_0x18b2ef[_0x435841];return _0x28b9ea;},a10_0x4358(_0x3807bf,_0xb9d0e0);}exports[a10_0x3c6ea3(0x180)]=a10_0x3c6ea3(0x19a),exports[a10_0x3c6ea3(0x18a)]=a10_0x3c6ea3(0x19b),exports[a10_0x3c6ea3(0x1a9)]='decorator:anncic-api:typeorm:entify:module:source',exports[a10_0x3c6ea3(0x193)]=a10_0x3c6ea3(0x196),exports[a10_0x3c6ea3(0x192)]=a10_0x3c6ea3(0x190),exports['MODEL_SEARCH_KEY']=a10_0x3c6ea3(0x1a6),exports[a10_0x3c6ea3(0x1a7)]='decorator:anncic-api:typeorm:entity:virtual:column';class SearchPaginate{}exports['SearchPaginate']=SearchPaginate,typeorm_2[a10_0x3c6ea3(0x195)][a10_0x3c6ea3(0x187)][a10_0x3c6ea3(0x185)]=async function(_0x26b70d,_0x358a61){const _0xa7cd56=a10_0x3c6ea3;return this['findOne'](_0x26b70d,_0x358a61)[_0xa7cd56(0x198)](_0x163176=>{const _0x5a93d8=_0xa7cd56;if(_0x163176===null||_0x163176===undefined)return Promise[_0x5a93d8(0x18d)](new typeorm_2[(_0x5a93d8(0x1ad))](_0x26b70d,_0x358a61));return Promise[_0x5a93d8(0x182)](_0x163176);});},typeorm_2[a10_0x3c6ea3(0x195)][a10_0x3c6ea3(0x187)][a10_0x3c6ea3(0x179)]=async function(_0x3aee85,_0x416ea4){const _0x3f2848=a10_0x3c6ea3;return this[_0x3f2848(0x17b)](_0x3aee85,_0x416ea4)[_0x3f2848(0x198)](_0x4c5892=>{const _0x326b54=_0x3f2848;if(_0x4c5892===null||_0x4c5892===undefined)return Promise['reject'](new typeorm_2[(_0x326b54(0x1ad))](_0x3aee85,_0x416ea4));return Promise['resolve'](_0x4c5892);});},typeorm_1['SelectQueryBuilder'][a10_0x3c6ea3(0x187)]['getMany']=async function(){const _0x14c3d0=a10_0x3c6ea3;if(this[_0x14c3d0(0x189)]['lockMode']===_0x14c3d0(0x17a))throw new typeorm_1[(_0x14c3d0(0x1ab))]();const {entities:_0x4f7ae8,raw:_0x5e840d}=await this[_0x14c3d0(0x1ac)]();return _0x4f7ae8['map']((_0x47a12a,_0x44a6d2)=>{const _0x272ea0=_0x14c3d0;var _0x73dbd7;const _0x275924=(0x0,core_1[_0x272ea0(0x188)])(exports[_0x272ea0(0x1a7)],_0x47a12a)||{};for(const _0x3ea0d2 in _0x275924){_0x5e840d[_0x44a6d2]&&_0x5e840d[_0x44a6d2][_0x272ea0(0x17f)](_0x3ea0d2)&&(_0x47a12a[_0x3ea0d2]=_0x5e840d[_0x44a6d2][_0x3ea0d2]||((_0x73dbd7=_0x275924[_0x3ea0d2])===null||_0x73dbd7===void 0x0?void 0x0:_0x73dbd7[_0x272ea0(0x18c)])||'');}return _0x47a12a;});},typeorm_1[a10_0x3c6ea3(0x184)]['prototype'][a10_0x3c6ea3(0x1a1)]=async function(){const _0x58906a=a10_0x3c6ea3;return[await this[_0x58906a(0x18b)](),await this['getCount']()];},typeorm_1[a10_0x3c6ea3(0x184)][a10_0x3c6ea3(0x187)][a10_0x3c6ea3(0x17c)]=async function(){const _0x246dd7=a10_0x3c6ea3;var _0x94cf9;const {entities:_0x201b20,raw:_0x3d431a}=await this[_0x246dd7(0x1ac)]();if(_0x201b20[0x0]&&this[_0x246dd7(0x189)][_0x246dd7(0x18e)]===_0x246dd7(0x17a)&&this[_0x246dd7(0x189)][_0x246dd7(0x199)]){const _0x2e5432=this[_0x246dd7(0x189)][_0x246dd7(0x191)][_0x246dd7(0x1aa)];if(this[_0x246dd7(0x189)][_0x246dd7(0x199)]instanceof Date){const _0x203a6b=_0x2e5432[_0x246dd7(0x18f)][_0x246dd7(0x181)](_0x201b20[0x0]);if(_0x203a6b[_0x246dd7(0x197)]()!==this[_0x246dd7(0x189)][_0x246dd7(0x199)][_0x246dd7(0x197)]())throw new typeorm_1[(_0x246dd7(0x1a2))](_0x2e5432[_0x246dd7(0x1a5)],this[_0x246dd7(0x189)][_0x246dd7(0x199)],_0x203a6b);}else{const _0x1b7866=_0x2e5432[_0x246dd7(0x186)][_0x246dd7(0x181)](_0x201b20[0x0]);if(_0x1b7866!==this[_0x246dd7(0x189)][_0x246dd7(0x199)])throw new typeorm_1[(_0x246dd7(0x1a2))](_0x2e5432[_0x246dd7(0x1a5)],this[_0x246dd7(0x189)][_0x246dd7(0x199)],_0x1b7866);}}if(_0x201b20[0x0]&&_0x3d431a[0x0]){const _0x23aafd=(0x0,core_1[_0x246dd7(0x188)])(exports[_0x246dd7(0x1a7)],_0x201b20[0x0]);for(const _0x24a131 in _0x23aafd){_0x3d431a[0x0]['hasOwnProperty'](_0x24a131)&&(_0x201b20[0x0][_0x24a131]=_0x3d431a[0x0][_0x24a131]||((_0x94cf9=_0x23aafd[_0x24a131])===null||_0x94cf9===void 0x0?void 0x0:_0x94cf9[_0x246dd7(0x18c)])||'');}}return _0x201b20[0x0]||null;};function a10_0x18b2(){const _0x5ba718=['expressionMap','ENTIFY_MODULE','getMany','default','reject','lockMode','updateDateColumn','decorator:anncic-api:typeorm:model','mainAlias','MODEL_KEY','REPOSITORY_KEY','161692iIjdeN','EntityManager','decorator:anncic-api:typeorm:repository','getTime','then','lockVersion','decorator:anncic-api:typeorm:entify','decorator:anncic-api:typeorm:entify:module','6044zEKEbc','defineProperty','300789LrOhSo','__esModule','9641450CylNzt','getManyAndCount','OptimisticLockVersionMismatchError','660999rNhPYC','typeorm','name','decorator:anncic-api:typeorm:model:search','ENTITY_VIRTUAL_COLUMN_KEY','55PhQPED','ENTIFY_MODULE_SOURCE','metadata','OptimisticLockCanNotBeUsedError','getRawAndEntities','EntityNotFoundError','933MXalgH','984450FCjEqY','165yxesKW','SearchPaginate','9046404KRsdXD','findOneByOrFail','optimistic','findOneBy','getOne','MODEL_SEARCH_KEY','@midwayjs/core','hasOwnProperty','ENTIFY_KEY','getEntityValue','resolve','344niDhZu','SelectQueryBuilder','findOneOrFail','versionColumn','prototype','getClassMetadata'];a10_0x18b2=function(){return _0x5ba718;};return a10_0x18b2();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/typeorm",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"javascript-obfuscator": "2.19.0",
|
|
23
23
|
"typescript": "^4.7.4"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "a1a5da1aea00c12c9c1e6d0827d6d15108d82f71"
|
|
26
26
|
}
|