@anncic-api/typeorm 1.1.49 → 1.2.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.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/interface.js +1 -1
- package/package.json +4 -4
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0xd76c25=a0_0x35fb;(function(_0x1be191,_0x40f7f6){const _0x49bb31=a0_0x35fb,_0x2b9b11=_0x1be191();while(!![]){try{const _0x54ef27=-parseInt(_0x49bb31(0xee))/0x1+parseInt(_0x49bb31(0x10d))/0x2*(-parseInt(_0x49bb31(0x112))/0x3)+parseInt(_0x49bb31(0xf7))/0x4*(-parseInt(_0x49bb31(0xfc))/0x5)+parseInt(_0x49bb31(0xf1))/0x6*(parseInt(_0x49bb31(0x115))/0x7)+-parseInt(_0x49bb31(0x11e))/0x8*(parseInt(_0x49bb31(0x11a))/0x9)+-parseInt(_0x49bb31(0x11b))/0xa*(-parseInt(_0x49bb31(0xff))/0xb)+parseInt(_0x49bb31(0x11d))/0xc*(parseInt(_0x49bb31(0xf4))/0xd);if(_0x54ef27===_0x40f7f6)break;else _0x2b9b11['push'](_0x2b9b11['shift']());}catch(_0x5335f1){_0x2b9b11['push'](_0x2b9b11['shift']());}}}(a0_0x48a8,0x2752b));function a0_0x48a8(){const _0x352353=['find','length','EntityNotFoundError','117HIlglg','10CumkVP','getDataSource','96ztHOGR','92408HSiAJQ','decorate','CustomConfiguration','prototype','ENTIFY_KEY','222065nbTBoP','name','REPOSITORY_KEY','135132AMzAku','onReady','decorator','811967JSVsDg','getClassMetadata','@midwayjs/core','289064hhAhkQ','getAsync','TypeORMDataSourceManager','target','function','20LELScy','getOwnPropertyDescriptor','MidwayDecoratorService','3394963IhShaJ','useMiddleware','defineProperty','design:type','push','registerPropertyHandler','getEnv','@midwayjs/typeorm','object','Repository','handlercache','body','middlewareError','metadata','13378FzpENV','anncic-api-typeorm\x20Error\x20','./definition/Repository','\x20is\x20not\x20ProvideRepository\x20Entify','getDataSourceNameByModel','24kyhPQi','__decorate','typeorm','21htmOhm','production'];a0_0x48a8=function(){return _0x352353;};return a0_0x48a8();}var __decorate=this&&this[a0_0xd76c25(0x113)]||function(_0x42ace6,_0x3599fa,_0x5f1569,_0x54d0c1){const _0x1aeae4=a0_0xd76c25;var _0x308a88=arguments[_0x1aeae4(0x118)],_0x4dbae2=_0x308a88<0x3?_0x3599fa:_0x54d0c1===null?_0x54d0c1=Object[_0x1aeae4(0xfd)](_0x3599fa,_0x5f1569):_0x54d0c1,_0x83fbac;if(typeof Reflect===_0x1aeae4(0x107)&&typeof Reflect[_0x1aeae4(0x11f)]===_0x1aeae4(0xfb))_0x4dbae2=Reflect[_0x1aeae4(0x11f)](_0x42ace6,_0x3599fa,_0x5f1569,_0x54d0c1);else{for(var _0x18d583=_0x42ace6[_0x1aeae4(0x118)]-0x1;_0x18d583>=0x0;_0x18d583--)if(_0x83fbac=_0x42ace6[_0x18d583])_0x4dbae2=(_0x308a88<0x3?_0x83fbac(_0x4dbae2):_0x308a88>0x3?_0x83fbac(_0x3599fa,_0x5f1569,_0x4dbae2):_0x83fbac(_0x3599fa,_0x5f1569))||_0x4dbae2;}return _0x308a88>0x3&&_0x4dbae2&&Object[_0x1aeae4(0x101)](_0x3599fa,_0x5f1569,_0x4dbae2),_0x4dbae2;},__metadata=this&&this['__metadata']||function(_0x23f79b,_0x5eb5c2){const _0x2f485a=a0_0xd76c25;if(typeof Reflect===_0x2f485a(0x107)&&typeof Reflect['metadata']===_0x2f485a(0xfb))return Reflect[_0x2f485a(0x10c)](_0x23f79b,_0x5eb5c2);};Object[a0_0xd76c25(0x101)](exports,'__esModule',{'value':!![]}),exports[a0_0xd76c25(0x120)]=void 0x0;function a0_0x35fb(_0x34b95e,_0x6c85bc){const _0x48a8c7=a0_0x48a8();return a0_0x35fb=function(_0x35fbd8,_0x3ee513){_0x35fbd8=_0x35fbd8-0xec;let _0x507d68=_0x48a8c7[_0x35fbd8];return _0x507d68;},a0_0x35fb(_0x34b95e,_0x6c85bc);}const typeorm_1=require(a0_0xd76c25(0x106)),core_1=require('@midwayjs/core'),core_2=require(a0_0xd76c25(0xf6)),typeorm_2=require(a0_0xd76c25(0x114)),Repository_1=require(a0_0xd76c25(0x10f)),interface_1=require('./interface'),typeorm=require(a0_0xd76c25(0x106));let CustomConfiguration=class CustomConfiguration{constructor(){const _0x27bfb3=a0_0xd76c25;this[_0x27bfb3(0x109)]=[];}async[a0_0xd76c25(0xf2)](_0xf81720,_0x3aa077){const _0x4d981e=a0_0xd76c25,_0x3fc49e=await _0xf81720[_0x4d981e(0xf8)](typeorm_1[_0x4d981e(0xf9)]);this[_0x4d981e(0xf3)][_0x4d981e(0x104)](interface_1[_0x4d981e(0xed)],(_0x320e7d,{entity:_0x438779,connection:_0x35d7b9})=>{const _0x1fd7c5=_0x4d981e;let _0xd1698=this[_0x1fd7c5(0x109)]['find'](_0x1da8d4=>_0x1da8d4[_0x1fd7c5(0xfa)]===_0x438779);return!_0xd1698&&(_0xd1698=new Repository_1[(_0x1fd7c5(0x108))](_0x3aa077,_0x3fc49e[_0x1fd7c5(0x11c)](_0x35d7b9||_0x3fc49e[_0x1fd7c5(0x111)](_0x438779))['getRepository'](_0x438779)),this['handlercache'][_0x1fd7c5(0x103)](_0xd1698)),_0xd1698;}),this['decorator']['registerPropertyHandler'](interface_1[_0x4d981e(0xf0)],(_0x56818e,{repository:_0x4c2abe,connection:_0x1d95e0})=>{const _0x446199=_0x4d981e,{entity:_0x73de}=(0x0,core_1[_0x446199(0xf5)])(interface_1[_0x446199(0xf0)],_0x4c2abe)||{};if(!_0x73de)throw new Error(_0x446199(0x10e)+((_0x4c2abe===null||_0x4c2abe===void 0x0?void 0x0:_0x4c2abe[_0x446199(0xef)])||_0x4c2abe)+_0x446199(0x110));let _0x4212a8=this[_0x446199(0x109)][_0x446199(0x117)](_0x4fcff5=>_0x4fcff5===_0x4c2abe);return!_0x4212a8&&(_0x4212a8=new _0x4c2abe(_0x3aa077,_0x3fc49e[_0x446199(0x11c)](_0x1d95e0||_0x3fc49e[_0x446199(0x111)](_0x73de))['getRepository'](_0x73de)),this[_0x446199(0x109)][_0x446199(0x103)](_0x4212a8)),_0x4212a8;}),_0x3aa077[_0x4d981e(0x100)](this[_0x4d981e(0x10b)](_0x3aa077));}[a0_0xd76c25(0x10b)](_0x1100be){return async(_0x2089cc,_0x3e44f9)=>{const _0x5398e5=a0_0x35fb;try{await _0x3e44f9();}catch(_0x34722f){if(_0x34722f instanceof typeorm_2['TypeORMError'])_0x34722f instanceof typeorm_2[_0x5398e5(0x119)]?_0x2089cc[_0x5398e5(0x10a)]={'code':0x194,'msg':'数据不存在'}:(_0x2089cc[_0x5398e5(0x10a)]={'code':0x1f4,'msg':_0x34722f['message']},_0x1100be[_0x5398e5(0x105)]()!=_0x5398e5(0x116)&&console['warn'](_0x34722f));else throw _0x34722f;}};}};__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0xd76c25(0x102),core_2['MidwayConfigService'])],CustomConfiguration[a0_0xd76c25(0xec)],'config',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0xd76c25(0x102),core_2[a0_0xd76c25(0xfe)])],CustomConfiguration[a0_0xd76c25(0xec)],a0_0xd76c25(0xf3),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[typeorm],'conflictCheck':![],'namespace':'anncic-api:typeorm'})],CustomConfiguration),exports[a0_0xd76c25(0x120)]=CustomConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x371d8f=a1_0x544e;(function(_0x4c14f2,_0x2f6663){const _0x28387e=a1_0x544e,_0x2c4d02=_0x4c14f2();while(!![]){try{const _0x509eac=-parseInt(_0x28387e(0xda))/0x1*(parseInt(_0x28387e(0xe0))/0x2)+parseInt(_0x28387e(0xdf))/0x3*(parseInt(_0x28387e(0xdc))/0x4)+parseInt(_0x28387e(0xd9))/0x5+parseInt(_0x28387e(0xdb))/0x6+parseInt(_0x28387e(0xe6))/0x7*(-parseInt(_0x28387e(0xde))/0x8)+-parseInt(_0x28387e(0xe4))/0x9+-parseInt(_0x28387e(0xe5))/0xa*(-parseInt(_0x28387e(0xdd))/0xb);if(_0x509eac===_0x2f6663)break;else _0x2c4d02['push'](_0x2c4d02['shift']());}catch(_0x179f09){_0x2c4d02['push'](_0x2c4d02['shift']());}}}(a1_0x80d4,0xce0c8));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a1_0x371d8f(0xe7)]=void 0x0;const core_1=require(a1_0x371d8f(0xe1)),interface_1=require(a1_0x371d8f(0xe2));function a1_0x80d4(){const _0x4e380d=['2814156JaGhcE','3090gQzlxW','167951GlxzyT','InjectEntity','ENTIFY_KEY','default','5827900OSSfmZ','468aGFHnw','1866660PtfoaK','187032GNhuoB','38621pKygZf','392ZmDCBg','30BLTUFJ','2978CPRCLd','@midwayjs/core','../interface','createCustomPropertyDecorator'];a1_0x80d4=function(){return _0x4e380d;};return a1_0x80d4();}function InjectEntity(_0x2012e9,_0xd803f4=a1_0x371d8f(0xd8)){const _0xe82571=a1_0x371d8f;return(0x0,core_1[_0xe82571(0xe3)])(interface_1[_0xe82571(0xe8)],{'entity':_0x2012e9,'connection':_0xd803f4});}function a1_0x544e(_0x3ab189,_0x2f036a){const _0x80d446=a1_0x80d4();return a1_0x544e=function(_0x544ecf,_0x39edd5){_0x544ecf=_0x544ecf-0xd8;let _0x4e6ad7=_0x80d446[_0x544ecf];return _0x4e6ad7;},a1_0x544e(_0x3ab189,_0x2f036a);}exports[a1_0x371d8f(0xe7)]=InjectEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x825f2=a2_0x37bb;(function(_0x206d6d,_0x527540){const _0x32f12b=a2_0x37bb,_0x2397d8=_0x206d6d();while(!![]){try{const _0x560a64=-parseInt(_0x32f12b(0xfd))/0x1+-parseInt(_0x32f12b(0xf5))/0x2+parseInt(_0x32f12b(0xf3))/0x3+-parseInt(_0x32f12b(0xf7))/0x4*(-parseInt(_0x32f12b(0xf0))/0x5)+parseInt(_0x32f12b(0xf8))/0x6*(-parseInt(_0x32f12b(0xfa))/0x7)+-parseInt(_0x32f12b(0xf4))/0x8*(parseInt(_0x32f12b(0xfb))/0x9)+parseInt(_0x32f12b(0xf2))/0xa;if(_0x560a64===_0x527540)break;else _0x2397d8['push'](_0x2397d8['shift']());}catch(_0x5e4a2c){_0x2397d8['push'](_0x2397d8['shift']());}}}(a2_0x4dd0,0xabdd4));Object['defineProperty'](exports,a2_0x825f2(0xfc),{'value':!![]}),exports[a2_0x825f2(0xf1)]=void 0x0;function a2_0x37bb(_0x29fba0,_0xe156f2){const _0x4dd037=a2_0x4dd0();return a2_0x37bb=function(_0x37bb6a,_0x973be2){_0x37bb6a=_0x37bb6a-0xf0;let _0x44007a=_0x4dd037[_0x37bb6a];return _0x44007a;},a2_0x37bb(_0x29fba0,_0xe156f2);}function a2_0x4dd0(){const _0x60252a=['../interface','1573556BzDnzh','157530EGimGO','REPOSITORY_KEY','126rtWzsY','9xQmLDm','__esModule','533392MMWoWB','@midwayjs/core','10FfeygJ','InjectRepository','20628250uIJkqB','1100736dTLjaw','1468832Dhhgkj','2645946aNbRGF'];a2_0x4dd0=function(){return _0x60252a;};return a2_0x4dd0();}const core_1=require(a2_0x825f2(0xfe)),interface_1=require(a2_0x825f2(0xf6));function InjectRepository(_0xcd90e,_0x273330='default'){const _0x3a9f03=a2_0x825f2;return(0x0,core_1['createCustomPropertyDecorator'])(interface_1[_0x3a9f03(0xf9)],{'repository':_0xcd90e,'connection':_0x273330});}exports[a2_0x825f2(0xf1)]=InjectRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a3_0x3188(_0x27a92a,_0x51e35a){const _0x580d0a=a3_0x580d();return a3_0x3188=function(_0x3188f2,_0x222f45){_0x3188f2=_0x3188f2-0x77;let _0x20efaf=_0x580d0a[_0x3188f2];return _0x20efaf;},a3_0x3188(_0x27a92a,_0x51e35a);}const a3_0x34af23=a3_0x3188;(function(_0x11b060,_0x48e262){const _0x7b4657=a3_0x3188,_0xc348cb=_0x11b060();while(!![]){try{const _0x49e9f6=parseInt(_0x7b4657(0x8a))/0x1*(-parseInt(_0x7b4657(0x87))/0x2)+parseInt(_0x7b4657(0x7c))/0x3+parseInt(_0x7b4657(0x83))/0x4*(parseInt(_0x7b4657(0x7a))/0x5)+-parseInt(_0x7b4657(0x89))/0x6*(-parseInt(_0x7b4657(0x88))/0x7)+parseInt(_0x7b4657(0x81))/0x8+-parseInt(_0x7b4657(0x8e))/0x9+parseInt(_0x7b4657(0x84))/0xa;if(_0x49e9f6===_0x48e262)break;else _0xc348cb['push'](_0xc348cb['shift']());}catch(_0x23a9ca){_0xc348cb['push'](_0xc348cb['shift']());}}}(a3_0x580d,0x51dea));Object[a3_0x34af23(0x8d)](exports,'__esModule',{'value':!![]}),exports[a3_0x34af23(0x7e)]=void 0x0;const typeorm_1=require(a3_0x34af23(0x7f)),core_1=require(a3_0x34af23(0x8c)),interface_1=require('../interface');function ProvideEntity(_0x5f0684,_0x1eecca={}){return _0x2da6f4=>{const _0x9f540f=a3_0x3188;_0x1eecca[_0x9f540f(0x85)]=_0x5f0684['tableName'];const _0x7d04ae=[];if(!(_0x5f0684===null||_0x5f0684===void 0x0?void 0x0:_0x5f0684[_0x9f540f(0x79)]))_0x7d04ae[_0x9f540f(0x77)](_0x9f540f(0x7b));else{if(typeof(_0x5f0684===null||_0x5f0684===void 0x0?void 0x0:_0x5f0684[_0x9f540f(0x79)])==_0x9f540f(0x7d))_0x7d04ae['push'](_0x5f0684===null||_0x5f0684===void 0x0?void 0x0:_0x5f0684[_0x9f540f(0x79)]);else{if(Array[_0x9f540f(0x8b)](_0x5f0684===null||_0x5f0684===void 0x0?void 0x0:_0x5f0684['dataSource']))for(let _0x16ea48 of _0x5f0684[_0x9f540f(0x79)]||[_0x9f540f(0x7b)]){_0x7d04ae[_0x9f540f(0x77)](_0x16ea48);}}}(0x0,core_1[_0x9f540f(0x82)])(interface_1[_0x9f540f(0x86)],_0x2da6f4),(0x0,core_1[_0x9f540f(0x78)])(interface_1['ENTIFY_MODULE_SOURCE'],{'tableName':_0x5f0684[_0x9f540f(0x80)],'dataSource':_0x7d04ae},_0x2da6f4),(0x0,typeorm_1[_0x9f540f(0x8f)])(_0x5f0684[_0x9f540f(0x80)],_0x1eecca)(_0x2da6f4);};}exports[a3_0x34af23(0x7e)]=ProvideEntity;function a3_0x580d(){const _0x10a01f=['default','623904CtDVhx','string','ProvideEntity','typeorm','tableName','4204200WGxehb','saveModule','4KaNKOf','1042290kCqRcj','name','ENTIFY_MODULE','2EFSvme','2306444IGxPhc','6rxjlgx','636506xfcNFc','isArray','@midwayjs/core','defineProperty','3425688aTkDht','Entity','push','saveClassMetadata','dataSource','926310FhlhYq'];a3_0x580d=function(){return _0x10a01f;};return a3_0x580d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a4_0x2aac2f=a4_0x23dc;(function(_0x588022,_0x5d7798){const _0x375966=a4_0x23dc,_0x52fb52=_0x588022();while(!![]){try{const _0x237605=-parseInt(_0x375966(0x12a))/0x1+parseInt(_0x375966(0x127))/0x2+parseInt(_0x375966(0x125))/0x3+-parseInt(_0x375966(0x124))/0x4+-parseInt(_0x375966(0x11b))/0x5*(parseInt(_0x375966(0x128))/0x6)+parseInt(_0x375966(0x119))/0x7+-parseInt(_0x375966(0x120))/0x8*(-parseInt(_0x375966(0x129))/0x9);if(_0x237605===_0x5d7798)break;else _0x52fb52['push'](_0x52fb52['shift']());}catch(_0x213fc9){_0x52fb52['push'](_0x52fb52['shift']());}}}(a4_0x1806,0xc22cc));function a4_0x23dc(_0x26d5c0,_0x12aeaa){const _0x1806b9=a4_0x1806();return a4_0x23dc=function(_0x23dcb0,_0x575e6f){_0x23dcb0=_0x23dcb0-0x119;let _0x4d899d=_0x1806b9[_0x23dcb0];return _0x4d899d;},a4_0x23dc(_0x26d5c0,_0x12aeaa);}Object[a4_0x2aac2f(0x126)](exports,a4_0x2aac2f(0x12b),{'value':!![]}),exports[a4_0x2aac2f(0x11a)]=void 0x0;const core_1=require(a4_0x2aac2f(0x122)),interface_1=require(a4_0x2aac2f(0x11f));function a4_0x1806(){const _0x2c3f9c=['__esModule','7624106dkZnSw','ProvideRepository','12940MFBGvO','saveClassMetadata','ScopeEnum','Scope','../interface','12424EubjpH','Request','@midwayjs/core','REPOSITORY_KEY','5693748rHGlML','3727017VNFFxx','defineProperty','2181520ztRFid','114GbaESX','2421shJViD','1572065RZMmSF'];a4_0x1806=function(){return _0x2c3f9c;};return a4_0x1806();}function ProvideRepository(_0x163f86){return _0x228667=>{const _0x6a7d4d=a4_0x23dc;(0x0,core_1[_0x6a7d4d(0x11e)])(core_1[_0x6a7d4d(0x11d)][_0x6a7d4d(0x121)],{'allowDowngrade':!![]})(_0x228667),((0x0,core_1['Provide'])()(_0x228667),(0x0,core_1[_0x6a7d4d(0x11c)])(interface_1[_0x6a7d4d(0x123)],{'entity':_0x163f86},_0x228667));};}exports['ProvideRepository']=ProvideRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x1369a2=a5_0x2f42;(function(_0x506c0f,_0xa82709){const _0x135bc4=a5_0x2f42,_0x340f50=_0x506c0f();while(!![]){try{const _0x59193d=parseInt(_0x135bc4(0x127))/0x1+parseInt(_0x135bc4(0x129))/0x2+-parseInt(_0x135bc4(0x120))/0x3*(-parseInt(_0x135bc4(0x12a))/0x4)+-parseInt(_0x135bc4(0x122))/0x5*(-parseInt(_0x135bc4(0x121))/0x6)+parseInt(_0x135bc4(0x126))/0x7+-parseInt(_0x135bc4(0x119))/0x8+-parseInt(_0x135bc4(0x11b))/0x9*(parseInt(_0x135bc4(0x125))/0xa);if(_0x59193d===_0xa82709)break;else _0x340f50['push'](_0x340f50['shift']());}catch(_0x166048){_0x340f50['push'](_0x340f50['shift']());}}}(a5_0x558f,0x83a16));Object['defineProperty'](exports,a5_0x1369a2(0x128),{'value':!![]}),exports[a5_0x1369a2(0x124)]=exports[a5_0x1369a2(0x123)]=void 0x0;const core_1=require(a5_0x1369a2(0x11c)),interface_1=require(a5_0x1369a2(0x11e));function a5_0x558f(){const _0x15f68c=['3603592emUhbk','saveModule','3890997oFNPSg','@midwayjs/core','ScopeEnum','../interface','MODEL_SEARCH_KEY','3ajlgFB','1224570niOCkm','25FjCKGJ','ProvideSearch','Search','50ePANWL','4154983dnwpTa','791616GtudFv','__esModule','1372198eCtHgj','238052uoiQaX','MODEL_KEY','attachClassMetadata'];a5_0x558f=function(){return _0x15f68c;};return a5_0x558f();}function ProvideSearch(_0x16dff3){return _0x5bf0e1=>{const _0x4b0f39=a5_0x2f42;(0x0,core_1[_0x4b0f39(0x11a)])(interface_1[_0x4b0f39(0x12b)],_0x5bf0e1),(0x0,core_1['Scope'])(core_1[_0x4b0f39(0x11d)]['Singleton'])(_0x5bf0e1),(0x0,core_1[_0x4b0f39(0x12c)])(interface_1[_0x4b0f39(0x12b)],_0x16dff3,_0x5bf0e1);};}function a5_0x2f42(_0x5bf0a8,_0x1922da){const _0x558f93=a5_0x558f();return a5_0x2f42=function(_0x2f4239,_0x37cce4){_0x2f4239=_0x2f4239-0x119;let _0x374956=_0x558f93[_0x2f4239];return _0x374956;},a5_0x2f42(_0x5bf0a8,_0x1922da);}exports[a5_0x1369a2(0x123)]=ProvideSearch;function Search(_0x5b7645,_0x1d3ef1){return(_0x5d2141,_0x29c61c,_0x349079)=>{const _0x335832=a5_0x2f42;(0x0,core_1[_0x335832(0x12c)])(interface_1[_0x335832(0x11f)],{'field':_0x5b7645,'comment':_0x1d3ef1,'target':_0x5d2141,'methodName':_0x29c61c,'descriptor':_0x349079},_0x5d2141);};}exports[a5_0x1369a2(0x124)]=Search;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a6_0x517073=a6_0x1502;(function(_0x25d5a0,_0x3914b8){const _0x1c6130=a6_0x1502,_0x5711e4=_0x25d5a0();while(!![]){try{const _0xdd5a39=-parseInt(_0x1c6130(0xe2))/0x1+parseInt(_0x1c6130(0xf2))/0x2*(-parseInt(_0x1c6130(0xe1))/0x3)+-parseInt(_0x1c6130(0xf6))/0x4*(parseInt(_0x1c6130(0xf4))/0x5)+-parseInt(_0x1c6130(0xfd))/0x6*(parseInt(_0x1c6130(0xe7))/0x7)+parseInt(_0x1c6130(0xea))/0x8+-parseInt(_0x1c6130(0x100))/0x9*(parseInt(_0x1c6130(0x105))/0xa)+parseInt(_0x1c6130(0xf0))/0xb*(parseInt(_0x1c6130(0xef))/0xc);if(_0xdd5a39===_0x3914b8)break;else _0x5711e4['push'](_0x5711e4['shift']());}catch(_0x121537){_0x5711e4['push'](_0x5711e4['shift']());}}}(a6_0x44d2,0x6572c));function a6_0x1502(_0x1cf7d2,_0x346f0e){const _0x44d258=a6_0x44d2();return a6_0x1502=function(_0x1502e4,_0x32fdf8){_0x1502e4=_0x1502e4-0xe0;let _0x191b50=_0x44d258[_0x1502e4];return _0x191b50;},a6_0x1502(_0x1cf7d2,_0x346f0e);}Object[a6_0x517073(0xff)](exports,'__esModule',{'value':!![]}),exports[a6_0x517073(0xe9)]=void 0x0;const typeorm_1=require(a6_0x517073(0xf3)),core_1=require(a6_0x517073(0xee)),interface_1=require(a6_0x517073(0xf7));function a6_0x44d2(){const _0x904812=['817302qxNnmv','lockMode','defineProperty','189279XQRIzK','getMany','OptimisticLockVersionMismatchError','mainAlias','ENTITY_VIRTUAL_COLUMN_KEY','90OQdbvH','expressionMap','saveClassMetadata','hasOwnProperty','2886fQjKwt','328185qOcmLM','getTime','SelectQueryBuilder','lockVersion','updateDateColumn','7akRgRb','optimistic','VirtualColumn','4029904xzYqAI','getClassMetadata','prototype','getCount','@midwayjs/core','2491044ZiKouH','77MvChIU','getOne','1326LMDopN','typeorm','416380JWjnML','OptimisticLockCanNotBeUsedError','12YiAnRF','../interface','default','getRawAndEntities','name','map','getEntityValue'];a6_0x44d2=function(){return _0x904812;};return a6_0x44d2();}function VirtualColumn(_0x2814f6,_0x5bfc9a){return(_0x5c3769,_0x5cceb4)=>{const _0x1f0d94=a6_0x1502,_0x59e477=(0x0,core_1[_0x1f0d94(0xeb)])(interface_1[_0x1f0d94(0x104)],_0x5c3769)||{};_0x59e477[_0x5cceb4]={'comment':_0x2814f6,..._0x5bfc9a},(0x0,core_1[_0x1f0d94(0x107)])(interface_1[_0x1f0d94(0x104)],_0x59e477,_0x5c3769);};}exports[a6_0x517073(0xe9)]=VirtualColumn,typeorm_1[a6_0x517073(0xe4)][a6_0x517073(0xec)][a6_0x517073(0x101)]=async function(){const _0x3bb8b1=a6_0x517073;if(this[_0x3bb8b1(0x106)][_0x3bb8b1(0xfe)]===_0x3bb8b1(0xe8))throw new typeorm_1[(_0x3bb8b1(0xf5))]();const {entities:_0x33d896,raw:_0x3a0acb}=await this[_0x3bb8b1(0xf9)]();return _0x33d896[_0x3bb8b1(0xfb)]((_0xe8445e,_0x45664a)=>{const _0x5c3534=_0x3bb8b1;var _0x40059a;const _0x46c7c4=(0x0,core_1[_0x5c3534(0xeb)])(interface_1[_0x5c3534(0x104)],_0xe8445e)||{};for(const _0x5e2da6 in _0x46c7c4){_0x3a0acb[_0x45664a]&&_0x3a0acb[_0x45664a][_0x5c3534(0xe0)](_0x5e2da6)&&(_0xe8445e[_0x5e2da6]=_0x3a0acb[_0x45664a][_0x5e2da6]||((_0x40059a=_0x46c7c4[_0x5e2da6])===null||_0x40059a===void 0x0?void 0x0:_0x40059a['default'])||'');}return _0xe8445e;});},typeorm_1[a6_0x517073(0xe4)]['prototype']['getManyAndCount']=async function(){const _0xbb726=a6_0x517073;return[await this[_0xbb726(0x101)](),await this[_0xbb726(0xed)]()];},typeorm_1['SelectQueryBuilder']['prototype'][a6_0x517073(0xf1)]=async function(){const _0x1e10c0=a6_0x517073;var _0x49026f;const {entities:_0x129483,raw:_0x4e36ba}=await this[_0x1e10c0(0xf9)]();if(_0x129483[0x0]&&this[_0x1e10c0(0x106)][_0x1e10c0(0xfe)]===_0x1e10c0(0xe8)&&this[_0x1e10c0(0x106)]['lockVersion']){const _0x590642=this[_0x1e10c0(0x106)][_0x1e10c0(0x103)]['metadata'];if(this[_0x1e10c0(0x106)][_0x1e10c0(0xe5)]instanceof Date){const _0x46c44c=_0x590642[_0x1e10c0(0xe6)][_0x1e10c0(0xfc)](_0x129483[0x0]);if(_0x46c44c[_0x1e10c0(0xe3)]()!==this[_0x1e10c0(0x106)][_0x1e10c0(0xe5)]['getTime']())throw new typeorm_1['OptimisticLockVersionMismatchError'](_0x590642[_0x1e10c0(0xfa)],this[_0x1e10c0(0x106)][_0x1e10c0(0xe5)],_0x46c44c);}else{const _0x56341f=_0x590642['versionColumn'][_0x1e10c0(0xfc)](_0x129483[0x0]);if(_0x56341f!==this[_0x1e10c0(0x106)]['lockVersion'])throw new typeorm_1[(_0x1e10c0(0x102))](_0x590642['name'],this[_0x1e10c0(0x106)]['lockVersion'],_0x56341f);}}if(_0x129483[0x0]&&_0x4e36ba[0x0]){const _0x3374dd=(0x0,core_1['getClassMetadata'])(interface_1[_0x1e10c0(0x104)],_0x129483[0x0]);for(const _0x5cc50e in _0x3374dd){_0x4e36ba[0x0][_0x1e10c0(0xe0)](_0x5cc50e)&&(_0x129483[0x0][_0x5cc50e]=_0x4e36ba[0x0][_0x5cc50e]||((_0x49026f=_0x3374dd[_0x5cc50e])===null||_0x49026f===void 0x0?void 0x0:_0x49026f[_0x1e10c0(0xf8)])||'');}}return _0x129483[0x0]||null;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a7_0x2450a1=a7_0x53dd;(function(_0x5ea3f3,_0x2ac62d){const _0x27e955=a7_0x53dd,_0x460380=_0x5ea3f3();while(!![]){try{const _0x359b63=parseInt(_0x27e955(0x1a7))/0x1*(parseInt(_0x27e955(0x1a4))/0x2)+parseInt(_0x27e955(0x1d7))/0x3*(-parseInt(_0x27e955(0x1dd))/0x4)+parseInt(_0x27e955(0x1a9))/0x5+parseInt(_0x27e955(0x1d2))/0x6+parseInt(_0x27e955(0x1cc))/0x7+parseInt(_0x27e955(0x1c3))/0x8+-parseInt(_0x27e955(0x1c8))/0x9*(parseInt(_0x27e955(0x1dc))/0xa);if(_0x359b63===_0x2ac62d)break;else _0x460380['push'](_0x460380['shift']());}catch(_0x334d21){_0x460380['push'](_0x460380['shift']());}}}(a7_0x1581,0x2a5ba));Object[a7_0x2450a1(0x1b1)](exports,a7_0x2450a1(0x1c7),{'value':!![]}),exports[a7_0x2450a1(0x1b4)]=void 0x0;function a7_0x53dd(_0x55e5a0,_0x575986){const _0x158105=a7_0x1581();return a7_0x53dd=function(_0x53dd5c,_0x100119){_0x53dd5c=_0x53dd5c-0x190;let _0x19bce5=_0x158105[_0x53dd5c];return _0x19bce5;},a7_0x53dd(_0x55e5a0,_0x575986);}const core_1=require(a7_0x2450a1(0x195)),typeorm_1=require(a7_0x2450a1(0x1ce)),interface_1=require(a7_0x2450a1(0x191));class Repository extends typeorm_1[a7_0x2450a1(0x1b4)]{constructor(_0x2d15b9,_0x4ec3f7){const _0x995d00=a7_0x2450a1;super(_0x4ec3f7[_0x995d00(0x1c1)],_0x4ec3f7[_0x995d00(0x1af)],_0x4ec3f7[_0x995d00(0x1cd)]),this[_0x995d00(0x19e)]=[];for(const _0x3aeabc of(0x0,core_1[_0x995d00(0x1a8)])(interface_1['MODEL_KEY'],this['target'])||[]){const _0x31547c={'model':_0x3aeabc,'searchs':[]};for(const _0x55eb27 of(0x0,core_1[_0x995d00(0x1a8)])(interface_1[_0x995d00(0x1a1)],_0x3aeabc)||[]){_0x31547c[_0x995d00(0x1c2)][_0x995d00(0x1de)](_0x55eb27);}this['modelSearchs'][_0x995d00(0x1de)](_0x31547c);}this['app']=_0x2d15b9;}async[a7_0x2450a1(0x1a2)](_0x319e5e,_0xfa0641,_0x1fd1ee={}){const _0x177774=a7_0x2450a1;var _0x37e773,_0x3d184f,_0x3bda4a,_0x52b90c,_0x45c3e9,_0x34ae85;const _0x1ab30f=this[_0x177774(0x1c9)](undefined,_0x1fd1ee===null||_0x1fd1ee===void 0x0?void 0x0:_0x1fd1ee[_0x177774(0x1cd)]),_0x4370ad=[];for(const _0x63c5c3 of this[_0x177774(0x19e)]){if((_0x63c5c3===null||_0x63c5c3===void 0x0?void 0x0:_0x63c5c3[_0x177774(0x1bf)])&&((_0x37e773=_0x63c5c3===null||_0x63c5c3===void 0x0?void 0x0:_0x63c5c3[_0x177774(0x1c2)])===null||_0x37e773===void 0x0?void 0x0:_0x37e773['length'])>0x0){const _0x3a8964=await this[_0x177774(0x1d8)][_0x177774(0x1c0)]()[_0x177774(0x1d0)](_0x63c5c3['model']);for(const _0x50b7bc of _0x63c5c3[_0x177774(0x1c2)]){(_0x50b7bc===null||_0x50b7bc===void 0x0?void 0x0:_0x50b7bc[_0x177774(0x1a3)])&&(_0x50b7bc===null||_0x50b7bc===void 0x0?void 0x0:_0x50b7bc[_0x177774(0x1cf)])&&typeof _0x3a8964[_0x50b7bc['methodName']]==_0x177774(0x1b3)&&(typeof(_0x319e5e===null||_0x319e5e===void 0x0?void 0x0:_0x319e5e[_0x50b7bc[_0x177774(0x1a3)]])!=_0x177774(0x1da)&&!((_0x3d184f=_0x319e5e===null||_0x319e5e===void 0x0?void 0x0:_0x319e5e[_0x50b7bc[_0x177774(0x1a3)]])===null||_0x3d184f===void 0x0?void 0x0:_0x3d184f[_0x177774(0x1d6)](_0x177774(0x198)))&&(_0x4370ad['indexOf'](_0x50b7bc[_0x177774(0x1a3)])==-0x1&&_0x4370ad[_0x177774(0x1de)](_0x50b7bc['field']),await _0x3a8964[_0x50b7bc[_0x177774(0x1cf)]][_0x177774(0x1ab)](_0x3a8964)(_0x1ab30f,_0x319e5e[_0x50b7bc[_0x177774(0x1a3)]],_0x319e5e,_0xfa0641,_0x1fd1ee===null||_0x1fd1ee===void 0x0?void 0x0:_0x1fd1ee[_0x177774(0x1cd)])));}}}for(const _0x2ef3f0 in _0x319e5e){if(typeof _0x319e5e[_0x2ef3f0]!='undefined'&&_0x4370ad[_0x177774(0x1ba)](_0x2ef3f0)==-0x1){const _0x1ad602=this[_0x177774(0x1b5)]['findColumnWithPropertyName'](_0x2ef3f0);if(_0x1ad602){if((_0x3bda4a=_0x319e5e===null||_0x319e5e===void 0x0?void 0x0:_0x319e5e[_0x2ef3f0])===null||_0x3bda4a===void 0x0?void 0x0:_0x3bda4a['hasOwnProperty'](_0x177774(0x198))){const _0x2a6a9e=(_0x52b90c=_0x319e5e[_0x2ef3f0])===null||_0x52b90c===void 0x0?void 0x0:_0x52b90c['condition'],_0x1c1c2a=(_0x45c3e9=_0x319e5e[_0x2ef3f0])===null||_0x45c3e9===void 0x0?void 0x0:_0x45c3e9['operator']['trim']()[_0x177774(0x1d3)](),_0x28549b='_auto_'+_0x2ef3f0+'_'+Math[_0x177774(0x190)](Math[_0x177774(0x1a0)]()*0xa)+Math['ceil'](Math[_0x177774(0x1a0)]()*0xa)+Math['ceil'](Math[_0x177774(0x1a0)]()*0xa)+Math[_0x177774(0x190)](Math['random']()*0xa);if(['=','!=','<>','>','>=','<','<=',_0x177774(0x19d),_0x177774(0x1be)][_0x177774(0x1ba)](_0x1c1c2a)!=-0x1)typeof _0x2a6a9e!='undefined'&&_0x1ab30f['andWhere'](_0x1ab30f[_0x177774(0x194)]+'.'+_0x2ef3f0+'\x20'+_0x1c1c2a+'\x20:'+_0x28549b,{[_0x28549b]:_0x2a6a9e});else{if(['IN',_0x177774(0x19f)][_0x177774(0x1ba)](_0x1c1c2a)!=-0x1){if(typeof _0x2a6a9e!=_0x177774(0x1da)){const _0x3e78b9=Array['isArray'](_0x2a6a9e)?_0x2a6a9e:typeof _0x2a6a9e==_0x177774(0x1aa)?_0x2a6a9e[_0x177774(0x196)](','):[_0x2a6a9e];_0x1ab30f[_0x177774(0x1ae)](_0x1ab30f['alias']+'.'+_0x2ef3f0+'\x20'+_0x1c1c2a+'(:'+_0x28549b+')',{[_0x28549b]:_0x3e78b9});}}else{if([_0x177774(0x1db),_0x177774(0x1d9)]['indexOf'](_0x1c1c2a)!=-0x1)typeof _0x2a6a9e!=_0x177774(0x1da)&&_0x1ab30f[_0x177774(0x1ae)](_0x1c1c2a+'(:'+_0x28549b+','+_0x1ab30f[_0x177774(0x194)]+'.'+_0x2ef3f0+')',{[_0x28549b]:_0x2a6a9e});else{if([_0x177774(0x1bd),_0x177774(0x1b9)][_0x177774(0x1ba)](_0x1c1c2a)!=-0x1){if(typeof _0x2a6a9e!='undefined'){const _0x382529=Array[_0x177774(0x1b2)](_0x2a6a9e)?_0x2a6a9e:typeof _0x2a6a9e=='string'?_0x2a6a9e['split'](','):[_0x2a6a9e];_0x382529[_0x177774(0x1b7)]>0x1&&_0x1ab30f[_0x177774(0x1ae)](_0x1ab30f[_0x177774(0x194)]+'.'+_0x2ef3f0+'\x20'+_0x1c1c2a+'\x20:'+_0x28549b+_0x177774(0x1a5)+_0x28549b+'_2',{[''+_0x28549b]:_0x382529[0x0],[_0x28549b+'_2']:_0x382529[0x1]});}}else['ISNULL',_0x177774(0x1ac)][_0x177774(0x1ba)](_0x1c1c2a)!=-0x1&&_0x1ab30f['andWhere'](_0x1c1c2a+'('+_0x1ab30f[_0x177774(0x194)]+'.'+_0x2ef3f0+')');}}}}else{if(_0x4370ad[_0x177774(0x1ba)](_0x2ef3f0)==-0x1){const _0x13e0cf=typeof _0x1ad602['type']==_0x177774(0x1b3)?(_0x34ae85=_0x1ad602===null||_0x1ad602===void 0x0?void 0x0:_0x1ad602['type'])===null||_0x34ae85===void 0x0?void 0x0:_0x34ae85[_0x177774(0x1bc)]:_0x1ad602[_0x177774(0x1b8)][_0x177774(0x1ad)]();_0x13e0cf=='String'?_0x1ab30f['andWhere'](_0x1ab30f[_0x177774(0x194)]+'.'+_0x2ef3f0+_0x177774(0x192)+_0x2ef3f0,{[_0x177774(0x1d5)+_0x2ef3f0]:'%'+_0x319e5e[_0x2ef3f0]+'%'}):_0x1ab30f[_0x177774(0x1ae)](_0x1ab30f['alias']+'.'+_0x2ef3f0+_0x177774(0x1a6)+_0x2ef3f0,{[_0x177774(0x1d5)+_0x2ef3f0]:_0x319e5e[_0x2ef3f0]});}}}}}(_0xfa0641===null||_0xfa0641===void 0x0?void 0x0:_0xfa0641[_0x177774(0x197)])&&_0x1ab30f[_0x177774(0x1ca)](Math[_0x177774(0x1bb)](_0xfa0641[_0x177774(0x197)]));(_0xfa0641===null||_0xfa0641===void 0x0?void 0x0:_0xfa0641[_0x177774(0x199)])&&(_0xfa0641===null||_0xfa0641===void 0x0?void 0x0:_0xfa0641[_0x177774(0x197)])&&_0x1ab30f[_0x177774(0x19b)]((Math[_0x177774(0x1bb)](_0xfa0641[_0x177774(0x199)])-0x1)*Math[_0x177774(0x1bb)](_0xfa0641[_0x177774(0x197)]));if(_0xfa0641===null||_0xfa0641===void 0x0?void 0x0:_0xfa0641[_0x177774(0x1d1)]){if(_0xfa0641[_0x177774(0x1d1)][_0x177774(0x1ba)]('.')!==-0x1)_0x1ab30f[_0x177774(0x1b0)](''+_0xfa0641[_0x177774(0x1d1)],(_0xfa0641===null||_0xfa0641===void 0x0?void 0x0:_0xfa0641['_isreverse'])?_0x177774(0x19a):_0x177774(0x1c5));else _0x4370ad['indexOf'](_0xfa0641[_0x177774(0x1d1)])==-0x1&&(this[_0x177774(0x1b5)]['findColumnWithPropertyName'](_0xfa0641[_0x177774(0x1d1)])?_0x1ab30f[_0x177774(0x1b0)](_0x1ab30f['alias']+'.'+_0xfa0641[_0x177774(0x1d1)],(_0xfa0641===null||_0xfa0641===void 0x0?void 0x0:_0xfa0641['_isreverse'])?_0x177774(0x19a):'DESC'):_0x1ab30f[_0x177774(0x1b0)](''+_0xfa0641['_order'],(_0xfa0641===null||_0xfa0641===void 0x0?void 0x0:_0xfa0641[_0x177774(0x1cb)])?_0x177774(0x19a):'DESC'));}return typeof(_0x1fd1ee===null||_0x1fd1ee===void 0x0?void 0x0:_0x1fd1ee['excess'])==_0x177774(0x1b3)&&await(_0x1fd1ee===null||_0x1fd1ee===void 0x0?void 0x0:_0x1fd1ee[_0x177774(0x193)](_0x1ab30f)),_0x1ab30f;}async[a7_0x2450a1(0x1b6)](_0x19f384,..._0x4fe80e){const _0x259c9b=a7_0x2450a1,_0x2129e4=this[_0x259c9b(0x19c)](_0x19f384,..._0x4fe80e);return await this[_0x259c9b(0x1c6)](_0x2129e4);}async[a7_0x2450a1(0x1d4)](_0x11ebc4,..._0x522aa3){const _0x36f583=a7_0x2450a1,_0x304d1d=this['merge'](this[_0x36f583(0x1c4)](_0x11ebc4),..._0x522aa3);return await this[_0x36f583(0x1c6)](_0x304d1d);}async['transaction'](_0x5d9e9c,_0x4a11a2){const _0x3d7058=a7_0x2450a1;return this[_0x3d7058(0x1af)]['transaction'](_0x5d9e9c,_0x4a11a2);}}function a7_0x1581(){const _0x5d0532=['_order','1987140qnICCN','toUpperCase','createSave','_auto_','hasOwnProperty','231243UTJJEA','app','NOT\x20FIND\x20IN\x20SET','undefined','FIND\x20IN\x20SET','190KIAluz','8EaMtwA','push','ceil','../interface','\x20like\x20:_auto_','excess','alias','@midwayjs/core','split','_size','operator','_page','ASC','skip','merge','LIKE','modelSearchs','NOT\x20IN','random','MODEL_SEARCH_KEY','search','field','646fhQzAc','\x20AND\x20:','\x20=\x20:_auto_','889gNRLZO','getClassMetadata','215425kROTOf','string','bind','NOT\x20ISNULL','toString','andWhere','manager','orderBy','defineProperty','isArray','function','Repository','metadata','mergeSave','length','type','NOT\x20BETWEEN','indexOf','abs','name','BETWEEN','NOT\x20LIKE','model','getApplicationContext','target','searchs','873720WiNwJR','create','DESC','save','__esModule','258453YFUjsa','createQueryBuilder','take','_isreverse','718522lxdfpC','queryRunner','typeorm','methodName','getAsync'];a7_0x1581=function(){return _0x5d0532;};return a7_0x1581();}exports['Repository']=Repository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a8_0x400c72=a8_0x7087;(function(_0x2cd8c8,_0xa0b656){const _0x533291=a8_0x7087,_0x5503e7=_0x2cd8c8();while(!![]){try{const _0x28e78a=parseInt(_0x533291(0xec))/0x1*(-parseInt(_0x533291(0xf0))/0x2)+parseInt(_0x533291(0xef))/0x3+parseInt(_0x533291(0xdd))/0x4*(-parseInt(_0x533291(0xe1))/0x5)+-parseInt(_0x533291(0xe5))/0x6*(parseInt(_0x533291(0xe7))/0x7)+parseInt(_0x533291(0xe8))/0x8*(parseInt(_0x533291(0xe0))/0x9)+parseInt(_0x533291(0xf1))/0xa*(-parseInt(_0x533291(0xda))/0xb)+parseInt(_0x533291(0xdb))/0xc*(parseInt(_0x533291(0xe3))/0xd);if(_0x28e78a===_0xa0b656)break;else _0x5503e7['push'](_0x5503e7['shift']());}catch(_0x12ace3){_0x5503e7['push'](_0x5503e7['shift']());}}}(a8_0x67d7,0x57de6));Object[a8_0x400c72(0xee)](exports,a8_0x400c72(0xeb),{'value':!![]}),exports['getDataSourceEntity']=void 0x0;const core_1=require(a8_0x400c72(0xe9)),interface_1=require('../interface');function getDataSourceEntity(_0x5199f5=a8_0x400c72(0xdf)){const _0x2043fa=a8_0x400c72;var _0x4869e7;const _0x5dceb1=[];for(const _0x131bb4 of(0x0,core_1[_0x2043fa(0xed)])(interface_1[_0x2043fa(0xea)])){const _0x46f521=(0x0,core_1[_0x2043fa(0xe2)])(interface_1[_0x2043fa(0xde)],_0x131bb4);((_0x4869e7=_0x46f521===null||_0x46f521===void 0x0?void 0x0:_0x46f521[_0x2043fa(0xe6)])===null||_0x4869e7===void 0x0?void 0x0:_0x4869e7[_0x2043fa(0xe4)](_0x1174cb=>_0x1174cb==_0x5199f5))&&_0x5dceb1[_0x2043fa(0xdc)](_0x131bb4);}return _0x5dceb1;}exports['getDataSourceEntity']=getDataSourceEntity;function a8_0x7087(_0x473cb5,_0x3818a5){const _0x67d72a=a8_0x67d7();return a8_0x7087=function(_0x70871b,_0x3dd17a){_0x70871b=_0x70871b-0xda;let _0x43f014=_0x67d72a[_0x70871b];return _0x43f014;},a8_0x7087(_0x473cb5,_0x3818a5);}function a8_0x67d7(){const _0x4cfdf9=['86488PAEQdO','@midwayjs/core','ENTIFY_MODULE','__esModule','308659teCHrL','listModule','defineProperty','2115795zMEftu','2WiNhYY','6242590VLocqp','11DPspSb','10055316wZdxqq','push','21944OEBOcQ','ENTIFY_MODULE_SOURCE','default','549AnEScn','255CbzCjR','getClassMetadata','13jTnQuj','find','6uvNbeA','dataSource','4410455FUXgVq'];a8_0x67d7=function(){return _0x4cfdf9;};return a8_0x67d7();}
|
package/dist/index.d.ts
CHANGED
|
@@ -9,4 +9,4 @@ export { ProvideRepository } from './decorator/ProvideRepository';
|
|
|
9
9
|
export { ProvideSearch, Search } from "./decorator/ProvideSearch";
|
|
10
10
|
export { getDataSourceEntity } from './helper/getDataSourceEntity';
|
|
11
11
|
export { CustomConfiguration as Configuration } from './configuration';
|
|
12
|
-
export { Provide, Inject, Scope, ScopeEnum } from "@midwayjs/
|
|
12
|
+
export { Provide, Inject, Scope, ScopeEnum } from "@midwayjs/core";
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x24e900=a9_0x56af;(function(_0x180445,_0x51a697){var _0x35be7b=a9_0x56af,_0x33f6cf=_0x180445();while(!![]){try{var _0x88dcb6=-parseInt(_0x35be7b(0x1b5))/0x1*(parseInt(_0x35be7b(0x1c0))/0x2)+parseInt(_0x35be7b(0x1c4))/0x3*(parseInt(_0x35be7b(0x1a4))/0x4)+-parseInt(_0x35be7b(0x1bc))/0x5+parseInt(_0x35be7b(0x1c5))/0x6*(parseInt(_0x35be7b(0x1b1))/0x7)+-parseInt(_0x35be7b(0x1cb))/0x8+-parseInt(_0x35be7b(0x1ba))/0x9*(parseInt(_0x35be7b(0x1ad))/0xa)+parseInt(_0x35be7b(0x1aa))/0xb;if(_0x88dcb6===_0x51a697)break;else _0x33f6cf['push'](_0x33f6cf['shift']());}catch(_0x3934fb){_0x33f6cf['push'](_0x33f6cf['shift']());}}}(a9_0x23b1,0x1e7d7));var __createBinding=this&&this[a9_0x24e900(0x1ca)]||(Object['create']?function(_0x57bef8,_0x4b405f,_0x3896e0,_0x400c6){var _0x133f56=a9_0x24e900;if(_0x400c6===undefined)_0x400c6=_0x3896e0;var _0x2fb3a3=Object[_0x133f56(0x1c1)](_0x4b405f,_0x3896e0);(!_0x2fb3a3||(_0x133f56(0x1be)in _0x2fb3a3?!_0x4b405f[_0x133f56(0x1bd)]:_0x2fb3a3[_0x133f56(0x1a6)]||_0x2fb3a3['configurable']))&&(_0x2fb3a3={'enumerable':!![],'get':function(){return _0x4b405f[_0x3896e0];}}),Object['defineProperty'](_0x57bef8,_0x400c6,_0x2fb3a3);}:function(_0x5b1014,_0x3acb31,_0x1da93d,_0x200b6f){if(_0x200b6f===undefined)_0x200b6f=_0x1da93d;_0x5b1014[_0x200b6f]=_0x3acb31[_0x1da93d];}),__exportStar=this&&this[a9_0x24e900(0x1a8)]||function(_0x1324b6,_0x2c1036){var _0x4fa2b3=a9_0x24e900;for(var _0x9fd6b5 in _0x1324b6)if(_0x9fd6b5!==_0x4fa2b3(0x1cd)&&!Object[_0x4fa2b3(0x1a5)][_0x4fa2b3(0x1c8)][_0x4fa2b3(0x1ac)](_0x2c1036,_0x9fd6b5))__createBinding(_0x2c1036,_0x1324b6,_0x9fd6b5);};Object['defineProperty'](exports,a9_0x24e900(0x1bd),{'value':!![]}),exports[a9_0x24e900(0x1c7)]=exports[a9_0x24e900(0x1b9)]=exports[a9_0x24e900(0x1b6)]=exports[a9_0x24e900(0x1b8)]=exports['Configuration']=exports[a9_0x24e900(0x1c3)]=exports[a9_0x24e900(0x1b3)]=exports[a9_0x24e900(0x1a3)]=exports[a9_0x24e900(0x1a7)]=exports['ProvideEntity']=exports['InjectRepository']=exports[a9_0x24e900(0x1b7)]=exports['VirtualColumn']=exports[a9_0x24e900(0x1ab)]=void 0x0,__exportStar(require(a9_0x24e900(0x1ce)),exports),__exportStar(require(a9_0x24e900(0x1a2)),exports);var Repository_1=require(a9_0x24e900(0x1b2));Object[a9_0x24e900(0x1bb)](exports,'Repository',{'enumerable':!![],'get':function(){return Repository_1['Repository'];}});var VirtualColumn_1=require(a9_0x24e900(0x1b4));Object['defineProperty'](exports,a9_0x24e900(0x1a9),{'enumerable':!![],'get':function(){return VirtualColumn_1['VirtualColumn'];}});var InjectEntity_1=require('./decorator/InjectEntity');Object[a9_0x24e900(0x1bb)](exports,a9_0x24e900(0x1b7),{'enumerable':!![],'get':function(){var _0x53b3ed=a9_0x24e900;return InjectEntity_1[_0x53b3ed(0x1b7)];}});var InjectRepository_1=require(a9_0x24e900(0x1b0));Object[a9_0x24e900(0x1bb)](exports,'InjectRepository',{'enumerable':!![],'get':function(){var _0x299bb2=a9_0x24e900;return InjectRepository_1[_0x299bb2(0x1c2)];}});var ProvideEntity_1=require(a9_0x24e900(0x1c6));Object['defineProperty'](exports,'ProvideEntity',{'enumerable':!![],'get':function(){var _0x5f0c09=a9_0x24e900;return ProvideEntity_1[_0x5f0c09(0x1ae)];}});var ProvideRepository_1=require(a9_0x24e900(0x1af));Object['defineProperty'](exports,a9_0x24e900(0x1a7),{'enumerable':!![],'get':function(){return ProvideRepository_1['ProvideRepository'];}});var ProvideSearch_1=require(a9_0x24e900(0x1bf));Object[a9_0x24e900(0x1bb)](exports,a9_0x24e900(0x1a3),{'enumerable':!![],'get':function(){var _0x47947c=a9_0x24e900;return ProvideSearch_1[_0x47947c(0x1a3)];}}),Object[a9_0x24e900(0x1bb)](exports,a9_0x24e900(0x1b3),{'enumerable':!![],'get':function(){return ProvideSearch_1['Search'];}});var getDataSourceEntity_1=require(a9_0x24e900(0x1cc));Object[a9_0x24e900(0x1bb)](exports,a9_0x24e900(0x1c3),{'enumerable':!![],'get':function(){return getDataSourceEntity_1['getDataSourceEntity'];}});var configuration_1=require('./configuration');function a9_0x56af(_0x5bbd14,_0x43789f){var _0x23b17e=a9_0x23b1();return a9_0x56af=function(_0x56afbf,_0x55c81a){_0x56afbf=_0x56afbf-0x1a2;var _0x48afc3=_0x23b17e[_0x56afbf];return _0x48afc3;},a9_0x56af(_0x5bbd14,_0x43789f);}Object[a9_0x24e900(0x1bb)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x3a4fea=a9_0x24e900;return configuration_1[_0x3a4fea(0x1c9)];}});var core_1=require('@midwayjs/core');function a9_0x23b1(){var _0x56fbc3=['277142rvstmW','getOwnPropertyDescriptor','InjectRepository','getDataSourceEntity','1335ctRpkh','144216VrfWub','./decorator/ProvideEntity','ScopeEnum','hasOwnProperty','CustomConfiguration','__createBinding','1193472mRChdX','./helper/getDataSourceEntity','default','typeorm','./interface','ProvideSearch','1244nSndew','prototype','writable','ProvideRepository','__exportStar','VirtualColumn','3708067TjjWgN','Repository','call','140SFGkFm','ProvideEntity','./decorator/ProvideRepository','./decorator/InjectRepository','63NTdgeE','./definition/Repository','Search','./decorator/VirtualColumn','1zByUTr','Inject','InjectEntity','Provide','Scope','56223IwilJt','defineProperty','958580yUzfqX','__esModule','get','./decorator/ProvideSearch'];a9_0x23b1=function(){return _0x56fbc3;};return a9_0x23b1();}Object[a9_0x24e900(0x1bb)](exports,a9_0x24e900(0x1b8),{'enumerable':!![],'get':function(){return core_1['Provide'];}}),Object[a9_0x24e900(0x1bb)](exports,a9_0x24e900(0x1b6),{'enumerable':!![],'get':function(){var _0x4ef358=a9_0x24e900;return core_1[_0x4ef358(0x1b6)];}}),Object[a9_0x24e900(0x1bb)](exports,'Scope',{'enumerable':!![],'get':function(){var _0x50666d=a9_0x24e900;return core_1[_0x50666d(0x1b9)];}}),Object['defineProperty'](exports,'ScopeEnum',{'enumerable':!![],'get':function(){return core_1['ScopeEnum'];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a10_0x11b4cc=a10_0x5de4;(function(_0x4f44ca,_0x29d319){const _0x2f1e7b=a10_0x5de4,_0x2a632e=_0x4f44ca();while(!![]){try{const _0x3a8e1d=parseInt(_0x2f1e7b(0x140))/0x1+-parseInt(_0x2f1e7b(0x132))/0x2*(parseInt(_0x2f1e7b(0x137))/0x3)+-parseInt(_0x2f1e7b(0x124))/0x4+-parseInt(_0x2f1e7b(0x127))/0x5+parseInt(_0x2f1e7b(0x131))/0x6*(parseInt(_0x2f1e7b(0x12f))/0x7)+-parseInt(_0x2f1e7b(0x134))/0x8+-parseInt(_0x2f1e7b(0x13b))/0x9*(-parseInt(_0x2f1e7b(0x136))/0xa);if(_0x3a8e1d===_0x29d319)break;else _0x2a632e['push'](_0x2a632e['shift']());}catch(_0x389177){_0x2a632e['push'](_0x2a632e['shift']());}}}(a10_0xab6e,0x30710));function a10_0xab6e(){const _0x5ac294=['MODEL_KEY','ENTITY_VIRTUAL_COLUMN_KEY','decorator:anncic-api:typeorm:entify','963DdMOaF','reject','ENTIFY_KEY','decorator:anncic-api:typeorm:model','findOne','111142CPQoYW','EntityManager','findOneByOrFail','decorator:anncic-api:typeorm:entify:module:source','decorator:anncic-api:typeorm:model:search','__esModule','1183216bEjsDx','SearchPaginate','ENTIFY_MODULE_SOURCE','1348295OFBdSG','ENTIFY_MODULE','MODEL_SEARCH_KEY','prototype','EntityNotFoundError','findOneOrFail','defineProperty','REPOSITORY_KEY','35gOLLTc','then','114102caEQpl','13514ujFWLs','resolve','3062048zPtvqE','decorator:anncic-api:typeorm:entity:virtual:column','101150NMHCxr','63HyOLIM'];a10_0xab6e=function(){return _0x5ac294;};return a10_0xab6e();}Object[a10_0x11b4cc(0x12d)](exports,a10_0x11b4cc(0x123),{'value':!![]}),exports[a10_0x11b4cc(0x125)]=exports[a10_0x11b4cc(0x139)]=exports[a10_0x11b4cc(0x129)]=exports['MODEL_KEY']=exports[a10_0x11b4cc(0x12e)]=exports[a10_0x11b4cc(0x126)]=exports[a10_0x11b4cc(0x128)]=exports[a10_0x11b4cc(0x13d)]=void 0x0;const typeorm_1=require('typeorm');function a10_0x5de4(_0x460d1c,_0x158ace){const _0xab6ec3=a10_0xab6e();return a10_0x5de4=function(_0x5de469,_0x3f2823){_0x5de469=_0x5de469-0x122;let _0x4a5848=_0xab6ec3[_0x5de469];return _0x4a5848;},a10_0x5de4(_0x460d1c,_0x158ace);}exports[a10_0x11b4cc(0x13d)]=a10_0x11b4cc(0x13a),exports[a10_0x11b4cc(0x128)]='decorator:anncic-api:typeorm:entify:module',exports[a10_0x11b4cc(0x126)]=a10_0x11b4cc(0x143),exports[a10_0x11b4cc(0x12e)]='decorator:anncic-api:typeorm:repository',exports[a10_0x11b4cc(0x138)]=a10_0x11b4cc(0x13e),exports[a10_0x11b4cc(0x129)]=a10_0x11b4cc(0x122),exports[a10_0x11b4cc(0x139)]=a10_0x11b4cc(0x135);class SearchPaginate{}exports[a10_0x11b4cc(0x125)]=SearchPaginate,typeorm_1[a10_0x11b4cc(0x141)][a10_0x11b4cc(0x12a)][a10_0x11b4cc(0x12c)]=async function(_0x45d0f2,_0x1460b7){const _0x54919a=a10_0x11b4cc;return this[_0x54919a(0x13f)](_0x45d0f2,_0x1460b7)[_0x54919a(0x130)](_0x298fc2=>{const _0x214a08=_0x54919a;if(_0x298fc2===null||_0x298fc2===undefined)return Promise[_0x214a08(0x13c)](new typeorm_1[(_0x214a08(0x12b))](_0x45d0f2,_0x1460b7));return Promise['resolve'](_0x298fc2);});},typeorm_1['EntityManager']['prototype'][a10_0x11b4cc(0x142)]=async function(_0x4357cb,_0x168604){const _0x491d81=a10_0x11b4cc;return this['findOneBy'](_0x4357cb,_0x168604)[_0x491d81(0x130)](_0xb23ea7=>{const _0x572070=_0x491d81;if(_0xb23ea7===null||_0xb23ea7===undefined)return Promise[_0x572070(0x13c)](new typeorm_1[(_0x572070(0x12b))](_0x4357cb,_0x168604));return Promise[_0x572070(0x133)](_0xb23ea7);});};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/typeorm",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@midwayjs/typeorm": "^3.
|
|
18
|
-
"typeorm": "^0.3.
|
|
17
|
+
"@midwayjs/typeorm": "^3.6.0",
|
|
18
|
+
"typeorm": "^0.3.10"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/node": "^18.6.5",
|
|
22
22
|
"javascript-obfuscator": "2.19.0",
|
|
23
23
|
"typescript": "^4.7.4"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "d43eedc661a63dbdfe722e7144b151aff0e4ffe2"
|
|
26
26
|
}
|