@anncic-api/typeorm 1.3.20 → 1.4.1
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_0x389683=a0_0x4edd;(function(_0x4fba60,_0x7efec2){const _0x2e1fb5=a0_0x4edd,_0x368a3a=_0x4fba60();while(!![]){try{const _0x9a11c7=parseInt(_0x2e1fb5(0xfc))/0x1+-parseInt(_0x2e1fb5(0xf6))/0x2*(parseInt(_0x2e1fb5(0x10f))/0x3)+parseInt(_0x2e1fb5(0xf8))/0x4*(parseInt(_0x2e1fb5(0xff))/0x5)+parseInt(_0x2e1fb5(0x116))/0x6*(-parseInt(_0x2e1fb5(0x117))/0x7)+-parseInt(_0x2e1fb5(0xf5))/0x8+parseInt(_0x2e1fb5(0x11c))/0x9*(parseInt(_0x2e1fb5(0xf9))/0xa)+-parseInt(_0x2e1fb5(0x11a))/0xb*(-parseInt(_0x2e1fb5(0x102))/0xc);if(_0x9a11c7===_0x7efec2)break;else _0x368a3a['push'](_0x368a3a['shift']());}catch(_0x4d740f){_0x368a3a['push'](_0x368a3a['shift']());}}}(a0_0x111a,0xbea5c));function a0_0x4edd(_0x708d60,_0xcec8c9){const _0x111a6d=a0_0x111a();return a0_0x4edd=function(_0x4eddaf,_0x368e7a){_0x4eddaf=_0x4eddaf-0xf0;let _0x10ae0d=_0x111a6d[_0x4eddaf];return _0x10ae0d;},a0_0x4edd(_0x708d60,_0xcec8c9);}function a0_0x111a(){const _0x2cddab=['middlewareError','TypeORMError','getDataSourceNameByModel','__esModule','102qUMwFl','337162bXBGiu','message','getClassMetadata','21511171ssaKeV','Inject','10464786qwPXpD','decorator','decorate','warn','config','handlercache','Configuration','CustomConfiguration','name','find','prototype','metadata','__decorate','REPOSITORY_KEY','getDataSource','push','getEnv','7275616yKpYZE','1540612RwKKbD','body','853052VrcSfN','10ZfvRaC','EntityNotFoundError','production','78411XcGQnX','./definition/Repository','MidwayConfigService','20SlLPeo','onReady','length','12RDRWzA','useMiddleware','target','数据不存在','registerPropertyHandler','MidwayDecoratorService','@midwayjs/typeorm','getRepository','__metadata','typeorm','\x20is\x20not\x20ProvideRepository\x20Entify','object','@midwayjs/core','6hjAgwt','getAsync','ENTIFY_KEY'];a0_0x111a=function(){return _0x2cddab;};return a0_0x111a();}var __decorate=this&&this[a0_0x389683(0xf0)]||function(_0xa44b56,_0x92ee60,_0x83a2db,_0x3148e0){const _0x442775=a0_0x389683;var _0x596783=arguments[_0x442775(0x101)],_0x20def4=_0x596783<0x3?_0x92ee60:_0x3148e0===null?_0x3148e0=Object['getOwnPropertyDescriptor'](_0x92ee60,_0x83a2db):_0x3148e0,_0x2bec88;if(typeof Reflect===_0x442775(0x10d)&&typeof Reflect[_0x442775(0x11e)]==='function')_0x20def4=Reflect[_0x442775(0x11e)](_0xa44b56,_0x92ee60,_0x83a2db,_0x3148e0);else{for(var _0x190b1a=_0xa44b56[_0x442775(0x101)]-0x1;_0x190b1a>=0x0;_0x190b1a--)if(_0x2bec88=_0xa44b56[_0x190b1a])_0x20def4=(_0x596783<0x3?_0x2bec88(_0x20def4):_0x596783>0x3?_0x2bec88(_0x92ee60,_0x83a2db,_0x20def4):_0x2bec88(_0x92ee60,_0x83a2db))||_0x20def4;}return _0x596783>0x3&&_0x20def4&&Object['defineProperty'](_0x92ee60,_0x83a2db,_0x20def4),_0x20def4;},__metadata=this&&this[a0_0x389683(0x10a)]||function(_0x51a3b2,_0x581caa){const _0x11a4f3=a0_0x389683;if(typeof Reflect==='object'&&typeof Reflect[_0x11a4f3(0x127)]==='function')return Reflect[_0x11a4f3(0x127)](_0x51a3b2,_0x581caa);};Object['defineProperty'](exports,a0_0x389683(0x115),{'value':!![]}),exports[a0_0x389683(0x123)]=void 0x0;const typeorm_1=require(a0_0x389683(0x108)),core_1=require('@midwayjs/core'),core_2=require(a0_0x389683(0x10e)),typeorm_2=require(a0_0x389683(0x10b)),Repository_1=require(a0_0x389683(0xfd)),interface_1=require('./interface'),typeorm=require(a0_0x389683(0x108));let CustomConfiguration=class CustomConfiguration{constructor(){this['handlercache']=[];}async[a0_0x389683(0x100)](_0x36bce7,_0x59dbe2){const _0x41895b=a0_0x389683,_0x31ca30=await _0x36bce7[_0x41895b(0x110)](typeorm_1['TypeORMDataSourceManager']);this[_0x41895b(0x11d)][_0x41895b(0x106)](interface_1[_0x41895b(0x111)],(_0x16fd63,{entity:_0x4dfa4a,connection:_0x1e7e85})=>{const _0x5e1985=_0x41895b;let _0x48b5f1=this['handlercache'][_0x5e1985(0x125)](_0x440cd3=>_0x440cd3[_0x5e1985(0x104)]===_0x4dfa4a);return!_0x48b5f1&&(_0x48b5f1=new Repository_1['Repository'](_0x59dbe2,_0x36bce7,_0x31ca30['getDataSource'](_0x1e7e85||_0x31ca30['getDataSourceNameByModel'](_0x4dfa4a))[_0x5e1985(0x109)](_0x4dfa4a)),this[_0x5e1985(0x121)][_0x5e1985(0xf3)](_0x48b5f1)),_0x48b5f1;}),this[_0x41895b(0x11d)][_0x41895b(0x106)](interface_1['REPOSITORY_KEY'],(_0x383821,{repository:_0x44690f,connection:_0x5da919})=>{const _0x3c5e23=_0x41895b,{entity:_0x3b1ac7}=(0x0,core_1[_0x3c5e23(0x119)])(interface_1[_0x3c5e23(0xf1)],_0x44690f)||{};if(!_0x3b1ac7)throw new Error('typeorm\x20Error\x20'+((_0x44690f===null||_0x44690f===void 0x0?void 0x0:_0x44690f[_0x3c5e23(0x124)])||_0x44690f)+_0x3c5e23(0x10c));let _0x196365=this[_0x3c5e23(0x121)][_0x3c5e23(0x125)](_0x1f0f47=>_0x1f0f47===_0x44690f);return!_0x196365&&(_0x196365=new _0x44690f(_0x59dbe2,_0x36bce7,_0x31ca30[_0x3c5e23(0xf2)](_0x5da919||_0x31ca30[_0x3c5e23(0x114)](_0x3b1ac7))[_0x3c5e23(0x109)](_0x3b1ac7)),this[_0x3c5e23(0x121)][_0x3c5e23(0xf3)](_0x196365)),_0x196365;}),_0x59dbe2[_0x41895b(0x103)](this[_0x41895b(0x112)](_0x59dbe2));}[a0_0x389683(0x112)](_0x2511c6){return async(_0x2eb73c,_0x4efc11)=>{const _0x2421da=a0_0x4edd;try{await _0x4efc11();}catch(_0x586c32){if(_0x586c32 instanceof typeorm_2[_0x2421da(0x113)])_0x586c32 instanceof typeorm_2[_0x2421da(0xfa)]?_0x2eb73c[_0x2421da(0xf7)]={'code':0x194,'msg':_0x2421da(0x105)}:(_0x2eb73c[_0x2421da(0xf7)]={'code':0x1f4,'msg':_0x586c32[_0x2421da(0x118)]},_0x2511c6[_0x2421da(0xf4)]()!=_0x2421da(0xfb)&&console[_0x2421da(0x11f)](_0x586c32));else throw _0x586c32;}};}};__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a0_0x389683(0xfe)])],CustomConfiguration[a0_0x389683(0x126)],a0_0x389683(0x120),void 0x0),__decorate([(0x0,core_1[a0_0x389683(0x11b)])(),__metadata('design:type',core_2[a0_0x389683(0x107)])],CustomConfiguration[a0_0x389683(0x126)],a0_0x389683(0x11d),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x389683(0x122)])({'imports':[typeorm],'conflictCheck':![],'namespace':'anncic-api:typeorm'})],CustomConfiguration),exports[a0_0x389683(0x123)]=CustomConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a1_0x54ec39=a1_0x109b;(function(_0x2d522e,_0x34483c){const _0x6135a=a1_0x109b,_0x52d9e2=_0x2d522e();while(!![]){try{const _0x35f8df=-parseInt(_0x6135a(0x161))/0x1*(-parseInt(_0x6135a(0x154))/0x2)+-parseInt(_0x6135a(0x15c))/0x3*(-parseInt(_0x6135a(0x162))/0x4)+parseInt(_0x6135a(0x159))/0x5*(-parseInt(_0x6135a(0x163))/0x6)+parseInt(_0x6135a(0x15b))/0x7+parseInt(_0x6135a(0x157))/0x8+-parseInt(_0x6135a(0x155))/0x9+parseInt(_0x6135a(0x15e))/0xa*(parseInt(_0x6135a(0x15f))/0xb);if(_0x35f8df===_0x34483c)break;else _0x52d9e2['push'](_0x52d9e2['shift']());}catch(_0x3c6cd0){_0x52d9e2['push'](_0x52d9e2['shift']());}}}(a1_0x40b7,0xd72fb));function a1_0x40b7(){const _0x1bfa3e=['ENTIFY_KEY','10kYTsYB','2571943ieaICh','../interface','3215hQroqE','52304XKVRod','146448kXIrKS','664DstlYe','9274266hLzHjD','defineProperty','9783472COGbSG','default','290qMVYVg','InjectEntity','2328746eMNcEG','108XmREOl'];a1_0x40b7=function(){return _0x1bfa3e;};return a1_0x40b7();}Object[a1_0x54ec39(0x156)](exports,'__esModule',{'value':!![]}),exports[a1_0x54ec39(0x15a)]=void 0x0;function a1_0x109b(_0x18bb7b,_0x3eca35){const _0x40b78c=a1_0x40b7();return a1_0x109b=function(_0x109bc8,_0x438838){_0x109bc8=_0x109bc8-0x154;let _0x3347d4=_0x40b78c[_0x109bc8];return _0x3347d4;},a1_0x109b(_0x18bb7b,_0x3eca35);}const core_1=require('@midwayjs/core'),interface_1=require(a1_0x54ec39(0x160));function InjectEntity(_0x4abb44,_0x11a329=a1_0x54ec39(0x158)){const _0x58a445=a1_0x54ec39;return(0x0,core_1['createCustomPropertyDecorator'])(interface_1[_0x58a445(0x15d)],{'entity':_0x4abb44,'connection':_0x11a329});}exports[a1_0x54ec39(0x15a)]=InjectEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x346934=a2_0x34e1;(function(_0x1ad260,_0x53c18d){const _0x2db67f=a2_0x34e1,_0x107eb4=_0x1ad260();while(!![]){try{const _0x58bf32=parseInt(_0x2db67f(0x1b6))/0x1*(parseInt(_0x2db67f(0x1a9))/0x2)+parseInt(_0x2db67f(0x1b9))/0x3*(-parseInt(_0x2db67f(0x1b3))/0x4)+-parseInt(_0x2db67f(0x1b7))/0x5+parseInt(_0x2db67f(0x1b2))/0x6*(parseInt(_0x2db67f(0x1b5))/0x7)+parseInt(_0x2db67f(0x1ba))/0x8*(-parseInt(_0x2db67f(0x1b4))/0x9)+parseInt(_0x2db67f(0x1b0))/0xa+-parseInt(_0x2db67f(0x1a8))/0xb*(-parseInt(_0x2db67f(0x1ae))/0xc);if(_0x58bf32===_0x53c18d)break;else _0x107eb4['push'](_0x107eb4['shift']());}catch(_0x8a2e15){_0x107eb4['push'](_0x107eb4['shift']());}}}(a2_0xc002,0xd94e5));function a2_0xc002(){const _0x808f1f=['default','__esModule','3989568IHGLuF','REPOSITORY_KEY','3191840qSNANS','defineProperty','6yNhVth','99684gKCoyZ','13185NsfaFL','8495662Ryfbqe','6MARtEK','8346725Snbohn','../interface','9KCGBMK','8440wvOKTI','InjectRepository','66wEoTgC','217378azVsnK','@midwayjs/core','createCustomPropertyDecorator'];a2_0xc002=function(){return _0x808f1f;};return a2_0xc002();}function a2_0x34e1(_0x1393da,_0x5de994){const _0xc0028f=a2_0xc002();return a2_0x34e1=function(_0x34e134,_0x4c44fe){_0x34e134=_0x34e134-0x1a8;let _0x2a43aa=_0xc0028f[_0x34e134];return _0x2a43aa;},a2_0x34e1(_0x1393da,_0x5de994);}Object[a2_0x346934(0x1b1)](exports,a2_0x346934(0x1ad),{'value':!![]}),exports['InjectRepository']=void 0x0;const core_1=require(a2_0x346934(0x1aa)),interface_1=require(a2_0x346934(0x1b8));function InjectRepository(_0x439170,_0x327a63=a2_0x346934(0x1ac)){const _0xf644ee=a2_0x346934;return(0x0,core_1[_0xf644ee(0x1ab)])(interface_1[_0xf644ee(0x1af)],{'repository':_0x439170,'connection':_0x327a63});}exports[a2_0x346934(0x1bb)]=InjectRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x33fffd=a3_0xbf77;(function(_0x44667d,_0x250b18){const _0x1cfa69=a3_0xbf77,_0xed51b5=_0x44667d();while(!![]){try{const _0x59b9da=parseInt(_0x1cfa69(0x89))/0x1+parseInt(_0x1cfa69(0x7e))/0x2*(-parseInt(_0x1cfa69(0x86))/0x3)+parseInt(_0x1cfa69(0x73))/0x4+-parseInt(_0x1cfa69(0x88))/0x5+-parseInt(_0x1cfa69(0x85))/0x6*(-parseInt(_0x1cfa69(0x7d))/0x7)+parseInt(_0x1cfa69(0x76))/0x8+parseInt(_0x1cfa69(0x7f))/0x9;if(_0x59b9da===_0x250b18)break;else _0xed51b5['push'](_0xed51b5['shift']());}catch(_0x58302b){_0xed51b5['push'](_0xed51b5['shift']());}}}(a3_0x191d,0x234be));Object[a3_0x33fffd(0x77)](exports,a3_0x33fffd(0x82),{'value':!![]}),exports[a3_0x33fffd(0x81)]=void 0x0;const typeorm_1=require('typeorm'),core_1=require('@midwayjs/core'),interface_1=require(a3_0x33fffd(0x74));function a3_0x191d(){const _0x1ca726=['defineProperty','default','saveClassMetadata','ENTIFY_MODULE_SOURCE','ENTIFY_MODULE','push','1939oCQlCG','2Ifuvcz','2742552dIKGvc','string','ProvideEntity','__esModule','dataSource','name','2442ASaspS','299907deSaur','saveModule','1089925lOmdxR','4134MUThqJ','tableName','115644pisprE','../interface','isArray','96128rksJsZ'];a3_0x191d=function(){return _0x1ca726;};return a3_0x191d();}function a3_0xbf77(_0x5e58e6,_0x2f6f88){const _0x191d77=a3_0x191d();return a3_0xbf77=function(_0xbf7793,_0x2b4e1a){_0xbf7793=_0xbf7793-0x72;let _0x95bef9=_0x191d77[_0xbf7793];return _0x95bef9;},a3_0xbf77(_0x5e58e6,_0x2f6f88);}function ProvideEntity(_0x19285e,_0xd734d5={}){return _0x558b9b=>{const _0x594307=a3_0xbf77;_0xd734d5[_0x594307(0x84)]=_0x19285e[_0x594307(0x72)];const _0x5777b8=[];if(!(_0x19285e===null||_0x19285e===void 0x0?void 0x0:_0x19285e[_0x594307(0x83)]))_0x5777b8[_0x594307(0x7c)]('default');else{if(typeof(_0x19285e===null||_0x19285e===void 0x0?void 0x0:_0x19285e['dataSource'])==_0x594307(0x80))_0x5777b8[_0x594307(0x7c)](_0x19285e===null||_0x19285e===void 0x0?void 0x0:_0x19285e['dataSource']);else{if(Array[_0x594307(0x75)](_0x19285e===null||_0x19285e===void 0x0?void 0x0:_0x19285e[_0x594307(0x83)]))for(let _0x127dbf of _0x19285e[_0x594307(0x83)]||[_0x594307(0x78)]){_0x5777b8[_0x594307(0x7c)](_0x127dbf);}}}(0x0,core_1[_0x594307(0x87)])(interface_1[_0x594307(0x7b)],_0x558b9b),(0x0,core_1[_0x594307(0x79)])(interface_1[_0x594307(0x7a)],{'tableName':_0x19285e['tableName'],'dataSource':_0x5777b8},_0x558b9b),(0x0,typeorm_1['Entity'])(_0x19285e[_0x594307(0x72)],_0xd734d5)(_0x558b9b);};}exports['ProvideEntity']=ProvideEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x3fdf01=a4_0x247d;(function(_0x570406,_0x24eb17){const _0x5a9a27=a4_0x247d,_0x1d3d33=_0x570406();while(!![]){try{const _0x200d62=parseInt(_0x5a9a27(0x120))/0x1+parseInt(_0x5a9a27(0x124))/0x2+-parseInt(_0x5a9a27(0x130))/0x3+parseInt(_0x5a9a27(0x12d))/0x4+-parseInt(_0x5a9a27(0x12c))/0x5*(parseInt(_0x5a9a27(0x12b))/0x6)+-parseInt(_0x5a9a27(0x123))/0x7+parseInt(_0x5a9a27(0x12e))/0x8*(parseInt(_0x5a9a27(0x127))/0x9);if(_0x200d62===_0x24eb17)break;else _0x1d3d33['push'](_0x1d3d33['shift']());}catch(_0x2a1023){_0x1d3d33['push'](_0x1d3d33['shift']());}}}(a4_0x211d,0x2c6d2));function a4_0x247d(_0x1fdf22,_0x56f837){const _0x211d50=a4_0x211d();return a4_0x247d=function(_0x247d70,_0x3a9e74){_0x247d70=_0x247d70-0x120;let _0x807cac=_0x211d50[_0x247d70];return _0x807cac;},a4_0x247d(_0x1fdf22,_0x56f837);}Object['defineProperty'](exports,a4_0x3fdf01(0x125),{'value':!![]}),exports[a4_0x3fdf01(0x12a)]=void 0x0;const core_1=require(a4_0x3fdf01(0x128)),interface_1=require(a4_0x3fdf01(0x121));function a4_0x211d(){const _0x33153a=['Request','32829YOxkoQ','REPOSITORY_KEY','55277hNkPZb','../interface','ScopeEnum','588420NyaEFO','324376nzgCbG','__esModule','Provide','9mdPVxy','@midwayjs/core','saveClassMetadata','ProvideRepository','14586QPdyzX','595llCRkI','955944HWRxhm','878488UIDvot'];a4_0x211d=function(){return _0x33153a;};return a4_0x211d();}function ProvideRepository(_0xf7fd70){return _0x3948a1=>{const _0x3933fc=a4_0x247d;(0x0,core_1['Scope'])(core_1[_0x3933fc(0x122)][_0x3933fc(0x12f)],{'allowDowngrade':!![]})(_0x3948a1),((0x0,core_1[_0x3933fc(0x126)])()(_0x3948a1),(0x0,core_1[_0x3933fc(0x129)])(interface_1[_0x3933fc(0x131)],{'entity':_0xf7fd70},_0x3948a1));};}exports[a4_0x3fdf01(0x12a)]=ProvideRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x751004=a5_0x2a8e;(function(_0x2b5f52,_0x86df2d){const _0x197375=a5_0x2a8e,_0x57a2c7=_0x2b5f52();while(!![]){try{const _0x3f78ab=parseInt(_0x197375(0x123))/0x1+-parseInt(_0x197375(0x128))/0x2*(-parseInt(_0x197375(0x12c))/0x3)+parseInt(_0x197375(0x122))/0x4+parseInt(_0x197375(0x129))/0x5+parseInt(_0x197375(0x126))/0x6*(parseInt(_0x197375(0x12f))/0x7)+-parseInt(_0x197375(0x132))/0x8+-parseInt(_0x197375(0x12b))/0x9;if(_0x3f78ab===_0x86df2d)break;else _0x57a2c7['push'](_0x57a2c7['shift']());}catch(_0x588fcb){_0x57a2c7['push'](_0x57a2c7['shift']());}}}(a5_0x2859,0x2f5ed));function a5_0x2a8e(_0x4c64be,_0x213517){const _0x285964=a5_0x2859();return a5_0x2a8e=function(_0x2a8e09,_0x1aa9c1){_0x2a8e09=_0x2a8e09-0x121;let _0x51cf59=_0x285964[_0x2a8e09];return _0x51cf59;},a5_0x2a8e(_0x4c64be,_0x213517);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a5_0x751004(0x124)]=exports[a5_0x751004(0x12e)]=void 0x0;const core_1=require(a5_0x751004(0x127)),interface_1=require('../interface');function ProvideSearch(_0x54e9ed){return _0xd82679=>{const _0x2e74e0=a5_0x2a8e;(0x0,core_1[_0x2e74e0(0x131)])(interface_1[_0x2e74e0(0x12a)],_0xd82679),(0x0,core_1[_0x2e74e0(0x130)])(core_1[_0x2e74e0(0x121)][_0x2e74e0(0x12d)])(_0xd82679),(0x0,core_1[_0x2e74e0(0x133)])(interface_1[_0x2e74e0(0x12a)],_0x54e9ed,_0xd82679);};}exports[a5_0x751004(0x12e)]=ProvideSearch;function a5_0x2859(){const _0x32b2a2=['1494232sXZeGo','attachClassMetadata','ScopeEnum','117256HLFqcQ','280977vLPLZV','Search','MODEL_SEARCH_KEY','96SuWNuy','@midwayjs/core','153490hfnUgD','1188120zGhMsb','MODEL_KEY','4804254STQpcs','9wvtEuU','Singleton','ProvideSearch','59703QtmVxp','Scope','saveModule'];a5_0x2859=function(){return _0x32b2a2;};return a5_0x2859();}function Search(_0x5db877,_0x4f3f07){return(_0x50cf84,_0x2d3d26,_0x3f1b40)=>{const _0xdaf90a=a5_0x2a8e;(0x0,core_1[_0xdaf90a(0x133)])(interface_1[_0xdaf90a(0x125)],{'field':_0x5db877,'comment':_0x4f3f07,'target':_0x50cf84,'methodName':_0x2d3d26,'descriptor':_0x3f1b40},_0x50cf84);};}exports[a5_0x751004(0x124)]=Search;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a6_0x2053(_0x260d9d,_0xe7618f){const _0x116657=a6_0x1166();return a6_0x2053=function(_0x205328,_0x220234){_0x205328=_0x205328-0xc8;let _0x186395=_0x116657[_0x205328];return _0x186395;},a6_0x2053(_0x260d9d,_0xe7618f);}const a6_0x2dcafc=a6_0x2053;(function(_0x523233,_0x47437f){const _0x47f9d3=a6_0x2053,_0x186acc=_0x523233();while(!![]){try{const _0x27ffa4=-parseInt(_0x47f9d3(0xcf))/0x1*(parseInt(_0x47f9d3(0xca))/0x2)+-parseInt(_0x47f9d3(0xcd))/0x3+parseInt(_0x47f9d3(0xcb))/0x4+-parseInt(_0x47f9d3(0xd2))/0x5+parseInt(_0x47f9d3(0xd4))/0x6*(-parseInt(_0x47f9d3(0xd3))/0x7)+-parseInt(_0x47f9d3(0xd8))/0x8*(-parseInt(_0x47f9d3(0xc8))/0x9)+parseInt(_0x47f9d3(0xcc))/0xa*(parseInt(_0x47f9d3(0xc9))/0xb);if(_0x27ffa4===_0x47437f)break;else _0x186acc['push'](_0x186acc['shift']());}catch(_0x197be8){_0x186acc['push'](_0x186acc['shift']());}}}(a6_0x1166,0x81c7b));Object[a6_0x2dcafc(0xd5)](exports,'__esModule',{'value':!![]}),exports[a6_0x2dcafc(0xd0)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a6_0x2dcafc(0xd7));function VirtualColumn(_0x38a232,_0x1d3d37){return(_0x26c689,_0x8ee759)=>{const _0x29c732=a6_0x2053,_0x3e6c29=(0x0,core_1[_0x29c732(0xd6)])(interface_1[_0x29c732(0xd1)],_0x26c689)||{};_0x3e6c29[_0x8ee759]={'comment':_0x38a232,..._0x1d3d37},(0x0,core_1[_0x29c732(0xce)])(interface_1[_0x29c732(0xd1)],_0x3e6c29,_0x26c689);};}exports[a6_0x2dcafc(0xd0)]=VirtualColumn;function a6_0x1166(){const _0x238a88=['2752407nxtHcX','saveClassMetadata','403AGxWal','VirtualColumn','ENTITY_VIRTUAL_COLUMN_KEY','4683090XQtnFt','5194JHxJtI','4344eOwIER','defineProperty','getClassMetadata','../interface','712MNGefX','51669eughQX','176pQpTTM','3154TsHMaf','1480704drXHqz','1673300RrwvKt'];a6_0x1166=function(){return _0x238a88;};return a6_0x1166();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x1a035d=a7_0xd9c1;(function(_0x44174f,_0x3dfd8f){const _0x35f4e3=a7_0xd9c1,_0x3e6f3b=_0x44174f();while(!![]){try{const _0x1ba58d=parseInt(_0x35f4e3(0x120))/0x1+-parseInt(_0x35f4e3(0xf6))/0x2+parseInt(_0x35f4e3(0x116))/0x3*(parseInt(_0x35f4e3(0x11e))/0x4)+parseInt(_0x35f4e3(0x132))/0x5*(parseInt(_0x35f4e3(0x118))/0x6)+parseInt(_0x35f4e3(0x115))/0x7+parseInt(_0x35f4e3(0x114))/0x8+-parseInt(_0x35f4e3(0x106))/0x9*(parseInt(_0x35f4e3(0x147))/0xa);if(_0x1ba58d===_0x3dfd8f)break;else _0x3e6f3b['push'](_0x3e6f3b['shift']());}catch(_0x4efb14){_0x3e6f3b['push'](_0x3e6f3b['shift']());}}}(a7_0x5160,0x9b10a));Object[a7_0x1a035d(0x109)](exports,a7_0x1a035d(0x11d),{'value':!![]}),exports['Repository']=void 0x0;function a7_0x5160(){const _0x557c9b=['operator','@midwayjs/core','Repository','isArray','function','ISNULL','createSave','_isreverse','\x20IN(:..._auto_','undefined','take','_page','model','\x20like\x20:_auto_','\x20AND\x20:','9429470mZpnyi','condition','getClassMetadata','1531260FzzPRJ','name','bind','alias','orderBy','type','search','queryRunner','length','findColumnWithPropertyName','getAsync','string','indexOf','_order','split','abs','9UptcLp','NOT\x20BETWEEN','create','defineProperty','metadata','mergeSave','BETWEEN','NOT\x20IN','app','typeorm','NOT\x20LIKE','excess','_size','random','1320424rqjxXu','7075936EhTjVb','2679ejdeIa','hasOwnProperty','2386662oDdMPH','LIKE','createQueryBuilder','toLowerCase','manager','__esModule','1244LMfKYI','modelSearchs','492322DbQGcz','_auto_','transaction','trim','\x20=\x20:_auto_','MODEL_SEARCH_KEY','merge','../interface','skip','ASC','methodName','1\x20=\x202','push','NOT\x20FIND\x20IN\x20SET','toUpperCase','FIND\x20IN\x20SET','field','MODEL_KEY','5OhZeuc','searchs','ceil','container','andWhere','target'];a7_0x5160=function(){return _0x557c9b;};return a7_0x5160();}const core_1=require(a7_0x1a035d(0x139)),typeorm_1=require(a7_0x1a035d(0x10f)),interface_1=require(a7_0x1a035d(0x127));function a7_0xd9c1(_0x1946a4,_0x5bdfee){const _0x516027=a7_0x5160();return a7_0xd9c1=function(_0xd9c1cf,_0xe5f3a4){_0xd9c1cf=_0xd9c1cf-0xf5;let _0x2ce274=_0x516027[_0xd9c1cf];return _0x2ce274;},a7_0xd9c1(_0x1946a4,_0x5bdfee);}class Repository extends typeorm_1['Repository']{constructor(_0x3ebe19,_0x51b377,_0x616b67){const _0x3b5ba1=a7_0x1a035d;super(_0x616b67[_0x3b5ba1(0x137)],_0x616b67['manager'],_0x616b67[_0x3b5ba1(0xfd)]),this[_0x3b5ba1(0x11f)]=[];for(const _0x4cbd02 of(0x0,core_1[_0x3b5ba1(0xf5)])(interface_1[_0x3b5ba1(0x131)],this[_0x3b5ba1(0x137)])||[]){const _0x54eea4={'model':_0x4cbd02,'searchs':[]};for(const _0x26c953 of(0x0,core_1[_0x3b5ba1(0xf5)])(interface_1[_0x3b5ba1(0x125)],_0x4cbd02)||[]){_0x54eea4['searchs'][_0x3b5ba1(0x12c)](_0x26c953);}this['modelSearchs'][_0x3b5ba1(0x12c)](_0x54eea4);}this[_0x3b5ba1(0x10e)]=_0x3ebe19,this[_0x3b5ba1(0x135)]=_0x51b377;}async[a7_0x1a035d(0xfc)](_0x570a4b,_0x9d4972,_0x5842bf={}){const _0x17a96e=a7_0x1a035d;var _0x52cd6c,_0x2e8474,_0x130338,_0x279444,_0x178907,_0x806db8,_0x5d4d2d;const _0x1e3243=this[_0x17a96e(0x11a)](undefined,_0x5842bf===null||_0x5842bf===void 0x0?void 0x0:_0x5842bf[_0x17a96e(0xfd)]),_0x52c8f6=[];for(const _0x3f7154 of this[_0x17a96e(0x11f)]){if((_0x3f7154===null||_0x3f7154===void 0x0?void 0x0:_0x3f7154[_0x17a96e(0x144)])&&((_0x52cd6c=_0x3f7154===null||_0x3f7154===void 0x0?void 0x0:_0x3f7154[_0x17a96e(0x133)])===null||_0x52cd6c===void 0x0?void 0x0:_0x52cd6c[_0x17a96e(0xfe)])>0x0){const _0x21b1aa=await this[_0x17a96e(0x10e)]['getApplicationContext']()[_0x17a96e(0x100)](_0x3f7154[_0x17a96e(0x144)]);for(const _0x5dc9d7 of _0x3f7154[_0x17a96e(0x133)]){(_0x5dc9d7===null||_0x5dc9d7===void 0x0?void 0x0:_0x5dc9d7[_0x17a96e(0x130)])&&(_0x5dc9d7===null||_0x5dc9d7===void 0x0?void 0x0:_0x5dc9d7[_0x17a96e(0x12a)])&&typeof _0x21b1aa[_0x5dc9d7[_0x17a96e(0x12a)]]=='function'&&(typeof(_0x570a4b===null||_0x570a4b===void 0x0?void 0x0:_0x570a4b[_0x5dc9d7[_0x17a96e(0x130)]])!=_0x17a96e(0x141)&&!((_0x2e8474=_0x570a4b===null||_0x570a4b===void 0x0?void 0x0:_0x570a4b[_0x5dc9d7[_0x17a96e(0x130)]])===null||_0x2e8474===void 0x0?void 0x0:_0x2e8474['hasOwnProperty']('operator'))&&(_0x52c8f6[_0x17a96e(0x102)](_0x5dc9d7['field'])==-0x1&&_0x52c8f6[_0x17a96e(0x12c)](_0x5dc9d7['field']),await _0x21b1aa[_0x5dc9d7['methodName']][_0x17a96e(0xf8)](_0x21b1aa)(_0x1e3243,_0x570a4b[_0x5dc9d7[_0x17a96e(0x130)]],_0x570a4b,_0x9d4972,_0x5842bf===null||_0x5842bf===void 0x0?void 0x0:_0x5842bf[_0x17a96e(0xfd)])));}}}for(const _0x14a022 in _0x570a4b){if(typeof _0x570a4b[_0x14a022]==_0x17a96e(0x141))continue;if(_0x52c8f6[_0x17a96e(0x102)](_0x14a022)!=-0x1)continue;const _0x2de82b=this['metadata'][_0x17a96e(0xff)](_0x14a022);if(!_0x2de82b)continue;if((_0x130338=_0x570a4b===null||_0x570a4b===void 0x0?void 0x0:_0x570a4b[_0x14a022])===null||_0x130338===void 0x0?void 0x0:_0x130338[_0x17a96e(0x117)]('operator')){const _0x2c300f=(_0x279444=_0x570a4b[_0x14a022])===null||_0x279444===void 0x0?void 0x0:_0x279444[_0x17a96e(0x148)],_0xbade58=(_0x178907=_0x570a4b[_0x14a022])===null||_0x178907===void 0x0?void 0x0:_0x178907[_0x17a96e(0x138)][_0x17a96e(0x123)]()[_0x17a96e(0x12e)](),_0x44c037=_0x17a96e(0x121)+_0x14a022+'_'+Math[_0x17a96e(0x134)](Math['random']()*0xa)+Math['ceil'](Math[_0x17a96e(0x113)]()*0xa)+Math[_0x17a96e(0x134)](Math['random']()*0xa)+Math['ceil'](Math[_0x17a96e(0x113)]()*0xa);if(['=','!=','<>','>','>=','<','<=',_0x17a96e(0x119),_0x17a96e(0x110)][_0x17a96e(0x102)](_0xbade58)!=-0x1)typeof _0x2c300f!='undefined'&&_0x1e3243[_0x17a96e(0x136)](_0x1e3243[_0x17a96e(0xf9)]+'.'+_0x14a022+'\x20'+_0xbade58+'\x20:'+_0x44c037,{[_0x44c037]:_0x2c300f});else{if(['IN',_0x17a96e(0x10d)][_0x17a96e(0x102)](_0xbade58)!=-0x1){if(typeof _0x2c300f!=_0x17a96e(0x141)){const _0x21ec3d=Array['isArray'](_0x2c300f)?_0x2c300f:typeof _0x2c300f==_0x17a96e(0x101)?_0x2c300f[_0x17a96e(0x104)](','):[_0x2c300f];_0x21ec3d[_0x17a96e(0xfe)]==0x0?_0x1e3243['andWhere'](_0x17a96e(0x12b)):_0x1e3243[_0x17a96e(0x136)](_0x1e3243[_0x17a96e(0xf9)]+'.'+_0x14a022+'\x20'+_0xbade58+'(:...'+_0x44c037+')',{[_0x44c037]:_0x21ec3d});}}else{if([_0x17a96e(0x12f),_0x17a96e(0x12d)][_0x17a96e(0x102)](_0xbade58)!=-0x1)typeof _0x2c300f!=_0x17a96e(0x141)&&_0x1e3243['andWhere'](_0xbade58+'(:'+_0x44c037+','+_0x1e3243['alias']+'.'+_0x14a022+')',{[_0x44c037]:_0x2c300f});else{if([_0x17a96e(0x10c),_0x17a96e(0x107)][_0x17a96e(0x102)](_0xbade58)!=-0x1){if(typeof _0x2c300f!=_0x17a96e(0x141)){const _0x55ced6=Array[_0x17a96e(0x13b)](_0x2c300f)?_0x2c300f:typeof _0x2c300f==_0x17a96e(0x101)?_0x2c300f[_0x17a96e(0x104)](','):[_0x2c300f];_0x55ced6[_0x17a96e(0xfe)]>0x1&&_0x1e3243[_0x17a96e(0x136)](_0x1e3243[_0x17a96e(0xf9)]+'.'+_0x14a022+'\x20'+_0xbade58+'\x20:'+_0x44c037+_0x17a96e(0x146)+_0x44c037+'_2',{[''+_0x44c037]:_0x55ced6[0x0],[_0x44c037+'_2']:_0x55ced6[0x1]});}}else[_0x17a96e(0x13d),'NOT\x20ISNULL'][_0x17a96e(0x102)](_0xbade58)!=-0x1&&_0x1e3243[_0x17a96e(0x136)](_0xbade58+'('+_0x1e3243['alias']+'.'+_0x14a022+')');}}}}else{const _0x599bc9=((_0x5d4d2d=typeof _0x2de82b[_0x17a96e(0xfb)]=='function'?(_0x806db8=_0x2de82b===null||_0x2de82b===void 0x0?void 0x0:_0x2de82b[_0x17a96e(0xfb)])===null||_0x806db8===void 0x0?void 0x0:_0x806db8[_0x17a96e(0xf7)]:_0x2de82b[_0x17a96e(0xfb)]['toString']())===null||_0x5d4d2d===void 0x0?void 0x0:_0x5d4d2d[_0x17a96e(0x11b)]())||undefined;if(_0x599bc9){if(Array[_0x17a96e(0x13b)](_0x570a4b[_0x14a022]))_0x570a4b[_0x14a022][_0x17a96e(0xfe)]==0x0?_0x1e3243[_0x17a96e(0x136)](_0x17a96e(0x12b)):_0x1e3243[_0x17a96e(0x136)](_0x1e3243[_0x17a96e(0xf9)]+'.'+_0x14a022+_0x17a96e(0x140)+_0x14a022+')',{[_0x17a96e(0x121)+_0x14a022]:_0x570a4b[_0x14a022]});else _0x599bc9==_0x17a96e(0x101)?_0x1e3243[_0x17a96e(0x136)](_0x1e3243[_0x17a96e(0xf9)]+'.'+_0x14a022+_0x17a96e(0x145)+_0x14a022,{[_0x17a96e(0x121)+_0x14a022]:'%'+_0x570a4b[_0x14a022]+'%'}):_0x1e3243['andWhere'](_0x1e3243[_0x17a96e(0xf9)]+'.'+_0x14a022+_0x17a96e(0x124)+_0x14a022,{['_auto_'+_0x14a022]:_0x570a4b[_0x14a022]});}}}(_0x9d4972===null||_0x9d4972===void 0x0?void 0x0:_0x9d4972['_size'])&&_0x1e3243[_0x17a96e(0x142)](Math[_0x17a96e(0x105)](_0x9d4972['_size']));(_0x9d4972===null||_0x9d4972===void 0x0?void 0x0:_0x9d4972[_0x17a96e(0x143)])&&(_0x9d4972===null||_0x9d4972===void 0x0?void 0x0:_0x9d4972[_0x17a96e(0x112)])&&_0x1e3243[_0x17a96e(0x128)]((Math[_0x17a96e(0x105)](_0x9d4972[_0x17a96e(0x143)])-0x1)*Math['abs'](_0x9d4972[_0x17a96e(0x112)]));if(_0x9d4972===null||_0x9d4972===void 0x0?void 0x0:_0x9d4972['_order']){if(_0x9d4972[_0x17a96e(0x103)][_0x17a96e(0x102)]('.')!==-0x1)_0x1e3243[_0x17a96e(0xfa)](''+_0x9d4972[_0x17a96e(0x103)],(_0x9d4972===null||_0x9d4972===void 0x0?void 0x0:_0x9d4972[_0x17a96e(0x13f)])?'ASC':'DESC');else _0x52c8f6['indexOf'](_0x9d4972[_0x17a96e(0x103)])==-0x1&&(this[_0x17a96e(0x10a)][_0x17a96e(0xff)](_0x9d4972[_0x17a96e(0x103)])?_0x1e3243['orderBy'](_0x1e3243[_0x17a96e(0xf9)]+'.'+_0x9d4972[_0x17a96e(0x103)],(_0x9d4972===null||_0x9d4972===void 0x0?void 0x0:_0x9d4972[_0x17a96e(0x13f)])?_0x17a96e(0x129):'DESC'):_0x1e3243['orderBy'](''+_0x9d4972[_0x17a96e(0x103)],(_0x9d4972===null||_0x9d4972===void 0x0?void 0x0:_0x9d4972[_0x17a96e(0x13f)])?'ASC':'DESC'));}return typeof(_0x5842bf===null||_0x5842bf===void 0x0?void 0x0:_0x5842bf[_0x17a96e(0x111)])==_0x17a96e(0x13c)&&await(_0x5842bf===null||_0x5842bf===void 0x0?void 0x0:_0x5842bf[_0x17a96e(0x111)](_0x1e3243)),_0x1e3243;}async[a7_0x1a035d(0x10b)](_0x4191dd,..._0x3f82bb){const _0x2ae5b7=a7_0x1a035d,_0x1a07dc=this[_0x2ae5b7(0x126)](_0x4191dd,..._0x3f82bb);return await this['save'](_0x1a07dc);}async[a7_0x1a035d(0x13e)](_0x46daad,..._0xe69d2f){const _0x1569f6=a7_0x1a035d,_0x8e3dc3=this[_0x1569f6(0x126)](this[_0x1569f6(0x108)](_0x46daad),..._0xe69d2f);return await this['save'](_0x8e3dc3);}async[a7_0x1a035d(0x122)](_0x4bff01,_0x4a7cf1){const _0x6e2a42=a7_0x1a035d;return this[_0x6e2a42(0x11c)][_0x6e2a42(0x122)](_0x4bff01,_0x4a7cf1);}}exports[a7_0x1a035d(0x13a)]=Repository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a8_0x7daf6b=a8_0x295d;(function(_0x727463,_0x57b107){const _0x3f5887=a8_0x295d,_0x2b3237=_0x727463();while(!![]){try{const _0x5ae089=-parseInt(_0x3f5887(0x11f))/0x1*(parseInt(_0x3f5887(0x126))/0x2)+-parseInt(_0x3f5887(0x11c))/0x3*(-parseInt(_0x3f5887(0x119))/0x4)+parseInt(_0x3f5887(0x129))/0x5+-parseInt(_0x3f5887(0x11e))/0x6+-parseInt(_0x3f5887(0x117))/0x7+parseInt(_0x3f5887(0x118))/0x8*(-parseInt(_0x3f5887(0x124))/0x9)+parseInt(_0x3f5887(0x11a))/0xa;if(_0x5ae089===_0x57b107)break;else _0x2b3237['push'](_0x2b3237['shift']());}catch(_0x1663ee){_0x2b3237['push'](_0x2b3237['shift']());}}}(a8_0x227b,0x733b2));function a8_0x295d(_0x202e1b,_0x36a92d){const _0x227ba8=a8_0x227b();return a8_0x295d=function(_0x295db6,_0x48ce54){_0x295db6=_0x295db6-0x116;let _0x3fb925=_0x227ba8[_0x295db6];return _0x3fb925;},a8_0x295d(_0x202e1b,_0x36a92d);}function a8_0x227b(){const _0x185236=['push','find','9ftVfpe','ENTIFY_MODULE_SOURCE','403178JVScHx','getDataSourceEntity','@midwayjs/core','1994150bBoglx','listModule','3160255LeTZnH','3416240RSGyRc','40vuhQrA','10134150iRJgFW','ENTIFY_MODULE','62313zDeorm','defineProperty','407310LOoaUy','1bpkuvc','dataSource','getClassMetadata'];a8_0x227b=function(){return _0x185236;};return a8_0x227b();}Object[a8_0x7daf6b(0x11d)](exports,'__esModule',{'value':!![]}),exports[a8_0x7daf6b(0x127)]=void 0x0;const core_1=require(a8_0x7daf6b(0x128)),interface_1=require('../interface');function getDataSourceEntity(_0x414063='default'){const _0x2aeba7=a8_0x7daf6b;var _0x41ddee;const _0x332045=[];for(const _0xbb2b54 of(0x0,core_1[_0x2aeba7(0x116)])(interface_1[_0x2aeba7(0x11b)])){const _0x5576b6=(0x0,core_1[_0x2aeba7(0x121)])(interface_1[_0x2aeba7(0x125)],_0xbb2b54);((_0x41ddee=_0x5576b6===null||_0x5576b6===void 0x0?void 0x0:_0x5576b6[_0x2aeba7(0x120)])===null||_0x41ddee===void 0x0?void 0x0:_0x41ddee[_0x2aeba7(0x123)](_0x342346=>_0x342346==_0x414063))&&_0x332045[_0x2aeba7(0x122)](_0xbb2b54);}return _0x332045;}exports['getDataSourceEntity']=getDataSourceEntity;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x3797f2=a9_0x20d8;(function(_0x58a975,_0x573d8c){var _0x1b0a0f=a9_0x20d8,_0x103721=_0x58a975();while(!![]){try{var _0xa9ad43=-parseInt(_0x1b0a0f(0x7c))/0x1+parseInt(_0x1b0a0f(0x78))/0x2+parseInt(_0x1b0a0f(0x81))/0x3+parseInt(_0x1b0a0f(0x74))/0x4+parseInt(_0x1b0a0f(0x75))/0x5*(-parseInt(_0x1b0a0f(0x8e))/0x6)+-parseInt(_0x1b0a0f(0x70))/0x7*(parseInt(_0x1b0a0f(0x93))/0x8)+parseInt(_0x1b0a0f(0x8f))/0x9*(parseInt(_0x1b0a0f(0x80))/0xa);if(_0xa9ad43===_0x573d8c)break;else _0x103721['push'](_0x103721['shift']());}catch(_0x476677){_0x103721['push'](_0x103721['shift']());}}}(a9_0x5001,0x466aa));var __createBinding=this&&this[a9_0x3797f2(0x86)]||(Object['create']?function(_0x21dc83,_0x2b18f4,_0x274fa0,_0x1e810c){var _0x271314=a9_0x3797f2;if(_0x1e810c===undefined)_0x1e810c=_0x274fa0;var _0x3d8155=Object['getOwnPropertyDescriptor'](_0x2b18f4,_0x274fa0);(!_0x3d8155||(_0x271314(0x7e)in _0x3d8155?!_0x2b18f4['__esModule']:_0x3d8155['writable']||_0x3d8155[_0x271314(0x71)]))&&(_0x3d8155={'enumerable':!![],'get':function(){return _0x2b18f4[_0x274fa0];}}),Object[_0x271314(0x82)](_0x21dc83,_0x1e810c,_0x3d8155);}:function(_0x351043,_0x24e38d,_0x4c79c5,_0x2aaa88){if(_0x2aaa88===undefined)_0x2aaa88=_0x4c79c5;_0x351043[_0x2aaa88]=_0x24e38d[_0x4c79c5];}),__exportStar=this&&this[a9_0x3797f2(0x7f)]||function(_0x5957c4,_0x51d10b){var _0x3adee3=a9_0x3797f2;for(var _0x1cd0e8 in _0x5957c4)if(_0x1cd0e8!==_0x3adee3(0x79)&&!Object[_0x3adee3(0x7d)][_0x3adee3(0x8d)]['call'](_0x51d10b,_0x1cd0e8))__createBinding(_0x51d10b,_0x5957c4,_0x1cd0e8);};Object[a9_0x3797f2(0x82)](exports,'__esModule',{'value':!![]}),exports[a9_0x3797f2(0x6c)]=exports[a9_0x3797f2(0x73)]=exports[a9_0x3797f2(0x6f)]=exports[a9_0x3797f2(0x85)]=exports[a9_0x3797f2(0x83)]=exports['getDataSourceEntity']=exports[a9_0x3797f2(0x72)]=exports[a9_0x3797f2(0x6e)]=exports[a9_0x3797f2(0x90)]=exports['ProvideEntity']=exports[a9_0x3797f2(0x77)]=exports['InjectEntity']=exports['VirtualColumn']=exports[a9_0x3797f2(0x6b)]=void 0x0,__exportStar(require(a9_0x3797f2(0x89)),exports),__exportStar(require(a9_0x3797f2(0x87)),exports);var Repository_1=require(a9_0x3797f2(0x8a));Object['defineProperty'](exports,a9_0x3797f2(0x6b),{'enumerable':!![],'get':function(){var _0x3b8d8e=a9_0x3797f2;return Repository_1[_0x3b8d8e(0x6b)];}});var VirtualColumn_1=require(a9_0x3797f2(0x84));function a9_0x5001(){var _0x1809a1=['hasOwnProperty','6IUBdKx','2187VsdsUt','ProvideRepository','CustomConfiguration','./decorator/ProvideRepository','424sMFfRO','ProvideEntity','Repository','ScopeEnum','@midwayjs/core','ProvideSearch','Inject','35588Xqdvnz','configurable','Search','Scope','2231836fxMONf','2835155UqywzW','./decorator/ProvideEntity','InjectRepository','688242MxqzND','default','./decorator/InjectEntity','VirtualColumn','113916zKAaAA','prototype','get','__exportStar','12280EXpHkf','115023XFRDlV','defineProperty','Configuration','./decorator/VirtualColumn','Provide','__createBinding','./interface','./configuration','typeorm','./definition/Repository','InjectEntity','./helper/getDataSourceEntity'];a9_0x5001=function(){return _0x1809a1;};return a9_0x5001();}Object['defineProperty'](exports,'VirtualColumn',{'enumerable':!![],'get':function(){var _0x47a59a=a9_0x3797f2;return VirtualColumn_1[_0x47a59a(0x7b)];}});var InjectEntity_1=require(a9_0x3797f2(0x7a));Object['defineProperty'](exports,a9_0x3797f2(0x8b),{'enumerable':!![],'get':function(){var _0x1f1ab7=a9_0x3797f2;return InjectEntity_1[_0x1f1ab7(0x8b)];}});var InjectRepository_1=require('./decorator/InjectRepository');Object['defineProperty'](exports,a9_0x3797f2(0x77),{'enumerable':!![],'get':function(){return InjectRepository_1['InjectRepository'];}});var ProvideEntity_1=require(a9_0x3797f2(0x76));Object[a9_0x3797f2(0x82)](exports,a9_0x3797f2(0x94),{'enumerable':!![],'get':function(){var _0x27745f=a9_0x3797f2;return ProvideEntity_1[_0x27745f(0x94)];}});var ProvideRepository_1=require(a9_0x3797f2(0x92));Object[a9_0x3797f2(0x82)](exports,a9_0x3797f2(0x90),{'enumerable':!![],'get':function(){var _0x525393=a9_0x3797f2;return ProvideRepository_1[_0x525393(0x90)];}});var ProvideSearch_1=require('./decorator/ProvideSearch');Object['defineProperty'](exports,a9_0x3797f2(0x6e),{'enumerable':!![],'get':function(){return ProvideSearch_1['ProvideSearch'];}}),Object[a9_0x3797f2(0x82)](exports,a9_0x3797f2(0x72),{'enumerable':!![],'get':function(){var _0x393387=a9_0x3797f2;return ProvideSearch_1[_0x393387(0x72)];}});function a9_0x20d8(_0x33d886,_0x295a92){var _0x50018f=a9_0x5001();return a9_0x20d8=function(_0x20d803,_0xe8d3d2){_0x20d803=_0x20d803-0x6b;var _0x49700c=_0x50018f[_0x20d803];return _0x49700c;},a9_0x20d8(_0x33d886,_0x295a92);}var getDataSourceEntity_1=require(a9_0x3797f2(0x8c));Object[a9_0x3797f2(0x82)](exports,'getDataSourceEntity',{'enumerable':!![],'get':function(){return getDataSourceEntity_1['getDataSourceEntity'];}});var configuration_1=require(a9_0x3797f2(0x88));Object[a9_0x3797f2(0x82)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x4889be=a9_0x3797f2;return configuration_1[_0x4889be(0x91)];}});var core_1=require(a9_0x3797f2(0x6d));Object[a9_0x3797f2(0x82)](exports,a9_0x3797f2(0x85),{'enumerable':!![],'get':function(){var _0x4b088d=a9_0x3797f2;return core_1[_0x4b088d(0x85)];}}),Object[a9_0x3797f2(0x82)](exports,a9_0x3797f2(0x6f),{'enumerable':!![],'get':function(){return core_1['Inject'];}}),Object[a9_0x3797f2(0x82)](exports,a9_0x3797f2(0x73),{'enumerable':!![],'get':function(){var _0x2155c5=a9_0x3797f2;return core_1[_0x2155c5(0x73)];}}),Object['defineProperty'](exports,a9_0x3797f2(0x6c),{'enumerable':!![],'get':function(){var _0xcc167c=a9_0x3797f2;return core_1[_0xcc167c(0x6c)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a10_0x95e7(){const _0x35e5c9=['resolve','decorator:anncic-api:typeorm:repository','lockVersion','getCount','mainAlias','findOneBy','10MlqBIT','3GLlqHT','updateDateColumn','findOneByOrFail','1057940WXhSpT','ENTIFY_MODULE','SearchPaginate','EntityNotFoundError','hasOwnProperty','decorator:anncic-api:typeorm:entify:module','decorator:anncic-api:typeorm:entify:module:source','13NkmSJD','7udeXmU','decorator:anncic-api:typeorm:model','optimistic','expressionMap','MODEL_SEARCH_KEY','decorator:anncic-api:typeorm:entify','getTime','reject','decorator:anncic-api:typeorm:model:search','findOne','ENTITY_VIRTUAL_COLUMN_KEY','456IcrZbl','18397380qVwWSs','__esModule','ENTIFY_KEY','43165nodvun','lockMode','prototype','1079490ieqYkQ','33659cUfBty','OptimisticLockVersionMismatchError','ENTIFY_MODULE_SOURCE','decorator:anncic-api:typeorm:entity:virtual:column','getManyAndCount','7152912wvTZDW','getRawAndEntities','findOneOrFail','7829767gMZGBZ','27aqHZgG','REPOSITORY_KEY','MODEL_KEY','SelectQueryBuilder','@midwayjs/core','default','typeorm'];a10_0x95e7=function(){return _0x35e5c9;};return a10_0x95e7();}const a10_0x3b2212=a10_0x5699;(function(_0x1a8a20,_0x2576c6){const _0x2f38c4=a10_0x5699,_0x3963f1=_0x1a8a20();while(!![]){try{const _0x331dc9=-parseInt(_0x2f38c4(0x15d))/0x1*(parseInt(_0x2f38c4(0x13e))/0x2)+parseInt(_0x2f38c4(0x13f))/0x3*(-parseInt(_0x2f38c4(0x142))/0x4)+parseInt(_0x2f38c4(0x159))/0x5*(parseInt(_0x2f38c4(0x155))/0x6)+parseInt(_0x2f38c4(0x14a))/0x7*(parseInt(_0x2f38c4(0x162))/0x8)+parseInt(_0x2f38c4(0x166))/0x9*(parseInt(_0x2f38c4(0x15c))/0xa)+parseInt(_0x2f38c4(0x165))/0xb+-parseInt(_0x2f38c4(0x156))/0xc*(parseInt(_0x2f38c4(0x149))/0xd);if(_0x331dc9===_0x2576c6)break;else _0x3963f1['push'](_0x3963f1['shift']());}catch(_0x3c4ffb){_0x3963f1['push'](_0x3963f1['shift']());}}}(a10_0x95e7,0x975c3));function a10_0x5699(_0x56e0e5,_0x459834){const _0x95e753=a10_0x95e7();return a10_0x5699=function(_0x5699b9,_0x9b2465){_0x5699b9=_0x5699b9-0x139;let _0x1b03b9=_0x95e753[_0x5699b9];return _0x1b03b9;},a10_0x5699(_0x56e0e5,_0x459834);}Object['defineProperty'](exports,a10_0x3b2212(0x157),{'value':!![]}),exports['SearchPaginate']=exports[a10_0x3b2212(0x154)]=exports[a10_0x3b2212(0x14e)]=exports[a10_0x3b2212(0x168)]=exports['REPOSITORY_KEY']=exports[a10_0x3b2212(0x15f)]=exports[a10_0x3b2212(0x143)]=exports[a10_0x3b2212(0x158)]=void 0x0;const core_1=require(a10_0x3b2212(0x16a)),typeorm_1=require(a10_0x3b2212(0x16c)),typeorm_2=require(a10_0x3b2212(0x16c));exports[a10_0x3b2212(0x158)]=a10_0x3b2212(0x14f),exports[a10_0x3b2212(0x143)]=a10_0x3b2212(0x147),exports[a10_0x3b2212(0x15f)]=a10_0x3b2212(0x148),exports[a10_0x3b2212(0x167)]=a10_0x3b2212(0x139),exports[a10_0x3b2212(0x168)]=a10_0x3b2212(0x14b),exports['MODEL_SEARCH_KEY']=a10_0x3b2212(0x152),exports['ENTITY_VIRTUAL_COLUMN_KEY']=a10_0x3b2212(0x160);class SearchPaginate{}exports[a10_0x3b2212(0x144)]=SearchPaginate,typeorm_2['EntityManager'][a10_0x3b2212(0x15b)][a10_0x3b2212(0x164)]=async function(_0xdfab40,_0x2109ec){const _0x2043a3=a10_0x3b2212;return this[_0x2043a3(0x153)](_0xdfab40,_0x2109ec)['then'](_0x51d1f0=>{const _0x25ee75=_0x2043a3;if(_0x51d1f0===null||_0x51d1f0===undefined)return Promise[_0x25ee75(0x151)](new typeorm_2[(_0x25ee75(0x145))](_0xdfab40,_0x2109ec));return Promise[_0x25ee75(0x16d)](_0x51d1f0);});},typeorm_2['EntityManager']['prototype'][a10_0x3b2212(0x141)]=async function(_0x32666c,_0x55c98f){const _0x169b54=a10_0x3b2212;return this[_0x169b54(0x13d)](_0x32666c,_0x55c98f)['then'](_0x23155c=>{const _0x2bcc4a=_0x169b54;if(_0x23155c===null||_0x23155c===undefined)return Promise[_0x2bcc4a(0x151)](new typeorm_2[(_0x2bcc4a(0x145))](_0x32666c,_0x55c98f));return Promise[_0x2bcc4a(0x16d)](_0x23155c);});},typeorm_1[a10_0x3b2212(0x169)]['prototype']['getMany']=async function(){const _0x432a5d=a10_0x3b2212;if(this[_0x432a5d(0x14d)][_0x432a5d(0x15a)]===_0x432a5d(0x14c))throw new typeorm_1['OptimisticLockCanNotBeUsedError']();const {entities:_0x359563,raw:_0xb5e896}=await this['getRawAndEntities']();return _0x359563['map']((_0x362803,_0x524e78)=>{const _0x17123f=_0x432a5d;var _0xb02ac2;const _0x1264f7=(0x0,core_1['getClassMetadata'])(exports['ENTITY_VIRTUAL_COLUMN_KEY'],_0x362803)||{};for(const _0x8c3998 in _0x1264f7){_0xb5e896[_0x524e78]&&_0xb5e896[_0x524e78][_0x17123f(0x146)](_0x8c3998)&&(_0x362803[_0x8c3998]=_0xb5e896[_0x524e78][_0x8c3998]||((_0xb02ac2=_0x1264f7[_0x8c3998])===null||_0xb02ac2===void 0x0?void 0x0:_0xb02ac2['default'])||'');}return _0x362803;});},typeorm_1[a10_0x3b2212(0x169)][a10_0x3b2212(0x15b)][a10_0x3b2212(0x161)]=async function(){const _0x43bea8=a10_0x3b2212;return[await this['getMany'](),await this[_0x43bea8(0x13b)]()];},typeorm_1[a10_0x3b2212(0x169)]['prototype']['getOne']=async function(){const _0x46f2b9=a10_0x3b2212;var _0x271b21;const {entities:_0x5788b6,raw:_0x3db1e4}=await this[_0x46f2b9(0x163)]();if(_0x5788b6[0x0]&&this[_0x46f2b9(0x14d)][_0x46f2b9(0x15a)]===_0x46f2b9(0x14c)&&this[_0x46f2b9(0x14d)]['lockVersion']){const _0x5515ce=this[_0x46f2b9(0x14d)][_0x46f2b9(0x13c)]['metadata'];if(this[_0x46f2b9(0x14d)][_0x46f2b9(0x13a)]instanceof Date){const _0x247378=_0x5515ce[_0x46f2b9(0x140)]['getEntityValue'](_0x5788b6[0x0]);if(_0x247378[_0x46f2b9(0x150)]()!==this[_0x46f2b9(0x14d)]['lockVersion'][_0x46f2b9(0x150)]())throw new typeorm_1[(_0x46f2b9(0x15e))](_0x5515ce['name'],this[_0x46f2b9(0x14d)][_0x46f2b9(0x13a)],_0x247378);}else{const _0x14fb18=_0x5515ce['versionColumn']['getEntityValue'](_0x5788b6[0x0]);if(_0x14fb18!==this[_0x46f2b9(0x14d)][_0x46f2b9(0x13a)])throw new typeorm_1[(_0x46f2b9(0x15e))](_0x5515ce['name'],this[_0x46f2b9(0x14d)][_0x46f2b9(0x13a)],_0x14fb18);}}if(_0x5788b6[0x0]&&_0x3db1e4[0x0]){const _0x3e223e=(0x0,core_1['getClassMetadata'])(exports[_0x46f2b9(0x154)],_0x5788b6[0x0]);for(const _0x331347 in _0x3e223e){_0x3db1e4[0x0][_0x46f2b9(0x146)](_0x331347)&&(_0x5788b6[0x0][_0x331347]=_0x3db1e4[0x0][_0x331347]||((_0x271b21=_0x3e223e[_0x331347])===null||_0x271b21===void 0x0?void 0x0:_0x271b21[_0x46f2b9(0x16b)])||'');}}return _0x5788b6[0x0]||null;};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/typeorm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
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": "8e13622dd8e4e8378c03ed4e72c8417e86fd6c6f"
|
|
26
26
|
}
|