@anncic-api/typeorm 1.4.6 → 1.4.8
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_0x3c574b=a0_0x1165;(function(_0x421bf4,_0x2717cf){const _0x1679c2=a0_0x1165,_0x12e4ed=_0x421bf4();while(!![]){try{const _0x1f424e=parseInt(_0x1679c2(0x149))/0x1*(parseInt(_0x1679c2(0x150))/0x2)+parseInt(_0x1679c2(0x173))/0x3+-parseInt(_0x1679c2(0x14a))/0x4*(parseInt(_0x1679c2(0x16d))/0x5)+-parseInt(_0x1679c2(0x14f))/0x6*(-parseInt(_0x1679c2(0x178))/0x7)+parseInt(_0x1679c2(0x17f))/0x8*(parseInt(_0x1679c2(0x157))/0x9)+-parseInt(_0x1679c2(0x162))/0xa*(parseInt(_0x1679c2(0x15e))/0xb)+-parseInt(_0x1679c2(0x17c))/0xc;if(_0x1f424e===_0x2717cf)break;else _0x12e4ed['push'](_0x12e4ed['shift']());}catch(_0x4ce41a){_0x12e4ed['push'](_0x12e4ed['shift']());}}}(a0_0x40ea,0x86eec));function a0_0x40ea(){const _0x2d78c0=['770830TAkKyI','Inject','metadata','MidwayConfigService','warn','decorate','design:type','./interface','CustomConfiguration','EntityNotFoundError','__metadata','15KsmMzJ','function','object','REPOSITORY_KEY','typeorm\x20Error\x20propertyName\x20is\x20not\x20InjectRepository\x20repository','length','1837551dYfVyM','decorator','config','push','name','35XkOwOh','getClassMetadata','defineProperty','@midwayjs/typeorm','3690636jBSdGn','__decorate','./definition/Repository','34296fidlpv','typeorm','getDataSource','registerPropertyHandler','Configuration','TypeORMError','1aZXZTy','903232kVGBOQ','getEnv','TypeORMDataSourceManager','\x20is\x20not\x20ProvideRepository\x20Entify','production','995466JXwTnY','413438zFVCZC','handlercache','onReady','find','middlewareError','typeorm\x20Error\x20','getDataSourceNameByModel','414RIsHUv','getOwnPropertyDescriptor','MidwayDecoratorService','anncic-api:typeorm','getRepository','ENTIFY_KEY','useMiddleware','44YPrgRf','getAsync','prototype','body'];a0_0x40ea=function(){return _0x2d78c0;};return a0_0x40ea();}var __decorate=this&&this[a0_0x3c574b(0x17d)]||function(_0x2ba507,_0x1286a6,_0x130b62,_0x28e8ef){const _0xb2aa2d=a0_0x3c574b;var _0xc6436f=arguments[_0xb2aa2d(0x172)],_0x41cd49=_0xc6436f<0x3?_0x1286a6:_0x28e8ef===null?_0x28e8ef=Object[_0xb2aa2d(0x158)](_0x1286a6,_0x130b62):_0x28e8ef,_0x1feea6;if(typeof Reflect==='object'&&typeof Reflect[_0xb2aa2d(0x167)]===_0xb2aa2d(0x16e))_0x41cd49=Reflect[_0xb2aa2d(0x167)](_0x2ba507,_0x1286a6,_0x130b62,_0x28e8ef);else{for(var _0x9fd38f=_0x2ba507[_0xb2aa2d(0x172)]-0x1;_0x9fd38f>=0x0;_0x9fd38f--)if(_0x1feea6=_0x2ba507[_0x9fd38f])_0x41cd49=(_0xc6436f<0x3?_0x1feea6(_0x41cd49):_0xc6436f>0x3?_0x1feea6(_0x1286a6,_0x130b62,_0x41cd49):_0x1feea6(_0x1286a6,_0x130b62))||_0x41cd49;}return _0xc6436f>0x3&&_0x41cd49&&Object['defineProperty'](_0x1286a6,_0x130b62,_0x41cd49),_0x41cd49;},__metadata=this&&this[a0_0x3c574b(0x16c)]||function(_0x1e2709,_0x1b6f6e){const _0x50ec07=a0_0x3c574b;if(typeof Reflect===_0x50ec07(0x16f)&&typeof Reflect[_0x50ec07(0x164)]==='function')return Reflect['metadata'](_0x1e2709,_0x1b6f6e);};function a0_0x1165(_0x4da49e,_0x412eb0){const _0x40ea0d=a0_0x40ea();return a0_0x1165=function(_0x11657c,_0x4a97b2){_0x11657c=_0x11657c-0x149;let _0x216752=_0x40ea0d[_0x11657c];return _0x216752;},a0_0x1165(_0x4da49e,_0x412eb0);}Object[a0_0x3c574b(0x17a)](exports,'__esModule',{'value':!![]}),exports[a0_0x3c574b(0x16a)]=void 0x0;const typeorm_1=require(a0_0x3c574b(0x17b)),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),typeorm_2=require(a0_0x3c574b(0x180)),Repository_1=require(a0_0x3c574b(0x17e)),interface_1=require(a0_0x3c574b(0x169)),typeorm=require(a0_0x3c574b(0x17b));let CustomConfiguration=class CustomConfiguration{constructor(){const _0x45938b=a0_0x3c574b;this[_0x45938b(0x151)]=[];}async[a0_0x3c574b(0x152)](_0x25e118,_0x5d4b54){const _0x443fc9=a0_0x3c574b,_0xb3d949=await _0x25e118[_0x443fc9(0x15f)](typeorm_1[_0x443fc9(0x14c)]);this['decorator'][_0x443fc9(0x182)](interface_1[_0x443fc9(0x15c)],(_0x4ad245,{entity:_0x327aff,connection:_0x57e69d})=>{const _0x5b0f64=_0x443fc9;let _0x3f0ef1=this[_0x5b0f64(0x151)][_0x5b0f64(0x153)](_0x1c5402=>_0x1c5402['target']===_0x327aff);return!_0x3f0ef1&&(_0x3f0ef1=new Repository_1['Repository'](_0x5d4b54,_0x25e118,_0xb3d949['getDataSource'](_0x57e69d||_0xb3d949['getDataSourceNameByModel'](_0x327aff))[_0x5b0f64(0x15b)](_0x327aff)),this['handlercache'][_0x5b0f64(0x176)](_0x3f0ef1)),_0x3f0ef1;}),this[_0x443fc9(0x174)][_0x443fc9(0x182)](interface_1[_0x443fc9(0x170)],(_0x3386a1,{repository:_0x37c0c4,connection:_0x771083})=>{const _0x31d86c=_0x443fc9;if(!_0x37c0c4)throw new Error(_0x31d86c(0x171));const {entity:_0x5b2916}=(0x0,core_1[_0x31d86c(0x179)])(interface_1['REPOSITORY_KEY'],_0x37c0c4)||{};if(!_0x5b2916)throw new Error(_0x31d86c(0x155)+((_0x37c0c4===null||_0x37c0c4===void 0x0?void 0x0:_0x37c0c4[_0x31d86c(0x177)])||_0x37c0c4)+_0x31d86c(0x14d));let _0x194ac6=this[_0x31d86c(0x151)]['find'](_0xefb1b0=>_0xefb1b0===_0x37c0c4);return!_0x194ac6&&(_0x194ac6=new _0x37c0c4(_0x5d4b54,_0x25e118,_0xb3d949[_0x31d86c(0x181)](_0x771083||_0xb3d949[_0x31d86c(0x156)](_0x5b2916))[_0x31d86c(0x15b)](_0x5b2916)),this[_0x31d86c(0x151)][_0x31d86c(0x176)](_0x194ac6)),_0x194ac6;}),_0x5d4b54[_0x443fc9(0x15d)](this[_0x443fc9(0x154)](_0x5d4b54));}['middlewareError'](_0x272fd8){return async(_0x225fd8,_0x7681ee)=>{const _0x1f29d0=a0_0x1165;try{await _0x7681ee();}catch(_0x54afd0){if(_0x54afd0 instanceof typeorm_2[_0x1f29d0(0x184)])_0x54afd0 instanceof typeorm_2[_0x1f29d0(0x16b)]?_0x225fd8[_0x1f29d0(0x161)]={'code':0x194,'msg':'数据不存在'}:(_0x225fd8[_0x1f29d0(0x161)]={'code':0x1f4,'msg':_0x54afd0['message']},_0x272fd8[_0x1f29d0(0x14b)]()!=_0x1f29d0(0x14e)&&console[_0x1f29d0(0x166)](_0x54afd0));else throw _0x54afd0;}};}};__decorate([(0x0,core_1[a0_0x3c574b(0x163)])(),__metadata(a0_0x3c574b(0x168),core_2[a0_0x3c574b(0x165)])],CustomConfiguration[a0_0x3c574b(0x160)],a0_0x3c574b(0x175),void 0x0),__decorate([(0x0,core_1[a0_0x3c574b(0x163)])(),__metadata(a0_0x3c574b(0x168),core_2[a0_0x3c574b(0x159)])],CustomConfiguration[a0_0x3c574b(0x160)],'decorator',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x3c574b(0x183)])({'imports':[typeorm],'conflictCheck':![],'namespace':a0_0x3c574b(0x15a)})],CustomConfiguration),exports[a0_0x3c574b(0x16a)]=CustomConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a1_0x17c4(){const _0x34453d=['InjectEntity','12053871CqfSFg','314508Ytucmb','../interface','40283412SJkblJ','ENTIFY_KEY','20ujaSVq','9669275CSHqAJ','8NUqLcg','__esModule','defineProperty','18mYrKQM','9091401JQJiCB','17rbDvWq','954mAWJOu','144830VqVpcY','46025FcHNsG','default'];a1_0x17c4=function(){return _0x34453d;};return a1_0x17c4();}const a1_0x2f2933=a1_0x11a1;(function(_0x59199c,_0x49598e){const _0x3f3e81=a1_0x11a1,_0x1ed694=_0x59199c();while(!![]){try{const _0x48ba22=parseInt(_0x3f3e81(0x1b0))/0x1*(parseInt(_0x3f3e81(0x1b2))/0x2)+parseInt(_0x3f3e81(0x1ae))/0x3*(-parseInt(_0x3f3e81(0x1a5))/0x4)+parseInt(_0x3f3e81(0x1b3))/0x5*(-parseInt(_0x3f3e81(0x1b1))/0x6)+-parseInt(_0x3f3e81(0x1aa))/0x7*(parseInt(_0x3f3e81(0x1ab))/0x8)+parseInt(_0x3f3e81(0x1a4))/0x9+-parseInt(_0x3f3e81(0x1a9))/0xa*(parseInt(_0x3f3e81(0x1af))/0xb)+parseInt(_0x3f3e81(0x1a7))/0xc;if(_0x48ba22===_0x49598e)break;else _0x1ed694['push'](_0x1ed694['shift']());}catch(_0x54e89b){_0x1ed694['push'](_0x1ed694['shift']());}}}(a1_0x17c4,0xe9cdd));function a1_0x11a1(_0x348770,_0x376a57){const _0x17c47c=a1_0x17c4();return a1_0x11a1=function(_0x11a15e,_0x3fe740){_0x11a15e=_0x11a15e-0x1a3;let _0x538181=_0x17c47c[_0x11a15e];return _0x538181;},a1_0x11a1(_0x348770,_0x376a57);}Object[a1_0x2f2933(0x1ad)](exports,a1_0x2f2933(0x1ac),{'value':!![]}),exports[a1_0x2f2933(0x1a3)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a1_0x2f2933(0x1a6));function InjectEntity(_0x3b66ac,_0x447da8=a1_0x2f2933(0x1b4)){const _0x5c33cb=a1_0x2f2933;return(0x0,core_1['createCustomPropertyDecorator'])(interface_1[_0x5c33cb(0x1a8)],{'entity':_0x3b66ac,'connection':_0x447da8});}exports[a1_0x2f2933(0x1a3)]=InjectEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x2eb359=a2_0x47e5;function a2_0x53fc(){const _0x4cdf42=['3759DYvzmG','136lKNQSz','8390pmhYqH','default','../interface','2334PaEXGQ','InjectRepository','192xQQFPT','575465kwoPiC','130BbNozJ','createCustomPropertyDecorator','3350855tSqFSi','@midwayjs/core','defineProperty','391266GNCiVy','3134608WudfKV','599068VLkLDG'];a2_0x53fc=function(){return _0x4cdf42;};return a2_0x53fc();}(function(_0x25239a,_0x46f137){const _0x51a86b=a2_0x47e5,_0x3bf39b=_0x25239a();while(!![]){try{const _0x238f7b=parseInt(_0x51a86b(0x1ac))/0x1+parseInt(_0x51a86b(0x1af))/0x2*(-parseInt(_0x51a86b(0x1a3))/0x3)+-parseInt(_0x51a86b(0x1ab))/0x4+-parseInt(_0x51a86b(0x1a7))/0x5+parseInt(_0x51a86b(0x1a1))/0x6*(parseInt(_0x51a86b(0x1ad))/0x7)+parseInt(_0x51a86b(0x1ae))/0x8*(parseInt(_0x51a86b(0x1aa))/0x9)+parseInt(_0x51a86b(0x1a5))/0xa*(parseInt(_0x51a86b(0x1a4))/0xb);if(_0x238f7b===_0x46f137)break;else _0x3bf39b['push'](_0x3bf39b['shift']());}catch(_0x46ab6c){_0x3bf39b['push'](_0x3bf39b['shift']());}}}(a2_0x53fc,0x7b3eb));function a2_0x47e5(_0x4dd57e,_0x3ef542){const _0x53fc37=a2_0x53fc();return a2_0x47e5=function(_0x47e5cd,_0x464482){_0x47e5cd=_0x47e5cd-0x1a1;let _0x104056=_0x53fc37[_0x47e5cd];return _0x104056;},a2_0x47e5(_0x4dd57e,_0x3ef542);}Object[a2_0x2eb359(0x1a9)](exports,'__esModule',{'value':!![]}),exports[a2_0x2eb359(0x1a2)]=void 0x0;const core_1=require(a2_0x2eb359(0x1a8)),interface_1=require(a2_0x2eb359(0x1b1));function InjectRepository(_0x18c6d3,_0x76d100=a2_0x2eb359(0x1b0)){const _0x74c4c8=a2_0x2eb359;return(0x0,core_1[_0x74c4c8(0x1a6)])(interface_1['REPOSITORY_KEY'],{'repository':_0x18c6d3,'connection':_0x76d100});}exports[a2_0x2eb359(0x1a2)]=InjectRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x43711f=a3_0x4fde;(function(_0x5e124b,_0x1b2f5c){const _0x56065a=a3_0x4fde,_0x3dbced=_0x5e124b();while(!![]){try{const _0x52e163=parseInt(_0x56065a(0x83))/0x1*(parseInt(_0x56065a(0x85))/0x2)+-parseInt(_0x56065a(0x88))/0x3*(parseInt(_0x56065a(0x7f))/0x4)+parseInt(_0x56065a(0x8e))/0x5*(-parseInt(_0x56065a(0x7c))/0x6)+parseInt(_0x56065a(0x78))/0x7+parseInt(_0x56065a(0x7e))/0x8+-parseInt(_0x56065a(0x7d))/0x9*(parseInt(_0x56065a(0x8a))/0xa)+parseInt(_0x56065a(0x86))/0xb;if(_0x52e163===_0x1b2f5c)break;else _0x3dbced['push'](_0x3dbced['shift']());}catch(_0x55220b){_0x3dbced['push'](_0x3dbced['shift']());}}}(a3_0x76f5,0x81a3f));Object['defineProperty'](exports,a3_0x43711f(0x7a),{'value':!![]}),exports[a3_0x43711f(0x82)]=void 0x0;function a3_0x76f5(){const _0x1bb042=['saveClassMetadata','__esModule','ENTIFY_MODULE','425058yXkdxA','1233PBXzVD','7905104ZeRSPw','6044OBcKph','@midwayjs/core','tableName','ProvideEntity','1821XqYBDk','default','782rRDyxj','7029143XlttKS','saveModule','774ZqvSLB','isArray','31490Zykhhu','dataSource','name','string','70FoldMv','Entity','../interface','push','ENTIFY_MODULE_SOURCE','34286tNaFPl'];a3_0x76f5=function(){return _0x1bb042;};return a3_0x76f5();}const typeorm_1=require('typeorm'),core_1=require(a3_0x43711f(0x80)),interface_1=require(a3_0x43711f(0x90));function a3_0x4fde(_0x462bf1,_0x5b0d3a){const _0x76f55e=a3_0x76f5();return a3_0x4fde=function(_0x4fde72,_0x1850c6){_0x4fde72=_0x4fde72-0x77;let _0x38976a=_0x76f55e[_0x4fde72];return _0x38976a;},a3_0x4fde(_0x462bf1,_0x5b0d3a);}function ProvideEntity(_0x44b533,_0x643979={}){return _0x347430=>{const _0xc85cc=a3_0x4fde;_0x643979[_0xc85cc(0x8c)]=_0x44b533[_0xc85cc(0x81)];const _0x59137b=[];if(!(_0x44b533===null||_0x44b533===void 0x0?void 0x0:_0x44b533[_0xc85cc(0x8b)]))_0x59137b['push'](_0xc85cc(0x84));else{if(typeof(_0x44b533===null||_0x44b533===void 0x0?void 0x0:_0x44b533[_0xc85cc(0x8b)])==_0xc85cc(0x8d))_0x59137b['push'](_0x44b533===null||_0x44b533===void 0x0?void 0x0:_0x44b533[_0xc85cc(0x8b)]);else{if(Array[_0xc85cc(0x89)](_0x44b533===null||_0x44b533===void 0x0?void 0x0:_0x44b533[_0xc85cc(0x8b)]))for(let _0x46bf15 of _0x44b533['dataSource']||['default']){_0x59137b[_0xc85cc(0x91)](_0x46bf15);}}}(0x0,core_1[_0xc85cc(0x87)])(interface_1[_0xc85cc(0x7b)],_0x347430),(0x0,core_1[_0xc85cc(0x79)])(interface_1[_0xc85cc(0x77)],{'tableName':_0x44b533['tableName'],'dataSource':_0x59137b},_0x347430),(0x0,typeorm_1[_0xc85cc(0x8f)])(_0x44b533[_0xc85cc(0x81)],_0x643979)(_0x347430);};}exports[a3_0x43711f(0x82)]=ProvideEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a4_0x2951(_0x5eff8d,_0x3a52ba){const _0x32e6dd=a4_0x32e6();return a4_0x2951=function(_0x295166,_0x34aca1){_0x295166=_0x295166-0x170;let _0x40428c=_0x32e6dd[_0x295166];return _0x40428c;},a4_0x2951(_0x5eff8d,_0x3a52ba);}const a4_0x38f6f0=a4_0x2951;(function(_0x311e90,_0x52bc24){const _0x3478ea=a4_0x2951,_0x461095=_0x311e90();while(!![]){try{const _0x2c6a83=-parseInt(_0x3478ea(0x174))/0x1+-parseInt(_0x3478ea(0x172))/0x2*(-parseInt(_0x3478ea(0x171))/0x3)+parseInt(_0x3478ea(0x17c))/0x4+-parseInt(_0x3478ea(0x173))/0x5+parseInt(_0x3478ea(0x17e))/0x6*(parseInt(_0x3478ea(0x179))/0x7)+-parseInt(_0x3478ea(0x17d))/0x8*(-parseInt(_0x3478ea(0x170))/0x9)+-parseInt(_0x3478ea(0x176))/0xa*(parseInt(_0x3478ea(0x17a))/0xb);if(_0x2c6a83===_0x52bc24)break;else _0x461095['push'](_0x461095['shift']());}catch(_0x8da8df){_0x461095['push'](_0x461095['shift']());}}}(a4_0x32e6,0x3fde6));function a4_0x32e6(){const _0x1f3bb1=['54DWXjjz','__esModule','ProvideRepository','REPOSITORY_KEY','1470681KxgvcB','3tpRyZZ','1024478LVKBgw','90815aJaGkU','429507WEuUVZ','Provide','176070brBnmh','saveClassMetadata','Request','42518DjQRth','165UuWOrX','Scope','972268dHuihZ','8wUmwjj'];a4_0x32e6=function(){return _0x1f3bb1;};return a4_0x32e6();}Object['defineProperty'](exports,a4_0x38f6f0(0x17f),{'value':!![]}),exports[a4_0x38f6f0(0x180)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require('../interface');function ProvideRepository(_0x2e4893){return _0x3bc622=>{const _0x1b5e74=a4_0x2951;(0x0,core_1[_0x1b5e74(0x17b)])(core_1['ScopeEnum'][_0x1b5e74(0x178)],{'allowDowngrade':!![]})(_0x3bc622),((0x0,core_1[_0x1b5e74(0x175)])()(_0x3bc622),(0x0,core_1[_0x1b5e74(0x177)])(interface_1[_0x1b5e74(0x181)],{'entity':_0x2e4893},_0x3bc622));};}exports[a4_0x38f6f0(0x180)]=ProvideRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a5_0x10680f=a5_0x174c;(function(_0x5d4b1a,_0x338f23){const _0x124c9a=a5_0x174c,_0x338853=_0x5d4b1a();while(!![]){try{const _0x8ac09a=parseInt(_0x124c9a(0x1e4))/0x1+parseInt(_0x124c9a(0x1e3))/0x2+-parseInt(_0x124c9a(0x1e7))/0x3*(-parseInt(_0x124c9a(0x1e6))/0x4)+parseInt(_0x124c9a(0x1e8))/0x5*(-parseInt(_0x124c9a(0x1f1))/0x6)+parseInt(_0x124c9a(0x1ee))/0x7+-parseInt(_0x124c9a(0x1f0))/0x8+-parseInt(_0x124c9a(0x1f3))/0x9;if(_0x8ac09a===_0x338f23)break;else _0x338853['push'](_0x338853['shift']());}catch(_0x362342){_0x338853['push'](_0x338853['shift']());}}}(a5_0x3642,0xe084b));function a5_0x3642(){const _0xe6d792=['912967ShYrlk','MODEL_KEY','1856NdgBJH','7869gGDkpT','1905FgGCJT','../interface','Search','defineProperty','ProvideSearch','Scope','3891111femnQT','@midwayjs/core','2840072cNhGdp','22242MKqkNU','SearchScope','4412475tHqrtC','MODEL_SEARCH_KEY','attachClassMetadata','982732hHUdCs'];a5_0x3642=function(){return _0xe6d792;};return a5_0x3642();}Object[a5_0x10680f(0x1eb)](exports,'__esModule',{'value':!![]}),exports[a5_0x10680f(0x1f2)]=exports[a5_0x10680f(0x1ea)]=exports[a5_0x10680f(0x1ec)]=void 0x0;const core_1=require(a5_0x10680f(0x1ef)),interface_1=require(a5_0x10680f(0x1e9));function ProvideSearch(_0x2caeda){return _0x3f5980=>{const _0x13e3eb=a5_0x174c;(0x0,core_1['saveModule'])(interface_1['MODEL_KEY'],_0x3f5980),(0x0,core_1[_0x13e3eb(0x1ed)])(core_1['ScopeEnum']['Singleton'])(_0x3f5980),(0x0,core_1[_0x13e3eb(0x1e2)])(interface_1[_0x13e3eb(0x1e5)],_0x2caeda,_0x3f5980);};}exports[a5_0x10680f(0x1ec)]=ProvideSearch;function Search(_0x3fa1e,_0x162974){return(_0x3e48fd,_0x23eab1,_0x310a3f)=>{const _0x22fed7=a5_0x174c;(0x0,core_1[_0x22fed7(0x1e2)])(interface_1[_0x22fed7(0x1e1)],{'field':_0x3fa1e,'comment':_0x162974,'target':_0x3e48fd,'methodName':_0x23eab1,'descriptor':_0x310a3f},_0x3e48fd);};}exports[a5_0x10680f(0x1ea)]=Search;function SearchScope(_0x29b916,_0x5d2ed9){return(_0x4e84c6,_0x172067,_0x295eae)=>{const _0x136086=a5_0x174c;(0x0,core_1[_0x136086(0x1e2)])(interface_1['MODEL_SEARCH_SCOPE_KEY'],{'scope':_0x29b916,'comment':_0x5d2ed9,'target':_0x4e84c6,'methodName':_0x172067,'descriptor':_0x295eae},_0x4e84c6);};}function a5_0x174c(_0x36888f,_0x356cbb){const _0x3642b0=a5_0x3642();return a5_0x174c=function(_0x174c5e,_0x19841c){_0x174c5e=_0x174c5e-0x1e1;let _0x54a1ab=_0x3642b0[_0x174c5e];return _0x54a1ab;},a5_0x174c(_0x36888f,_0x356cbb);}exports[a5_0x10680f(0x1f2)]=SearchScope;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a6_0x1f49ef=a6_0x9f0e;function a6_0x9f0e(_0x2a2d93,_0x4d60cc){const _0x156166=a6_0x1561();return a6_0x9f0e=function(_0x9f0e34,_0x151d3a){_0x9f0e34=_0x9f0e34-0xa1;let _0x31d869=_0x156166[_0x9f0e34];return _0x31d869;},a6_0x9f0e(_0x2a2d93,_0x4d60cc);}(function(_0x4d9ba8,_0x140d5b){const _0x2325f5=a6_0x9f0e,_0x3c4a71=_0x4d9ba8();while(!![]){try{const _0x414285=parseInt(_0x2325f5(0xa4))/0x1*(parseInt(_0x2325f5(0xa6))/0x2)+-parseInt(_0x2325f5(0xa7))/0x3+-parseInt(_0x2325f5(0xb0))/0x4+-parseInt(_0x2325f5(0xae))/0x5+-parseInt(_0x2325f5(0xa9))/0x6*(-parseInt(_0x2325f5(0xa3))/0x7)+parseInt(_0x2325f5(0xac))/0x8+parseInt(_0x2325f5(0xa5))/0x9;if(_0x414285===_0x140d5b)break;else _0x3c4a71['push'](_0x3c4a71['shift']());}catch(_0x5cc15b){_0x3c4a71['push'](_0x3c4a71['shift']());}}}(a6_0x1561,0x7232d));Object[a6_0x1f49ef(0xa1)](exports,a6_0x1f49ef(0xaa),{'value':!![]}),exports[a6_0x1f49ef(0xaf)]=void 0x0;const core_1=require(a6_0x1f49ef(0xab)),interface_1=require(a6_0x1f49ef(0xa8));function VirtualColumn(_0x6ec36e,_0x5dcf6e){return(_0x2518f2,_0x2a691f)=>{const _0x5d1db0=a6_0x9f0e,_0x482963=(0x0,core_1[_0x5d1db0(0xad)])(interface_1[_0x5d1db0(0xa2)],_0x2518f2)||{};_0x482963[_0x2a691f]={'comment':_0x6ec36e,..._0x5dcf6e},(0x0,core_1['saveClassMetadata'])(interface_1[_0x5d1db0(0xa2)],_0x482963,_0x2518f2);};}exports[a6_0x1f49ef(0xaf)]=VirtualColumn;function a6_0x1561(){const _0x1f8b5b=['defineProperty','ENTITY_VIRTUAL_COLUMN_KEY','8785hkfFPB','14347lumOJY','1109160xboPXe','58yvLyZb','1137849IhPxjB','../interface','1956QmhjcA','__esModule','@midwayjs/core','6776640yyXABr','getClassMetadata','1694775jEjSRc','VirtualColumn','2438072IIdhZc'];a6_0x1561=function(){return _0x1f8b5b;};return a6_0x1561();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a7_0x2c4411=a7_0x13b6;(function(_0x232d78,_0x301b27){const _0x35ebb6=a7_0x13b6,_0x3b4868=_0x232d78();while(!![]){try{const _0x42e051=-parseInt(_0x35ebb6(0x190))/0x1*(parseInt(_0x35ebb6(0x17e))/0x2)+-parseInt(_0x35ebb6(0x151))/0x3+-parseInt(_0x35ebb6(0x17c))/0x4*(parseInt(_0x35ebb6(0x143))/0x5)+-parseInt(_0x35ebb6(0x180))/0x6+-parseInt(_0x35ebb6(0x16e))/0x7+-parseInt(_0x35ebb6(0x184))/0x8+parseInt(_0x35ebb6(0x18b))/0x9;if(_0x42e051===_0x301b27)break;else _0x3b4868['push'](_0x3b4868['shift']());}catch(_0x98fff2){_0x3b4868['push'](_0x3b4868['shift']());}}}(a7_0x51bc,0x8693a));Object[a7_0x2c4411(0x178)](exports,a7_0x2c4411(0x160),{'value':!![]}),exports[a7_0x2c4411(0x15f)]=void 0x0;const core_1=require(a7_0x2c4411(0x146)),typeorm_1=require(a7_0x2c4411(0x155)),interface_1=require(a7_0x2c4411(0x158));class Repository extends typeorm_1[a7_0x2c4411(0x15f)]{constructor(_0x53e890,_0x48d53a,_0x30f056){const _0x167a2b=a7_0x2c4411;super(_0x30f056[_0x167a2b(0x157)],_0x30f056[_0x167a2b(0x17a)],_0x30f056[_0x167a2b(0x14d)]),this[_0x167a2b(0x140)]=[];for(const _0x1f4de3 of(0x0,core_1[_0x167a2b(0x185)])(interface_1[_0x167a2b(0x162)],this[_0x167a2b(0x157)])||[]){const _0x5e71bf={'model':_0x1f4de3,'searchs':[],'searchScopes':[]};for(const _0x28f199 of(0x0,core_1[_0x167a2b(0x185)])(interface_1['MODEL_SEARCH_KEY'],_0x1f4de3)||[]){_0x5e71bf[_0x167a2b(0x14f)][_0x167a2b(0x18d)](_0x28f199);}for(const _0x3b20c1 of(0x0,core_1[_0x167a2b(0x185)])(interface_1[_0x167a2b(0x148)],_0x1f4de3)||[]){_0x5e71bf[_0x167a2b(0x169)]['push'](_0x3b20c1);}this[_0x167a2b(0x140)][_0x167a2b(0x18d)](_0x5e71bf);}this[_0x167a2b(0x179)]=_0x53e890,this[_0x167a2b(0x189)]=_0x48d53a;}async[a7_0x2c4411(0x163)](_0x290993,_0x39e37e,_0x21a388={}){const _0x2ce51e=a7_0x2c4411;var _0x4e8ff8,_0x3ece25,_0x48f0e9,_0xe8bea3,_0x45017a,_0x545884;const _0x5f080b=this['createQueryBuilder'](undefined,_0x21a388===null||_0x21a388===void 0x0?void 0x0:_0x21a388[_0x2ce51e(0x14d)]),_0x5af986=[];for(const _0x5501a4 of this[_0x2ce51e(0x140)]){if(_0x5501a4===null||_0x5501a4===void 0x0?void 0x0:_0x5501a4[_0x2ce51e(0x187)]){const _0xdf9b59=await this[_0x2ce51e(0x179)]['getApplicationContext']()[_0x2ce51e(0x16d)](_0x5501a4[_0x2ce51e(0x187)]);if(_0xdf9b59){typeof _0xdf9b59[_0x2ce51e(0x191)]==_0x2ce51e(0x153)&&await _0xdf9b59['__initialize'][_0x2ce51e(0x161)](_0xdf9b59)(_0x5f080b,_0x290993,{'app':this[_0x2ce51e(0x179)],'container':this['container'],'paginate':_0x39e37e,'queryRunner':_0x21a388===null||_0x21a388===void 0x0?void 0x0:_0x21a388[_0x2ce51e(0x14d)]});if(_0x21a388===null||_0x21a388===void 0x0?void 0x0:_0x21a388[_0x2ce51e(0x15c)]){const _0x58d0d4=Array[_0x2ce51e(0x159)](_0x21a388[_0x2ce51e(0x15c)])?_0x21a388[_0x2ce51e(0x15c)]:[_0x21a388[_0x2ce51e(0x15c)]];for(const _0x4805a4 of(_0x5501a4===null||_0x5501a4===void 0x0?void 0x0:_0x5501a4[_0x2ce51e(0x169)])||[]){(_0x4805a4===null||_0x4805a4===void 0x0?void 0x0:_0x4805a4['scope'])&&_0x58d0d4['indexOf'](_0x4805a4['scope'])!=-0x1&&(_0x4805a4===null||_0x4805a4===void 0x0?void 0x0:_0x4805a4[_0x2ce51e(0x166)])&&typeof _0xdf9b59[_0x4805a4[_0x2ce51e(0x166)]]==_0x2ce51e(0x153)&&await _0xdf9b59[_0x4805a4[_0x2ce51e(0x166)]]['bind'](_0xdf9b59)(_0x5f080b,_0x290993,{'app':this[_0x2ce51e(0x179)],'container':this[_0x2ce51e(0x189)],'paginate':_0x39e37e,'queryRunner':_0x21a388===null||_0x21a388===void 0x0?void 0x0:_0x21a388[_0x2ce51e(0x14d)]});}}if(_0x290993)for(const _0x52aef3 of(_0x5501a4===null||_0x5501a4===void 0x0?void 0x0:_0x5501a4[_0x2ce51e(0x14f)])||[]){(_0x52aef3===null||_0x52aef3===void 0x0?void 0x0:_0x52aef3['field'])&&(_0x52aef3===null||_0x52aef3===void 0x0?void 0x0:_0x52aef3['methodName'])&&typeof _0xdf9b59[_0x52aef3['methodName']]==_0x2ce51e(0x153)&&(typeof(_0x290993===null||_0x290993===void 0x0?void 0x0:_0x290993[_0x52aef3[_0x2ce51e(0x14a)]])!=_0x2ce51e(0x142)&&!((_0x4e8ff8=_0x290993===null||_0x290993===void 0x0?void 0x0:_0x290993[_0x52aef3[_0x2ce51e(0x14a)]])===null||_0x4e8ff8===void 0x0?void 0x0:_0x4e8ff8[_0x2ce51e(0x141)](_0x2ce51e(0x188)))&&(_0x5af986[_0x2ce51e(0x16c)](_0x52aef3['field'])==-0x1&&_0x5af986[_0x2ce51e(0x18d)](_0x52aef3['field']),await _0xdf9b59[_0x52aef3[_0x2ce51e(0x166)]][_0x2ce51e(0x161)](_0xdf9b59)(_0x5f080b,_0x290993[_0x52aef3[_0x2ce51e(0x14a)]],_0x290993,{'app':this[_0x2ce51e(0x179)],'container':this[_0x2ce51e(0x189)],'paginate':_0x39e37e,'queryRunner':_0x21a388===null||_0x21a388===void 0x0?void 0x0:_0x21a388[_0x2ce51e(0x14d)]})));}}}}for(const _0x1ed524 in _0x290993){if(typeof _0x290993[_0x1ed524]==_0x2ce51e(0x142))continue;if(_0x5af986[_0x2ce51e(0x16c)](_0x1ed524)!=-0x1)continue;const _0x44b1b8=this['metadata']['findColumnWithPropertyName'](_0x1ed524);if(!_0x44b1b8)continue;if((_0x3ece25=_0x290993===null||_0x290993===void 0x0?void 0x0:_0x290993[_0x1ed524])===null||_0x3ece25===void 0x0?void 0x0:_0x3ece25['hasOwnProperty'](_0x2ce51e(0x188))){const _0x45c46b=(_0x48f0e9=_0x290993[_0x1ed524])===null||_0x48f0e9===void 0x0?void 0x0:_0x48f0e9[_0x2ce51e(0x16b)],_0x1e810b=(_0xe8bea3=_0x290993[_0x1ed524])===null||_0xe8bea3===void 0x0?void 0x0:_0xe8bea3['operator'][_0x2ce51e(0x172)]()[_0x2ce51e(0x18f)](),_0xa41af1=_0x2ce51e(0x150)+_0x1ed524+'_'+Math[_0x2ce51e(0x181)](Math['random']()*0xa)+Math[_0x2ce51e(0x181)](Math[_0x2ce51e(0x182)]()*0xa)+Math['ceil'](Math[_0x2ce51e(0x182)]()*0xa)+Math['ceil'](Math[_0x2ce51e(0x182)]()*0xa);if(['=','!=','<>','>','>=','<','<=',_0x2ce51e(0x17b),_0x2ce51e(0x177)]['indexOf'](_0x1e810b)!=-0x1)typeof _0x45c46b!=_0x2ce51e(0x142)&&_0x5f080b['andWhere'](_0x5f080b[_0x2ce51e(0x17f)]+'.'+_0x1ed524+'\x20'+_0x1e810b+'\x20:'+_0xa41af1,{[_0xa41af1]:_0x45c46b});else{if(['IN',_0x2ce51e(0x15d)]['indexOf'](_0x1e810b)!=-0x1){if(typeof _0x45c46b!=_0x2ce51e(0x142)){const _0x263e7a=Array[_0x2ce51e(0x159)](_0x45c46b)?_0x45c46b:typeof _0x45c46b=='string'?_0x45c46b[_0x2ce51e(0x18a)](','):[_0x45c46b];_0x263e7a[_0x2ce51e(0x193)]==0x0?_0x5f080b[_0x2ce51e(0x154)](_0x2ce51e(0x144)):_0x5f080b['andWhere'](_0x5f080b[_0x2ce51e(0x17f)]+'.'+_0x1ed524+'\x20'+_0x1e810b+_0x2ce51e(0x14c)+_0xa41af1+')',{[_0xa41af1]:_0x263e7a});}}else{if([_0x2ce51e(0x14b),_0x2ce51e(0x165)][_0x2ce51e(0x16c)](_0x1e810b)!=-0x1)typeof _0x45c46b!='undefined'&&_0x5f080b[_0x2ce51e(0x154)](_0x1e810b+'(:'+_0xa41af1+','+_0x5f080b['alias']+'.'+_0x1ed524+')',{[_0xa41af1]:_0x45c46b});else{if([_0x2ce51e(0x18e),_0x2ce51e(0x171)][_0x2ce51e(0x16c)](_0x1e810b)!=-0x1){if(typeof _0x45c46b!=_0x2ce51e(0x142)){const _0x2413b8=Array[_0x2ce51e(0x159)](_0x45c46b)?_0x45c46b:typeof _0x45c46b==_0x2ce51e(0x15b)?_0x45c46b[_0x2ce51e(0x18a)](','):[_0x45c46b];_0x2413b8['length']>0x1&&_0x5f080b[_0x2ce51e(0x154)](_0x5f080b[_0x2ce51e(0x17f)]+'.'+_0x1ed524+'\x20'+_0x1e810b+'\x20:'+_0xa41af1+'\x20AND\x20:'+_0xa41af1+'_2',{[''+_0xa41af1]:_0x2413b8[0x0],[_0xa41af1+'_2']:_0x2413b8[0x1]});}}else[_0x2ce51e(0x14e),_0x2ce51e(0x192)][_0x2ce51e(0x16c)](_0x1e810b)!=-0x1&&_0x5f080b['andWhere'](_0x1e810b+'('+_0x5f080b[_0x2ce51e(0x17f)]+'.'+_0x1ed524+')');}}}}else{const _0x1a3310=((_0x545884=typeof _0x44b1b8['type']=='function'?(_0x45017a=_0x44b1b8===null||_0x44b1b8===void 0x0?void 0x0:_0x44b1b8[_0x2ce51e(0x174)])===null||_0x45017a===void 0x0?void 0x0:_0x45017a[_0x2ce51e(0x15e)]:_0x44b1b8[_0x2ce51e(0x174)][_0x2ce51e(0x173)]())===null||_0x545884===void 0x0?void 0x0:_0x545884[_0x2ce51e(0x170)]())||undefined;if(_0x1a3310){if(Array[_0x2ce51e(0x159)](_0x290993[_0x1ed524]))_0x290993[_0x1ed524][_0x2ce51e(0x193)]==0x0?_0x5f080b[_0x2ce51e(0x154)](_0x2ce51e(0x144)):_0x5f080b[_0x2ce51e(0x154)](_0x5f080b[_0x2ce51e(0x17f)]+'.'+_0x1ed524+_0x2ce51e(0x16a)+_0x1ed524+')',{['_auto_'+_0x1ed524]:_0x290993[_0x1ed524]});else _0x1a3310=='string'?_0x5f080b[_0x2ce51e(0x154)](_0x5f080b[_0x2ce51e(0x17f)]+'.'+_0x1ed524+_0x2ce51e(0x13f)+_0x1ed524,{['_auto_'+_0x1ed524]:'%'+_0x290993[_0x1ed524]+'%'}):_0x5f080b[_0x2ce51e(0x154)](_0x5f080b['alias']+'.'+_0x1ed524+'\x20=\x20:_auto_'+_0x1ed524,{[_0x2ce51e(0x150)+_0x1ed524]:_0x290993[_0x1ed524]});}}}(_0x39e37e===null||_0x39e37e===void 0x0?void 0x0:_0x39e37e['_size'])&&_0x5f080b[_0x2ce51e(0x17d)](Math['abs'](_0x39e37e[_0x2ce51e(0x183)]));(_0x39e37e===null||_0x39e37e===void 0x0?void 0x0:_0x39e37e[_0x2ce51e(0x145)])&&(_0x39e37e===null||_0x39e37e===void 0x0?void 0x0:_0x39e37e[_0x2ce51e(0x183)])&&_0x5f080b[_0x2ce51e(0x168)]((Math[_0x2ce51e(0x15a)](_0x39e37e[_0x2ce51e(0x145)])-0x1)*Math[_0x2ce51e(0x15a)](_0x39e37e['_size']));if(_0x39e37e===null||_0x39e37e===void 0x0?void 0x0:_0x39e37e[_0x2ce51e(0x16f)]){if(_0x39e37e[_0x2ce51e(0x16f)][_0x2ce51e(0x16c)]('.')!==-0x1)_0x5f080b[_0x2ce51e(0x147)](''+_0x39e37e[_0x2ce51e(0x16f)],(_0x39e37e===null||_0x39e37e===void 0x0?void 0x0:_0x39e37e[_0x2ce51e(0x175)])?_0x2ce51e(0x186):'DESC');else _0x5af986['indexOf'](_0x39e37e[_0x2ce51e(0x16f)])==-0x1&&(this['metadata'][_0x2ce51e(0x156)](_0x39e37e[_0x2ce51e(0x16f)])?_0x5f080b['orderBy'](_0x5f080b['alias']+'.'+_0x39e37e[_0x2ce51e(0x16f)],(_0x39e37e===null||_0x39e37e===void 0x0?void 0x0:_0x39e37e[_0x2ce51e(0x175)])?_0x2ce51e(0x186):_0x2ce51e(0x18c)):_0x5f080b[_0x2ce51e(0x147)](''+_0x39e37e[_0x2ce51e(0x16f)],(_0x39e37e===null||_0x39e37e===void 0x0?void 0x0:_0x39e37e[_0x2ce51e(0x175)])?_0x2ce51e(0x186):_0x2ce51e(0x18c)));}return typeof(_0x21a388===null||_0x21a388===void 0x0?void 0x0:_0x21a388[_0x2ce51e(0x164)])==_0x2ce51e(0x153)&&await(_0x21a388===null||_0x21a388===void 0x0?void 0x0:_0x21a388[_0x2ce51e(0x164)](_0x5f080b)),_0x5f080b;}async['mergeSave'](_0x595b51,..._0x455841){const _0x1a4fa1=a7_0x2c4411,_0x49d08c=this['merge'](_0x595b51,..._0x455841);return await this[_0x1a4fa1(0x152)](_0x49d08c);}async['createSave'](_0x4c8dbb,..._0x392c4e){const _0x5f44bc=a7_0x2c4411,_0x79f050=this[_0x5f44bc(0x149)](this[_0x5f44bc(0x176)](_0x4c8dbb),..._0x392c4e);return await this[_0x5f44bc(0x152)](_0x79f050);}async['transaction'](_0xeeb97,_0x520c14){const _0x2cf857=a7_0x2c4411;return this[_0x2cf857(0x17a)][_0x2cf857(0x167)](_0xeeb97,_0x520c14);}}function a7_0x51bc(){const _0x20d167=['skip','searchScopes','\x20IN(:..._auto_','condition','indexOf','getAsync','6140239CUrYmK','_order','toLowerCase','NOT\x20BETWEEN','trim','toString','type','_isreverse','create','NOT\x20LIKE','defineProperty','app','manager','LIKE','4bYdgis','take','144xaIxud','alias','1752180yDrdAY','ceil','random','_size','3025952dbpzfY','getClassMetadata','ASC','model','operator','container','split','35880435NlWKCH','DESC','push','BETWEEN','toUpperCase','8297PGORwT','__initialize','NOT\x20ISNULL','length','\x20like\x20:_auto_','modelSearchs','hasOwnProperty','undefined','4603670PoiVnh','1\x20=\x202','_page','@midwayjs/core','orderBy','MODEL_SEARCH_SCOPE_KEY','merge','field','FIND\x20IN\x20SET','(:...','queryRunner','ISNULL','searchs','_auto_','1109760xtEGpR','save','function','andWhere','typeorm','findColumnWithPropertyName','target','../interface','isArray','abs','string','scope','NOT\x20IN','name','Repository','__esModule','bind','MODEL_KEY','search','excess','NOT\x20FIND\x20IN\x20SET','methodName','transaction'];a7_0x51bc=function(){return _0x20d167;};return a7_0x51bc();}function a7_0x13b6(_0x4f59f6,_0x6efe0e){const _0x51bc29=a7_0x51bc();return a7_0x13b6=function(_0x13b62d,_0x24e88c){_0x13b62d=_0x13b62d-0x13f;let _0x461c39=_0x51bc29[_0x13b62d];return _0x461c39;},a7_0x13b6(_0x4f59f6,_0x6efe0e);}exports[a7_0x2c4411(0x15f)]=Repository;
|
|
1
|
+
'use strict';const a7_0x191cc5=a7_0x5343;(function(_0x43f90c,_0x5c047d){const _0x161102=a7_0x5343,_0x466c61=_0x43f90c();while(!![]){try{const _0xb3d5a9=-parseInt(_0x161102(0x171))/0x1*(-parseInt(_0x161102(0x139))/0x2)+-parseInt(_0x161102(0x13d))/0x3+parseInt(_0x161102(0x12f))/0x4+-parseInt(_0x161102(0x13e))/0x5*(parseInt(_0x161102(0x15e))/0x6)+-parseInt(_0x161102(0x131))/0x7*(-parseInt(_0x161102(0x169))/0x8)+-parseInt(_0x161102(0x130))/0x9+parseInt(_0x161102(0x155))/0xa*(parseInt(_0x161102(0x14d))/0xb);if(_0xb3d5a9===_0x5c047d)break;else _0x466c61['push'](_0x466c61['shift']());}catch(_0xe1972){_0x466c61['push'](_0x466c61['shift']());}}}(a7_0x5bd5,0xe8bf0));function a7_0x5343(_0x37785b,_0x17d1b7){const _0x5bd59e=a7_0x5bd5();return a7_0x5343=function(_0x5343c6,_0x383e5c){_0x5343c6=_0x5343c6-0x120;let _0x4e65f5=_0x5bd59e[_0x5343c6];return _0x4e65f5;},a7_0x5343(_0x37785b,_0x17d1b7);}Object[a7_0x191cc5(0x151)](exports,a7_0x191cc5(0x153),{'value':!![]}),exports['Repository']=void 0x0;const core_1=require(a7_0x191cc5(0x12e)),typeorm_1=require(a7_0x191cc5(0x121)),interface_1=require('../interface');class Repository extends typeorm_1[a7_0x191cc5(0x16f)]{constructor(_0x40a930,_0x98da2d,_0x40b707){const _0x26e9cf=a7_0x191cc5;super(_0x40b707['target'],_0x40b707['manager'],_0x40b707[_0x26e9cf(0x175)]),this['modelSearchs']=[];for(const _0x4760cb of(0x0,core_1[_0x26e9cf(0x13f)])(interface_1[_0x26e9cf(0x16b)],this[_0x26e9cf(0x140)])||[]){const _0x412941={'model':_0x4760cb,'searchs':[],'searchScopes':[]};for(const _0x57721f of(0x0,core_1[_0x26e9cf(0x13f)])(interface_1[_0x26e9cf(0x164)],_0x4760cb)||[]){_0x412941[_0x26e9cf(0x172)][_0x26e9cf(0x165)](_0x57721f);}for(const _0x480c7e of(0x0,core_1[_0x26e9cf(0x13f)])(interface_1[_0x26e9cf(0x167)],_0x4760cb)||[]){_0x412941[_0x26e9cf(0x160)][_0x26e9cf(0x165)](_0x480c7e);}this['modelSearchs'][_0x26e9cf(0x165)](_0x412941);}this[_0x26e9cf(0x176)]=_0x40a930,this[_0x26e9cf(0x120)]=_0x98da2d;}async[a7_0x191cc5(0x14f)](_0x313368,_0x142dd4,_0x9f38c1={}){const _0x10efce=a7_0x191cc5;var _0xf8db44,_0xfd47d9,_0xc3e1f8,_0x300152,_0x1d6c0d,_0x51eb63;const _0x4fa202=this[_0x10efce(0x12a)](undefined,_0x9f38c1===null||_0x9f38c1===void 0x0?void 0x0:_0x9f38c1['queryRunner']),_0x4cf89a=[];for(const _0x4d0af9 of this[_0x10efce(0x12b)]){if(_0x4d0af9===null||_0x4d0af9===void 0x0?void 0x0:_0x4d0af9[_0x10efce(0x14e)]){const _0x1c7ce0=await this['app'][_0x10efce(0x126)]()[_0x10efce(0x134)](_0x4d0af9['model']);if(_0x1c7ce0){typeof _0x1c7ce0[_0x10efce(0x16a)]=='function'&&await _0x1c7ce0['__initialize'][_0x10efce(0x162)](_0x1c7ce0)(_0x4fa202,_0x313368,{'app':this[_0x10efce(0x176)],'container':this['container'],'paginate':_0x142dd4,'queryRunner':_0x9f38c1===null||_0x9f38c1===void 0x0?void 0x0:_0x9f38c1['queryRunner']});if(_0x9f38c1===null||_0x9f38c1===void 0x0?void 0x0:_0x9f38c1[_0x10efce(0x133)]){const _0x3eae87=Array['isArray'](_0x9f38c1[_0x10efce(0x133)])?_0x9f38c1['scope']:[_0x9f38c1[_0x10efce(0x133)]];for(const _0x1134b1 of(_0x4d0af9===null||_0x4d0af9===void 0x0?void 0x0:_0x4d0af9[_0x10efce(0x160)])||[]){(_0x1134b1===null||_0x1134b1===void 0x0?void 0x0:_0x1134b1[_0x10efce(0x133)])&&_0x3eae87[_0x10efce(0x143)](_0x1134b1[_0x10efce(0x133)])!=-0x1&&(_0x1134b1===null||_0x1134b1===void 0x0?void 0x0:_0x1134b1[_0x10efce(0x142)])&&typeof _0x1c7ce0[_0x1134b1[_0x10efce(0x142)]]==_0x10efce(0x123)&&await _0x1c7ce0[_0x1134b1[_0x10efce(0x142)]][_0x10efce(0x162)](_0x1c7ce0)(_0x4fa202,_0x313368,{'app':this[_0x10efce(0x176)],'container':this[_0x10efce(0x120)],'paginate':_0x142dd4,'queryRunner':_0x9f38c1===null||_0x9f38c1===void 0x0?void 0x0:_0x9f38c1[_0x10efce(0x175)]});}}if(_0x313368)for(const _0x540970 of(_0x4d0af9===null||_0x4d0af9===void 0x0?void 0x0:_0x4d0af9[_0x10efce(0x172)])||[]){(_0x540970===null||_0x540970===void 0x0?void 0x0:_0x540970[_0x10efce(0x14a)])&&(_0x540970===null||_0x540970===void 0x0?void 0x0:_0x540970[_0x10efce(0x142)])&&typeof _0x1c7ce0[_0x540970['methodName']]=='function'&&(typeof(_0x313368===null||_0x313368===void 0x0?void 0x0:_0x313368[_0x540970['field']])!=_0x10efce(0x173)&&!((_0xf8db44=_0x313368===null||_0x313368===void 0x0?void 0x0:_0x313368[_0x540970[_0x10efce(0x14a)]])===null||_0xf8db44===void 0x0?void 0x0:_0xf8db44[_0x10efce(0x150)](_0x10efce(0x16d)))&&(_0x4cf89a[_0x10efce(0x143)](_0x540970[_0x10efce(0x14a)])==-0x1&&_0x4cf89a['push'](_0x540970[_0x10efce(0x14a)]),await _0x1c7ce0[_0x540970['methodName']][_0x10efce(0x162)](_0x1c7ce0)(_0x4fa202,_0x313368[_0x540970[_0x10efce(0x14a)]],_0x313368,{'app':this['app'],'container':this[_0x10efce(0x120)],'paginate':_0x142dd4,'queryRunner':_0x9f38c1===null||_0x9f38c1===void 0x0?void 0x0:_0x9f38c1[_0x10efce(0x175)]})));}}}}for(const _0x5c3214 in _0x313368){if(typeof _0x313368[_0x5c3214]==_0x10efce(0x173))continue;if(_0x4cf89a[_0x10efce(0x143)](_0x5c3214)!=-0x1)continue;const _0x27c657=this[_0x10efce(0x16c)][_0x10efce(0x124)](_0x5c3214);if(!_0x27c657)continue;if((_0xfd47d9=_0x313368===null||_0x313368===void 0x0?void 0x0:_0x313368[_0x5c3214])===null||_0xfd47d9===void 0x0?void 0x0:_0xfd47d9[_0x10efce(0x150)](_0x10efce(0x16d))){const _0x52c20b=(_0xc3e1f8=_0x313368[_0x5c3214])===null||_0xc3e1f8===void 0x0?void 0x0:_0xc3e1f8[_0x10efce(0x152)],_0x245549=(_0x300152=_0x313368[_0x5c3214])===null||_0x300152===void 0x0?void 0x0:_0x300152[_0x10efce(0x16d)][_0x10efce(0x15a)]()[_0x10efce(0x15c)](),_0x34e588='_auto_'+_0x5c3214+'_'+Math[_0x10efce(0x15f)](Math[_0x10efce(0x137)]()*0xa)+Math[_0x10efce(0x15f)](Math['random']()*0xa)+Math[_0x10efce(0x15f)](Math[_0x10efce(0x137)]()*0xa)+Math[_0x10efce(0x15f)](Math[_0x10efce(0x137)]()*0xa);if(['=','!=','<>','>','>=','<','<=',_0x10efce(0x144),_0x10efce(0x14b)]['indexOf'](_0x245549)!=-0x1)typeof _0x52c20b!='undefined'&&_0x4fa202[_0x10efce(0x138)](_0x4fa202[_0x10efce(0x129)]+'.'+_0x5c3214+'\x20'+_0x245549+'\x20:'+_0x34e588,{[_0x34e588]:_0x52c20b});else{if(['IN','NOT\x20IN'][_0x10efce(0x143)](_0x245549)!=-0x1){if(typeof _0x52c20b!=_0x10efce(0x173)){const _0x28df10=Array['isArray'](_0x52c20b)?_0x52c20b:typeof _0x52c20b==_0x10efce(0x13b)?_0x52c20b[_0x10efce(0x15d)](','):[_0x52c20b];_0x28df10['length']==0x0?_0x4fa202['andWhere'](_0x10efce(0x170)):_0x4fa202[_0x10efce(0x138)](_0x4fa202[_0x10efce(0x129)]+'.'+_0x5c3214+'\x20'+_0x245549+_0x10efce(0x13a)+_0x34e588+')',{[_0x34e588]:_0x28df10});}}else{if([_0x10efce(0x163),'NOT\x20FIND\x20IN\x20SET'][_0x10efce(0x143)](_0x245549)!=-0x1)typeof _0x52c20b!=_0x10efce(0x173)&&_0x4fa202['andWhere'](_0x245549+'(:'+_0x34e588+','+_0x4fa202[_0x10efce(0x129)]+'.'+_0x5c3214+')',{[_0x34e588]:_0x52c20b});else{if([_0x10efce(0x12c),'NOT\x20BETWEEN'][_0x10efce(0x143)](_0x245549)!=-0x1){if(typeof _0x52c20b!=_0x10efce(0x173)){const _0x15d0bc=Array[_0x10efce(0x14c)](_0x52c20b)?_0x52c20b:typeof _0x52c20b==_0x10efce(0x13b)?_0x52c20b[_0x10efce(0x15d)](','):[_0x52c20b];_0x15d0bc['length']>0x1&&_0x4fa202[_0x10efce(0x138)](_0x4fa202[_0x10efce(0x129)]+'.'+_0x5c3214+'\x20'+_0x245549+'\x20:'+_0x34e588+_0x10efce(0x178)+_0x34e588+'_2',{[''+_0x34e588]:_0x15d0bc[0x0],[_0x34e588+'_2']:_0x15d0bc[0x1]});}}else[_0x10efce(0x168),_0x10efce(0x125)][_0x10efce(0x143)](_0x245549)!=-0x1&&_0x4fa202[_0x10efce(0x138)](_0x245549+'('+_0x4fa202[_0x10efce(0x129)]+'.'+_0x5c3214+')');}}}}else{const _0x9ed235=((_0x51eb63=typeof _0x27c657['type']==_0x10efce(0x123)?(_0x1d6c0d=_0x27c657===null||_0x27c657===void 0x0?void 0x0:_0x27c657[_0x10efce(0x179)])===null||_0x1d6c0d===void 0x0?void 0x0:_0x1d6c0d[_0x10efce(0x15b)]:_0x27c657[_0x10efce(0x179)][_0x10efce(0x156)]())===null||_0x51eb63===void 0x0?void 0x0:_0x51eb63[_0x10efce(0x157)]())||undefined;if(_0x9ed235){if(Array[_0x10efce(0x14c)](_0x313368[_0x5c3214]))_0x313368[_0x5c3214][_0x10efce(0x177)]==0x0?_0x4fa202[_0x10efce(0x138)](_0x10efce(0x170)):_0x4fa202[_0x10efce(0x138)](_0x4fa202[_0x10efce(0x129)]+'.'+_0x5c3214+_0x10efce(0x148)+_0x5c3214+')',{['_auto_'+_0x5c3214]:_0x313368[_0x5c3214]});else _0x9ed235==_0x10efce(0x13b)?_0x4fa202[_0x10efce(0x138)](_0x4fa202[_0x10efce(0x129)]+'.'+_0x5c3214+'\x20like\x20:_auto_'+_0x5c3214,{['_auto_'+_0x5c3214]:'%'+_0x313368[_0x5c3214]+'%'}):_0x4fa202[_0x10efce(0x138)](_0x4fa202[_0x10efce(0x129)]+'.'+_0x5c3214+_0x10efce(0x128)+_0x5c3214,{[_0x10efce(0x13c)+_0x5c3214]:_0x313368[_0x5c3214]});}}}(_0x142dd4===null||_0x142dd4===void 0x0?void 0x0:_0x142dd4[_0x10efce(0x122)])&&_0x4fa202[_0x10efce(0x166)](Math['abs'](_0x142dd4[_0x10efce(0x122)]));(_0x142dd4===null||_0x142dd4===void 0x0?void 0x0:_0x142dd4[_0x10efce(0x12d)])&&(_0x142dd4===null||_0x142dd4===void 0x0?void 0x0:_0x142dd4[_0x10efce(0x122)])&&_0x4fa202[_0x10efce(0x132)]((Math[_0x10efce(0x141)](_0x142dd4[_0x10efce(0x12d)])-0x1)*Math[_0x10efce(0x141)](_0x142dd4[_0x10efce(0x122)]));if(_0x142dd4===null||_0x142dd4===void 0x0?void 0x0:_0x142dd4[_0x10efce(0x161)]){if(_0x142dd4[_0x10efce(0x161)][_0x10efce(0x143)]('.')!==-0x1)_0x4fa202['orderBy'](''+_0x142dd4[_0x10efce(0x161)],(_0x142dd4===null||_0x142dd4===void 0x0?void 0x0:_0x142dd4['_isreverse'])?_0x10efce(0x158):_0x10efce(0x145));else _0x4cf89a[_0x10efce(0x143)](_0x142dd4[_0x10efce(0x161)])==-0x1&&(this[_0x10efce(0x16c)]['findColumnWithPropertyName'](_0x142dd4['_order'])?_0x4fa202['orderBy'](_0x4fa202[_0x10efce(0x129)]+'.'+_0x142dd4[_0x10efce(0x161)],(_0x142dd4===null||_0x142dd4===void 0x0?void 0x0:_0x142dd4[_0x10efce(0x174)])?_0x10efce(0x158):_0x10efce(0x145)):_0x4fa202[_0x10efce(0x159)](''+_0x142dd4[_0x10efce(0x161)],(_0x142dd4===null||_0x142dd4===void 0x0?void 0x0:_0x142dd4[_0x10efce(0x174)])?_0x10efce(0x158):_0x10efce(0x145)));}return typeof(_0x9f38c1===null||_0x9f38c1===void 0x0?void 0x0:_0x9f38c1[_0x10efce(0x154)])==_0x10efce(0x123)&&await(_0x9f38c1===null||_0x9f38c1===void 0x0?void 0x0:_0x9f38c1[_0x10efce(0x154)](_0x4fa202)),_0x4fa202;}async[a7_0x191cc5(0x127)](_0x485176,..._0x261a7a){const _0x494a7f=a7_0x191cc5,_0x33db82=this[_0x494a7f(0x147)](_0x485176,..._0x261a7a);return await this['save'](_0x33db82);}async[a7_0x191cc5(0x136)](_0x216fe3,..._0x2d9851){const _0x58e8bc=a7_0x191cc5,_0x59b9f3=this[_0x58e8bc(0x147)](this[_0x58e8bc(0x146)](_0x216fe3),..._0x2d9851);return await this[_0x58e8bc(0x135)](_0x59b9f3);}async[a7_0x191cc5(0x16e)](_0x3143bf,_0x3c0c76){const _0x53eb27=a7_0x191cc5;return this[_0x53eb27(0x149)]['transaction'](_0x3143bf,_0x3c0c76);}}exports[a7_0x191cc5(0x16f)]=Repository;function a7_0x5bd5(){const _0x14717d=['toLowerCase','ASC','orderBy','trim','name','toUpperCase','split','24FozxoK','ceil','searchScopes','_order','bind','FIND\x20IN\x20SET','MODEL_SEARCH_KEY','push','take','MODEL_SEARCH_SCOPE_KEY','ISNULL','1121592LqCReE','__initialize','MODEL_KEY','metadata','operator','transaction','Repository','1\x20=\x202','549242QTVXju','searchs','undefined','_isreverse','queryRunner','app','length','\x20AND\x20:','type','container','typeorm','_size','function','findColumnWithPropertyName','NOT\x20ISNULL','getApplicationContext','mergeSave','\x20=\x20:_auto_','alias','createQueryBuilder','modelSearchs','BETWEEN','_page','@midwayjs/core','1594308ddGQTW','13389606bEIqLG','70RBeUQg','skip','scope','getAsync','save','createSave','random','andWhere','4HuBoSA','(:...','string','_auto_','3825549gNcLQg','882985DRoene','getClassMetadata','target','abs','methodName','indexOf','LIKE','DESC','create','merge','\x20IN(:..._auto_','manager','field','NOT\x20LIKE','isArray','11OuGfNs','model','search','hasOwnProperty','defineProperty','condition','__esModule','excess','15235820mkhApW','toString'];a7_0x5bd5=function(){return _0x14717d;};return a7_0x5bd5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a8_0x4839(){const _0x52aad7=['6941012hlBNVy','68205pVczfH','750RRvkPk','368489GHDtMb','1548LMdLJG','@midwayjs/core','6766lpYokV','ENTIFY_MODULE_SOURCE','default','12155801UboXAi','defineProperty','3XBtMwu','listModule','311uHXDsZ','1449OJRaDb','getClassMetadata','4568owzeng','ENTIFY_MODULE','__esModule','5819950ynVPRC','getDataSourceEntity','dataSource'];a8_0x4839=function(){return _0x52aad7;};return a8_0x4839();}const a8_0x4c1899=a8_0x483f;(function(_0x50e258,_0x11f78a){const _0x52fa73=a8_0x483f,_0x360542=_0x50e258();while(!![]){try{const _0xa8a844=parseInt(_0x52fa73(0x11f))/0x1*(-parseInt(_0x52fa73(0x12e))/0x2)+-parseInt(_0x52fa73(0x133))/0x3*(parseInt(_0x52fa73(0x128))/0x4)+parseInt(_0x52fa73(0x129))/0x5*(-parseInt(_0x52fa73(0x12a))/0x6)+parseInt(_0x52fa73(0x131))/0x7+parseInt(_0x52fa73(0x122))/0x8*(-parseInt(_0x52fa73(0x120))/0x9)+-parseInt(_0x52fa73(0x125))/0xa+-parseInt(_0x52fa73(0x12b))/0xb*(-parseInt(_0x52fa73(0x12c))/0xc);if(_0xa8a844===_0x11f78a)break;else _0x360542['push'](_0x360542['shift']());}catch(_0x39a4b7){_0x360542['push'](_0x360542['shift']());}}}(a8_0x4839,0xd9a69));function a8_0x483f(_0x65f7f4,_0x4fd1b6){const _0x4839c6=a8_0x4839();return a8_0x483f=function(_0x483fd1,_0x3cebb2){_0x483fd1=_0x483fd1-0x11f;let _0x1a38b0=_0x4839c6[_0x483fd1];return _0x1a38b0;},a8_0x483f(_0x65f7f4,_0x4fd1b6);}Object[a8_0x4c1899(0x132)](exports,a8_0x4c1899(0x124),{'value':!![]}),exports['getDataSourceEntity']=void 0x0;const core_1=require(a8_0x4c1899(0x12d)),interface_1=require('../interface');function getDataSourceEntity(_0x2aa1f5=a8_0x4c1899(0x130)){const _0x2b670d=a8_0x4c1899;var _0x51d0d1;const _0x52df9b=[];for(const _0x32f2a1 of(0x0,core_1[_0x2b670d(0x134)])(interface_1[_0x2b670d(0x123)])){const _0x283ea2=(0x0,core_1[_0x2b670d(0x121)])(interface_1[_0x2b670d(0x12f)],_0x32f2a1);((_0x51d0d1=_0x283ea2===null||_0x283ea2===void 0x0?void 0x0:_0x283ea2[_0x2b670d(0x127)])===null||_0x51d0d1===void 0x0?void 0x0:_0x51d0d1['find'](_0x2a8738=>_0x2a8738==_0x2aa1f5))&&_0x52df9b['push'](_0x32f2a1);}return _0x52df9b;}exports[a8_0x4c1899(0x126)]=getDataSourceEntity;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x27b225=a9_0x1b01;(function(_0x20b238,_0x7fe34){var _0x6ccb00=a9_0x1b01,_0x152213=_0x20b238();while(!![]){try{var _0x29dae5=parseInt(_0x6ccb00(0xe8))/0x1*(parseInt(_0x6ccb00(0xc3))/0x2)+-parseInt(_0x6ccb00(0xde))/0x3*(parseInt(_0x6ccb00(0xe4))/0x4)+-parseInt(_0x6ccb00(0xe6))/0x5+parseInt(_0x6ccb00(0xed))/0x6*(-parseInt(_0x6ccb00(0xd0))/0x7)+-parseInt(_0x6ccb00(0xea))/0x8*(parseInt(_0x6ccb00(0xca))/0x9)+parseInt(_0x6ccb00(0xdd))/0xa+-parseInt(_0x6ccb00(0xc7))/0xb;if(_0x29dae5===_0x7fe34)break;else _0x152213['push'](_0x152213['shift']());}catch(_0x144bb0){_0x152213['push'](_0x152213['shift']());}}}(a9_0x2fba,0x8bed6));var __createBinding=this&&this[a9_0x27b225(0xd6)]||(Object[a9_0x27b225(0xe3)]?function(_0x3a97c2,_0x21bea6,_0x584f19,_0x3d1817){var _0x2c9a4e=a9_0x27b225;if(_0x3d1817===undefined)_0x3d1817=_0x584f19;var _0x5a3b2e=Object[_0x2c9a4e(0xbf)](_0x21bea6,_0x584f19);(!_0x5a3b2e||(_0x2c9a4e(0xd5)in _0x5a3b2e?!_0x21bea6['__esModule']:_0x5a3b2e[_0x2c9a4e(0xd4)]||_0x5a3b2e[_0x2c9a4e(0xd2)]))&&(_0x5a3b2e={'enumerable':!![],'get':function(){return _0x21bea6[_0x584f19];}}),Object[_0x2c9a4e(0xd1)](_0x3a97c2,_0x3d1817,_0x5a3b2e);}:function(_0x2a0072,_0x43894b,_0x3f2a8e,_0x18587b){if(_0x18587b===undefined)_0x18587b=_0x3f2a8e;_0x2a0072[_0x18587b]=_0x43894b[_0x3f2a8e];}),__exportStar=this&&this[a9_0x27b225(0xc8)]||function(_0xe95d28,_0x2b5c7b){var _0x3c9dfc=a9_0x27b225;for(var _0x315338 in _0xe95d28)if(_0x315338!==_0x3c9dfc(0xe0)&&!Object[_0x3c9dfc(0xe9)]['hasOwnProperty'][_0x3c9dfc(0xd3)](_0x2b5c7b,_0x315338))__createBinding(_0x2b5c7b,_0xe95d28,_0x315338);};Object['defineProperty'](exports,a9_0x27b225(0xe2),{'value':!![]}),exports[a9_0x27b225(0xc0)]=exports[a9_0x27b225(0xcf)]=exports['Inject']=exports[a9_0x27b225(0xe7)]=exports[a9_0x27b225(0xcd)]=exports[a9_0x27b225(0xcc)]=exports[a9_0x27b225(0xcb)]=exports[a9_0x27b225(0xec)]=exports[a9_0x27b225(0xeb)]=exports['ProvideRepository']=exports[a9_0x27b225(0xc1)]=exports[a9_0x27b225(0xc4)]=exports[a9_0x27b225(0xd8)]=exports[a9_0x27b225(0xd9)]=exports[a9_0x27b225(0xc2)]=void 0x0,__exportStar(require('typeorm'),exports),__exportStar(require(a9_0x27b225(0xce)),exports);var Repository_1=require(a9_0x27b225(0xc5));function a9_0x1b01(_0x278cae,_0x6dbe58){var _0x2fba80=a9_0x2fba();return a9_0x1b01=function(_0x1b019c,_0x31c2a7){_0x1b019c=_0x1b019c-0xbe;var _0x335419=_0x2fba80[_0x1b019c];return _0x335419;},a9_0x1b01(_0x278cae,_0x6dbe58);}Object['defineProperty'](exports,a9_0x27b225(0xc2),{'enumerable':!![],'get':function(){var _0x19ff19=a9_0x27b225;return Repository_1[_0x19ff19(0xc2)];}});var VirtualColumn_1=require(a9_0x27b225(0xe1));Object[a9_0x27b225(0xd1)](exports,a9_0x27b225(0xd9),{'enumerable':!![],'get':function(){var _0x489e3d=a9_0x27b225;return VirtualColumn_1[_0x489e3d(0xd9)];}});var InjectEntity_1=require(a9_0x27b225(0xda));Object['defineProperty'](exports,'InjectEntity',{'enumerable':!![],'get':function(){var _0x3557bc=a9_0x27b225;return InjectEntity_1[_0x3557bc(0xd8)];}});var InjectRepository_1=require(a9_0x27b225(0xc9));Object[a9_0x27b225(0xd1)](exports,a9_0x27b225(0xc4),{'enumerable':!![],'get':function(){var _0x36b8a8=a9_0x27b225;return InjectRepository_1[_0x36b8a8(0xc4)];}});var ProvideEntity_1=require(a9_0x27b225(0xbe));function a9_0x2fba(){var _0x14603b=['Configuration','./interface','Scope','7OwlUCM','defineProperty','configurable','call','writable','get','__createBinding','./decorator/ProvideSearch','InjectEntity','VirtualColumn','./decorator/InjectEntity','Inject','ProvideRepository','10203510wFnsmc','21EpKTbl','./configuration','default','./decorator/VirtualColumn','__esModule','create','27068uiyJak','./helper/getDataSourceEntity','801560LONZLK','Provide','55gwoGab','prototype','3831832mvqWoy','ProvideSearch','Search','381438BVDHJm','./decorator/ProvideEntity','getOwnPropertyDescriptor','ScopeEnum','ProvideEntity','Repository','19166SEgmHy','InjectRepository','./definition/Repository','./decorator/ProvideRepository','2464451PlwkaD','__exportStar','./decorator/InjectRepository','9JyvcNz','SearchScope','getDataSourceEntity'];a9_0x2fba=function(){return _0x14603b;};return a9_0x2fba();}Object['defineProperty'](exports,a9_0x27b225(0xc1),{'enumerable':!![],'get':function(){var _0x18b753=a9_0x27b225;return ProvideEntity_1[_0x18b753(0xc1)];}});var ProvideRepository_1=require(a9_0x27b225(0xc6));Object[a9_0x27b225(0xd1)](exports,a9_0x27b225(0xdc),{'enumerable':!![],'get':function(){return ProvideRepository_1['ProvideRepository'];}});var ProvideSearch_1=require(a9_0x27b225(0xd7));Object['defineProperty'](exports,a9_0x27b225(0xeb),{'enumerable':!![],'get':function(){var _0x361121=a9_0x27b225;return ProvideSearch_1[_0x361121(0xeb)];}}),Object[a9_0x27b225(0xd1)](exports,a9_0x27b225(0xec),{'enumerable':!![],'get':function(){var _0x346fcc=a9_0x27b225;return ProvideSearch_1[_0x346fcc(0xec)];}}),Object[a9_0x27b225(0xd1)](exports,'SearchScope',{'enumerable':!![],'get':function(){var _0x5ba670=a9_0x27b225;return ProvideSearch_1[_0x5ba670(0xcb)];}});var getDataSourceEntity_1=require(a9_0x27b225(0xe5));Object['defineProperty'](exports,'getDataSourceEntity',{'enumerable':!![],'get':function(){var _0x380646=a9_0x27b225;return getDataSourceEntity_1[_0x380646(0xcc)];}});var configuration_1=require(a9_0x27b225(0xdf));Object[a9_0x27b225(0xd1)](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require('@midwayjs/core');Object[a9_0x27b225(0xd1)](exports,a9_0x27b225(0xe7),{'enumerable':!![],'get':function(){var _0x3f3c28=a9_0x27b225;return core_1[_0x3f3c28(0xe7)];}}),Object[a9_0x27b225(0xd1)](exports,a9_0x27b225(0xdb),{'enumerable':!![],'get':function(){var _0x999387=a9_0x27b225;return core_1[_0x999387(0xdb)];}}),Object[a9_0x27b225(0xd1)](exports,a9_0x27b225(0xcf),{'enumerable':!![],'get':function(){var _0x4d2b4d=a9_0x27b225;return core_1[_0x4d2b4d(0xcf)];}}),Object[a9_0x27b225(0xd1)](exports,a9_0x27b225(0xc0),{'enumerable':!![],'get':function(){var _0x95879e=a9_0x27b225;return core_1[_0x95879e(0xc0)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a10_0x54be9a=a10_0x57c3;(function(_0x2b57e4,_0x1ed619){const _0x138d7e=a10_0x57c3,_0x580af0=_0x2b57e4();while(!![]){try{const _0x2190e2=parseInt(_0x138d7e(0xd3))/0x1*(parseInt(_0x138d7e(0xac))/0x2)+-parseInt(_0x138d7e(0xd0))/0x3+-parseInt(_0x138d7e(0xae))/0x4*(parseInt(_0x138d7e(0xcd))/0x5)+-parseInt(_0x138d7e(0xc8))/0x6*(-parseInt(_0x138d7e(0xcb))/0x7)+parseInt(_0x138d7e(0xc5))/0x8*(parseInt(_0x138d7e(0xc4))/0x9)+parseInt(_0x138d7e(0xc3))/0xa+-parseInt(_0x138d7e(0xde))/0xb;if(_0x2190e2===_0x1ed619)break;else _0x580af0['push'](_0x580af0['shift']());}catch(_0x154a26){_0x580af0['push'](_0x580af0['shift']());}}}(a10_0x2361,0xc564a));function a10_0x2361(){const _0x1dd470=['EntityNotFoundError','decorator:anncic-api:typeorm:entify:module:source','SearchPaginate','getTime','name','expressionMap','getManyAndCount','resolve','prototype','ENTIFY_MODULE_SOURCE','11508650ORhjNC','76698OznBdr','872jnVWsf','decorator:anncic-api:typeorm:entify','decorator:anncic-api:typeorm:repository','708grUOco','decorator:anncic-api:typeorm:entity:virtual:column','typeorm','65779mJjqMH','versionColumn','403885yIkgzk','MODEL_SEARCH_KEY','hasOwnProperty','702462vasVqk','defineProperty','getRawAndEntities','247311rqGcBl','decorator:anncic-api:typeorm:entify:module','decorator:anncic-api:typeorm:model:search','reject','ENTIFY_KEY','decorator:anncic-api:typeorm:model:search:scope','EntityManager','OptimisticLockCanNotBeUsedError','ENTITY_VIRTUAL_COLUMN_KEY','then','getCount','32709853yNNEyy','metadata','default','OptimisticLockVersionMismatchError','getMany','mainAlias','optimistic','8JwKPio','getOne','8cItkSN','map','MODEL_SEARCH_SCOPE_KEY','SelectQueryBuilder','REPOSITORY_KEY','@midwayjs/core','__esModule','findOneByOrFail','getClassMetadata','lockVersion','MODEL_KEY'];a10_0x2361=function(){return _0x1dd470;};return a10_0x2361();}function a10_0x57c3(_0x37e60c,_0x265fd8){const _0x2361cc=a10_0x2361();return a10_0x57c3=function(_0x57c386,_0x48b7aa){_0x57c386=_0x57c386-0xab;let _0x1f166a=_0x2361cc[_0x57c386];return _0x1f166a;},a10_0x57c3(_0x37e60c,_0x265fd8);}Object[a10_0x54be9a(0xd1)](exports,a10_0x54be9a(0xb4),{'value':!![]}),exports[a10_0x54be9a(0xbb)]=exports[a10_0x54be9a(0xdb)]=exports[a10_0x54be9a(0xb0)]=exports[a10_0x54be9a(0xce)]=exports[a10_0x54be9a(0xb8)]=exports[a10_0x54be9a(0xb2)]=exports['ENTIFY_MODULE_SOURCE']=exports['ENTIFY_MODULE']=exports[a10_0x54be9a(0xd7)]=void 0x0;const core_1=require(a10_0x54be9a(0xb3)),typeorm_1=require('typeorm'),typeorm_2=require(a10_0x54be9a(0xca));exports[a10_0x54be9a(0xd7)]=a10_0x54be9a(0xc6),exports['ENTIFY_MODULE']=a10_0x54be9a(0xd4),exports[a10_0x54be9a(0xc2)]=a10_0x54be9a(0xba),exports[a10_0x54be9a(0xb2)]=a10_0x54be9a(0xc7),exports[a10_0x54be9a(0xb8)]='decorator:anncic-api:typeorm:model',exports['MODEL_SEARCH_KEY']=a10_0x54be9a(0xd5),exports[a10_0x54be9a(0xb0)]=a10_0x54be9a(0xd8),exports[a10_0x54be9a(0xdb)]=a10_0x54be9a(0xc9);class SearchPaginate{}exports['SearchPaginate']=SearchPaginate,typeorm_2[a10_0x54be9a(0xd9)][a10_0x54be9a(0xc1)]['findOneOrFail']=async function(_0x345c8c,_0x436960){return this['findOne'](_0x345c8c,_0x436960)['then'](_0x437d87=>{const _0x427a0b=a10_0x57c3;if(_0x437d87===null||_0x437d87===undefined)return Promise[_0x427a0b(0xd6)](new typeorm_2['EntityNotFoundError'](_0x345c8c,_0x436960));return Promise[_0x427a0b(0xc0)](_0x437d87);});},typeorm_2[a10_0x54be9a(0xd9)][a10_0x54be9a(0xc1)][a10_0x54be9a(0xb5)]=async function(_0x523999,_0x2b778d){const _0x1d0790=a10_0x54be9a;return this['findOneBy'](_0x523999,_0x2b778d)[_0x1d0790(0xdc)](_0x303d15=>{const _0x2ebb36=_0x1d0790;if(_0x303d15===null||_0x303d15===undefined)return Promise[_0x2ebb36(0xd6)](new typeorm_2[(_0x2ebb36(0xb9))](_0x523999,_0x2b778d));return Promise[_0x2ebb36(0xc0)](_0x303d15);});},typeorm_1['SelectQueryBuilder'][a10_0x54be9a(0xc1)][a10_0x54be9a(0xe2)]=async function(){const _0x8204d6=a10_0x54be9a;if(this[_0x8204d6(0xbe)]['lockMode']===_0x8204d6(0xab))throw new typeorm_1[(_0x8204d6(0xda))]();const {entities:_0x3cea98,raw:_0x597484}=await this[_0x8204d6(0xd2)]();return _0x3cea98[_0x8204d6(0xaf)]((_0x4fafbf,_0x2c0f5c)=>{const _0x52eae3=_0x8204d6;var _0x4b3311;const _0x2382a1=(0x0,core_1[_0x52eae3(0xb6)])(exports['ENTITY_VIRTUAL_COLUMN_KEY'],_0x4fafbf)||{};for(const _0x1be52f in _0x2382a1){_0x597484[_0x2c0f5c]&&_0x597484[_0x2c0f5c][_0x52eae3(0xcf)](_0x1be52f)&&(_0x4fafbf[_0x1be52f]=_0x597484[_0x2c0f5c][_0x1be52f]||((_0x4b3311=_0x2382a1[_0x1be52f])===null||_0x4b3311===void 0x0?void 0x0:_0x4b3311[_0x52eae3(0xe0)])||'');}return _0x4fafbf;});},typeorm_1[a10_0x54be9a(0xb1)]['prototype'][a10_0x54be9a(0xbf)]=async function(){const _0x2f41fa=a10_0x54be9a;return[await this[_0x2f41fa(0xe2)](),await this[_0x2f41fa(0xdd)]()];},typeorm_1['SelectQueryBuilder'][a10_0x54be9a(0xc1)][a10_0x54be9a(0xad)]=async function(){const _0x5eb130=a10_0x54be9a;var _0x3a9f39;const {entities:_0xb9ab2d,raw:_0x233233}=await this[_0x5eb130(0xd2)]();if(_0xb9ab2d[0x0]&&this[_0x5eb130(0xbe)]['lockMode']===_0x5eb130(0xab)&&this[_0x5eb130(0xbe)][_0x5eb130(0xb7)]){const _0x1967e7=this[_0x5eb130(0xbe)][_0x5eb130(0xe3)][_0x5eb130(0xdf)];if(this[_0x5eb130(0xbe)][_0x5eb130(0xb7)]instanceof Date){const _0x4ff417=_0x1967e7['updateDateColumn']['getEntityValue'](_0xb9ab2d[0x0]);if(_0x4ff417[_0x5eb130(0xbc)]()!==this[_0x5eb130(0xbe)][_0x5eb130(0xb7)]['getTime']())throw new typeorm_1['OptimisticLockVersionMismatchError'](_0x1967e7['name'],this[_0x5eb130(0xbe)]['lockVersion'],_0x4ff417);}else{const _0x267369=_0x1967e7[_0x5eb130(0xcc)]['getEntityValue'](_0xb9ab2d[0x0]);if(_0x267369!==this['expressionMap']['lockVersion'])throw new typeorm_1[(_0x5eb130(0xe1))](_0x1967e7[_0x5eb130(0xbd)],this['expressionMap'][_0x5eb130(0xb7)],_0x267369);}}if(_0xb9ab2d[0x0]&&_0x233233[0x0]){const _0x40f4db=(0x0,core_1[_0x5eb130(0xb6)])(exports['ENTITY_VIRTUAL_COLUMN_KEY'],_0xb9ab2d[0x0]);for(const _0x5cd1a6 in _0x40f4db){_0x233233[0x0][_0x5eb130(0xcf)](_0x5cd1a6)&&(_0xb9ab2d[0x0][_0x5cd1a6]=_0x233233[0x0][_0x5cd1a6]||((_0x3a9f39=_0x40f4db[_0x5cd1a6])===null||_0x3a9f39===void 0x0?void 0x0:_0x3a9f39[_0x5eb130(0xe0)])||'');}}return _0xb9ab2d[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.8",
|
|
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": "a79c57bf63ef0c1d281921c6f32c3496cefb6c62"
|
|
26
26
|
}
|