@anncic-api/typeorm 1.4.11 → 1.4.12
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_0x47f801=a0_0x1b85;(function(_0x27a262,_0x4dd05a){const _0x4de03a=a0_0x1b85,_0x554ef8=_0x27a262();while(!![]){try{const _0x4992fa=parseInt(_0x4de03a(0xe6))/0x1+parseInt(_0x4de03a(0xea))/0x2*(-parseInt(_0x4de03a(0xe4))/0x3)+parseInt(_0x4de03a(0xe8))/0x4+-parseInt(_0x4de03a(0xde))/0x5*(parseInt(_0x4de03a(0xfd))/0x6)+parseInt(_0x4de03a(0xe3))/0x7*(parseInt(_0x4de03a(0xe1))/0x8)+parseInt(_0x4de03a(0xed))/0x9*(parseInt(_0x4de03a(0x10c))/0xa)+parseInt(_0x4de03a(0xf4))/0xb*(-parseInt(_0x4de03a(0x105))/0xc);if(_0x4992fa===_0x4dd05a)break;else _0x554ef8['push'](_0x554ef8['shift']());}catch(_0x179e28){_0x554ef8['push'](_0x554ef8['shift']());}}}(a0_0xf101,0x3f6bc));var __decorate=this&&this['__decorate']||function(_0x3a53e4,_0x162f17,_0x5d1a3e,_0x281bd9){const _0x59ad50=a0_0x1b85;var _0x388b25=arguments[_0x59ad50(0xf0)],_0x245598=_0x388b25<0x3?_0x162f17:_0x281bd9===null?_0x281bd9=Object['getOwnPropertyDescriptor'](_0x162f17,_0x5d1a3e):_0x281bd9,_0x11c73f;if(typeof Reflect===_0x59ad50(0xdc)&&typeof Reflect[_0x59ad50(0xf7)]===_0x59ad50(0xe0))_0x245598=Reflect[_0x59ad50(0xf7)](_0x3a53e4,_0x162f17,_0x5d1a3e,_0x281bd9);else{for(var _0x2890a4=_0x3a53e4[_0x59ad50(0xf0)]-0x1;_0x2890a4>=0x0;_0x2890a4--)if(_0x11c73f=_0x3a53e4[_0x2890a4])_0x245598=(_0x388b25<0x3?_0x11c73f(_0x245598):_0x388b25>0x3?_0x11c73f(_0x162f17,_0x5d1a3e,_0x245598):_0x11c73f(_0x162f17,_0x5d1a3e))||_0x245598;}return _0x388b25>0x3&&_0x245598&&Object['defineProperty'](_0x162f17,_0x5d1a3e,_0x245598),_0x245598;},__metadata=this&&this[a0_0x47f801(0xfa)]||function(_0x2766b9,_0x3f2dfc){const _0x4b8418=a0_0x47f801;if(typeof Reflect===_0x4b8418(0xdc)&&typeof Reflect[_0x4b8418(0x10b)]==='function')return Reflect[_0x4b8418(0x10b)](_0x2766b9,_0x3f2dfc);};Object['defineProperty'](exports,a0_0x47f801(0xee),{'value':!![]}),exports[a0_0x47f801(0x107)]=void 0x0;const typeorm_1=require(a0_0x47f801(0xe9)),core_1=require(a0_0x47f801(0x106)),core_2=require(a0_0x47f801(0x106)),typeorm_2=require('typeorm'),Repository_1=require(a0_0x47f801(0xf3)),interface_1=require('./interface'),typeorm=require('@midwayjs/typeorm');let CustomConfiguration=class CustomConfiguration{constructor(){this['handlercache']=[];}async[a0_0x47f801(0x101)](_0x22e826,_0x32c77f){const _0x5c5aef=a0_0x47f801,_0x20104a=await _0x22e826[_0x5c5aef(0xf9)](typeorm_1[_0x5c5aef(0xf2)]);this['decorator'][_0x5c5aef(0xe2)](interface_1[_0x5c5aef(0xdb)],(_0x155049,{entity:_0x1e770a,connection:_0x43fe45})=>{const _0x592a1f=_0x5c5aef;let _0x2363d5=this[_0x592a1f(0xf6)][_0x592a1f(0xd9)](_0x3530e1=>_0x3530e1[_0x592a1f(0x102)]===_0x1e770a);return!_0x2363d5&&(_0x2363d5=new Repository_1[(_0x592a1f(0x100))](_0x32c77f,_0x22e826,_0x20104a['getDataSource'](_0x43fe45||_0x20104a['getDataSourceNameByModel'](_0x1e770a))[_0x592a1f(0xf5)](_0x1e770a)),this[_0x592a1f(0xf6)][_0x592a1f(0xda)](_0x2363d5)),_0x2363d5;}),this['decorator'][_0x5c5aef(0xe2)](interface_1[_0x5c5aef(0xff)],(_0x710908,{repository:_0x2ac781,connection:_0x25f9ed})=>{const _0x21933c=_0x5c5aef;if(!_0x2ac781)throw new Error(_0x21933c(0x10d));const {entity:_0x128bc8}=(0x0,core_1[_0x21933c(0x108)])(interface_1[_0x21933c(0xff)],_0x2ac781)||{};if(!_0x128bc8)throw new Error(_0x21933c(0xef)+((_0x2ac781===null||_0x2ac781===void 0x0?void 0x0:_0x2ac781['name'])||_0x2ac781)+_0x21933c(0xfe));let _0x410707=this['handlercache']['find'](_0x4b4be5=>_0x4b4be5===_0x2ac781);return!_0x410707&&(_0x410707=new _0x2ac781(_0x32c77f,_0x22e826,_0x20104a['getDataSource'](_0x25f9ed||_0x20104a[_0x21933c(0x104)](_0x128bc8))[_0x21933c(0xf5)](_0x128bc8)),this['handlercache'][_0x21933c(0xda)](_0x410707)),_0x410707;}),_0x32c77f['useMiddleware'](this[_0x5c5aef(0xe7)](_0x32c77f));}[a0_0x47f801(0xe7)](_0x27e3c4){return async(_0x1aa715,_0x126595)=>{const _0x4d4643=a0_0x1b85;try{await _0x126595();}catch(_0x428a2d){if(_0x428a2d instanceof typeorm_2['TypeORMError'])_0x428a2d instanceof typeorm_2[_0x4d4643(0xeb)]?_0x1aa715[_0x4d4643(0xf8)]={'code':0x194,'msg':_0x4d4643(0xfc)}:(_0x1aa715[_0x4d4643(0xf8)]={'code':0x1f4,'msg':_0x428a2d['message']},_0x27e3c4[_0x4d4643(0xe5)]()!=_0x4d4643(0x10e)&&console[_0x4d4643(0x109)](_0x428a2d));else throw _0x428a2d;}};}};__decorate([(0x0,core_1[a0_0x47f801(0xfb)])(),__metadata('design:type',core_2[a0_0x47f801(0xec)])],CustomConfiguration[a0_0x47f801(0xf1)],a0_0x47f801(0x103),void 0x0),__decorate([(0x0,core_1[a0_0x47f801(0xfb)])(),__metadata('design:type',core_2[a0_0x47f801(0xdd)])],CustomConfiguration[a0_0x47f801(0xf1)],a0_0x47f801(0xdf),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x47f801(0x10f)])({'imports':[typeorm],'conflictCheck':![],'namespace':a0_0x47f801(0x10a)})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;function a0_0x1b85(_0x2ec043,_0x21a52f){const _0xf10153=a0_0xf101();return a0_0x1b85=function(_0x1b85e2,_0x57fb0c){_0x1b85e2=_0x1b85e2-0xd9;let _0xc0f830=_0xf10153[_0x1b85e2];return _0xc0f830;},a0_0x1b85(_0x2ec043,_0x21a52f);}function a0_0xf101(){const _0x3738f1=['REPOSITORY_KEY','Repository','onReady','target','config','getDataSourceNameByModel','222852nlOtrN','@midwayjs/core','CustomConfiguration','getClassMetadata','warn','anncic-api:typeorm','metadata','530HIiwcc','typeorm\x20Error\x20propertyName\x20is\x20not\x20InjectRepository\x20repository','production','Configuration','find','push','ENTIFY_KEY','object','MidwayDecoratorService','5iPCUdb','decorator','function','240200KVlRVH','registerPropertyHandler','42oCLpSD','405525YaYQDk','getEnv','210305LvdHni','middlewareError','1462812AmBDkE','@midwayjs/typeorm','4MkBAgE','EntityNotFoundError','MidwayConfigService','45864suTxXd','__esModule','typeorm\x20Error\x20','length','prototype','TypeORMDataSourceManager','./definition/Repository','11pIQRaW','getRepository','handlercache','decorate','body','getAsync','__metadata','Inject','数据不存在','2865318WaavJj','\x20is\x20not\x20ProvideRepository\x20Entify'];a0_0xf101=function(){return _0x3738f1;};return a0_0xf101();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x4d0268=a1_0xf762;(function(_0x1659b9,_0x47e4af){const _0x1a2267=a1_0xf762,_0x7a78fa=_0x1659b9();while(!![]){try{const _0x4a421d=parseInt(_0x1a2267(0xfa))/0x1*(-parseInt(_0x1a2267(0xf5))/0x2)+parseInt(_0x1a2267(0xf2))/0x3*(parseInt(_0x1a2267(0xed))/0x4)+-parseInt(_0x1a2267(0xfb))/0x5*(-parseInt(_0x1a2267(0xf8))/0x6)+parseInt(_0x1a2267(0xf3))/0x7*(-parseInt(_0x1a2267(0xf6))/0x8)+parseInt(_0x1a2267(0xec))/0x9+-parseInt(_0x1a2267(0xf0))/0xa*(parseInt(_0x1a2267(0xf7))/0xb)+parseInt(_0x1a2267(0xf4))/0xc;if(_0x4a421d===_0x47e4af)break;else _0x7a78fa['push'](_0x7a78fa['shift']());}catch(_0x4de421){_0x7a78fa['push'](_0x7a78fa['shift']());}}}(a1_0x534a,0x7dcdc));function a1_0xf762(_0x14b6eb,_0x1bea78){const _0x534add=a1_0x534a();return a1_0xf762=function(_0xf7626b,_0x2b5676){_0xf7626b=_0xf7626b-0xeb;let _0x1cbb2b=_0x534add[_0xf7626b];return _0x1cbb2b;},a1_0xf762(_0x14b6eb,_0x1bea78);}Object['defineProperty'](exports,a1_0x4d0268(0xeb),{'value':!![]}),exports[a1_0x4d0268(0xee)]=void 0x0;const core_1=require(a1_0x4d0268(0xef)),interface_1=require(a1_0x4d0268(0xfc));function InjectEntity(_0x4917c8,_0x2abf77='default'){const _0x283752=a1_0x4d0268;return(0x0,core_1[_0x283752(0xf9)])(interface_1[_0x283752(0xf1)],{'entity':_0x4917c8,'connection':_0x2abf77});}function a1_0x534a(){const _0x3b042e=['1969vVJfAb','21162ArmEeL','createCustomPropertyDecorator','1pAszcF','475gboFyX','../interface','__esModule','7770069sNylyq','1432EuzFog','InjectEntity','@midwayjs/core','54410xhQyHU','ENTIFY_KEY','6495dzQZxK','14xEEMyI','12388176sswsIW','1589270VrmnAp','2887832omljQR'];a1_0x534a=function(){return _0x3b042e;};return a1_0x534a();}exports['InjectEntity']=InjectEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a2_0x4cd2(_0x1923e0,_0x1ebced){const _0x43e545=a2_0x43e5();return a2_0x4cd2=function(_0x4cd2b9,_0x4badd7){_0x4cd2b9=_0x4cd2b9-0x1f1;let _0x232544=_0x43e545[_0x4cd2b9];return _0x232544;},a2_0x4cd2(_0x1923e0,_0x1ebced);}const a2_0x2afe8e=a2_0x4cd2;(function(_0x4486ff,_0x35e1e4){const _0x6dfcf=a2_0x4cd2,_0x12dfa5=_0x4486ff();while(!![]){try{const _0x579254=parseInt(_0x6dfcf(0x1f2))/0x1+-parseInt(_0x6dfcf(0x1f5))/0x2*(parseInt(_0x6dfcf(0x1f3))/0x3)+-parseInt(_0x6dfcf(0x1ff))/0x4*(-parseInt(_0x6dfcf(0x1f8))/0x5)+-parseInt(_0x6dfcf(0x202))/0x6+parseInt(_0x6dfcf(0x1fc))/0x7+parseInt(_0x6dfcf(0x1f1))/0x8*(-parseInt(_0x6dfcf(0x1fe))/0x9)+-parseInt(_0x6dfcf(0x1f4))/0xa*(-parseInt(_0x6dfcf(0x201))/0xb);if(_0x579254===_0x35e1e4)break;else _0x12dfa5['push'](_0x12dfa5['shift']());}catch(_0x2bd85a){_0x12dfa5['push'](_0x12dfa5['shift']());}}}(a2_0x43e5,0x526ea));function a2_0x43e5(){const _0x1832ae=['912YLUEad','10xavRKe','202cVWRhJ','REPOSITORY_KEY','@midwayjs/core','1735OeIZLe','InjectRepository','default','../interface','2365356CNuIil','createCustomPropertyDecorator','9GaukNk','3316NDDOgu','defineProperty','8472739qYhqjk','2680686bHtAvJ','4652240AIfSDP','837ACTPkL'];a2_0x43e5=function(){return _0x1832ae;};return a2_0x43e5();}Object[a2_0x2afe8e(0x200)](exports,'__esModule',{'value':!![]}),exports[a2_0x2afe8e(0x1f9)]=void 0x0;const core_1=require(a2_0x2afe8e(0x1f7)),interface_1=require(a2_0x2afe8e(0x1fb));function InjectRepository(_0x447cb0,_0x1e7023=a2_0x2afe8e(0x1fa)){const _0x1b7dbf=a2_0x2afe8e;return(0x0,core_1[_0x1b7dbf(0x1fd)])(interface_1[_0x1b7dbf(0x1f6)],{'repository':_0x447cb0,'connection':_0x1e7023});}exports[a2_0x2afe8e(0x1f9)]=InjectRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x1f04e1=a3_0x1d71;(function(_0xf91990,_0x23100d){const _0x5b4209=a3_0x1d71,_0x15d924=_0xf91990();while(!![]){try{const _0x33132e=parseInt(_0x5b4209(0xbb))/0x1*(parseInt(_0x5b4209(0xb0))/0x2)+parseInt(_0x5b4209(0xb6))/0x3+-parseInt(_0x5b4209(0xb2))/0x4+parseInt(_0x5b4209(0xb7))/0x5*(parseInt(_0x5b4209(0xc1))/0x6)+parseInt(_0x5b4209(0xc3))/0x7+-parseInt(_0x5b4209(0xb8))/0x8+parseInt(_0x5b4209(0xad))/0x9;if(_0x33132e===_0x23100d)break;else _0x15d924['push'](_0x15d924['shift']());}catch(_0x3f2967){_0x15d924['push'](_0x15d924['shift']());}}}(a3_0x324d,0x22054));Object[a3_0x1f04e1(0xb9)](exports,a3_0x1f04e1(0xb4),{'value':!![]}),exports['ProvideEntity']=void 0x0;const typeorm_1=require(a3_0x1f04e1(0xba)),core_1=require(a3_0x1f04e1(0xc6)),interface_1=require(a3_0x1f04e1(0xbd));function a3_0x1d71(_0x3e5410,_0x1001fd){const _0x324d63=a3_0x324d();return a3_0x1d71=function(_0x1d7120,_0x5cee1d){_0x1d7120=_0x1d7120-0xad;let _0x3a663d=_0x324d63[_0x1d7120];return _0x3a663d;},a3_0x1d71(_0x3e5410,_0x1001fd);}function ProvideEntity(_0x29f462,_0x351621={}){return _0x5bccd1=>{const _0x5e236e=a3_0x1d71;_0x351621[_0x5e236e(0xc2)]=_0x29f462['tableName'];const _0x4c1128=[];if(!(_0x29f462===null||_0x29f462===void 0x0?void 0x0:_0x29f462['dataSource']))_0x4c1128[_0x5e236e(0xb5)](_0x5e236e(0xbc));else{if(typeof(_0x29f462===null||_0x29f462===void 0x0?void 0x0:_0x29f462[_0x5e236e(0xc4)])==_0x5e236e(0xaf))_0x4c1128[_0x5e236e(0xb5)](_0x29f462===null||_0x29f462===void 0x0?void 0x0:_0x29f462[_0x5e236e(0xc4)]);else{if(Array[_0x5e236e(0xae)](_0x29f462===null||_0x29f462===void 0x0?void 0x0:_0x29f462[_0x5e236e(0xc4)]))for(let _0x5ad497 of _0x29f462[_0x5e236e(0xc4)]||[_0x5e236e(0xbc)]){_0x4c1128['push'](_0x5ad497);}}}(0x0,core_1[_0x5e236e(0xb1)])(interface_1['ENTIFY_MODULE'],_0x5bccd1),(0x0,core_1[_0x5e236e(0xb3)])(interface_1[_0x5e236e(0xbe)],{'tableName':_0x29f462[_0x5e236e(0xbf)],'dataSource':_0x4c1128},_0x5bccd1),(0x0,typeorm_1[_0x5e236e(0xc5)])(_0x29f462[_0x5e236e(0xbf)],_0x351621)(_0x5bccd1);};}exports[a3_0x1f04e1(0xc0)]=ProvideEntity;function a3_0x324d(){const _0x3b5901=['ENTIFY_MODULE_SOURCE','tableName','ProvideEntity','186NqpHij','name','1759800vzaFxE','dataSource','Entity','@midwayjs/core','1626354SJlIDg','isArray','string','4ljuQwU','saveModule','869372onmLTF','saveClassMetadata','__esModule','push','111027YbKmyv','6965JOakpd','1466840NuKEgv','defineProperty','typeorm','13874FioIbR','default','../interface'];a3_0x324d=function(){return _0x3b5901;};return a3_0x324d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x20b24e=a4_0x549b;function a4_0x549b(_0x592617,_0x27d4a6){const _0x21b97f=a4_0x21b9();return a4_0x549b=function(_0x549b9b,_0x193a52){_0x549b9b=_0x549b9b-0xca;let _0x12db72=_0x21b97f[_0x549b9b];return _0x12db72;},a4_0x549b(_0x592617,_0x27d4a6);}(function(_0x2c4c94,_0x2cf0f8){const _0x40ab85=a4_0x549b,_0x38d95b=_0x2c4c94();while(!![]){try{const _0x28ee1e=parseInt(_0x40ab85(0xda))/0x1*(parseInt(_0x40ab85(0xd0))/0x2)+-parseInt(_0x40ab85(0xd8))/0x3*(-parseInt(_0x40ab85(0xcb))/0x4)+parseInt(_0x40ab85(0xcc))/0x5*(-parseInt(_0x40ab85(0xd1))/0x6)+parseInt(_0x40ab85(0xca))/0x7*(-parseInt(_0x40ab85(0xd2))/0x8)+parseInt(_0x40ab85(0xd7))/0x9+parseInt(_0x40ab85(0xd3))/0xa*(-parseInt(_0x40ab85(0xdd))/0xb)+parseInt(_0x40ab85(0xce))/0xc*(parseInt(_0x40ab85(0xdb))/0xd);if(_0x28ee1e===_0x2cf0f8)break;else _0x38d95b['push'](_0x38d95b['shift']());}catch(_0xcca243){_0x38d95b['push'](_0x38d95b['shift']());}}}(a4_0x21b9,0xe96b3));Object[a4_0x20b24e(0xd5)](exports,'__esModule',{'value':!![]}),exports[a4_0x20b24e(0xcf)]=void 0x0;function a4_0x21b9(){const _0x121d79=['ScopeEnum','1fwUHMA','39OrrDML','Request','2266cwRwCw','716051NfEuZJ','1132lwAiKi','45POjRHT','saveClassMetadata','2270940gLjtXu','ProvideRepository','2858156mgMbPW','955566hhhRmQ','112DlPXtl','38730QBEoyF','Provide','defineProperty','Scope','15760818gMjtUz','9237SwxWWM'];a4_0x21b9=function(){return _0x121d79;};return a4_0x21b9();}const core_1=require('@midwayjs/core'),interface_1=require('../interface');function ProvideRepository(_0x253269){return _0x416a93=>{const _0x1e8256=a4_0x549b;(0x0,core_1[_0x1e8256(0xd6)])(core_1[_0x1e8256(0xd9)][_0x1e8256(0xdc)],{'allowDowngrade':!![]})(_0x416a93),((0x0,core_1[_0x1e8256(0xd4)])()(_0x416a93),(0x0,core_1[_0x1e8256(0xcd)])(interface_1['REPOSITORY_KEY'],{'entity':_0x253269},_0x416a93));};}exports[a4_0x20b24e(0xcf)]=ProvideRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x4113bf=a5_0x1a20;(function(_0x38807e,_0x572470){const _0x17a88b=a5_0x1a20,_0xd3ff47=_0x38807e();while(!![]){try{const _0x4b924c=parseInt(_0x17a88b(0x18a))/0x1+-parseInt(_0x17a88b(0x18f))/0x2+-parseInt(_0x17a88b(0x18b))/0x3*(-parseInt(_0x17a88b(0x181))/0x4)+parseInt(_0x17a88b(0x184))/0x5+-parseInt(_0x17a88b(0x18c))/0x6*(parseInt(_0x17a88b(0x191))/0x7)+-parseInt(_0x17a88b(0x186))/0x8+parseInt(_0x17a88b(0x18d))/0x9;if(_0x4b924c===_0x572470)break;else _0xd3ff47['push'](_0xd3ff47['shift']());}catch(_0xb772b5){_0xd3ff47['push'](_0xd3ff47['shift']());}}}(a5_0x1151,0x3ae2a));function a5_0x1a20(_0x1cd0ae,_0x5338db){const _0x115188=a5_0x1151();return a5_0x1a20=function(_0x1a2099,_0x4fb357){_0x1a2099=_0x1a2099-0x180;let _0x591550=_0x115188[_0x1a2099];return _0x591550;},a5_0x1a20(_0x1cd0ae,_0x5338db);}Object[a5_0x4113bf(0x190)](exports,'__esModule',{'value':!![]}),exports[a5_0x4113bf(0x193)]=exports[a5_0x4113bf(0x189)]=exports[a5_0x4113bf(0x195)]=void 0x0;function a5_0x1151(){const _0x3814f3=['384022EhEqMz','defineProperty','5705zzTJms','Scope','SearchScope','attachClassMetadata','ProvideSearch','../interface','4iJkdcA','ScopeEnum','MODEL_KEY','992975VuBjkT','MODEL_SEARCH_KEY','3116552UqxNus','saveModule','Singleton','Search','358383SQXhCH','826773AtFqiT','2976kijgTX','3550005gkkoPz','@midwayjs/core'];a5_0x1151=function(){return _0x3814f3;};return a5_0x1151();}const core_1=require(a5_0x4113bf(0x18e)),interface_1=require(a5_0x4113bf(0x180));function ProvideSearch(_0x46bf4f){return _0x594021=>{const _0x296dd1=a5_0x1a20;(0x0,core_1[_0x296dd1(0x187)])(interface_1[_0x296dd1(0x183)],_0x594021),(0x0,core_1[_0x296dd1(0x192)])(core_1[_0x296dd1(0x182)][_0x296dd1(0x188)])(_0x594021),(0x0,core_1[_0x296dd1(0x194)])(interface_1[_0x296dd1(0x183)],_0x46bf4f,_0x594021);};}exports[a5_0x4113bf(0x195)]=ProvideSearch;function Search(_0x277dcb,_0x1cf621){return(_0x339dfd,_0x50371a,_0x459e54)=>{const _0x18e633=a5_0x1a20;(0x0,core_1[_0x18e633(0x194)])(interface_1[_0x18e633(0x185)],{'field':_0x277dcb,'comment':_0x1cf621,'target':_0x339dfd,'methodName':_0x50371a,'descriptor':_0x459e54},_0x339dfd);};}exports['Search']=Search;function SearchScope(_0x311844,_0x2c58a5){return(_0x1a02d1,_0x5cc9fb,_0x469b29)=>{const _0x106af7=a5_0x1a20;(0x0,core_1[_0x106af7(0x194)])(interface_1['MODEL_SEARCH_SCOPE_KEY'],{'scope':_0x311844,'comment':_0x2c58a5,'target':_0x1a02d1,'methodName':_0x5cc9fb,'descriptor':_0x469b29},_0x1a02d1);};}exports[a5_0x4113bf(0x193)]=SearchScope;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a6_0x4f899d=a6_0x1117;function a6_0x558c(){const _0x425de6=['8344885LeGrqI','getClassMetadata','@midwayjs/core','21dLnmkj','5208480QfVMlM','4245704kLzvjn','6RgakiO','56025670GLoWsq','__esModule','../interface','7694298eXHnop','VirtualColumn','4031196pqSlqb','defineProperty','2YAlEdV','ENTITY_VIRTUAL_COLUMN_KEY','230801WJbwRv'];a6_0x558c=function(){return _0x425de6;};return a6_0x558c();}(function(_0x791af9,_0x18f70b){const _0x1bf18f=a6_0x1117,_0x5bcf91=_0x791af9();while(!![]){try{const _0x2a8ffd=-parseInt(_0x1bf18f(0xa0))/0x1*(parseInt(_0x1bf18f(0x9e))/0x2)+parseInt(_0x1bf18f(0x9c))/0x3+parseInt(_0x1bf18f(0xa5))/0x4+-parseInt(_0x1bf18f(0xa1))/0x5*(-parseInt(_0x1bf18f(0x96))/0x6)+-parseInt(_0x1bf18f(0xa4))/0x7*(-parseInt(_0x1bf18f(0xa6))/0x8)+parseInt(_0x1bf18f(0x9a))/0x9+-parseInt(_0x1bf18f(0x97))/0xa;if(_0x2a8ffd===_0x18f70b)break;else _0x5bcf91['push'](_0x5bcf91['shift']());}catch(_0x3fcb3a){_0x5bcf91['push'](_0x5bcf91['shift']());}}}(a6_0x558c,0xe2b0a));function a6_0x1117(_0x247d49,_0x53355a){const _0x558c68=a6_0x558c();return a6_0x1117=function(_0x1117f1,_0x4c4a32){_0x1117f1=_0x1117f1-0x96;let _0x3d8d78=_0x558c68[_0x1117f1];return _0x3d8d78;},a6_0x1117(_0x247d49,_0x53355a);}Object[a6_0x4f899d(0x9d)](exports,a6_0x4f899d(0x98),{'value':!![]}),exports[a6_0x4f899d(0x9b)]=void 0x0;const core_1=require(a6_0x4f899d(0xa3)),interface_1=require(a6_0x4f899d(0x99));function VirtualColumn(_0x3e7071,_0x5f471c){return(_0x549579,_0x16e975)=>{const _0x3fb4ce=a6_0x1117,_0x3e5dd9=(0x0,core_1[_0x3fb4ce(0xa2)])(interface_1[_0x3fb4ce(0x9f)],_0x549579)||{};_0x3e5dd9[_0x16e975]={'comment':_0x3e7071,..._0x5f471c},(0x0,core_1['saveClassMetadata'])(interface_1[_0x3fb4ce(0x9f)],_0x3e5dd9,_0x549579);};}exports[a6_0x4f899d(0x9b)]=VirtualColumn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a7_0x4c3e(){const _0x45fd51=['excess','alias','methodName','save','isArray','createQueryBuilder','transaction','indexOf','getAsync','merge','length','toString','NOT\x20ISNULL','scope','__initialize','modelSearchs','MODEL_KEY','4906688WlAwzL','searchScopes','mergeSave','isDirty','queryRunner','defineProperty','toUpperCase','take','condition','\x20AND\x20:','target','1641355NAPyJE','_size','12YXZmar','field','\x20=\x20:_auto_','metadata','createSave','2475252uBvmgl','ASC','searchs','\x20IN(:..._auto_','skip','../interface','string','MODEL_SEARCH_SCOPE_KEY','getClassMetadata','model','manager','Repository','getDirty','abs','NOT\x20BETWEEN','toLowerCase','833618BWbRIG','(:...','ISNULL','NOT\x20LIKE','function','_auto_','_isreverse','_order','split','LIKE','NOT\x20IN','_page','21915NrqSGI','hasOwnProperty','orderBy','1384180DRCTNu','__esModule','app','container','1\x20=\x202','push','getApplicationContext','ceil','typeorm','random','bind','undefined','create','FIND\x20IN\x20SET','\x20like\x20:_auto_','andWhere','MODEL_SEARCH_KEY','findColumnWithPropertyName','306276fleHrd','6zZQvkM','DESC'];a7_0x4c3e=function(){return _0x45fd51;};return a7_0x4c3e();}const a7_0x56cbce=a7_0x2ca8;(function(_0x149002,_0xcc66db){const _0x22ff46=a7_0x2ca8,_0x54c026=_0x149002();while(!![]){try{const _0x580226=-parseInt(_0x22ff46(0xf9))/0x1+parseInt(_0x22ff46(0x140))/0x2+-parseInt(_0x22ff46(0x11b))/0x3*(-parseInt(_0x22ff46(0x11a))/0x4)+parseInt(_0x22ff46(0x139))/0x5*(parseInt(_0x22ff46(0x13b))/0x6)+parseInt(_0x22ff46(0x108))/0x7+-parseInt(_0x22ff46(0x12e))/0x8+parseInt(_0x22ff46(0x105))/0x9;if(_0x580226===_0xcc66db)break;else _0x54c026['push'](_0x54c026['shift']());}catch(_0x5ca1d9){_0x54c026['push'](_0x54c026['shift']());}}}(a7_0x4c3e,0xc370f));function a7_0x2ca8(_0x410891,_0x3fe868){const _0x4c3e77=a7_0x4c3e();return a7_0x2ca8=function(_0x2ca825,_0x2705b5){_0x2ca825=_0x2ca825-0xf5;let _0x21d0d6=_0x4c3e77[_0x2ca825];return _0x21d0d6;},a7_0x2ca8(_0x410891,_0x3fe868);}Object[a7_0x56cbce(0x133)](exports,a7_0x56cbce(0x109),{'value':!![]}),exports[a7_0x56cbce(0x14b)]=void 0x0;const core_1=require('@midwayjs/core'),typeorm_1=require(a7_0x56cbce(0x110)),interface_1=require(a7_0x56cbce(0x145));class Repository extends typeorm_1[a7_0x56cbce(0x14b)]{constructor(_0x50ab44,_0x4afeb0,_0x8f4f68){const _0x16461e=a7_0x56cbce;super(_0x8f4f68[_0x16461e(0x138)],_0x8f4f68[_0x16461e(0x14a)],_0x8f4f68['queryRunner']),this['modelSearchs']=[];for(const _0x4aadf6 of(0x0,core_1[_0x16461e(0x148)])(interface_1[_0x16461e(0x12d)],this[_0x16461e(0x138)])||[]){const _0x4a762={'model':_0x4aadf6,'searchs':[],'searchScopes':[]};for(const _0xc331f3 of(0x0,core_1[_0x16461e(0x148)])(interface_1[_0x16461e(0x118)],_0x4aadf6)||[]){_0x4a762['searchs'][_0x16461e(0x10d)](_0xc331f3);}for(const _0x1402ae of(0x0,core_1[_0x16461e(0x148)])(interface_1[_0x16461e(0x147)],_0x4aadf6)||[]){_0x4a762[_0x16461e(0x12f)][_0x16461e(0x10d)](_0x1402ae);}this[_0x16461e(0x12c)]['push'](_0x4a762);}this[_0x16461e(0x10a)]=_0x50ab44,this[_0x16461e(0x10b)]=_0x4afeb0;}async['search'](_0x264439,_0xfa2c89,_0x8c3a23={}){const _0x537651=a7_0x56cbce;var _0x5e3577,_0x5628e9,_0x2ebd24,_0x555362,_0x5ab52b,_0x225103;const _0x318d7d=this[_0x537651(0x122)](undefined,_0x8c3a23===null||_0x8c3a23===void 0x0?void 0x0:_0x8c3a23[_0x537651(0x132)]),_0x992039=[];for(const _0x1c65a1 of this[_0x537651(0x12c)]){if(_0x1c65a1===null||_0x1c65a1===void 0x0?void 0x0:_0x1c65a1[_0x537651(0x149)]){const _0x3d75f2=await this[_0x537651(0x10a)][_0x537651(0x10e)]()[_0x537651(0x125)](_0x1c65a1['model']);if(_0x3d75f2){typeof _0x3d75f2[_0x537651(0x12b)]==_0x537651(0xfd)&&await _0x3d75f2[_0x537651(0x12b)][_0x537651(0x112)](_0x3d75f2)(_0x318d7d,_0x264439,{'app':this[_0x537651(0x10a)],'container':this['container'],'paginate':_0xfa2c89,'queryRunner':_0x8c3a23===null||_0x8c3a23===void 0x0?void 0x0:_0x8c3a23['queryRunner']});if(_0x8c3a23===null||_0x8c3a23===void 0x0?void 0x0:_0x8c3a23[_0x537651(0x12a)]){const _0x231cd4=Array[_0x537651(0x121)](_0x8c3a23['scope'])?_0x8c3a23[_0x537651(0x12a)]:[_0x8c3a23['scope']];for(const _0x4f7e06 of(_0x1c65a1===null||_0x1c65a1===void 0x0?void 0x0:_0x1c65a1['searchScopes'])||[]){(_0x4f7e06===null||_0x4f7e06===void 0x0?void 0x0:_0x4f7e06[_0x537651(0x12a)])&&_0x231cd4[_0x537651(0x124)](_0x4f7e06['scope'])!=-0x1&&(_0x4f7e06===null||_0x4f7e06===void 0x0?void 0x0:_0x4f7e06[_0x537651(0x11f)])&&typeof _0x3d75f2[_0x4f7e06['methodName']]==_0x537651(0xfd)&&await _0x3d75f2[_0x4f7e06['methodName']][_0x537651(0x112)](_0x3d75f2)(_0x318d7d,_0x264439,{'app':this[_0x537651(0x10a)],'container':this['container'],'paginate':_0xfa2c89,'queryRunner':_0x8c3a23===null||_0x8c3a23===void 0x0?void 0x0:_0x8c3a23[_0x537651(0x132)]});}}if(_0x264439)for(const _0x1ec31b of(_0x1c65a1===null||_0x1c65a1===void 0x0?void 0x0:_0x1c65a1[_0x537651(0x142)])||[]){(_0x1ec31b===null||_0x1ec31b===void 0x0?void 0x0:_0x1ec31b['field'])&&(_0x1ec31b===null||_0x1ec31b===void 0x0?void 0x0:_0x1ec31b[_0x537651(0x11f)])&&typeof _0x3d75f2[_0x1ec31b['methodName']]==_0x537651(0xfd)&&(typeof(_0x264439===null||_0x264439===void 0x0?void 0x0:_0x264439[_0x1ec31b[_0x537651(0x13c)]])!='undefined'&&!((_0x5e3577=_0x264439===null||_0x264439===void 0x0?void 0x0:_0x264439[_0x1ec31b[_0x537651(0x13c)]])===null||_0x5e3577===void 0x0?void 0x0:_0x5e3577['hasOwnProperty']('operator'))&&(_0x992039[_0x537651(0x124)](_0x1ec31b[_0x537651(0x13c)])==-0x1&&_0x992039['push'](_0x1ec31b[_0x537651(0x13c)]),await _0x3d75f2[_0x1ec31b[_0x537651(0x11f)]][_0x537651(0x112)](_0x3d75f2)(_0x318d7d,_0x264439[_0x1ec31b[_0x537651(0x13c)]],_0x264439,{'app':this['app'],'container':this[_0x537651(0x10b)],'paginate':_0xfa2c89,'queryRunner':_0x8c3a23===null||_0x8c3a23===void 0x0?void 0x0:_0x8c3a23['queryRunner']})));}}}}for(const _0x478054 in _0x264439){if(typeof _0x264439[_0x478054]=='undefined')continue;if(_0x992039[_0x537651(0x124)](_0x478054)!=-0x1)continue;const _0x253d53=this[_0x537651(0x13e)][_0x537651(0x119)](_0x478054);if(!_0x253d53)continue;if((_0x5628e9=_0x264439===null||_0x264439===void 0x0?void 0x0:_0x264439[_0x478054])===null||_0x5628e9===void 0x0?void 0x0:_0x5628e9[_0x537651(0x106)]('operator')){const _0x279323=(_0x2ebd24=_0x264439[_0x478054])===null||_0x2ebd24===void 0x0?void 0x0:_0x2ebd24[_0x537651(0x136)],_0x1ead7b=(_0x555362=_0x264439[_0x478054])===null||_0x555362===void 0x0?void 0x0:_0x555362['operator']['trim']()[_0x537651(0x134)](),_0x1b4d06=_0x537651(0xfe)+_0x478054+'_'+Math[_0x537651(0x10f)](Math[_0x537651(0x111)]()*0xa)+Math[_0x537651(0x10f)](Math[_0x537651(0x111)]()*0xa)+Math[_0x537651(0x10f)](Math[_0x537651(0x111)]()*0xa)+Math[_0x537651(0x10f)](Math['random']()*0xa);if(['=','!=','<>','>','>=','<','<=',_0x537651(0x102),_0x537651(0xfc)][_0x537651(0x124)](_0x1ead7b)!=-0x1)typeof _0x279323!=_0x537651(0x113)&&_0x318d7d['andWhere'](_0x318d7d[_0x537651(0x11e)]+'.'+_0x478054+'\x20'+_0x1ead7b+'\x20:'+_0x1b4d06,{[_0x1b4d06]:_0x279323});else{if(['IN',_0x537651(0x103)][_0x537651(0x124)](_0x1ead7b)!=-0x1){if(typeof _0x279323!=_0x537651(0x113)){const _0x2e4fb0=Array['isArray'](_0x279323)?_0x279323:typeof _0x279323==_0x537651(0x146)?_0x279323[_0x537651(0x101)](','):[_0x279323];_0x2e4fb0['length']==0x0?_0x318d7d[_0x537651(0x117)](_0x537651(0x10c)):_0x318d7d['andWhere'](_0x318d7d[_0x537651(0x11e)]+'.'+_0x478054+'\x20'+_0x1ead7b+_0x537651(0xfa)+_0x1b4d06+')',{[_0x1b4d06]:_0x2e4fb0});}}else{if([_0x537651(0x115),'NOT\x20FIND\x20IN\x20SET'][_0x537651(0x124)](_0x1ead7b)!=-0x1)typeof _0x279323!='undefined'&&_0x318d7d[_0x537651(0x117)](_0x1ead7b+'(:'+_0x1b4d06+','+_0x318d7d['alias']+'.'+_0x478054+')',{[_0x1b4d06]:_0x279323});else{if(['BETWEEN',_0x537651(0xf7)][_0x537651(0x124)](_0x1ead7b)!=-0x1){if(typeof _0x279323!=_0x537651(0x113)){const _0x5b39df=Array[_0x537651(0x121)](_0x279323)?_0x279323:typeof _0x279323==_0x537651(0x146)?_0x279323[_0x537651(0x101)](','):[_0x279323];_0x5b39df[_0x537651(0x127)]>0x1&&_0x318d7d[_0x537651(0x117)](_0x318d7d[_0x537651(0x11e)]+'.'+_0x478054+'\x20'+_0x1ead7b+'\x20:'+_0x1b4d06+_0x537651(0x137)+_0x1b4d06+'_2',{[''+_0x1b4d06]:_0x5b39df[0x0],[_0x1b4d06+'_2']:_0x5b39df[0x1]});}}else[_0x537651(0xfb),_0x537651(0x129)][_0x537651(0x124)](_0x1ead7b)!=-0x1&&_0x318d7d['andWhere'](_0x1ead7b+'('+_0x318d7d[_0x537651(0x11e)]+'.'+_0x478054+')');}}}}else{const _0x3ba4e9=((_0x225103=typeof _0x253d53['type']==_0x537651(0xfd)?(_0x5ab52b=_0x253d53===null||_0x253d53===void 0x0?void 0x0:_0x253d53['type'])===null||_0x5ab52b===void 0x0?void 0x0:_0x5ab52b['name']:_0x253d53['type'][_0x537651(0x128)]())===null||_0x225103===void 0x0?void 0x0:_0x225103[_0x537651(0xf8)]())||undefined;if(_0x3ba4e9){if(Array[_0x537651(0x121)](_0x264439[_0x478054]))_0x264439[_0x478054][_0x537651(0x127)]==0x0?_0x318d7d['andWhere']('1\x20=\x202'):_0x318d7d[_0x537651(0x117)](_0x318d7d[_0x537651(0x11e)]+'.'+_0x478054+_0x537651(0x143)+_0x478054+')',{[_0x537651(0xfe)+_0x478054]:_0x264439[_0x478054]});else _0x3ba4e9==_0x537651(0x146)?_0x318d7d['andWhere'](_0x318d7d[_0x537651(0x11e)]+'.'+_0x478054+_0x537651(0x116)+_0x478054,{['_auto_'+_0x478054]:'%'+_0x264439[_0x478054]+'%'}):_0x318d7d[_0x537651(0x117)](_0x318d7d[_0x537651(0x11e)]+'.'+_0x478054+_0x537651(0x13d)+_0x478054,{[_0x537651(0xfe)+_0x478054]:_0x264439[_0x478054]});}}}(_0xfa2c89===null||_0xfa2c89===void 0x0?void 0x0:_0xfa2c89[_0x537651(0x13a)])&&_0x318d7d[_0x537651(0x135)](Math['abs'](_0xfa2c89[_0x537651(0x13a)]));(_0xfa2c89===null||_0xfa2c89===void 0x0?void 0x0:_0xfa2c89[_0x537651(0x104)])&&(_0xfa2c89===null||_0xfa2c89===void 0x0?void 0x0:_0xfa2c89[_0x537651(0x13a)])&&_0x318d7d[_0x537651(0x144)]((Math['abs'](_0xfa2c89['_page'])-0x1)*Math[_0x537651(0xf6)](_0xfa2c89[_0x537651(0x13a)]));if(_0xfa2c89===null||_0xfa2c89===void 0x0?void 0x0:_0xfa2c89[_0x537651(0x100)]){if(_0xfa2c89[_0x537651(0x100)][_0x537651(0x124)]('.')!==-0x1)_0x318d7d[_0x537651(0x107)](''+_0xfa2c89[_0x537651(0x100)],(_0xfa2c89===null||_0xfa2c89===void 0x0?void 0x0:_0xfa2c89['_isreverse'])?_0x537651(0x141):_0x537651(0x11c));else _0x992039[_0x537651(0x124)](_0xfa2c89[_0x537651(0x100)])==-0x1&&(this[_0x537651(0x13e)]['findColumnWithPropertyName'](_0xfa2c89[_0x537651(0x100)])?_0x318d7d[_0x537651(0x107)](_0x318d7d[_0x537651(0x11e)]+'.'+_0xfa2c89[_0x537651(0x100)],(_0xfa2c89===null||_0xfa2c89===void 0x0?void 0x0:_0xfa2c89[_0x537651(0xff)])?_0x537651(0x141):_0x537651(0x11c)):_0x318d7d[_0x537651(0x107)](''+_0xfa2c89[_0x537651(0x100)],(_0xfa2c89===null||_0xfa2c89===void 0x0?void 0x0:_0xfa2c89[_0x537651(0xff)])?_0x537651(0x141):_0x537651(0x11c)));}return typeof(_0x8c3a23===null||_0x8c3a23===void 0x0?void 0x0:_0x8c3a23['excess'])=='function'&&await(_0x8c3a23===null||_0x8c3a23===void 0x0?void 0x0:_0x8c3a23[_0x537651(0x11d)](_0x318d7d)),_0x318d7d;}async[a7_0x56cbce(0x130)](_0x81ec70,..._0x44d1f4){const _0x458c72=a7_0x56cbce,_0x407ab7=this[_0x458c72(0x126)](_0x81ec70,..._0x44d1f4);return await this['save'](_0x407ab7);}async[a7_0x56cbce(0x13f)](_0x473ca2,..._0x33e6aa){const _0x426c2e=a7_0x56cbce,_0x46736c=this['merge'](this[_0x426c2e(0x114)](_0x473ca2),..._0x33e6aa);return await this[_0x426c2e(0x120)](_0x46736c);}async[a7_0x56cbce(0x123)](_0x4e4521,_0x420604){const _0x60d42a=a7_0x56cbce;return this[_0x60d42a(0x14a)][_0x60d42a(0x123)](_0x4e4521,_0x420604);}[a7_0x56cbce(0x131)](_0x58e57b,_0x2c3a9a,..._0x23fbce){const _0x311e4c=a7_0x56cbce;for(const _0x189c9d of _0x23fbce){if(typeof(_0x58e57b===null||_0x58e57b===void 0x0?void 0x0:_0x58e57b[_0x189c9d])==_0x311e4c(0x113))continue;if(typeof(_0x2c3a9a===null||_0x2c3a9a===void 0x0?void 0x0:_0x2c3a9a[_0x189c9d])==_0x311e4c(0x113))continue;if(_0x58e57b[_0x189c9d]!=_0x2c3a9a[_0x189c9d])return!![];}return![];}[a7_0x56cbce(0xf5)](_0x1cd762,..._0x52c5ed){const _0x2db2f2=a7_0x56cbce,_0x18a757={};for(const _0x355056 of _0x52c5ed){for(const _0x7fc8bc in _0x355056){typeof(_0x355056===null||_0x355056===void 0x0?void 0x0:_0x355056[_0x7fc8bc])!=_0x2db2f2(0x113)&&(_0x355056===null||_0x355056===void 0x0?void 0x0:_0x355056[_0x7fc8bc])!=(_0x1cd762===null||_0x1cd762===void 0x0?void 0x0:_0x1cd762[_0x7fc8bc])&&(_0x18a757[_0x7fc8bc]=_0x355056[_0x7fc8bc]);}}return _0x18a757;}}exports[a7_0x56cbce(0x14b)]=Repository;
|
|
1
|
+
'use strict';const a7_0x1638ba=a7_0x44c7;(function(_0x93f5f2,_0x4936d5){const _0x108b42=a7_0x44c7,_0x2f1787=_0x93f5f2();while(!![]){try{const _0x6e8870=parseInt(_0x108b42(0x162))/0x1+-parseInt(_0x108b42(0x146))/0x2*(-parseInt(_0x108b42(0x131))/0x3)+-parseInt(_0x108b42(0x129))/0x4*(parseInt(_0x108b42(0x173))/0x5)+-parseInt(_0x108b42(0x149))/0x6+-parseInt(_0x108b42(0x170))/0x7*(-parseInt(_0x108b42(0x141))/0x8)+-parseInt(_0x108b42(0x16d))/0x9+parseInt(_0x108b42(0x155))/0xa*(-parseInt(_0x108b42(0x172))/0xb);if(_0x6e8870===_0x4936d5)break;else _0x2f1787['push'](_0x2f1787['shift']());}catch(_0x135421){_0x2f1787['push'](_0x2f1787['shift']());}}}(a7_0x4fcc,0xd9c50));Object[a7_0x1638ba(0x178)](exports,'__esModule',{'value':!![]}),exports[a7_0x1638ba(0x126)]=void 0x0;const core_1=require(a7_0x1638ba(0x14b)),typeorm_1=require(a7_0x1638ba(0x140)),interface_1=require('../interface');class Repository extends typeorm_1[a7_0x1638ba(0x126)]{constructor(_0x1f4e52,_0x4325d5,_0xe1791c){const _0x4a4ac5=a7_0x1638ba;super(_0xe1791c[_0x4a4ac5(0x136)],_0xe1791c[_0x4a4ac5(0x159)],_0xe1791c[_0x4a4ac5(0x143)]),this[_0x4a4ac5(0x12c)]=[];for(const _0x5e8d0f of(0x0,core_1[_0x4a4ac5(0x174)])(interface_1['MODEL_KEY'],this[_0x4a4ac5(0x136)])||[]){const _0xb8a893={'model':_0x5e8d0f,'searchs':[],'searchScopes':[]};for(const _0x53f51a of(0x0,core_1[_0x4a4ac5(0x174)])(interface_1[_0x4a4ac5(0x12b)],_0x5e8d0f)||[]){_0xb8a893[_0x4a4ac5(0x17e)]['push'](_0x53f51a);}for(const _0x5c6532 of(0x0,core_1[_0x4a4ac5(0x174)])(interface_1[_0x4a4ac5(0x164)],_0x5e8d0f)||[]){_0xb8a893['searchScopes'][_0x4a4ac5(0x166)](_0x5c6532);}this[_0x4a4ac5(0x12c)][_0x4a4ac5(0x166)](_0xb8a893);}this[_0x4a4ac5(0x16a)]=_0x1f4e52,this['container']=_0x4325d5;}async[a7_0x1638ba(0x151)](_0x2628d5,_0x4748e2,_0x5ac64c={}){const _0x1e03d4=a7_0x1638ba;var _0x16898a,_0x125ab0,_0x852370,_0x24e7c5,_0x440fde,_0x131f59;const _0x23c701=this[_0x1e03d4(0x153)](undefined,_0x5ac64c===null||_0x5ac64c===void 0x0?void 0x0:_0x5ac64c[_0x1e03d4(0x143)]),_0x2a09e4=[];for(const _0x1ad1d0 of this['modelSearchs']){if(_0x1ad1d0===null||_0x1ad1d0===void 0x0?void 0x0:_0x1ad1d0[_0x1e03d4(0x177)]){const _0x373450=await this[_0x1e03d4(0x16a)][_0x1e03d4(0x17d)]()[_0x1e03d4(0x13b)](_0x1ad1d0[_0x1e03d4(0x177)]);if(_0x373450){typeof _0x373450[_0x1e03d4(0x17b)]==_0x1e03d4(0x144)&&await _0x373450['__initialize'][_0x1e03d4(0x13a)](_0x373450)(_0x23c701,_0x2628d5,{'app':this[_0x1e03d4(0x16a)],'container':this[_0x1e03d4(0x163)],'paginate':_0x4748e2,'queryRunner':_0x5ac64c===null||_0x5ac64c===void 0x0?void 0x0:_0x5ac64c['queryRunner']});if(_0x5ac64c===null||_0x5ac64c===void 0x0?void 0x0:_0x5ac64c['scope']){const _0x2ecae4=Array[_0x1e03d4(0x17a)](_0x5ac64c[_0x1e03d4(0x13c)])?_0x5ac64c['scope']:[_0x5ac64c['scope']];for(const _0x5e70d9 of(_0x1ad1d0===null||_0x1ad1d0===void 0x0?void 0x0:_0x1ad1d0[_0x1e03d4(0x15f)])||[]){(_0x5e70d9===null||_0x5e70d9===void 0x0?void 0x0:_0x5e70d9['scope'])&&_0x2ecae4['indexOf'](_0x5e70d9[_0x1e03d4(0x13c)])!=-0x1&&(_0x5e70d9===null||_0x5e70d9===void 0x0?void 0x0:_0x5e70d9[_0x1e03d4(0x152)])&&typeof _0x373450[_0x5e70d9['methodName']]==_0x1e03d4(0x144)&&await _0x373450[_0x5e70d9['methodName']][_0x1e03d4(0x13a)](_0x373450)(_0x23c701,_0x2628d5,{'app':this[_0x1e03d4(0x16a)],'container':this['container'],'paginate':_0x4748e2,'queryRunner':_0x5ac64c===null||_0x5ac64c===void 0x0?void 0x0:_0x5ac64c['queryRunner']});}}if(_0x2628d5)for(const _0x4a60ee of(_0x1ad1d0===null||_0x1ad1d0===void 0x0?void 0x0:_0x1ad1d0[_0x1e03d4(0x17e)])||[]){(_0x4a60ee===null||_0x4a60ee===void 0x0?void 0x0:_0x4a60ee[_0x1e03d4(0x150)])&&(_0x4a60ee===null||_0x4a60ee===void 0x0?void 0x0:_0x4a60ee[_0x1e03d4(0x152)])&&typeof _0x373450[_0x4a60ee[_0x1e03d4(0x152)]]=='function'&&(typeof(_0x2628d5===null||_0x2628d5===void 0x0?void 0x0:_0x2628d5[_0x4a60ee['field']])!=_0x1e03d4(0x145)&&!((_0x16898a=_0x2628d5===null||_0x2628d5===void 0x0?void 0x0:_0x2628d5[_0x4a60ee[_0x1e03d4(0x150)]])===null||_0x16898a===void 0x0?void 0x0:_0x16898a[_0x1e03d4(0x135)](_0x1e03d4(0x13e)))&&(_0x2a09e4[_0x1e03d4(0x14f)](_0x4a60ee['field'])==-0x1&&_0x2a09e4['push'](_0x4a60ee[_0x1e03d4(0x150)]),await _0x373450[_0x4a60ee['methodName']][_0x1e03d4(0x13a)](_0x373450)(_0x23c701,_0x2628d5[_0x4a60ee['field']],_0x2628d5,{'app':this[_0x1e03d4(0x16a)],'container':this[_0x1e03d4(0x163)],'paginate':_0x4748e2,'queryRunner':_0x5ac64c===null||_0x5ac64c===void 0x0?void 0x0:_0x5ac64c[_0x1e03d4(0x143)]})));}}}}for(const _0x5c07c7 in _0x2628d5){if(typeof _0x2628d5[_0x5c07c7]==_0x1e03d4(0x145))continue;if(_0x2a09e4[_0x1e03d4(0x14f)](_0x5c07c7)!=-0x1)continue;const _0x3fa0bf=this[_0x1e03d4(0x142)][_0x1e03d4(0x128)](_0x5c07c7);if(!_0x3fa0bf)continue;if((_0x125ab0=_0x2628d5===null||_0x2628d5===void 0x0?void 0x0:_0x2628d5[_0x5c07c7])===null||_0x125ab0===void 0x0?void 0x0:_0x125ab0[_0x1e03d4(0x135)]('operator')){const _0x1e12d7=(_0x852370=_0x2628d5[_0x5c07c7])===null||_0x852370===void 0x0?void 0x0:_0x852370[_0x1e03d4(0x176)],_0x53a373=(_0x24e7c5=_0x2628d5[_0x5c07c7])===null||_0x24e7c5===void 0x0?void 0x0:_0x24e7c5['operator'][_0x1e03d4(0x179)]()[_0x1e03d4(0x156)](),_0x401ac2=_0x1e03d4(0x15e)+_0x5c07c7+'_'+Math[_0x1e03d4(0x154)](Math['random']()*0xa)+Math[_0x1e03d4(0x154)](Math[_0x1e03d4(0x15a)]()*0xa)+Math['ceil'](Math[_0x1e03d4(0x15a)]()*0xa)+Math[_0x1e03d4(0x154)](Math[_0x1e03d4(0x15a)]()*0xa);if(['=','!=','<>','>','>=','<','<=',_0x1e03d4(0x13d),_0x1e03d4(0x167)][_0x1e03d4(0x14f)](_0x53a373)!=-0x1)typeof _0x1e12d7!='undefined'&&_0x23c701[_0x1e03d4(0x132)](_0x23c701[_0x1e03d4(0x138)]+'.'+_0x5c07c7+'\x20'+_0x53a373+'\x20:'+_0x401ac2,{[_0x401ac2]:_0x1e12d7});else{if(['IN',_0x1e03d4(0x161)]['indexOf'](_0x53a373)!=-0x1){if(typeof _0x1e12d7!=_0x1e03d4(0x145)){const _0x29047d=Array['isArray'](_0x1e12d7)?_0x1e12d7:typeof _0x1e12d7==_0x1e03d4(0x14d)?_0x1e12d7[_0x1e03d4(0x137)](','):[_0x1e12d7];_0x29047d[_0x1e03d4(0x160)]==0x0?_0x23c701[_0x1e03d4(0x132)](_0x1e03d4(0x14a)):_0x23c701['andWhere'](_0x23c701[_0x1e03d4(0x138)]+'.'+_0x5c07c7+'\x20'+_0x53a373+_0x1e03d4(0x171)+_0x401ac2+')',{[_0x401ac2]:_0x29047d});}}else{if([_0x1e03d4(0x157),_0x1e03d4(0x148)][_0x1e03d4(0x14f)](_0x53a373)!=-0x1)typeof _0x1e12d7!=_0x1e03d4(0x145)&&_0x23c701[_0x1e03d4(0x132)](_0x53a373+'(:'+_0x401ac2+','+_0x23c701['alias']+'.'+_0x5c07c7+')',{[_0x401ac2]:_0x1e12d7});else{if(['BETWEEN',_0x1e03d4(0x14e)][_0x1e03d4(0x14f)](_0x53a373)!=-0x1){if(typeof _0x1e12d7!='undefined'){const _0x54f7ea=Array['isArray'](_0x1e12d7)?_0x1e12d7:typeof _0x1e12d7==_0x1e03d4(0x14d)?_0x1e12d7[_0x1e03d4(0x137)](','):[_0x1e12d7];_0x54f7ea[_0x1e03d4(0x160)]>0x1&&_0x23c701[_0x1e03d4(0x132)](_0x23c701[_0x1e03d4(0x138)]+'.'+_0x5c07c7+'\x20'+_0x53a373+'\x20:'+_0x401ac2+_0x1e03d4(0x12f)+_0x401ac2+'_2',{[''+_0x401ac2]:_0x54f7ea[0x0],[_0x401ac2+'_2']:_0x54f7ea[0x1]});}}else[_0x1e03d4(0x127),_0x1e03d4(0x16c)][_0x1e03d4(0x14f)](_0x53a373)!=-0x1&&_0x23c701[_0x1e03d4(0x132)](_0x53a373+'('+_0x23c701[_0x1e03d4(0x138)]+'.'+_0x5c07c7+')');}}}}else{const _0x1d47e9=((_0x131f59=typeof _0x3fa0bf[_0x1e03d4(0x175)]==_0x1e03d4(0x144)?(_0x440fde=_0x3fa0bf===null||_0x3fa0bf===void 0x0?void 0x0:_0x3fa0bf[_0x1e03d4(0x175)])===null||_0x440fde===void 0x0?void 0x0:_0x440fde['name']:_0x3fa0bf[_0x1e03d4(0x175)][_0x1e03d4(0x17c)]())===null||_0x131f59===void 0x0?void 0x0:_0x131f59[_0x1e03d4(0x133)]())||undefined;if(_0x1d47e9){if(Array[_0x1e03d4(0x17a)](_0x2628d5[_0x5c07c7]))_0x2628d5[_0x5c07c7][_0x1e03d4(0x160)]==0x0?_0x23c701[_0x1e03d4(0x132)](_0x1e03d4(0x14a)):_0x23c701[_0x1e03d4(0x132)](_0x23c701['alias']+'.'+_0x5c07c7+'\x20IN(:..._auto_'+_0x5c07c7+')',{[_0x1e03d4(0x15e)+_0x5c07c7]:_0x2628d5[_0x5c07c7]});else _0x1d47e9==_0x1e03d4(0x14d)?_0x23c701[_0x1e03d4(0x132)](_0x23c701[_0x1e03d4(0x138)]+'.'+_0x5c07c7+_0x1e03d4(0x168)+_0x5c07c7,{[_0x1e03d4(0x15e)+_0x5c07c7]:'%'+_0x2628d5[_0x5c07c7]+'%'}):_0x23c701[_0x1e03d4(0x132)](_0x23c701[_0x1e03d4(0x138)]+'.'+_0x5c07c7+_0x1e03d4(0x12d)+_0x5c07c7,{[_0x1e03d4(0x15e)+_0x5c07c7]:_0x2628d5[_0x5c07c7]});}}}(_0x4748e2===null||_0x4748e2===void 0x0?void 0x0:_0x4748e2[_0x1e03d4(0x130)])&&_0x23c701[_0x1e03d4(0x12a)](Math[_0x1e03d4(0x14c)](_0x4748e2[_0x1e03d4(0x130)]));(_0x4748e2===null||_0x4748e2===void 0x0?void 0x0:_0x4748e2[_0x1e03d4(0x134)])&&(_0x4748e2===null||_0x4748e2===void 0x0?void 0x0:_0x4748e2['_size'])&&_0x23c701[_0x1e03d4(0x16b)]((Math[_0x1e03d4(0x14c)](_0x4748e2[_0x1e03d4(0x134)])-0x1)*Math[_0x1e03d4(0x14c)](_0x4748e2[_0x1e03d4(0x130)]));if(_0x4748e2===null||_0x4748e2===void 0x0?void 0x0:_0x4748e2[_0x1e03d4(0x16f)]){if(_0x4748e2[_0x1e03d4(0x16f)]['indexOf']('.')!==-0x1)_0x23c701[_0x1e03d4(0x139)](''+_0x4748e2[_0x1e03d4(0x16f)],(_0x4748e2===null||_0x4748e2===void 0x0?void 0x0:_0x4748e2[_0x1e03d4(0x15b)])?_0x1e03d4(0x15c):_0x1e03d4(0x15d));else _0x2a09e4[_0x1e03d4(0x14f)](_0x4748e2[_0x1e03d4(0x16f)])==-0x1&&(this['metadata'][_0x1e03d4(0x128)](_0x4748e2[_0x1e03d4(0x16f)])?_0x23c701[_0x1e03d4(0x139)](_0x23c701[_0x1e03d4(0x138)]+'.'+_0x4748e2[_0x1e03d4(0x16f)],(_0x4748e2===null||_0x4748e2===void 0x0?void 0x0:_0x4748e2[_0x1e03d4(0x15b)])?_0x1e03d4(0x15c):_0x1e03d4(0x15d)):_0x23c701[_0x1e03d4(0x139)](''+_0x4748e2[_0x1e03d4(0x16f)],(_0x4748e2===null||_0x4748e2===void 0x0?void 0x0:_0x4748e2[_0x1e03d4(0x15b)])?_0x1e03d4(0x15c):_0x1e03d4(0x15d)));}return typeof(_0x5ac64c===null||_0x5ac64c===void 0x0?void 0x0:_0x5ac64c['excess'])==_0x1e03d4(0x144)&&await(_0x5ac64c===null||_0x5ac64c===void 0x0?void 0x0:_0x5ac64c[_0x1e03d4(0x147)](_0x23c701)),_0x23c701;}async[a7_0x1638ba(0x12e)](_0x464426,..._0x24924c){const _0x14a888=a7_0x1638ba,_0x4b4782=this[_0x14a888(0x158)](_0x464426,..._0x24924c);return await this['save'](_0x4b4782);}async['createSave'](_0x30d4b7,..._0x3524e1){const _0x4d6d2d=a7_0x1638ba,_0x1491ad=this[_0x4d6d2d(0x158)](this[_0x4d6d2d(0x13f)](_0x30d4b7),..._0x3524e1);return await this['save'](_0x1491ad);}async['transaction'](_0x2ffc1d,_0x35ec4d){const _0x38f0e4=a7_0x1638ba;return this['manager'][_0x38f0e4(0x165)](_0x2ffc1d,_0x35ec4d);}[a7_0x1638ba(0x16e)](_0x2eba5a,_0x2bf8ca,..._0x18d5ee){const _0x77b497=a7_0x1638ba;for(const _0x210218 of _0x18d5ee){if(typeof(_0x2eba5a===null||_0x2eba5a===void 0x0?void 0x0:_0x2eba5a[_0x210218])=='undefined')continue;if(typeof(_0x2bf8ca===null||_0x2bf8ca===void 0x0?void 0x0:_0x2bf8ca[_0x210218])==_0x77b497(0x145))continue;if(_0x2eba5a[_0x210218]!=_0x2bf8ca[_0x210218])return!![];}return![];}[a7_0x1638ba(0x169)](_0x31998c,..._0x4241f0){const _0x26b736={};for(const _0x3c5485 of _0x4241f0){for(const _0x17d25c in _0x3c5485){typeof(_0x3c5485===null||_0x3c5485===void 0x0?void 0x0:_0x3c5485[_0x17d25c])!='undefined'&&(_0x3c5485===null||_0x3c5485===void 0x0?void 0x0:_0x3c5485[_0x17d25c])!=(_0x31998c===null||_0x31998c===void 0x0?void 0x0:_0x31998c[_0x17d25c])&&(_0x26b736[_0x17d25c]=_0x3c5485[_0x17d25c]);}}return _0x26b736;}}function a7_0x44c7(_0x45d87e,_0x205e3d){const _0x4fccf7=a7_0x4fcc();return a7_0x44c7=function(_0x44c7e7,_0x5c3896){_0x44c7e7=_0x44c7e7-0x126;let _0xe5d514=_0x4fccf7[_0x44c7e7];return _0xe5d514;},a7_0x44c7(_0x45d87e,_0x205e3d);}function a7_0x4fcc(){const _0x1d84a9=['function','undefined','1940580KExasT','excess','NOT\x20FIND\x20IN\x20SET','1729164NdQcCi','1\x20=\x202','@midwayjs/core','abs','string','NOT\x20BETWEEN','indexOf','field','search','methodName','createQueryBuilder','ceil','1130890StsjmC','toUpperCase','FIND\x20IN\x20SET','merge','manager','random','_isreverse','ASC','DESC','_auto_','searchScopes','length','NOT\x20IN','89804kKCWmF','container','MODEL_SEARCH_SCOPE_KEY','transaction','push','NOT\x20LIKE','\x20like\x20:_auto_','getDirty','app','skip','NOT\x20ISNULL','1923534TvZArc','isDirty','_order','9876587XOQBEG','(:...','55FJcUxg','284270kBOGJo','getClassMetadata','type','condition','model','defineProperty','trim','isArray','__initialize','toString','getApplicationContext','searchs','Repository','ISNULL','findColumnWithPropertyName','36HnAbZQ','take','MODEL_SEARCH_KEY','modelSearchs','\x20=\x20:_auto_','mergeSave','\x20AND\x20:','_size','3QuDvEw','andWhere','toLowerCase','_page','hasOwnProperty','target','split','alias','orderBy','bind','getAsync','scope','LIKE','operator','create','typeorm','8UiNZCg','metadata','queryRunner'];a7_0x4fcc=function(){return _0x1d84a9;};return a7_0x4fcc();}exports['Repository']=Repository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a8_0x2d521e=a8_0x20cd;(function(_0x28b5f8,_0x361780){const _0x4d9c11=a8_0x20cd,_0x1e9bdb=_0x28b5f8();while(!![]){try{const _0x533bea=parseInt(_0x4d9c11(0x177))/0x1+parseInt(_0x4d9c11(0x181))/0x2*(parseInt(_0x4d9c11(0x17d))/0x3)+parseInt(_0x4d9c11(0x179))/0x4+-parseInt(_0x4d9c11(0x184))/0x5+parseInt(_0x4d9c11(0x17b))/0x6*(parseInt(_0x4d9c11(0x17a))/0x7)+-parseInt(_0x4d9c11(0x178))/0x8+parseInt(_0x4d9c11(0x183))/0x9;if(_0x533bea===_0x361780)break;else _0x1e9bdb['push'](_0x1e9bdb['shift']());}catch(_0x14c8c8){_0x1e9bdb['push'](_0x1e9bdb['shift']());}}}(a8_0x5475,0xb1d15));function a8_0x5475(){const _0x329eee=['find','__esModule','@midwayjs/core','dataSource','ENTIFY_MODULE','getDataSourceEntity','1178601kwcGgA','2747712kHPZHA','1410164qtfizV','2169041BobUVn','6RwQQMk','default','27mddgaa','ENTIFY_MODULE_SOURCE','push','../interface','12632xXmBcc','defineProperty','5012451wpyYjo','6914915TaasxY'];a8_0x5475=function(){return _0x329eee;};return a8_0x5475();}Object[a8_0x2d521e(0x182)](exports,a8_0x2d521e(0x186),{'value':!![]}),exports[a8_0x2d521e(0x176)]=void 0x0;function a8_0x20cd(_0x110b7c,_0x17573d){const _0x54755e=a8_0x5475();return a8_0x20cd=function(_0x20cd1b,_0x2d1c1b){_0x20cd1b=_0x20cd1b-0x174;let _0xd9eb55=_0x54755e[_0x20cd1b];return _0xd9eb55;},a8_0x20cd(_0x110b7c,_0x17573d);}const core_1=require(a8_0x2d521e(0x187)),interface_1=require(a8_0x2d521e(0x180));function getDataSourceEntity(_0x5e9279=a8_0x2d521e(0x17c)){const _0x22a7c0=a8_0x2d521e;var _0x3ec55f;const _0x4764cf=[];for(const _0x2f6010 of(0x0,core_1['listModule'])(interface_1[_0x22a7c0(0x175)])){const _0xf5aa4b=(0x0,core_1['getClassMetadata'])(interface_1[_0x22a7c0(0x17e)],_0x2f6010);((_0x3ec55f=_0xf5aa4b===null||_0xf5aa4b===void 0x0?void 0x0:_0xf5aa4b[_0x22a7c0(0x174)])===null||_0x3ec55f===void 0x0?void 0x0:_0x3ec55f[_0x22a7c0(0x185)](_0x343f86=>_0x343f86==_0x5e9279))&&_0x4764cf[_0x22a7c0(0x17f)](_0x2f6010);}return _0x4764cf;}exports[a8_0x2d521e(0x176)]=getDataSourceEntity;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x18c7aa=a9_0xd2f3;(function(_0x16de5d,_0x35f893){var _0x32c697=a9_0xd2f3,_0x56a773=_0x16de5d();while(!![]){try{var _0x109a4a=parseInt(_0x32c697(0xa6))/0x1*(parseInt(_0x32c697(0x8d))/0x2)+-parseInt(_0x32c697(0x9d))/0x3*(-parseInt(_0x32c697(0xaa))/0x4)+-parseInt(_0x32c697(0x97))/0x5+-parseInt(_0x32c697(0xb6))/0x6*(parseInt(_0x32c697(0x9f))/0x7)+-parseInt(_0x32c697(0x99))/0x8*(parseInt(_0x32c697(0x9a))/0x9)+parseInt(_0x32c697(0x91))/0xa+parseInt(_0x32c697(0xa0))/0xb;if(_0x109a4a===_0x35f893)break;else _0x56a773['push'](_0x56a773['shift']());}catch(_0x51441f){_0x56a773['push'](_0x56a773['shift']());}}}(a9_0xdf5b,0xd46b9));var __createBinding=this&&this[a9_0x18c7aa(0xad)]||(Object[a9_0x18c7aa(0xa9)]?function(_0x85566e,_0x150139,_0x50e61d,_0x1b7a32){var _0x4123f9=a9_0x18c7aa;if(_0x1b7a32===undefined)_0x1b7a32=_0x50e61d;var _0x236bab=Object['getOwnPropertyDescriptor'](_0x150139,_0x50e61d);(!_0x236bab||('get'in _0x236bab?!_0x150139['__esModule']:_0x236bab[_0x4123f9(0x90)]||_0x236bab[_0x4123f9(0xb4)]))&&(_0x236bab={'enumerable':!![],'get':function(){return _0x150139[_0x50e61d];}}),Object[_0x4123f9(0xb0)](_0x85566e,_0x1b7a32,_0x236bab);}:function(_0x433713,_0x152373,_0x3b34db,_0x8906c2){if(_0x8906c2===undefined)_0x8906c2=_0x3b34db;_0x433713[_0x8906c2]=_0x152373[_0x3b34db];}),__exportStar=this&&this[a9_0x18c7aa(0x95)]||function(_0x5316f9,_0x28d835){var _0x21a4ba=a9_0x18c7aa;for(var _0x366eb5 in _0x5316f9)if(_0x366eb5!==_0x21a4ba(0xaf)&&!Object[_0x21a4ba(0xb1)][_0x21a4ba(0xb5)][_0x21a4ba(0x9c)](_0x28d835,_0x366eb5))__createBinding(_0x28d835,_0x5316f9,_0x366eb5);};Object[a9_0x18c7aa(0xb0)](exports,a9_0x18c7aa(0x93),{'value':!![]}),exports[a9_0x18c7aa(0xae)]=exports['Scope']=exports['Inject']=exports[a9_0x18c7aa(0xa1)]=exports[a9_0x18c7aa(0x98)]=exports[a9_0x18c7aa(0x96)]=exports[a9_0x18c7aa(0x9e)]=exports[a9_0x18c7aa(0xa2)]=exports['ProvideSearch']=exports[a9_0x18c7aa(0xac)]=exports[a9_0x18c7aa(0xa4)]=exports['InjectRepository']=exports['InjectEntity']=exports['VirtualColumn']=exports[a9_0x18c7aa(0xb3)]=void 0x0,__exportStar(require(a9_0x18c7aa(0xb8)),exports),__exportStar(require('./interface'),exports);var Repository_1=require('./definition/Repository');Object[a9_0x18c7aa(0xb0)](exports,a9_0x18c7aa(0xb3),{'enumerable':!![],'get':function(){var _0x3c2918=a9_0x18c7aa;return Repository_1[_0x3c2918(0xb3)];}});function a9_0xdf5b(){var _0x9d70da=['ProvideRepository','__createBinding','ScopeEnum','default','defineProperty','prototype','./configuration','Repository','configurable','hasOwnProperty','60492rPPyUs','InjectRepository','typeorm','24UNKDTm','VirtualColumn','./decorator/ProvideEntity','writable','10531600kFUJAd','ProvideSearch','__esModule','Scope','__exportStar','getDataSourceEntity','4968735MrdWhs','Configuration','48xLQhfs','1781541LYQUDE','Inject','call','55428PbAqJD','SearchScope','847lrPwvR','8935256vdvgNl','Provide','Search','./decorator/InjectEntity','ProvideEntity','@midwayjs/core','68087qswbHs','./helper/getDataSourceEntity','./decorator/ProvideRepository','create','344vPddoT','InjectEntity'];a9_0xdf5b=function(){return _0x9d70da;};return a9_0xdf5b();}var VirtualColumn_1=require('./decorator/VirtualColumn');Object['defineProperty'](exports,a9_0x18c7aa(0x8e),{'enumerable':!![],'get':function(){var _0x5bdd62=a9_0x18c7aa;return VirtualColumn_1[_0x5bdd62(0x8e)];}});var InjectEntity_1=require(a9_0x18c7aa(0xa3));Object[a9_0x18c7aa(0xb0)](exports,a9_0x18c7aa(0xab),{'enumerable':!![],'get':function(){var _0x3a0a2b=a9_0x18c7aa;return InjectEntity_1[_0x3a0a2b(0xab)];}});var InjectRepository_1=require('./decorator/InjectRepository');Object[a9_0x18c7aa(0xb0)](exports,a9_0x18c7aa(0xb7),{'enumerable':!![],'get':function(){var _0x264811=a9_0x18c7aa;return InjectRepository_1[_0x264811(0xb7)];}});var ProvideEntity_1=require(a9_0x18c7aa(0x8f));Object[a9_0x18c7aa(0xb0)](exports,a9_0x18c7aa(0xa4),{'enumerable':!![],'get':function(){return ProvideEntity_1['ProvideEntity'];}});var ProvideRepository_1=require(a9_0x18c7aa(0xa8));Object[a9_0x18c7aa(0xb0)](exports,a9_0x18c7aa(0xac),{'enumerable':!![],'get':function(){var _0x169c54=a9_0x18c7aa;return ProvideRepository_1[_0x169c54(0xac)];}});var ProvideSearch_1=require('./decorator/ProvideSearch');Object['defineProperty'](exports,'ProvideSearch',{'enumerable':!![],'get':function(){var _0x58733b=a9_0x18c7aa;return ProvideSearch_1[_0x58733b(0x92)];}}),Object['defineProperty'](exports,a9_0x18c7aa(0xa2),{'enumerable':!![],'get':function(){return ProvideSearch_1['Search'];}}),Object[a9_0x18c7aa(0xb0)](exports,'SearchScope',{'enumerable':!![],'get':function(){var _0x5ba7fa=a9_0x18c7aa;return ProvideSearch_1[_0x5ba7fa(0x9e)];}});var getDataSourceEntity_1=require(a9_0x18c7aa(0xa7));Object[a9_0x18c7aa(0xb0)](exports,a9_0x18c7aa(0x96),{'enumerable':!![],'get':function(){var _0x42ee63=a9_0x18c7aa;return getDataSourceEntity_1[_0x42ee63(0x96)];}});var configuration_1=require(a9_0x18c7aa(0xb2));Object[a9_0x18c7aa(0xb0)](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});function a9_0xd2f3(_0x5cb83c,_0x198f5a){var _0xdf5bdf=a9_0xdf5b();return a9_0xd2f3=function(_0xd2f31f,_0x2de53c){_0xd2f31f=_0xd2f31f-0x8d;var _0x33f69d=_0xdf5bdf[_0xd2f31f];return _0x33f69d;},a9_0xd2f3(_0x5cb83c,_0x198f5a);}var core_1=require(a9_0x18c7aa(0xa5));Object[a9_0x18c7aa(0xb0)](exports,a9_0x18c7aa(0xa1),{'enumerable':!![],'get':function(){var _0x1ea517=a9_0x18c7aa;return core_1[_0x1ea517(0xa1)];}}),Object['defineProperty'](exports,a9_0x18c7aa(0x9b),{'enumerable':!![],'get':function(){var _0x39414f=a9_0x18c7aa;return core_1[_0x39414f(0x9b)];}}),Object[a9_0x18c7aa(0xb0)](exports,a9_0x18c7aa(0x94),{'enumerable':!![],'get':function(){var _0x39849b=a9_0x18c7aa;return core_1[_0x39849b(0x94)];}}),Object['defineProperty'](exports,a9_0x18c7aa(0xae),{'enumerable':!![],'get':function(){var _0x327b4c=a9_0x18c7aa;return core_1[_0x327b4c(0xae)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a10_0x17395b=a10_0x5c59;function a10_0x5c59(_0x34c7af,_0x2846f8){const _0x43b41e=a10_0x43b4();return a10_0x5c59=function(_0x5c594c,_0x3a3db1){_0x5c594c=_0x5c594c-0x10b;let _0x32cb7d=_0x43b41e[_0x5c594c];return _0x32cb7d;},a10_0x5c59(_0x34c7af,_0x2846f8);}(function(_0x24c40c,_0x3f5963){const _0x298c46=a10_0x5c59,_0x589c45=_0x24c40c();while(!![]){try{const _0x4f613a=parseInt(_0x298c46(0x126))/0x1*(parseInt(_0x298c46(0x11b))/0x2)+-parseInt(_0x298c46(0x10d))/0x3+-parseInt(_0x298c46(0x13c))/0x4*(parseInt(_0x298c46(0x113))/0x5)+-parseInt(_0x298c46(0x143))/0x6+parseInt(_0x298c46(0x125))/0x7*(parseInt(_0x298c46(0x117))/0x8)+parseInt(_0x298c46(0x138))/0x9*(parseInt(_0x298c46(0x129))/0xa)+-parseInt(_0x298c46(0x10f))/0xb*(-parseInt(_0x298c46(0x12d))/0xc);if(_0x4f613a===_0x3f5963)break;else _0x589c45['push'](_0x589c45['shift']());}catch(_0x483bc9){_0x589c45['push'](_0x589c45['shift']());}}}(a10_0x43b4,0x7e00c));Object[a10_0x17395b(0x12e)](exports,'__esModule',{'value':!![]}),exports['SearchPaginate']=exports['ENTITY_VIRTUAL_COLUMN_KEY']=exports['MODEL_SEARCH_SCOPE_KEY']=exports[a10_0x17395b(0x10c)]=exports[a10_0x17395b(0x135)]=exports[a10_0x17395b(0x140)]=exports['ENTIFY_MODULE_SOURCE']=exports[a10_0x17395b(0x142)]=exports[a10_0x17395b(0x110)]=void 0x0;const core_1=require(a10_0x17395b(0x10e)),typeorm_1=require(a10_0x17395b(0x116)),typeorm_2=require(a10_0x17395b(0x116));function a10_0x43b4(){const _0x5e061b=['getOne','104045CjcOtD','hasOwnProperty','EntityManager','typeorm','1838568YiFGmt','versionColumn','OptimisticLockCanNotBeUsedError','decorator:anncic-api:typeorm:entify:module:source','4wEnKME','decorator:anncic-api:typeorm:model:search','getCount','then','map','resolve','getTime','optimistic','decorator:anncic-api:typeorm:entify','expressionMap','14BzjgiA','368612RUifAi','findOne','getEntityValue','50evWnzp','getMany','OptimisticLockVersionMismatchError','prototype','276pmjugl','defineProperty','ENTIFY_MODULE_SOURCE','getRawAndEntities','updateDateColumn','EntityNotFoundError','default','decorator:anncic-api:typeorm:model:search:scope','MODEL_KEY','ENTITY_VIRTUAL_COLUMN_KEY','SearchPaginate','601137TGuQzb','getManyAndCount','getClassMetadata','decorator:anncic-api:typeorm:entity:virtual:column','28qoJKBV','mainAlias','lockMode','decorator:anncic-api:typeorm:entify:module','REPOSITORY_KEY','MODEL_SEARCH_SCOPE_KEY','ENTIFY_MODULE','3377310WRRYWV','reject','lockVersion','MODEL_SEARCH_KEY','1544148vZjEjz','@midwayjs/core','99737YxEhva','ENTIFY_KEY','SelectQueryBuilder'];a10_0x43b4=function(){return _0x5e061b;};return a10_0x43b4();}exports[a10_0x17395b(0x110)]=a10_0x17395b(0x123),exports[a10_0x17395b(0x142)]=a10_0x17395b(0x13f),exports[a10_0x17395b(0x12f)]=a10_0x17395b(0x11a),exports[a10_0x17395b(0x140)]='decorator:anncic-api:typeorm:repository',exports['MODEL_KEY']='decorator:anncic-api:typeorm:model',exports[a10_0x17395b(0x10c)]=a10_0x17395b(0x11c),exports[a10_0x17395b(0x141)]=a10_0x17395b(0x134),exports[a10_0x17395b(0x136)]=a10_0x17395b(0x13b);class SearchPaginate{}exports[a10_0x17395b(0x137)]=SearchPaginate,typeorm_2['EntityManager']['prototype']['findOneOrFail']=async function(_0x3e948a,_0x420cc3){const _0x3a4762=a10_0x17395b;return this[_0x3a4762(0x127)](_0x3e948a,_0x420cc3)[_0x3a4762(0x11e)](_0x4ae4cc=>{const _0x543a54=_0x3a4762;if(_0x4ae4cc===null||_0x4ae4cc===undefined)return Promise[_0x543a54(0x144)](new typeorm_2['EntityNotFoundError'](_0x3e948a,_0x420cc3));return Promise['resolve'](_0x4ae4cc);});},typeorm_2[a10_0x17395b(0x115)][a10_0x17395b(0x12c)]['findOneByOrFail']=async function(_0x80ba9a,_0x195cf8){const _0x564613=a10_0x17395b;return this['findOneBy'](_0x80ba9a,_0x195cf8)[_0x564613(0x11e)](_0x3c687d=>{const _0x3963ff=_0x564613;if(_0x3c687d===null||_0x3c687d===undefined)return Promise[_0x3963ff(0x144)](new typeorm_2[(_0x3963ff(0x132))](_0x80ba9a,_0x195cf8));return Promise[_0x3963ff(0x120)](_0x3c687d);});},typeorm_1[a10_0x17395b(0x111)][a10_0x17395b(0x12c)][a10_0x17395b(0x12a)]=async function(){const _0x40424c=a10_0x17395b;if(this[_0x40424c(0x124)][_0x40424c(0x13e)]===_0x40424c(0x122))throw new typeorm_1[(_0x40424c(0x119))]();const {entities:_0x2337fa,raw:_0x418a5b}=await this[_0x40424c(0x130)]();return _0x2337fa[_0x40424c(0x11f)]((_0x33b442,_0x2ae2e7)=>{const _0x2f4132=_0x40424c;var _0x586b8b;const _0x2b5706=(0x0,core_1['getClassMetadata'])(exports[_0x2f4132(0x136)],_0x33b442)||{};for(const _0x413ea4 in _0x2b5706){_0x418a5b[_0x2ae2e7]&&_0x418a5b[_0x2ae2e7][_0x2f4132(0x114)](_0x413ea4)&&(_0x33b442[_0x413ea4]=_0x418a5b[_0x2ae2e7][_0x413ea4]||((_0x586b8b=_0x2b5706[_0x413ea4])===null||_0x586b8b===void 0x0?void 0x0:_0x586b8b['default'])||'');}return _0x33b442;});},typeorm_1['SelectQueryBuilder']['prototype'][a10_0x17395b(0x139)]=async function(){const _0x5f1dc8=a10_0x17395b;return[await this[_0x5f1dc8(0x12a)](),await this[_0x5f1dc8(0x11d)]()];},typeorm_1['SelectQueryBuilder'][a10_0x17395b(0x12c)][a10_0x17395b(0x112)]=async function(){const _0x5a311f=a10_0x17395b;var _0x20f1c7;const {entities:_0x3c692f,raw:_0x21c922}=await this[_0x5a311f(0x130)]();if(_0x3c692f[0x0]&&this['expressionMap'][_0x5a311f(0x13e)]===_0x5a311f(0x122)&&this[_0x5a311f(0x124)][_0x5a311f(0x10b)]){const _0x1d13d3=this[_0x5a311f(0x124)][_0x5a311f(0x13d)]['metadata'];if(this[_0x5a311f(0x124)]['lockVersion']instanceof Date){const _0x1cb896=_0x1d13d3[_0x5a311f(0x131)][_0x5a311f(0x128)](_0x3c692f[0x0]);if(_0x1cb896[_0x5a311f(0x121)]()!==this[_0x5a311f(0x124)][_0x5a311f(0x10b)][_0x5a311f(0x121)]())throw new typeorm_1[(_0x5a311f(0x12b))](_0x1d13d3['name'],this[_0x5a311f(0x124)][_0x5a311f(0x10b)],_0x1cb896);}else{const _0xe07a64=_0x1d13d3[_0x5a311f(0x118)][_0x5a311f(0x128)](_0x3c692f[0x0]);if(_0xe07a64!==this[_0x5a311f(0x124)]['lockVersion'])throw new typeorm_1[(_0x5a311f(0x12b))](_0x1d13d3['name'],this['expressionMap'][_0x5a311f(0x10b)],_0xe07a64);}}if(_0x3c692f[0x0]&&_0x21c922[0x0]){const _0x35654a=(0x0,core_1[_0x5a311f(0x13a)])(exports[_0x5a311f(0x136)],_0x3c692f[0x0]);for(const _0x46fa08 in _0x35654a){_0x21c922[0x0]['hasOwnProperty'](_0x46fa08)&&(_0x3c692f[0x0][_0x46fa08]=_0x21c922[0x0][_0x46fa08]||((_0x20f1c7=_0x35654a[_0x46fa08])===null||_0x20f1c7===void 0x0?void 0x0:_0x20f1c7[_0x5a311f(0x133)])||'');}}return _0x3c692f[0x0]||null;};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/typeorm",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.12",
|
|
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": "7bdd9be96d43d085128a64bb2121ebf37696468b"
|
|
26
26
|
}
|