@anncic-api/typeorm 1.3.12 → 1.3.14
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_0x6264e3=a0_0x1b55;(function(_0x22ffad,_0x1d0939){const _0x5cb9c1=a0_0x1b55,_0x4d7c39=_0x22ffad();while(!![]){try{const _0x30cf74=parseInt(_0x5cb9c1(0x200))/0x1*(-parseInt(_0x5cb9c1(0x1ed))/0x2)+-parseInt(_0x5cb9c1(0x1f9))/0x3+-parseInt(_0x5cb9c1(0x1e2))/0x4+parseInt(_0x5cb9c1(0x1fb))/0x5+parseInt(_0x5cb9c1(0x1fc))/0x6+parseInt(_0x5cb9c1(0x1dd))/0x7+-parseInt(_0x5cb9c1(0x1ea))/0x8;if(_0x30cf74===_0x1d0939)break;else _0x4d7c39['push'](_0x4d7c39['shift']());}catch(_0x43f54e){_0x4d7c39['push'](_0x4d7c39['shift']());}}}(a0_0x4280,0x4d332));function a0_0x4280(){const _0x585efd=['prototype','getOwnPropertyDescriptor','ENTIFY_KEY','TypeORMError','\x20is\x20not\x20ProvideRepository\x20Entify','1425954PtOaei','length','2346705PBxdPu','3669348tRGupf','handlercache','@midwayjs/core','./interface','453FqJiNF','getEnv','@midwayjs/typeorm','object','Configuration','__metadata','anncic-api-typeorm\x20Error\x20','anncic-api:typeorm','push','getDataSourceNameByModel','CustomConfiguration','typeorm','__decorate','getAsync','metadata','Inject','数据不存在','4212418abRgpu','getRepository','decorator','defineProperty','config','903708VmzEIr','getDataSource','decorate','MidwayDecoratorService','warn','getClassMetadata','registerPropertyHandler','TypeORMDataSourceManager','4807136JaIkHL','body','design:type','284ZTbEAg','onReady','function','REPOSITORY_KEY','EntityNotFoundError','middlewareError','production'];a0_0x4280=function(){return _0x585efd;};return a0_0x4280();}var __decorate=this&&this[a0_0x6264e3(0x1d8)]||function(_0x107742,_0x1df7b7,_0x514a2d,_0x4cbd97){const _0x5ebb75=a0_0x6264e3;var _0x51b85f=arguments[_0x5ebb75(0x1fa)],_0x3521af=_0x51b85f<0x3?_0x1df7b7:_0x4cbd97===null?_0x4cbd97=Object[_0x5ebb75(0x1f5)](_0x1df7b7,_0x514a2d):_0x4cbd97,_0x50e5af;if(typeof Reflect===_0x5ebb75(0x203)&&typeof Reflect[_0x5ebb75(0x1e4)]===_0x5ebb75(0x1ef))_0x3521af=Reflect[_0x5ebb75(0x1e4)](_0x107742,_0x1df7b7,_0x514a2d,_0x4cbd97);else{for(var _0x39780a=_0x107742['length']-0x1;_0x39780a>=0x0;_0x39780a--)if(_0x50e5af=_0x107742[_0x39780a])_0x3521af=(_0x51b85f<0x3?_0x50e5af(_0x3521af):_0x51b85f>0x3?_0x50e5af(_0x1df7b7,_0x514a2d,_0x3521af):_0x50e5af(_0x1df7b7,_0x514a2d))||_0x3521af;}return _0x51b85f>0x3&&_0x3521af&&Object[_0x5ebb75(0x1e0)](_0x1df7b7,_0x514a2d,_0x3521af),_0x3521af;},__metadata=this&&this[a0_0x6264e3(0x1d1)]||function(_0x3a44aa,_0x25b30c){const _0x21dcda=a0_0x6264e3;if(typeof Reflect==='object'&&typeof Reflect[_0x21dcda(0x1da)]===_0x21dcda(0x1ef))return Reflect['metadata'](_0x3a44aa,_0x25b30c);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;function a0_0x1b55(_0x4137ff,_0x22baf6){const _0x428093=a0_0x4280();return a0_0x1b55=function(_0x1b55d2,_0x27144d){_0x1b55d2=_0x1b55d2-0x1d1;let _0x46c9dc=_0x428093[_0x1b55d2];return _0x46c9dc;},a0_0x1b55(_0x4137ff,_0x22baf6);}const typeorm_1=require(a0_0x6264e3(0x202)),core_1=require(a0_0x6264e3(0x1fe)),core_2=require(a0_0x6264e3(0x1fe)),typeorm_2=require(a0_0x6264e3(0x1d7)),Repository_1=require('./definition/Repository'),interface_1=require(a0_0x6264e3(0x1ff)),typeorm=require(a0_0x6264e3(0x202));let CustomConfiguration=class CustomConfiguration{constructor(){const _0xdd196=a0_0x6264e3;this[_0xdd196(0x1fd)]=[];}async[a0_0x6264e3(0x1ee)](_0x562823,_0x542ae2){const _0x332ecc=a0_0x6264e3,_0x2aee51=await _0x562823[_0x332ecc(0x1d9)](typeorm_1[_0x332ecc(0x1e9)]);this[_0x332ecc(0x1df)][_0x332ecc(0x1e8)](interface_1[_0x332ecc(0x1f6)],(_0x4ac252,{entity:_0x283b1b,connection:_0x346b7e})=>{const _0x1ca9a8=_0x332ecc;let _0x10f953=this[_0x1ca9a8(0x1fd)]['find'](_0xe05e1c=>_0xe05e1c['target']===_0x283b1b);return!_0x10f953&&(_0x10f953=new Repository_1['Repository'](_0x542ae2,_0x2aee51['getDataSource'](_0x346b7e||_0x2aee51[_0x1ca9a8(0x1d5)](_0x283b1b))['getRepository'](_0x283b1b)),this['handlercache']['push'](_0x10f953)),_0x10f953;}),this[_0x332ecc(0x1df)][_0x332ecc(0x1e8)](interface_1[_0x332ecc(0x1f0)],(_0x21a4a0,{repository:_0x3c510c,connection:_0x3a248f})=>{const _0x16dec4=_0x332ecc,{entity:_0x508a81}=(0x0,core_1[_0x16dec4(0x1e7)])(interface_1['REPOSITORY_KEY'],_0x3c510c)||{};if(!_0x508a81)throw new Error(_0x16dec4(0x1d2)+((_0x3c510c===null||_0x3c510c===void 0x0?void 0x0:_0x3c510c['name'])||_0x3c510c)+_0x16dec4(0x1f8));let _0x4bd12e=this[_0x16dec4(0x1fd)]['find'](_0x169f15=>_0x169f15===_0x3c510c);return!_0x4bd12e&&(_0x4bd12e=new _0x3c510c(_0x542ae2,_0x2aee51[_0x16dec4(0x1e3)](_0x3a248f||_0x2aee51[_0x16dec4(0x1d5)](_0x508a81))[_0x16dec4(0x1de)](_0x508a81)),this[_0x16dec4(0x1fd)][_0x16dec4(0x1d4)](_0x4bd12e)),_0x4bd12e;}),_0x542ae2['useMiddleware'](this[_0x332ecc(0x1f2)](_0x542ae2));}[a0_0x6264e3(0x1f2)](_0x2a447d){return async(_0x3d3033,_0x16f8e8)=>{const _0x2e93c5=a0_0x1b55;try{await _0x16f8e8();}catch(_0x40e299){if(_0x40e299 instanceof typeorm_2[_0x2e93c5(0x1f7)])_0x40e299 instanceof typeorm_2[_0x2e93c5(0x1f1)]?_0x3d3033[_0x2e93c5(0x1eb)]={'code':0x194,'msg':_0x2e93c5(0x1dc)}:(_0x3d3033['body']={'code':0x1f4,'msg':_0x40e299['message']},_0x2a447d[_0x2e93c5(0x201)]()!=_0x2e93c5(0x1f3)&&console[_0x2e93c5(0x1e6)](_0x40e299));else throw _0x40e299;}};}};__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x6264e3(0x1ec),core_2['MidwayConfigService'])],CustomConfiguration[a0_0x6264e3(0x1f4)],a0_0x6264e3(0x1e1),void 0x0),__decorate([(0x0,core_1[a0_0x6264e3(0x1db)])(),__metadata(a0_0x6264e3(0x1ec),core_2[a0_0x6264e3(0x1e5)])],CustomConfiguration[a0_0x6264e3(0x1f4)],'decorator',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x6264e3(0x204)])({'imports':[typeorm],'conflictCheck':![],'namespace':a0_0x6264e3(0x1d3)})],CustomConfiguration),exports[a0_0x6264e3(0x1d6)]=CustomConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a1_0x37ae(){const _0x1f3f95=['6cXMqfR','105464AhMCca','1791265myuEFu','InjectEntity','@midwayjs/core','243uKcTto','__esModule','default','createCustomPropertyDecorator','176856ZGzxwb','5250JBqbZN','98416idJugQ','2388GmToqc','defineProperty','1431796DIQpko','206240qlrQsA','../interface'];a1_0x37ae=function(){return _0x1f3f95;};return a1_0x37ae();}const a1_0x4f1646=a1_0x4477;(function(_0x51aa39,_0x42a7b9){const _0x219be5=a1_0x4477,_0x2de38d=_0x51aa39();while(!![]){try{const _0x134b39=parseInt(_0x219be5(0x17d))/0x1+-parseInt(_0x219be5(0x183))/0x2*(-parseInt(_0x219be5(0x17b))/0x3)+-parseInt(_0x219be5(0x180))/0x4+-parseInt(_0x219be5(0x174))/0x5+parseInt(_0x219be5(0x17e))/0x6*(parseInt(_0x219be5(0x17c))/0x7)+parseInt(_0x219be5(0x173))/0x8*(parseInt(_0x219be5(0x177))/0x9)+parseInt(_0x219be5(0x181))/0xa;if(_0x134b39===_0x42a7b9)break;else _0x2de38d['push'](_0x2de38d['shift']());}catch(_0x1ac098){_0x2de38d['push'](_0x2de38d['shift']());}}}(a1_0x37ae,0x39297));Object[a1_0x4f1646(0x17f)](exports,a1_0x4f1646(0x178),{'value':!![]}),exports['InjectEntity']=void 0x0;function a1_0x4477(_0x54586b,_0x29fc4e){const _0x37ae32=a1_0x37ae();return a1_0x4477=function(_0x447706,_0x52966b){_0x447706=_0x447706-0x173;let _0x32580c=_0x37ae32[_0x447706];return _0x32580c;},a1_0x4477(_0x54586b,_0x29fc4e);}const core_1=require(a1_0x4f1646(0x176)),interface_1=require(a1_0x4f1646(0x182));function InjectEntity(_0x46a893,_0x523c60=a1_0x4f1646(0x179)){const _0x118f63=a1_0x4f1646;return(0x0,core_1[_0x118f63(0x17a)])(interface_1['ENTIFY_KEY'],{'entity':_0x46a893,'connection':_0x523c60});}exports[a1_0x4f1646(0x175)]=InjectEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a2_0x4794(_0x1eeb58,_0x7483ba){const _0x539cf5=a2_0x539c();return a2_0x4794=function(_0x479420,_0x1c478e){_0x479420=_0x479420-0x106;let _0x5cf666=_0x539cf5[_0x479420];return _0x5cf666;},a2_0x4794(_0x1eeb58,_0x7483ba);}const a2_0x353315=a2_0x4794;(function(_0x4ebff8,_0x54c4e6){const _0x1bf2a4=a2_0x4794,_0xc7ba88=_0x4ebff8();while(!![]){try{const _0x5146f5=-parseInt(_0x1bf2a4(0x110))/0x1+-parseInt(_0x1bf2a4(0x112))/0x2+-parseInt(_0x1bf2a4(0x107))/0x3*(parseInt(_0x1bf2a4(0x10f))/0x4)+-parseInt(_0x1bf2a4(0x10e))/0x5*(-parseInt(_0x1bf2a4(0x108))/0x6)+parseInt(_0x1bf2a4(0x116))/0x7*(parseInt(_0x1bf2a4(0x115))/0x8)+parseInt(_0x1bf2a4(0x10d))/0x9*(-parseInt(_0x1bf2a4(0x10c))/0xa)+parseInt(_0x1bf2a4(0x10b))/0xb;if(_0x5146f5===_0x54c4e6)break;else _0xc7ba88['push'](_0xc7ba88['shift']());}catch(_0x3d24d3){_0xc7ba88['push'](_0xc7ba88['shift']());}}}(a2_0x539c,0xb4df0));Object[a2_0x353315(0x10a)](exports,a2_0x353315(0x106),{'value':!![]}),exports[a2_0x353315(0x109)]=void 0x0;function a2_0x539c(){const _0x293273=['360370GQhjBu','99PSAVES','155KJozeG','4awMGKM','131196MbCbOz','REPOSITORY_KEY','1925380bmdQCC','createCustomPropertyDecorator','default','1544688DqOCKZ','14nbIHZm','../interface','__esModule','271209hzNOLC','265038yutzpg','InjectRepository','defineProperty','6226099FbNGMR'];a2_0x539c=function(){return _0x293273;};return a2_0x539c();}const core_1=require('@midwayjs/core'),interface_1=require(a2_0x353315(0x117));function InjectRepository(_0x1d3e89,_0x41ba8b=a2_0x353315(0x114)){const _0x2f94b2=a2_0x353315;return(0x0,core_1[_0x2f94b2(0x113)])(interface_1[_0x2f94b2(0x111)],{'repository':_0x1d3e89,'connection':_0x41ba8b});}exports[a2_0x353315(0x109)]=InjectRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x25a4b9=a3_0x1e7a;(function(_0x1e0c4c,_0x327887){const _0xd693ff=a3_0x1e7a,_0x3f0ea9=_0x1e0c4c();while(!![]){try{const _0x431be7=parseInt(_0xd693ff(0x15e))/0x1+-parseInt(_0xd693ff(0x16a))/0x2*(parseInt(_0xd693ff(0x170))/0x3)+parseInt(_0xd693ff(0x161))/0x4+-parseInt(_0xd693ff(0x162))/0x5+parseInt(_0xd693ff(0x167))/0x6*(-parseInt(_0xd693ff(0x165))/0x7)+-parseInt(_0xd693ff(0x166))/0x8+parseInt(_0xd693ff(0x160))/0x9*(parseInt(_0xd693ff(0x15d))/0xa);if(_0x431be7===_0x327887)break;else _0x3f0ea9['push'](_0x3f0ea9['shift']());}catch(_0x461de5){_0x3f0ea9['push'](_0x3f0ea9['shift']());}}}(a3_0xbb7b,0x325f8));function a3_0xbb7b(){const _0x2d4cd4=['102SjcMng','ENTIFY_MODULE','defineProperty','default','ENTIFY_MODULE_SOURCE','1660kSPzzX','116744AtDBoF','@midwayjs/core','60093YXHPMQ','1225216KBvfQV','2048830JtioOx','string','__esModule','297129IHLzJX','2781592RykGeC','30QSoQds','typeorm','ProvideEntity','20906JkMvQk','isArray','tableName','dataSource','saveModule','push'];a3_0xbb7b=function(){return _0x2d4cd4;};return a3_0xbb7b();}Object[a3_0x25a4b9(0x172)](exports,a3_0x25a4b9(0x164),{'value':!![]}),exports[a3_0x25a4b9(0x169)]=void 0x0;function a3_0x1e7a(_0x4b66b4,_0x5dba21){const _0xbb7b6a=a3_0xbb7b();return a3_0x1e7a=function(_0x1e7a09,_0x83086){_0x1e7a09=_0x1e7a09-0x15d;let _0xf6b9f8=_0xbb7b6a[_0x1e7a09];return _0xf6b9f8;},a3_0x1e7a(_0x4b66b4,_0x5dba21);}const typeorm_1=require(a3_0x25a4b9(0x168)),core_1=require(a3_0x25a4b9(0x15f)),interface_1=require('../interface');function ProvideEntity(_0x520817,_0xe15416={}){return _0x3315e1=>{const _0xf2071f=a3_0x1e7a;_0xe15416['name']=_0x520817['tableName'];const _0x5e7499=[];if(!(_0x520817===null||_0x520817===void 0x0?void 0x0:_0x520817[_0xf2071f(0x16d)]))_0x5e7499[_0xf2071f(0x16f)](_0xf2071f(0x173));else{if(typeof(_0x520817===null||_0x520817===void 0x0?void 0x0:_0x520817[_0xf2071f(0x16d)])==_0xf2071f(0x163))_0x5e7499[_0xf2071f(0x16f)](_0x520817===null||_0x520817===void 0x0?void 0x0:_0x520817['dataSource']);else{if(Array[_0xf2071f(0x16b)](_0x520817===null||_0x520817===void 0x0?void 0x0:_0x520817[_0xf2071f(0x16d)]))for(let _0x37a876 of _0x520817[_0xf2071f(0x16d)]||[_0xf2071f(0x173)]){_0x5e7499['push'](_0x37a876);}}}(0x0,core_1[_0xf2071f(0x16e)])(interface_1[_0xf2071f(0x171)],_0x3315e1),(0x0,core_1['saveClassMetadata'])(interface_1[_0xf2071f(0x174)],{'tableName':_0x520817[_0xf2071f(0x16c)],'dataSource':_0x5e7499},_0x3315e1),(0x0,typeorm_1['Entity'])(_0x520817['tableName'],_0xe15416)(_0x3315e1);};}exports['ProvideEntity']=ProvideEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a4_0x134b28=a4_0x3bf1;(function(_0x2545d7,_0x27d7c7){const _0x511d83=a4_0x3bf1,_0x5103f1=_0x2545d7();while(!![]){try{const _0x4d4308=parseInt(_0x511d83(0x162))/0x1+parseInt(_0x511d83(0x161))/0x2*(-parseInt(_0x511d83(0x169))/0x3)+parseInt(_0x511d83(0x163))/0x4+parseInt(_0x511d83(0x16c))/0x5*(-parseInt(_0x511d83(0x16f))/0x6)+parseInt(_0x511d83(0x170))/0x7*(-parseInt(_0x511d83(0x173))/0x8)+parseInt(_0x511d83(0x166))/0x9+parseInt(_0x511d83(0x165))/0xa*(parseInt(_0x511d83(0x16a))/0xb);if(_0x4d4308===_0x27d7c7)break;else _0x5103f1['push'](_0x5103f1['shift']());}catch(_0x219192){_0x5103f1['push'](_0x5103f1['shift']());}}}(a4_0xe125,0x992b6));Object[a4_0x134b28(0x168)](exports,a4_0x134b28(0x164),{'value':!![]}),exports['ProvideRepository']=void 0x0;function a4_0x3bf1(_0x33360b,_0x28a54d){const _0xe12547=a4_0xe125();return a4_0x3bf1=function(_0x3bf145,_0x138802){_0x3bf145=_0x3bf145-0x161;let _0x51a687=_0xe12547[_0x3bf145];return _0x51a687;},a4_0x3bf1(_0x33360b,_0x28a54d);}const core_1=require(a4_0x134b28(0x16d)),interface_1=require(a4_0x134b28(0x167));function a4_0xe125(){const _0x34eb21=['715297mXJRoZ','REPOSITORY_KEY','5ZSMaWR','@midwayjs/core','ScopeEnum','3198498qvjbGE','417851IqVbnQ','saveClassMetadata','Request','168eHSOop','Provide','Scope','1138QqTznV','880310PAZzWM','4919284nNGtLp','__esModule','60nnQzlk','2710926eovEDP','../interface','defineProperty','2043IlGbIJ'];a4_0xe125=function(){return _0x34eb21;};return a4_0xe125();}function ProvideRepository(_0x4e871a){return _0x5e9c99=>{const _0x2a7467=a4_0x3bf1;(0x0,core_1[_0x2a7467(0x175)])(core_1[_0x2a7467(0x16e)][_0x2a7467(0x172)],{'allowDowngrade':!![]})(_0x5e9c99),((0x0,core_1[_0x2a7467(0x174)])()(_0x5e9c99),(0x0,core_1[_0x2a7467(0x171)])(interface_1[_0x2a7467(0x16b)],{'entity':_0x4e871a},_0x5e9c99));};}exports['ProvideRepository']=ProvideRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x4a6aa0=a5_0x2907;function a5_0x31d8(){const _0x2990a2=['3218571AVCbvu','defineProperty','32916gRZkmO','5738YYLlMp','@midwayjs/core','10TrqNKN','saveModule','479079hHLVKe','Search','Scope','MODEL_KEY','ProvideSearch','attachClassMetadata','1386322kSXkEe','12MwzuaQ','1642665UKRgWc','1466024CIULzj','12pMjYoh'];a5_0x31d8=function(){return _0x2990a2;};return a5_0x31d8();}(function(_0x34fb01,_0x31fe31){const _0x43464c=a5_0x2907,_0x545394=_0x34fb01();while(!![]){try{const _0x295f51=parseInt(_0x43464c(0x81))/0x1+parseInt(_0x43464c(0x7d))/0x2+-parseInt(_0x43464c(0x7c))/0x3*(parseInt(_0x43464c(0x76))/0x4)+-parseInt(_0x43464c(0x77))/0x5+parseInt(_0x43464c(0x79))/0x6*(-parseInt(_0x43464c(0x75))/0x7)+parseInt(_0x43464c(0x78))/0x8+-parseInt(_0x43464c(0x7a))/0x9*(-parseInt(_0x43464c(0x7f))/0xa);if(_0x295f51===_0x31fe31)break;else _0x545394['push'](_0x545394['shift']());}catch(_0x52413d){_0x545394['push'](_0x545394['shift']());}}}(a5_0x31d8,0x40c3f));function a5_0x2907(_0x159dc9,_0x228fbd){const _0x31d880=a5_0x31d8();return a5_0x2907=function(_0x2907de,_0x24d1e6){_0x2907de=_0x2907de-0x72;let _0x2bbbd4=_0x31d880[_0x2907de];return _0x2bbbd4;},a5_0x2907(_0x159dc9,_0x228fbd);}Object[a5_0x4a6aa0(0x7b)](exports,'__esModule',{'value':!![]}),exports[a5_0x4a6aa0(0x82)]=exports['ProvideSearch']=void 0x0;const core_1=require(a5_0x4a6aa0(0x7e)),interface_1=require('../interface');function ProvideSearch(_0x2bdb44){return _0x5104f8=>{const _0x1f4153=a5_0x2907;(0x0,core_1[_0x1f4153(0x80)])(interface_1['MODEL_KEY'],_0x5104f8),(0x0,core_1[_0x1f4153(0x83)])(core_1['ScopeEnum']['Singleton'])(_0x5104f8),(0x0,core_1['attachClassMetadata'])(interface_1[_0x1f4153(0x72)],_0x2bdb44,_0x5104f8);};}exports[a5_0x4a6aa0(0x73)]=ProvideSearch;function Search(_0xcce429,_0x5ed001){return(_0x29faf5,_0x326b6f,_0x201fb5)=>{const _0x12fcc1=a5_0x2907;(0x0,core_1[_0x12fcc1(0x74)])(interface_1['MODEL_SEARCH_KEY'],{'field':_0xcce429,'comment':_0x5ed001,'target':_0x29faf5,'methodName':_0x326b6f,'descriptor':_0x201fb5},_0x29faf5);};}exports[a5_0x4a6aa0(0x82)]=Search;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a6_0x5a04d6=a6_0x5da8;(function(_0x243f5f,_0x4589b1){const _0x29695e=a6_0x5da8,_0x32a2b6=_0x243f5f();while(!![]){try{const _0x1f0d9a=parseInt(_0x29695e(0x17f))/0x1*(parseInt(_0x29695e(0x180))/0x2)+-parseInt(_0x29695e(0x178))/0x3+parseInt(_0x29695e(0x17e))/0x4+-parseInt(_0x29695e(0x17c))/0x5+parseInt(_0x29695e(0x181))/0x6+parseInt(_0x29695e(0x17d))/0x7+-parseInt(_0x29695e(0x183))/0x8;if(_0x1f0d9a===_0x4589b1)break;else _0x32a2b6['push'](_0x32a2b6['shift']());}catch(_0x3aa1bb){_0x32a2b6['push'](_0x32a2b6['shift']());}}}(a6_0x2dae,0xa5cb1));Object[a6_0x5a04d6(0x17a)](exports,a6_0x5a04d6(0x17b),{'value':!![]}),exports[a6_0x5a04d6(0x185)]=void 0x0;function a6_0x5da8(_0x243354,_0xd3b0be){const _0x2daece=a6_0x2dae();return a6_0x5da8=function(_0x5da8cf,_0x27d7df){_0x5da8cf=_0x5da8cf-0x178;let _0x259028=_0x2daece[_0x5da8cf];return _0x259028;},a6_0x5da8(_0x243354,_0xd3b0be);}const core_1=require('@midwayjs/core'),interface_1=require(a6_0x5a04d6(0x182));function VirtualColumn(_0x461b57,_0x9f75af){return(_0x3628f8,_0x4dd191)=>{const _0x200e09=a6_0x5da8,_0x1a0d6f=(0x0,core_1['getClassMetadata'])(interface_1[_0x200e09(0x184)],_0x3628f8)||{};_0x1a0d6f[_0x4dd191]={'comment':_0x461b57,..._0x9f75af},(0x0,core_1[_0x200e09(0x179)])(interface_1['ENTITY_VIRTUAL_COLUMN_KEY'],_0x1a0d6f,_0x3628f8);};}exports[a6_0x5a04d6(0x185)]=VirtualColumn;function a6_0x2dae(){const _0x1ab8b0=['__esModule','247520eZpWMM','5308247ZVsBhY','5207144PhcnCo','3Wfpcdb','59394QwNXXr','909528QouQMa','../interface','8017872dUVZPX','ENTITY_VIRTUAL_COLUMN_KEY','VirtualColumn','1709877PeAYJR','saveClassMetadata','defineProperty'];a6_0x2dae=function(){return _0x1ab8b0;};return a6_0x2dae();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a7_0x2979(){const _0x232373=['indexOf','alias','merge','_order','typeorm','isArray','@midwayjs/core','search','methodName','excess','string','(:...','type','abs','LIKE','defineProperty','app','1\x20=\x202','modelSearchs','queryRunner','Repository','createQueryBuilder','split','take','getAsync','MODEL_SEARCH_KEY','7QvuCKH','BETWEEN','NOT\x20LIKE','154863akTehD','random','DESC','getApplicationContext','_isreverse','ceil','\x20IN(:..._auto_','transaction','\x20like\x20:_auto_','manager','create','undefined','\x20AND\x20:','target','ISNULL','field','_auto_','operator','bind','\x20=\x20:_auto_','name','_page','orderBy','hasOwnProperty','2873400EtKvfN','../interface','push','andWhere','ASC','toString','43671WCyVTA','2gWPCgW','findColumnWithPropertyName','function','metadata','702252UkXebr','_size','1186422rOmaDN','__esModule','searchs','NOT\x20BETWEEN','93215hZzMGx','getClassMetadata','24mrjtHf','3086060SeTtIy','FIND\x20IN\x20SET','createSave','NOT\x20ISNULL','length','NOT\x20IN','condition'];a7_0x2979=function(){return _0x232373;};return a7_0x2979();}const a7_0x2cbe84=a7_0x13d0;(function(_0x22fc18,_0x3324a5){const _0x144fb4=a7_0x13d0,_0x5ab3ee=_0x22fc18();while(!![]){try{const _0x2da926=parseInt(_0x144fb4(0xd4))/0x1+parseInt(_0x144fb4(0xd5))/0x2*(parseInt(_0x144fb4(0x106))/0x3)+parseInt(_0x144fb4(0xe1))/0x4*(-parseInt(_0x144fb4(0xdf))/0x5)+parseInt(_0x144fb4(0xdb))/0x6*(parseInt(_0x144fb4(0x103))/0x7)+-parseInt(_0x144fb4(0xce))/0x8+parseInt(_0x144fb4(0xd9))/0x9+parseInt(_0x144fb4(0xe2))/0xa;if(_0x2da926===_0x3324a5)break;else _0x5ab3ee['push'](_0x5ab3ee['shift']());}catch(_0x15f9e7){_0x5ab3ee['push'](_0x5ab3ee['shift']());}}}(a7_0x2979,0x32ef6));Object[a7_0x2cbe84(0xf8)](exports,a7_0x2cbe84(0xdc),{'value':!![]}),exports[a7_0x2cbe84(0xfd)]=void 0x0;const core_1=require(a7_0x2cbe84(0xef)),typeorm_1=require(a7_0x2cbe84(0xed)),interface_1=require(a7_0x2cbe84(0xcf));class Repository extends typeorm_1[a7_0x2cbe84(0xfd)]{constructor(_0x3404a9,_0x41b740){const _0x1b6bb0=a7_0x2cbe84;super(_0x41b740[_0x1b6bb0(0xc3)],_0x41b740[_0x1b6bb0(0x10f)],_0x41b740[_0x1b6bb0(0xfc)]),this[_0x1b6bb0(0xfb)]=[];for(const _0x509a8a of(0x0,core_1[_0x1b6bb0(0xe0)])(interface_1['MODEL_KEY'],this[_0x1b6bb0(0xc3)])||[]){const _0x1e7e10={'model':_0x509a8a,'searchs':[]};for(const _0x113e2a of(0x0,core_1[_0x1b6bb0(0xe0)])(interface_1[_0x1b6bb0(0x102)],_0x509a8a)||[]){_0x1e7e10[_0x1b6bb0(0xdd)]['push'](_0x113e2a);}this[_0x1b6bb0(0xfb)][_0x1b6bb0(0xd0)](_0x1e7e10);}this['app']=_0x3404a9;}async[a7_0x2cbe84(0xf0)](_0x57b86a,_0x256a5d,_0x193b18={}){const _0x3cacf2=a7_0x2cbe84;var _0x18d1dc,_0x17cb2c,_0x324b8d,_0x4bd540,_0xe758ef,_0x1eb24e,_0x139bb1;const _0x59d8ea=this[_0x3cacf2(0xfe)](undefined,_0x193b18===null||_0x193b18===void 0x0?void 0x0:_0x193b18['queryRunner']),_0x45f694=[];for(const _0x594cb7 of this['modelSearchs']){if((_0x594cb7===null||_0x594cb7===void 0x0?void 0x0:_0x594cb7['model'])&&((_0x18d1dc=_0x594cb7===null||_0x594cb7===void 0x0?void 0x0:_0x594cb7['searchs'])===null||_0x18d1dc===void 0x0?void 0x0:_0x18d1dc[_0x3cacf2(0xe6)])>0x0){const _0x1037e0=await this[_0x3cacf2(0xf9)][_0x3cacf2(0x109)]()[_0x3cacf2(0x101)](_0x594cb7['model']);for(const _0x1404e7 of _0x594cb7[_0x3cacf2(0xdd)]){(_0x1404e7===null||_0x1404e7===void 0x0?void 0x0:_0x1404e7[_0x3cacf2(0xc5)])&&(_0x1404e7===null||_0x1404e7===void 0x0?void 0x0:_0x1404e7[_0x3cacf2(0xf1)])&&typeof _0x1037e0[_0x1404e7['methodName']]==_0x3cacf2(0xd7)&&(typeof(_0x57b86a===null||_0x57b86a===void 0x0?void 0x0:_0x57b86a[_0x1404e7[_0x3cacf2(0xc5)]])!=_0x3cacf2(0x111)&&!((_0x17cb2c=_0x57b86a===null||_0x57b86a===void 0x0?void 0x0:_0x57b86a[_0x1404e7['field']])===null||_0x17cb2c===void 0x0?void 0x0:_0x17cb2c[_0x3cacf2(0xcd)](_0x3cacf2(0xc7)))&&(_0x45f694[_0x3cacf2(0xe9)](_0x1404e7[_0x3cacf2(0xc5)])==-0x1&&_0x45f694[_0x3cacf2(0xd0)](_0x1404e7['field']),await _0x1037e0[_0x1404e7[_0x3cacf2(0xf1)]][_0x3cacf2(0xc8)](_0x1037e0)(_0x59d8ea,_0x57b86a[_0x1404e7[_0x3cacf2(0xc5)]],_0x57b86a,_0x256a5d,_0x193b18===null||_0x193b18===void 0x0?void 0x0:_0x193b18[_0x3cacf2(0xfc)])));}}}for(const _0x53a0c4 in _0x57b86a){if(typeof _0x57b86a[_0x53a0c4]==_0x3cacf2(0x111))continue;if(_0x45f694[_0x3cacf2(0xe9)](_0x53a0c4)!=-0x1)continue;const _0x19824e=this[_0x3cacf2(0xd8)][_0x3cacf2(0xd6)](_0x53a0c4);if(!_0x19824e)continue;if((_0x324b8d=_0x57b86a===null||_0x57b86a===void 0x0?void 0x0:_0x57b86a[_0x53a0c4])===null||_0x324b8d===void 0x0?void 0x0:_0x324b8d[_0x3cacf2(0xcd)](_0x3cacf2(0xc7))){const _0x4a00b9=(_0x4bd540=_0x57b86a[_0x53a0c4])===null||_0x4bd540===void 0x0?void 0x0:_0x4bd540[_0x3cacf2(0xe8)],_0x5a9ed0=(_0xe758ef=_0x57b86a[_0x53a0c4])===null||_0xe758ef===void 0x0?void 0x0:_0xe758ef[_0x3cacf2(0xc7)]['trim']()['toUpperCase'](),_0x3daf3e=_0x3cacf2(0xc6)+_0x53a0c4+'_'+Math[_0x3cacf2(0x10b)](Math[_0x3cacf2(0x107)]()*0xa)+Math['ceil'](Math['random']()*0xa)+Math[_0x3cacf2(0x10b)](Math[_0x3cacf2(0x107)]()*0xa)+Math[_0x3cacf2(0x10b)](Math['random']()*0xa);if(['=','!=','<>','>','>=','<','<=',_0x3cacf2(0xf7),_0x3cacf2(0x105)][_0x3cacf2(0xe9)](_0x5a9ed0)!=-0x1)typeof _0x4a00b9!='undefined'&&_0x59d8ea[_0x3cacf2(0xd1)](_0x59d8ea[_0x3cacf2(0xea)]+'.'+_0x53a0c4+'\x20'+_0x5a9ed0+'\x20:'+_0x3daf3e,{[_0x3daf3e]:_0x4a00b9});else{if(['IN',_0x3cacf2(0xe7)]['indexOf'](_0x5a9ed0)!=-0x1){if(typeof _0x4a00b9!=_0x3cacf2(0x111)){const _0x1087d1=Array[_0x3cacf2(0xee)](_0x4a00b9)?_0x4a00b9:typeof _0x4a00b9==_0x3cacf2(0xf3)?_0x4a00b9[_0x3cacf2(0xff)](','):[_0x4a00b9];_0x1087d1['length']==0x0?_0x59d8ea[_0x3cacf2(0xd1)](_0x3cacf2(0xfa)):_0x59d8ea[_0x3cacf2(0xd1)](_0x59d8ea[_0x3cacf2(0xea)]+'.'+_0x53a0c4+'\x20'+_0x5a9ed0+_0x3cacf2(0xf4)+_0x3daf3e+')',{[_0x3daf3e]:_0x1087d1});}}else{if([_0x3cacf2(0xe3),'NOT\x20FIND\x20IN\x20SET'][_0x3cacf2(0xe9)](_0x5a9ed0)!=-0x1)typeof _0x4a00b9!='undefined'&&_0x59d8ea[_0x3cacf2(0xd1)](_0x5a9ed0+'(:'+_0x3daf3e+','+_0x59d8ea[_0x3cacf2(0xea)]+'.'+_0x53a0c4+')',{[_0x3daf3e]:_0x4a00b9});else{if([_0x3cacf2(0x104),_0x3cacf2(0xde)][_0x3cacf2(0xe9)](_0x5a9ed0)!=-0x1){if(typeof _0x4a00b9!=_0x3cacf2(0x111)){const _0x32e368=Array[_0x3cacf2(0xee)](_0x4a00b9)?_0x4a00b9:typeof _0x4a00b9==_0x3cacf2(0xf3)?_0x4a00b9[_0x3cacf2(0xff)](','):[_0x4a00b9];_0x32e368[_0x3cacf2(0xe6)]>0x1&&_0x59d8ea[_0x3cacf2(0xd1)](_0x59d8ea[_0x3cacf2(0xea)]+'.'+_0x53a0c4+'\x20'+_0x5a9ed0+'\x20:'+_0x3daf3e+_0x3cacf2(0xc2)+_0x3daf3e+'_2',{[''+_0x3daf3e]:_0x32e368[0x0],[_0x3daf3e+'_2']:_0x32e368[0x1]});}}else[_0x3cacf2(0xc4),_0x3cacf2(0xe5)][_0x3cacf2(0xe9)](_0x5a9ed0)!=-0x1&&_0x59d8ea[_0x3cacf2(0xd1)](_0x5a9ed0+'('+_0x59d8ea[_0x3cacf2(0xea)]+'.'+_0x53a0c4+')');}}}}else{const _0x2defe4=((_0x139bb1=typeof _0x19824e[_0x3cacf2(0xf5)]=='function'?(_0x1eb24e=_0x19824e===null||_0x19824e===void 0x0?void 0x0:_0x19824e['type'])===null||_0x1eb24e===void 0x0?void 0x0:_0x1eb24e[_0x3cacf2(0xca)]:_0x19824e[_0x3cacf2(0xf5)][_0x3cacf2(0xd3)]())===null||_0x139bb1===void 0x0?void 0x0:_0x139bb1['toLowerCase']())||undefined;if(_0x2defe4){if(Array[_0x3cacf2(0xee)](_0x57b86a[_0x53a0c4]))_0x57b86a[_0x53a0c4][_0x3cacf2(0xe6)]==0x0?_0x59d8ea[_0x3cacf2(0xd1)](_0x3cacf2(0xfa)):_0x59d8ea['andWhere'](_0x59d8ea[_0x3cacf2(0xea)]+'.'+_0x53a0c4+_0x3cacf2(0x10c)+_0x53a0c4+')',{[_0x3cacf2(0xc6)+_0x53a0c4]:_0x57b86a[_0x53a0c4]});else _0x2defe4==_0x3cacf2(0xf3)?_0x59d8ea['andWhere'](_0x59d8ea[_0x3cacf2(0xea)]+'.'+_0x53a0c4+_0x3cacf2(0x10e)+_0x53a0c4,{[_0x3cacf2(0xc6)+_0x53a0c4]:'%'+_0x57b86a[_0x53a0c4]+'%'}):_0x59d8ea[_0x3cacf2(0xd1)](_0x59d8ea[_0x3cacf2(0xea)]+'.'+_0x53a0c4+_0x3cacf2(0xc9)+_0x53a0c4,{[_0x3cacf2(0xc6)+_0x53a0c4]:_0x57b86a[_0x53a0c4]});}}}(_0x256a5d===null||_0x256a5d===void 0x0?void 0x0:_0x256a5d[_0x3cacf2(0xda)])&&_0x59d8ea[_0x3cacf2(0x100)](Math[_0x3cacf2(0xf6)](_0x256a5d[_0x3cacf2(0xda)]));(_0x256a5d===null||_0x256a5d===void 0x0?void 0x0:_0x256a5d[_0x3cacf2(0xcb)])&&(_0x256a5d===null||_0x256a5d===void 0x0?void 0x0:_0x256a5d[_0x3cacf2(0xda)])&&_0x59d8ea['skip']((Math[_0x3cacf2(0xf6)](_0x256a5d['_page'])-0x1)*Math[_0x3cacf2(0xf6)](_0x256a5d[_0x3cacf2(0xda)]));if(_0x256a5d===null||_0x256a5d===void 0x0?void 0x0:_0x256a5d[_0x3cacf2(0xec)]){if(_0x256a5d['_order']['indexOf']('.')!==-0x1)_0x59d8ea[_0x3cacf2(0xcc)](''+_0x256a5d['_order'],(_0x256a5d===null||_0x256a5d===void 0x0?void 0x0:_0x256a5d[_0x3cacf2(0x10a)])?_0x3cacf2(0xd2):'DESC');else _0x45f694['indexOf'](_0x256a5d[_0x3cacf2(0xec)])==-0x1&&(this[_0x3cacf2(0xd8)][_0x3cacf2(0xd6)](_0x256a5d[_0x3cacf2(0xec)])?_0x59d8ea['orderBy'](_0x59d8ea[_0x3cacf2(0xea)]+'.'+_0x256a5d[_0x3cacf2(0xec)],(_0x256a5d===null||_0x256a5d===void 0x0?void 0x0:_0x256a5d[_0x3cacf2(0x10a)])?_0x3cacf2(0xd2):'DESC'):_0x59d8ea['orderBy'](''+_0x256a5d[_0x3cacf2(0xec)],(_0x256a5d===null||_0x256a5d===void 0x0?void 0x0:_0x256a5d[_0x3cacf2(0x10a)])?_0x3cacf2(0xd2):_0x3cacf2(0x108)));}return typeof(_0x193b18===null||_0x193b18===void 0x0?void 0x0:_0x193b18[_0x3cacf2(0xf2)])==_0x3cacf2(0xd7)&&await(_0x193b18===null||_0x193b18===void 0x0?void 0x0:_0x193b18[_0x3cacf2(0xf2)](_0x59d8ea)),_0x59d8ea;}async['mergeSave'](_0x4bc34f,..._0x5c5b90){const _0x105e84=a7_0x2cbe84,_0x48c1ff=this[_0x105e84(0xeb)](_0x4bc34f,..._0x5c5b90);return await this['save'](_0x48c1ff);}async[a7_0x2cbe84(0xe4)](_0x41412b,..._0x48213c){const _0x1d80dd=a7_0x2cbe84,_0x4db048=this['merge'](this[_0x1d80dd(0x110)](_0x41412b),..._0x48213c);return await this['save'](_0x4db048);}async[a7_0x2cbe84(0x10d)](_0x4dff0c,_0x2ec68e){const _0x30f3f7=a7_0x2cbe84;return this[_0x30f3f7(0x10f)][_0x30f3f7(0x10d)](_0x4dff0c,_0x2ec68e);}}function a7_0x13d0(_0x180bb1,_0x3fa14e){const _0x297925=a7_0x2979();return a7_0x13d0=function(_0x13d05c,_0x1c0b2f){_0x13d05c=_0x13d05c-0xc2;let _0x16af7a=_0x297925[_0x13d05c];return _0x16af7a;},a7_0x13d0(_0x180bb1,_0x3fa14e);}exports[a7_0x2cbe84(0xfd)]=Repository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a8_0x2f8272=a8_0x487e;function a8_0x7e2e(){const _0x502e14=['defineProperty','getDataSourceEntity','../interface','find','default','__esModule','144xdJOwp','9jsFInC','24316AgIiEj','756130lWPFzm','5343190mtMsYf','191799BCSMmV','1558585IFGCOJ','@midwayjs/core','dataSource','getClassMetadata','6GZXund','ENTIFY_MODULE','719560bfYupi','524785ToKfhw'];a8_0x7e2e=function(){return _0x502e14;};return a8_0x7e2e();}(function(_0x130404,_0x164030){const _0x4f2bc5=a8_0x487e,_0x333ec8=_0x130404();while(!![]){try{const _0x2f49af=-parseInt(_0x4f2bc5(0x179))/0x1+parseInt(_0x4f2bc5(0x177))/0x2+parseInt(_0x4f2bc5(0x174))/0x3*(-parseInt(_0x4f2bc5(0x176))/0x4)+parseInt(_0x4f2bc5(0x181))/0x5*(-parseInt(_0x4f2bc5(0x17e))/0x6)+-parseInt(_0x4f2bc5(0x17a))/0x7+parseInt(_0x4f2bc5(0x180))/0x8+-parseInt(_0x4f2bc5(0x175))/0x9*(-parseInt(_0x4f2bc5(0x178))/0xa);if(_0x2f49af===_0x164030)break;else _0x333ec8['push'](_0x333ec8['shift']());}catch(_0x36e54c){_0x333ec8['push'](_0x333ec8['shift']());}}}(a8_0x7e2e,0x2ea96));Object[a8_0x2f8272(0x182)](exports,a8_0x2f8272(0x187),{'value':!![]}),exports[a8_0x2f8272(0x183)]=void 0x0;const core_1=require(a8_0x2f8272(0x17b)),interface_1=require(a8_0x2f8272(0x184));function a8_0x487e(_0x282cb2,_0x351404){const _0x7e2ec6=a8_0x7e2e();return a8_0x487e=function(_0x487ec6,_0x708214){_0x487ec6=_0x487ec6-0x174;let _0x570b66=_0x7e2ec6[_0x487ec6];return _0x570b66;},a8_0x487e(_0x282cb2,_0x351404);}function getDataSourceEntity(_0x43a8ce=a8_0x2f8272(0x186)){const _0x17bc94=a8_0x2f8272;var _0x18b6ea;const _0x3cf5fc=[];for(const _0x1e925f of(0x0,core_1['listModule'])(interface_1[_0x17bc94(0x17f)])){const _0x120263=(0x0,core_1[_0x17bc94(0x17d)])(interface_1['ENTIFY_MODULE_SOURCE'],_0x1e925f);((_0x18b6ea=_0x120263===null||_0x120263===void 0x0?void 0x0:_0x120263[_0x17bc94(0x17c)])===null||_0x18b6ea===void 0x0?void 0x0:_0x18b6ea[_0x17bc94(0x185)](_0x49202a=>_0x49202a==_0x43a8ce))&&_0x3cf5fc['push'](_0x1e925f);}return _0x3cf5fc;}exports[a8_0x2f8272(0x183)]=getDataSourceEntity;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x429f1e=a9_0x59f3;(function(_0x2f0d05,_0x1b633d){var _0x37f950=a9_0x59f3,_0x28dc3d=_0x2f0d05();while(!![]){try{var _0x47b741=parseInt(_0x37f950(0x70))/0x1*(-parseInt(_0x37f950(0x74))/0x2)+-parseInt(_0x37f950(0x72))/0x3*(parseInt(_0x37f950(0x80))/0x4)+parseInt(_0x37f950(0x6e))/0x5+parseInt(_0x37f950(0x69))/0x6*(-parseInt(_0x37f950(0x6b))/0x7)+-parseInt(_0x37f950(0x82))/0x8*(parseInt(_0x37f950(0x86))/0x9)+-parseInt(_0x37f950(0x8a))/0xa*(parseInt(_0x37f950(0x92))/0xb)+parseInt(_0x37f950(0x76))/0xc;if(_0x47b741===_0x1b633d)break;else _0x28dc3d['push'](_0x28dc3d['shift']());}catch(_0x512346){_0x28dc3d['push'](_0x28dc3d['shift']());}}}(a9_0x3175,0x9e8e9));var __createBinding=this&&this[a9_0x429f1e(0x6c)]||(Object[a9_0x429f1e(0x6d)]?function(_0x2f7fa7,_0x382730,_0x4fe398,_0x1c64bc){var _0x560ab9=a9_0x429f1e;if(_0x1c64bc===undefined)_0x1c64bc=_0x4fe398;var _0xe0cc52=Object[_0x560ab9(0x68)](_0x382730,_0x4fe398);(!_0xe0cc52||(_0x560ab9(0x65)in _0xe0cc52?!_0x382730[_0x560ab9(0x71)]:_0xe0cc52[_0x560ab9(0x85)]||_0xe0cc52[_0x560ab9(0x75)]))&&(_0xe0cc52={'enumerable':!![],'get':function(){return _0x382730[_0x4fe398];}}),Object['defineProperty'](_0x2f7fa7,_0x1c64bc,_0xe0cc52);}:function(_0x451835,_0x1d11c8,_0x494e05,_0x3653cb){if(_0x3653cb===undefined)_0x3653cb=_0x494e05;_0x451835[_0x3653cb]=_0x1d11c8[_0x494e05];}),__exportStar=this&&this['__exportStar']||function(_0x50003a,_0x362394){var _0x20d00b=a9_0x429f1e;for(var _0x1f0c18 in _0x50003a)if(_0x1f0c18!==_0x20d00b(0x8b)&&!Object[_0x20d00b(0x91)][_0x20d00b(0x8e)][_0x20d00b(0x87)](_0x362394,_0x1f0c18))__createBinding(_0x362394,_0x50003a,_0x1f0c18);};Object[a9_0x429f1e(0x90)](exports,a9_0x429f1e(0x71),{'value':!![]}),exports[a9_0x429f1e(0x7a)]=exports[a9_0x429f1e(0x77)]=exports['Inject']=exports[a9_0x429f1e(0x89)]=exports[a9_0x429f1e(0x7c)]=exports[a9_0x429f1e(0x73)]=exports[a9_0x429f1e(0x8d)]=exports[a9_0x429f1e(0x66)]=exports[a9_0x429f1e(0x8c)]=exports['ProvideEntity']=exports[a9_0x429f1e(0x64)]=exports['InjectEntity']=exports[a9_0x429f1e(0x93)]=exports[a9_0x429f1e(0x88)]=void 0x0,__exportStar(require(a9_0x429f1e(0x78)),exports),__exportStar(require('./interface'),exports);var Repository_1=require(a9_0x429f1e(0x7e));Object[a9_0x429f1e(0x90)](exports,a9_0x429f1e(0x88),{'enumerable':!![],'get':function(){return Repository_1['Repository'];}});var VirtualColumn_1=require(a9_0x429f1e(0x83));Object['defineProperty'](exports,a9_0x429f1e(0x93),{'enumerable':!![],'get':function(){return VirtualColumn_1['VirtualColumn'];}});var InjectEntity_1=require(a9_0x429f1e(0x81));Object[a9_0x429f1e(0x90)](exports,a9_0x429f1e(0x6f),{'enumerable':!![],'get':function(){var _0x4bf670=a9_0x429f1e;return InjectEntity_1[_0x4bf670(0x6f)];}});var InjectRepository_1=require(a9_0x429f1e(0x6a));Object[a9_0x429f1e(0x90)](exports,'InjectRepository',{'enumerable':!![],'get':function(){return InjectRepository_1['InjectRepository'];}});function a9_0x59f3(_0x5de79e,_0x42d7d7){var _0x317597=a9_0x3175();return a9_0x59f3=function(_0x59f3b5,_0x43702b){_0x59f3b5=_0x59f3b5-0x64;var _0x219e42=_0x317597[_0x59f3b5];return _0x219e42;},a9_0x59f3(_0x5de79e,_0x42d7d7);}var ProvideEntity_1=require(a9_0x429f1e(0x8f));Object[a9_0x429f1e(0x90)](exports,a9_0x429f1e(0x84),{'enumerable':!![],'get':function(){return ProvideEntity_1['ProvideEntity'];}});function a9_0x3175(){var _0x1c0a03=['4737385AWNaUb','InjectEntity','830411pvSuKx','__esModule','273dWesDe','getDataSourceEntity','2IdacGK','configurable','40100664FHWDNo','Scope','typeorm','Inject','ScopeEnum','CustomConfiguration','Configuration','./helper/getDataSourceEntity','./definition/Repository','./configuration','38108ZMSCrq','./decorator/InjectEntity','1504bxqAiU','./decorator/VirtualColumn','ProvideEntity','writable','18828awCRvg','call','Repository','Provide','6390KdRTwN','default','ProvideRepository','Search','hasOwnProperty','./decorator/ProvideEntity','defineProperty','prototype','5159dJeHkz','VirtualColumn','InjectRepository','get','ProvideSearch','./decorator/ProvideSearch','getOwnPropertyDescriptor','978wWiUWo','./decorator/InjectRepository','53655vYstRR','__createBinding','create'];a9_0x3175=function(){return _0x1c0a03;};return a9_0x3175();}var ProvideRepository_1=require('./decorator/ProvideRepository');Object[a9_0x429f1e(0x90)](exports,a9_0x429f1e(0x8c),{'enumerable':!![],'get':function(){var _0x1cfe3c=a9_0x429f1e;return ProvideRepository_1[_0x1cfe3c(0x8c)];}});var ProvideSearch_1=require(a9_0x429f1e(0x67));Object[a9_0x429f1e(0x90)](exports,a9_0x429f1e(0x66),{'enumerable':!![],'get':function(){return ProvideSearch_1['ProvideSearch'];}}),Object[a9_0x429f1e(0x90)](exports,a9_0x429f1e(0x8d),{'enumerable':!![],'get':function(){var _0x278840=a9_0x429f1e;return ProvideSearch_1[_0x278840(0x8d)];}});var getDataSourceEntity_1=require(a9_0x429f1e(0x7d));Object[a9_0x429f1e(0x90)](exports,'getDataSourceEntity',{'enumerable':!![],'get':function(){var _0x16662f=a9_0x429f1e;return getDataSourceEntity_1[_0x16662f(0x73)];}});var configuration_1=require(a9_0x429f1e(0x7f));Object[a9_0x429f1e(0x90)](exports,a9_0x429f1e(0x7c),{'enumerable':!![],'get':function(){var _0xec39ef=a9_0x429f1e;return configuration_1[_0xec39ef(0x7b)];}});var core_1=require('@midwayjs/core');Object[a9_0x429f1e(0x90)](exports,'Provide',{'enumerable':!![],'get':function(){var _0x2776ca=a9_0x429f1e;return core_1[_0x2776ca(0x89)];}}),Object[a9_0x429f1e(0x90)](exports,a9_0x429f1e(0x79),{'enumerable':!![],'get':function(){var _0x42fea6=a9_0x429f1e;return core_1[_0x42fea6(0x79)];}}),Object['defineProperty'](exports,a9_0x429f1e(0x77),{'enumerable':!![],'get':function(){var _0x297963=a9_0x429f1e;return core_1[_0x297963(0x77)];}}),Object[a9_0x429f1e(0x90)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x2edeca=a9_0x429f1e;return core_1[_0x2edeca(0x7a)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a10_0x2f44(_0x222e22,_0x543b48){const _0x55c1b6=a10_0x55c1();return a10_0x2f44=function(_0x2f4497,_0xd44455){_0x2f4497=_0x2f4497-0x111;let _0x43c436=_0x55c1b6[_0x2f4497];return _0x43c436;},a10_0x2f44(_0x222e22,_0x543b48);}const a10_0x2170ef=a10_0x2f44;(function(_0x45b978,_0x54ee61){const _0x490445=a10_0x2f44,_0x5472cc=_0x45b978();while(!![]){try{const _0x1056f7=-parseInt(_0x490445(0x124))/0x1+-parseInt(_0x490445(0x11f))/0x2*(-parseInt(_0x490445(0x117))/0x3)+-parseInt(_0x490445(0x13f))/0x4+parseInt(_0x490445(0x12f))/0x5+parseInt(_0x490445(0x142))/0x6*(-parseInt(_0x490445(0x130))/0x7)+parseInt(_0x490445(0x12a))/0x8*(-parseInt(_0x490445(0x113))/0x9)+-parseInt(_0x490445(0x11c))/0xa*(-parseInt(_0x490445(0x114))/0xb);if(_0x1056f7===_0x54ee61)break;else _0x5472cc['push'](_0x5472cc['shift']());}catch(_0x4c6007){_0x5472cc['push'](_0x5472cc['shift']());}}}(a10_0x55c1,0xd4191));Object[a10_0x2170ef(0x116)](exports,'__esModule',{'value':!![]}),exports[a10_0x2170ef(0x118)]=exports[a10_0x2170ef(0x126)]=exports[a10_0x2170ef(0x11d)]=exports[a10_0x2170ef(0x11b)]=exports['REPOSITORY_KEY']=exports[a10_0x2170ef(0x115)]=exports['ENTIFY_MODULE']=exports[a10_0x2170ef(0x139)]=void 0x0;function a10_0x55c1(){const _0x265fe3=['getClassMetadata','EntityManager','396000RMSXMq','14ONYzYa','@midwayjs/core','getOne','decorator:anncic-api:typeorm:entity:virtual:column','then','getTime','decorator:anncic-api:typeorm:repository','decorator:anncic-api:typeorm:entify','name','ENTIFY_KEY','findOneOrFail','findOneByOrFail','resolve','lockMode','EntityNotFoundError','841304GcNDfg','typeorm','decorator:anncic-api:typeorm:entify:module:source','102048aAyVjO','default','optimistic','updateDateColumn','decorator:anncic-api:typeorm:model','getEntityValue','getRawAndEntities','ENTIFY_MODULE','1716327SZDXFv','5810761FjCNgu','ENTIFY_MODULE_SOURCE','defineProperty','6snwOuH','SearchPaginate','SelectQueryBuilder','decorator:anncic-api:typeorm:model:search','MODEL_KEY','20ZFARxD','MODEL_SEARCH_KEY','hasOwnProperty','1178498TaehhE','OptimisticLockVersionMismatchError','lockVersion','getMany','decorator:anncic-api:typeorm:entify:module','247590THOFjs','map','ENTITY_VIRTUAL_COLUMN_KEY','REPOSITORY_KEY','reject','prototype','40jULJwr','expressionMap','getCount'];a10_0x55c1=function(){return _0x265fe3;};return a10_0x55c1();}const core_1=require(a10_0x2170ef(0x131)),typeorm_1=require(a10_0x2170ef(0x140)),typeorm_2=require('typeorm');exports[a10_0x2170ef(0x139)]=a10_0x2170ef(0x137),exports[a10_0x2170ef(0x112)]=a10_0x2170ef(0x123),exports['ENTIFY_MODULE_SOURCE']=a10_0x2170ef(0x141),exports[a10_0x2170ef(0x127)]=a10_0x2170ef(0x136),exports[a10_0x2170ef(0x11b)]=a10_0x2170ef(0x146),exports[a10_0x2170ef(0x11d)]=a10_0x2170ef(0x11a),exports[a10_0x2170ef(0x126)]=a10_0x2170ef(0x133);class SearchPaginate{}exports['SearchPaginate']=SearchPaginate,typeorm_2[a10_0x2170ef(0x12e)][a10_0x2170ef(0x129)][a10_0x2170ef(0x13a)]=async function(_0x4de5ba,_0x455124){const _0x4faa54=a10_0x2170ef;return this['findOne'](_0x4de5ba,_0x455124)[_0x4faa54(0x134)](_0x1176c6=>{const _0x4f1884=_0x4faa54;if(_0x1176c6===null||_0x1176c6===undefined)return Promise[_0x4f1884(0x128)](new typeorm_2[(_0x4f1884(0x13e))](_0x4de5ba,_0x455124));return Promise['resolve'](_0x1176c6);});},typeorm_2[a10_0x2170ef(0x12e)][a10_0x2170ef(0x129)][a10_0x2170ef(0x13b)]=async function(_0x5d40f6,_0x298da0){const _0x2c7188=a10_0x2170ef;return this['findOneBy'](_0x5d40f6,_0x298da0)[_0x2c7188(0x134)](_0x55a8d0=>{const _0x6459f=_0x2c7188;if(_0x55a8d0===null||_0x55a8d0===undefined)return Promise[_0x6459f(0x128)](new typeorm_2[(_0x6459f(0x13e))](_0x5d40f6,_0x298da0));return Promise[_0x6459f(0x13c)](_0x55a8d0);});},typeorm_1[a10_0x2170ef(0x119)][a10_0x2170ef(0x129)][a10_0x2170ef(0x122)]=async function(){const _0x571a60=a10_0x2170ef;if(this[_0x571a60(0x12b)][_0x571a60(0x13d)]===_0x571a60(0x144))throw new typeorm_1['OptimisticLockCanNotBeUsedError']();const {entities:_0x35a2f7,raw:_0x56dcc4}=await this['getRawAndEntities']();return _0x35a2f7[_0x571a60(0x125)]((_0x5dcbdc,_0x57c947)=>{const _0x4bc2e3=_0x571a60;var _0x2fbc84;const _0x3b5fa5=(0x0,core_1[_0x4bc2e3(0x12d)])(exports[_0x4bc2e3(0x126)],_0x5dcbdc)||{};for(const _0x19ee43 in _0x3b5fa5){_0x56dcc4[_0x57c947]&&_0x56dcc4[_0x57c947][_0x4bc2e3(0x11e)](_0x19ee43)&&(_0x5dcbdc[_0x19ee43]=_0x56dcc4[_0x57c947][_0x19ee43]||((_0x2fbc84=_0x3b5fa5[_0x19ee43])===null||_0x2fbc84===void 0x0?void 0x0:_0x2fbc84[_0x4bc2e3(0x143)])||'');}return _0x5dcbdc;});},typeorm_1[a10_0x2170ef(0x119)]['prototype']['getManyAndCount']=async function(){const _0x227ef3=a10_0x2170ef;return[await this[_0x227ef3(0x122)](),await this[_0x227ef3(0x12c)]()];},typeorm_1[a10_0x2170ef(0x119)][a10_0x2170ef(0x129)][a10_0x2170ef(0x132)]=async function(){const _0x4bd66c=a10_0x2170ef;var _0x5c9488;const {entities:_0xccbf35,raw:_0x1dbeb1}=await this[_0x4bd66c(0x111)]();if(_0xccbf35[0x0]&&this[_0x4bd66c(0x12b)]['lockMode']===_0x4bd66c(0x144)&&this['expressionMap']['lockVersion']){const _0x1e66b6=this['expressionMap']['mainAlias']['metadata'];if(this[_0x4bd66c(0x12b)][_0x4bd66c(0x121)]instanceof Date){const _0x2d932d=_0x1e66b6[_0x4bd66c(0x145)][_0x4bd66c(0x147)](_0xccbf35[0x0]);if(_0x2d932d[_0x4bd66c(0x135)]()!==this[_0x4bd66c(0x12b)][_0x4bd66c(0x121)][_0x4bd66c(0x135)]())throw new typeorm_1[(_0x4bd66c(0x120))](_0x1e66b6[_0x4bd66c(0x138)],this[_0x4bd66c(0x12b)][_0x4bd66c(0x121)],_0x2d932d);}else{const _0x4b4051=_0x1e66b6['versionColumn']['getEntityValue'](_0xccbf35[0x0]);if(_0x4b4051!==this['expressionMap']['lockVersion'])throw new typeorm_1['OptimisticLockVersionMismatchError'](_0x1e66b6['name'],this['expressionMap'][_0x4bd66c(0x121)],_0x4b4051);}}if(_0xccbf35[0x0]&&_0x1dbeb1[0x0]){const _0x5cb735=(0x0,core_1[_0x4bd66c(0x12d)])(exports[_0x4bd66c(0x126)],_0xccbf35[0x0]);for(const _0x460f77 in _0x5cb735){_0x1dbeb1[0x0][_0x4bd66c(0x11e)](_0x460f77)&&(_0xccbf35[0x0][_0x460f77]=_0x1dbeb1[0x0][_0x460f77]||((_0x5c9488=_0x5cb735[_0x460f77])===null||_0x5c9488===void 0x0?void 0x0:_0x5c9488['default'])||'');}}return _0xccbf35[0x0]||null;};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/typeorm",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.14",
|
|
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": "f2d5025d045825f86a824ff52fa8c1af59abe6fe"
|
|
26
26
|
}
|