@anncic-api/typeorm 1.1.48 → 1.2.0
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 +4 -4
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x58dd8b=a0_0x5581;(function(_0x366d4f,_0x37c471){const _0x2fcf64=a0_0x5581,_0x2d75f2=_0x366d4f();while(!![]){try{const _0x412d3a=parseInt(_0x2fcf64(0x1c7))/0x1+-parseInt(_0x2fcf64(0x1d7))/0x2*(parseInt(_0x2fcf64(0x1ec))/0x3)+parseInt(_0x2fcf64(0x1dc))/0x4*(parseInt(_0x2fcf64(0x1c5))/0x5)+-parseInt(_0x2fcf64(0x1db))/0x6+parseInt(_0x2fcf64(0x1da))/0x7+-parseInt(_0x2fcf64(0x1d6))/0x8*(parseInt(_0x2fcf64(0x1d8))/0x9)+parseInt(_0x2fcf64(0x1e6))/0xa*(parseInt(_0x2fcf64(0x1bc))/0xb);if(_0x412d3a===_0x37c471)break;else _0x2d75f2['push'](_0x2d75f2['shift']());}catch(_0x1d9e88){_0x2d75f2['push'](_0x2d75f2['shift']());}}}(a0_0x4a6a,0x861da));function a0_0x4a6a(){const _0x4b491f=['__decorate','anncic-api:typeorm','name','useMiddleware','getAsync','\x20is\x20not\x20ProvideRepository\x20Entify','780456YrdmUB','4KcTgNL','9fNBXui','MidwayConfigService','1558816TqmZsN','3161688ZpQhmk','1077736UfdDOb','target','body','length','decorator','typeorm','getOwnPropertyDescriptor','Configuration','config','production','1082570mFiTHC','getDataSource','object','__metadata','getDataSourceNameByModel','getRepository','1273620hFDksi','push','design:type','@midwayjs/decorator','metadata','__esModule','getClassMetadata','defineProperty','Repository','onReady','44uDlbgY','registerPropertyHandler','数据不存在','anncic-api-typeorm\x20Error\x20','getEnv','REPOSITORY_KEY','handlercache','MidwayDecoratorService','find','10SPruxW','CustomConfiguration','828339cmXxRH','ENTIFY_KEY','warn','function','TypeORMError','decorate','middlewareError','./definition/Repository','@midwayjs/typeorm'];a0_0x4a6a=function(){return _0x4b491f;};return a0_0x4a6a();}var __decorate=this&&this[a0_0x58dd8b(0x1d0)]||function(_0x390f0a,_0xe6df34,_0x1e2c31,_0x13bd8b){const _0x533888=a0_0x58dd8b;var _0x201536=arguments[_0x533888(0x1df)],_0xeee253=_0x201536<0x3?_0xe6df34:_0x13bd8b===null?_0x13bd8b=Object[_0x533888(0x1e2)](_0xe6df34,_0x1e2c31):_0x13bd8b,_0x498278;if(typeof Reflect===_0x533888(0x1e8)&&typeof Reflect[_0x533888(0x1cc)]===_0x533888(0x1ca))_0xeee253=Reflect[_0x533888(0x1cc)](_0x390f0a,_0xe6df34,_0x1e2c31,_0x13bd8b);else{for(var _0x2fa5e2=_0x390f0a['length']-0x1;_0x2fa5e2>=0x0;_0x2fa5e2--)if(_0x498278=_0x390f0a[_0x2fa5e2])_0xeee253=(_0x201536<0x3?_0x498278(_0xeee253):_0x201536>0x3?_0x498278(_0xe6df34,_0x1e2c31,_0xeee253):_0x498278(_0xe6df34,_0x1e2c31))||_0xeee253;}return _0x201536>0x3&&_0xeee253&&Object[_0x533888(0x1b9)](_0xe6df34,_0x1e2c31,_0xeee253),_0xeee253;},__metadata=this&&this[a0_0x58dd8b(0x1e9)]||function(_0x3ce378,_0x4b0586){const _0x23f7fd=a0_0x58dd8b;if(typeof Reflect===_0x23f7fd(0x1e8)&&typeof Reflect['metadata']===_0x23f7fd(0x1ca))return Reflect[_0x23f7fd(0x1f0)](_0x3ce378,_0x4b0586);};Object['defineProperty'](exports,a0_0x58dd8b(0x1b7),{'value':!![]}),exports[a0_0x58dd8b(0x1c6)]=void 0x0;const typeorm_1=require(a0_0x58dd8b(0x1cf)),decorator_1=require(a0_0x58dd8b(0x1ef)),core_1=require('@midwayjs/core'),typeorm_2=require(a0_0x58dd8b(0x1e1)),Repository_1=require(a0_0x58dd8b(0x1ce)),interface_1=require('./interface'),typeorm=require(a0_0x58dd8b(0x1cf));let CustomConfiguration=class CustomConfiguration{constructor(){const _0x29e649=a0_0x58dd8b;this[_0x29e649(0x1c2)]=[];}async[a0_0x58dd8b(0x1bb)](_0x213dc3,_0x25cbfb){const _0x4ab3d1=a0_0x58dd8b,_0x14d676=await _0x213dc3[_0x4ab3d1(0x1d4)](typeorm_1['TypeORMDataSourceManager']);this[_0x4ab3d1(0x1e0)][_0x4ab3d1(0x1bd)](interface_1[_0x4ab3d1(0x1c8)],(_0x5513d0,{entity:_0x2e2214,connection:_0x5d04be})=>{const _0x578787=_0x4ab3d1;let _0x14d530=this[_0x578787(0x1c2)][_0x578787(0x1c4)](_0x41ea0a=>_0x41ea0a[_0x578787(0x1dd)]===_0x2e2214);return!_0x14d530&&(_0x14d530=new Repository_1[(_0x578787(0x1ba))](_0x25cbfb,_0x14d676[_0x578787(0x1e7)](_0x5d04be||_0x14d676[_0x578787(0x1ea)](_0x2e2214))[_0x578787(0x1eb)](_0x2e2214)),this['handlercache'][_0x578787(0x1ed)](_0x14d530)),_0x14d530;}),this['decorator'][_0x4ab3d1(0x1bd)](interface_1[_0x4ab3d1(0x1c1)],(_0x2f7976,{repository:_0x292dd3,connection:_0x100835})=>{const _0x855db7=_0x4ab3d1,{entity:_0x30629f}=(0x0,decorator_1[_0x855db7(0x1b8)])(interface_1[_0x855db7(0x1c1)],_0x292dd3)||{};if(!_0x30629f)throw new Error(_0x855db7(0x1bf)+((_0x292dd3===null||_0x292dd3===void 0x0?void 0x0:_0x292dd3[_0x855db7(0x1d2)])||_0x292dd3)+_0x855db7(0x1d5));let _0x397544=this[_0x855db7(0x1c2)][_0x855db7(0x1c4)](_0x313255=>_0x313255===_0x292dd3);return!_0x397544&&(_0x397544=new _0x292dd3(_0x25cbfb,_0x14d676[_0x855db7(0x1e7)](_0x100835||_0x14d676[_0x855db7(0x1ea)](_0x30629f))[_0x855db7(0x1eb)](_0x30629f)),this[_0x855db7(0x1c2)][_0x855db7(0x1ed)](_0x397544)),_0x397544;}),_0x25cbfb[_0x4ab3d1(0x1d3)](this[_0x4ab3d1(0x1cd)](_0x25cbfb));}[a0_0x58dd8b(0x1cd)](_0xcd597e){return async(_0x56c894,_0x2e2f65)=>{const _0x3acbc0=a0_0x5581;try{await _0x2e2f65();}catch(_0x4cf871){if(_0x4cf871 instanceof typeorm_2[_0x3acbc0(0x1cb)])_0x4cf871 instanceof typeorm_2['EntityNotFoundError']?_0x56c894[_0x3acbc0(0x1de)]={'code':0x194,'msg':_0x3acbc0(0x1be)}:(_0x56c894[_0x3acbc0(0x1de)]={'code':0x1f4,'msg':_0x4cf871['message']},_0xcd597e[_0x3acbc0(0x1c0)]()!=_0x3acbc0(0x1e5)&&console[_0x3acbc0(0x1c9)](_0x4cf871));else throw _0x4cf871;}};}};function a0_0x5581(_0x24cf1b,_0x222a9c){const _0x4a6a39=a0_0x4a6a();return a0_0x5581=function(_0x558103,_0x53e9f8){_0x558103=_0x558103-0x1b7;let _0x1adbb5=_0x4a6a39[_0x558103];return _0x1adbb5;},a0_0x5581(_0x24cf1b,_0x222a9c);}__decorate([(0x0,decorator_1['Inject'])(),__metadata('design:type',core_1[a0_0x58dd8b(0x1d9)])],CustomConfiguration['prototype'],a0_0x58dd8b(0x1e4),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a0_0x58dd8b(0x1ee),core_1[a0_0x58dd8b(0x1c3)])],CustomConfiguration['prototype'],a0_0x58dd8b(0x1e0),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a0_0x58dd8b(0x1e3)])({'imports':[typeorm],'conflictCheck':![],'namespace':a0_0x58dd8b(0x1d1)})],CustomConfiguration),exports[a0_0x58dd8b(0x1c6)]=CustomConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a1_0x89db(_0x17ebfa,_0x3accc3){const _0x27af56=a1_0x27af();return a1_0x89db=function(_0x89db7,_0x5d21ef){_0x89db7=_0x89db7-0x141;let _0x77f9b0=_0x27af56[_0x89db7];return _0x77f9b0;},a1_0x89db(_0x17ebfa,_0x3accc3);}const a1_0x141105=a1_0x89db;(function(_0x40c87d,_0x2b07a5){const _0x314deb=a1_0x89db,_0x53b29f=_0x40c87d();while(!![]){try{const _0x4df80b=-parseInt(_0x314deb(0x148))/0x1*(-parseInt(_0x314deb(0x144))/0x2)+parseInt(_0x314deb(0x153))/0x3+parseInt(_0x314deb(0x143))/0x4+-parseInt(_0x314deb(0x141))/0x5*(parseInt(_0x314deb(0x14d))/0x6)+-parseInt(_0x314deb(0x145))/0x7*(parseInt(_0x314deb(0x147))/0x8)+-parseInt(_0x314deb(0x150))/0x9*(-parseInt(_0x314deb(0x154))/0xa)+-parseInt(_0x314deb(0x151))/0xb*(parseInt(_0x314deb(0x14f))/0xc);if(_0x4df80b===_0x2b07a5)break;else _0x53b29f['push'](_0x53b29f['shift']());}catch(_0x18663a){_0x53b29f['push'](_0x53b29f['shift']());}}}(a1_0x27af,0x24221));function a1_0x27af(){const _0x48431c=['22ezhSqC','defineProperty','598365yipMGI','1689970TBScZr','1685JluZNX','ENTIFY_KEY','1133468bTTVHw','141506PvpSPB','14wFVqCA','default','1000504YyAexN','3MkZaMG','__esModule','@midwayjs/decorator','createCustomPropertyDecorator','InjectEntity','582VWWpKM','../interface','2599572ADUQhv','9rdKviR'];a1_0x27af=function(){return _0x48431c;};return a1_0x27af();}Object[a1_0x141105(0x152)](exports,a1_0x141105(0x149),{'value':!![]}),exports[a1_0x141105(0x14c)]=void 0x0;const decorator_1=require(a1_0x141105(0x14a)),interface_1=require(a1_0x141105(0x14e));function InjectEntity(_0x12defb,_0x1bb31c=a1_0x141105(0x146)){const _0x29f8e7=a1_0x141105;return(0x0,decorator_1[_0x29f8e7(0x14b)])(interface_1[_0x29f8e7(0x142)],{'entity':_0x12defb,'connection':_0x1bb31c});}exports[a1_0x141105(0x14c)]=InjectEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x6ac3e9=a2_0x5695;(function(_0x504b3c,_0x57ff9d){const _0x3a9f07=a2_0x5695,_0x5e1df9=_0x504b3c();while(!![]){try{const _0x2cf45e=-parseInt(_0x3a9f07(0x1ff))/0x1*(parseInt(_0x3a9f07(0x1fb))/0x2)+parseInt(_0x3a9f07(0x1fe))/0x3+-parseInt(_0x3a9f07(0x203))/0x4*(-parseInt(_0x3a9f07(0x1f7))/0x5)+-parseInt(_0x3a9f07(0x1fd))/0x6+-parseInt(_0x3a9f07(0x1fc))/0x7*(parseInt(_0x3a9f07(0x1f8))/0x8)+-parseInt(_0x3a9f07(0x1f5))/0x9*(-parseInt(_0x3a9f07(0x200))/0xa)+parseInt(_0x3a9f07(0x1f9))/0xb;if(_0x2cf45e===_0x57ff9d)break;else _0x5e1df9['push'](_0x5e1df9['shift']());}catch(_0x395c3d){_0x5e1df9['push'](_0x5e1df9['shift']());}}}(a2_0x4352,0x8a045));Object[a2_0x6ac3e9(0x1fa)](exports,'__esModule',{'value':!![]}),exports[a2_0x6ac3e9(0x1f6)]=void 0x0;function a2_0x4352(){const _0x46015f=['200Nxogdg','@midwayjs/decorator','REPOSITORY_KEY','27jNtVBq','InjectRepository','52805ziyJRl','416KZCQlc','13039499oGxhpH','defineProperty','110XraCaH','85274SdNcTI','5911518wntuYK','479601cGUuLW','7013fbOSKz','2321410xTkEBy','createCustomPropertyDecorator','default'];a2_0x4352=function(){return _0x46015f;};return a2_0x4352();}const decorator_1=require(a2_0x6ac3e9(0x1f3)),interface_1=require('../interface');function InjectRepository(_0x5764a9,_0x47d247=a2_0x6ac3e9(0x202)){const _0x2c42e8=a2_0x6ac3e9;return(0x0,decorator_1[_0x2c42e8(0x201)])(interface_1[_0x2c42e8(0x1f4)],{'repository':_0x5764a9,'connection':_0x47d247});}function a2_0x5695(_0x1fdfa8,_0x40e9c3){const _0x435233=a2_0x4352();return a2_0x5695=function(_0x569574,_0x4c0d54){_0x569574=_0x569574-0x1f3;let _0x2bcc7d=_0x435233[_0x569574];return _0x2bcc7d;},a2_0x5695(_0x1fdfa8,_0x40e9c3);}exports[a2_0x6ac3e9(0x1f6)]=InjectRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x4febea=a3_0x49ed;function a3_0x49ed(_0x195f8b,_0x3736b5){const _0x5eb818=a3_0x5eb8();return a3_0x49ed=function(_0x49edc5,_0x3e762d){_0x49edc5=_0x49edc5-0xc6;let _0x56ccc9=_0x5eb818[_0x49edc5];return _0x56ccc9;},a3_0x49ed(_0x195f8b,_0x3736b5);}(function(_0x5983de,_0x2e2f35){const _0x1e4240=a3_0x49ed,_0x1dcfea=_0x5983de();while(!![]){try{const _0x42f112=parseInt(_0x1e4240(0xd4))/0x1*(-parseInt(_0x1e4240(0xde))/0x2)+-parseInt(_0x1e4240(0xcf))/0x3*(-parseInt(_0x1e4240(0xdb))/0x4)+-parseInt(_0x1e4240(0xdd))/0x5+parseInt(_0x1e4240(0xce))/0x6+parseInt(_0x1e4240(0xc7))/0x7*(-parseInt(_0x1e4240(0xd9))/0x8)+-parseInt(_0x1e4240(0xd0))/0x9*(parseInt(_0x1e4240(0xd2))/0xa)+parseInt(_0x1e4240(0xcc))/0xb;if(_0x42f112===_0x2e2f35)break;else _0x1dcfea['push'](_0x1dcfea['shift']());}catch(_0x408d9b){_0x1dcfea['push'](_0x1dcfea['shift']());}}}(a3_0x5eb8,0x3b61c));function a3_0x5eb8(){const _0x35002a=['saveModule','isArray','2300936NbGbGW','saveClassMetadata','2394984yjboMK','3lHuJAr','14193PJLQIN','default','1290dAXIWY','dataSource','3nZqGlr','string','Entity','@midwayjs/decorator','defineProperty','288nMMkgk','__esModule','1595428YfnXni','ProvideEntity','1576895kZZJRw','15454bNaBPI','push','43162AiZeeB','ENTIFY_MODULE_SOURCE','tableName'];a3_0x5eb8=function(){return _0x35002a;};return a3_0x5eb8();}Object[a3_0x4febea(0xd8)](exports,a3_0x4febea(0xda),{'value':!![]}),exports[a3_0x4febea(0xdc)]=void 0x0;const typeorm_1=require('typeorm'),decorator_1=require(a3_0x4febea(0xd7)),interface_1=require('../interface');function ProvideEntity(_0x459992,_0xfb25c6={}){return _0x248a10=>{const _0x44e522=a3_0x49ed;_0xfb25c6['name']=_0x459992[_0x44e522(0xc9)];const _0x336dc7=[];if(!(_0x459992===null||_0x459992===void 0x0?void 0x0:_0x459992['dataSource']))_0x336dc7['push'](_0x44e522(0xd1));else{if(typeof(_0x459992===null||_0x459992===void 0x0?void 0x0:_0x459992['dataSource'])==_0x44e522(0xd5))_0x336dc7['push'](_0x459992===null||_0x459992===void 0x0?void 0x0:_0x459992[_0x44e522(0xd3)]);else{if(Array[_0x44e522(0xcb)](_0x459992===null||_0x459992===void 0x0?void 0x0:_0x459992['dataSource']))for(let _0x4eca88 of _0x459992[_0x44e522(0xd3)]||['default']){_0x336dc7[_0x44e522(0xc6)](_0x4eca88);}}}(0x0,decorator_1[_0x44e522(0xca)])(interface_1['ENTIFY_MODULE'],_0x248a10),(0x0,decorator_1[_0x44e522(0xcd)])(interface_1[_0x44e522(0xc8)],{'tableName':_0x459992[_0x44e522(0xc9)],'dataSource':_0x336dc7},_0x248a10),(0x0,typeorm_1[_0x44e522(0xd6)])(_0x459992[_0x44e522(0xc9)],_0xfb25c6)(_0x248a10);};}exports[a3_0x4febea(0xdc)]=ProvideEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a4_0x558a(){const _0x13d74a=['3MoONnt','352020WIqLvK','490SfrzgS','@midwayjs/decorator','58597AOFGzn','16yhusQA','5255859AIFCtF','75968fnuCFx','2005520aStGsI','../interface','48snOnFj','3302586oBtyEz','1741692vfpWxZ','Request','saveClassMetadata','ScopeEnum','ProvideRepository','Provide'];a4_0x558a=function(){return _0x13d74a;};return a4_0x558a();}const a4_0x318dc5=a4_0x374c;(function(_0x2c4936,_0x244cc5){const _0x4ec919=a4_0x374c,_0x3ad48b=_0x2c4936();while(!![]){try{const _0x42f786=parseInt(_0x4ec919(0xfe))/0x1*(-parseInt(_0x4ec919(0x100))/0x2)+-parseInt(_0x4ec919(0xf9))/0x3*(parseInt(_0x4ec919(0xf3))/0x4)+parseInt(_0x4ec919(0xfa))/0x5*(parseInt(_0x4ec919(0xf1))/0x6)+parseInt(_0x4ec919(0xff))/0x7+parseInt(_0x4ec919(0x101))/0x8+-parseInt(_0x4ec919(0xf2))/0x9+parseInt(_0x4ec919(0xfb))/0xa*(parseInt(_0x4ec919(0xfd))/0xb);if(_0x42f786===_0x244cc5)break;else _0x3ad48b['push'](_0x3ad48b['shift']());}catch(_0x406041){_0x3ad48b['push'](_0x3ad48b['shift']());}}}(a4_0x558a,0x657ad));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['ProvideRepository']=void 0x0;const decorator_1=require(a4_0x318dc5(0xfc)),interface_1=require(a4_0x318dc5(0xf0));function a4_0x374c(_0xccc8df,_0x49d590){const _0x558af3=a4_0x558a();return a4_0x374c=function(_0x374c31,_0x340b81){_0x374c31=_0x374c31-0xf0;let _0x171f6d=_0x558af3[_0x374c31];return _0x171f6d;},a4_0x374c(_0xccc8df,_0x49d590);}function ProvideRepository(_0xd95d59){return _0x402fc2=>{const _0x2c65b7=a4_0x374c;(0x0,decorator_1['Scope'])(decorator_1[_0x2c65b7(0xf6)][_0x2c65b7(0xf4)],{'allowDowngrade':!![]})(_0x402fc2),((0x0,decorator_1[_0x2c65b7(0xf8)])()(_0x402fc2),(0x0,decorator_1[_0x2c65b7(0xf5)])(interface_1['REPOSITORY_KEY'],{'entity':_0xd95d59},_0x402fc2));};}exports[a4_0x318dc5(0xf7)]=ProvideRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a5_0x5662(_0x345580,_0x364328){const _0xcfc1b4=a5_0xcfc1();return a5_0x5662=function(_0x5662a3,_0x5ba317){_0x5662a3=_0x5662a3-0x76;let _0x192dc0=_0xcfc1b4[_0x5662a3];return _0x192dc0;},a5_0x5662(_0x345580,_0x364328);}function a5_0xcfc1(){const _0x3c74e0=['ProvideSearch','Search','8yCvMHl','ScopeEnum','5059061kPPxzO','580917zPBdjf','958896cVQIBX','427075ocLegx','MODEL_KEY','../interface','Singleton','1488162OYPgez','attachClassMetadata','MODEL_SEARCH_KEY','__esModule','28638117MVNXAl','saveModule','defineProperty','2381314KlVlme','28ZzEpLw'];a5_0xcfc1=function(){return _0x3c74e0;};return a5_0xcfc1();}const a5_0x49388c=a5_0x5662;(function(_0x1890e8,_0x43651d){const _0x4644cf=a5_0x5662,_0x298671=_0x1890e8();while(!![]){try{const _0x5c2fe4=-parseInt(_0x4644cf(0x79))/0x1+-parseInt(_0x4644cf(0x86))/0x2+-parseInt(_0x4644cf(0x7a))/0x3+-parseInt(_0x4644cf(0x87))/0x4*(-parseInt(_0x4644cf(0x7b))/0x5)+-parseInt(_0x4644cf(0x7f))/0x6+-parseInt(_0x4644cf(0x78))/0x7+parseInt(_0x4644cf(0x76))/0x8*(parseInt(_0x4644cf(0x83))/0x9);if(_0x5c2fe4===_0x43651d)break;else _0x298671['push'](_0x298671['shift']());}catch(_0x19a8c5){_0x298671['push'](_0x298671['shift']());}}}(a5_0xcfc1,0xaf48a));Object[a5_0x49388c(0x85)](exports,a5_0x49388c(0x82),{'value':!![]}),exports[a5_0x49388c(0x89)]=exports[a5_0x49388c(0x88)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),interface_1=require(a5_0x49388c(0x7d));function ProvideSearch(_0x31a1a0){return _0x3576a8=>{const _0xb31140=a5_0x5662;(0x0,decorator_1[_0xb31140(0x84)])(interface_1[_0xb31140(0x7c)],_0x3576a8),(0x0,decorator_1['Scope'])(decorator_1[_0xb31140(0x77)][_0xb31140(0x7e)])(_0x3576a8),(0x0,decorator_1[_0xb31140(0x80)])(interface_1[_0xb31140(0x7c)],_0x31a1a0,_0x3576a8);};}exports[a5_0x49388c(0x88)]=ProvideSearch;function Search(_0x23c8f4,_0x1be6ae){return(_0x144b5b,_0x1db889,_0x742308)=>{const _0x14047b=a5_0x5662;(0x0,decorator_1[_0x14047b(0x80)])(interface_1[_0x14047b(0x81)],{'field':_0x23c8f4,'comment':_0x1be6ae,'target':_0x144b5b,'methodName':_0x1db889,'descriptor':_0x742308},_0x144b5b);};}exports[a5_0x49388c(0x89)]=Search;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a6_0x508751=a6_0x4933;function a6_0x38fb(){const _0x2c5871=['getClassMetadata','getManyAndCount','typeorm','48PPTIyn','saveClassMetadata','getCount','2421832kcOBLm','defineProperty','getEntityValue','getRawAndEntities','55qYlvdd','762669fkjwld','OptimisticLockVersionMismatchError','optimistic','hasOwnProperty','getTime','@midwayjs/decorator','../interface','1970084zkvqJD','prototype','getOne','841902VRhVRS','default','getMany','__esModule','SelectQueryBuilder','expressionMap','ENTITY_VIRTUAL_COLUMN_KEY','metadata','186288TJbeKL','map','versionColumn','1644282wQKJWO','lockVersion','name','VirtualColumn','updateDateColumn','107806aiDMXE','lockMode','mainAlias'];a6_0x38fb=function(){return _0x2c5871;};return a6_0x38fb();}(function(_0x44e8cb,_0x5c3e91){const _0x201d7c=a6_0x4933,_0x3b4956=_0x44e8cb();while(!![]){try{const _0x3574a1=-parseInt(_0x201d7c(0x1e1))/0x1+-parseInt(_0x201d7c(0x1d1))/0x2+parseInt(_0x201d7c(0x1dc))/0x3+parseInt(_0x201d7c(0x1ce))/0x4+-parseInt(_0x201d7c(0x1ee))/0x5*(parseInt(_0x201d7c(0x1d9))/0x6)+-parseInt(_0x201d7c(0x1ea))/0x7+-parseInt(_0x201d7c(0x1e7))/0x8*(-parseInt(_0x201d7c(0x1ef))/0x9);if(_0x3574a1===_0x5c3e91)break;else _0x3b4956['push'](_0x3b4956['shift']());}catch(_0x4693fe){_0x3b4956['push'](_0x3b4956['shift']());}}}(a6_0x38fb,0x51400));Object[a6_0x508751(0x1eb)](exports,a6_0x508751(0x1d4),{'value':!![]}),exports[a6_0x508751(0x1df)]=void 0x0;function a6_0x4933(_0x369268,_0x3faab2){const _0x38fbcb=a6_0x38fb();return a6_0x4933=function(_0x4933e1,_0x17f9f0){_0x4933e1=_0x4933e1-0x1ce;let _0x2a770d=_0x38fbcb[_0x4933e1];return _0x2a770d;},a6_0x4933(_0x369268,_0x3faab2);}const typeorm_1=require(a6_0x508751(0x1e6)),decorator_1=require(a6_0x508751(0x1f4)),interface_1=require(a6_0x508751(0x1f5));function VirtualColumn(_0x231c3d,_0x478cb3){return(_0xcc2d9c,_0x153693)=>{const _0x388781=a6_0x4933,_0x496640=(0x0,decorator_1[_0x388781(0x1e4)])(interface_1['ENTITY_VIRTUAL_COLUMN_KEY'],_0xcc2d9c)||{};_0x496640[_0x153693]={'comment':_0x231c3d,..._0x478cb3},(0x0,decorator_1[_0x388781(0x1e8)])(interface_1[_0x388781(0x1d7)],_0x496640,_0xcc2d9c);};}exports[a6_0x508751(0x1df)]=VirtualColumn,typeorm_1['SelectQueryBuilder']['prototype'][a6_0x508751(0x1d3)]=async function(){const _0xbdc92=a6_0x508751;if(this[_0xbdc92(0x1d6)][_0xbdc92(0x1e2)]===_0xbdc92(0x1f1))throw new typeorm_1['OptimisticLockCanNotBeUsedError']();const {entities:_0x25280c,raw:_0x81b4f}=await this[_0xbdc92(0x1ed)]();return _0x25280c[_0xbdc92(0x1da)]((_0x38a015,_0x1570b6)=>{const _0x3f148e=_0xbdc92;var _0x24ba8e;const _0x391cc0=(0x0,decorator_1[_0x3f148e(0x1e4)])(interface_1['ENTITY_VIRTUAL_COLUMN_KEY'],_0x38a015)||{};for(const _0x283fca in _0x391cc0){_0x81b4f[_0x1570b6]&&_0x81b4f[_0x1570b6][_0x3f148e(0x1f2)](_0x283fca)&&(_0x38a015[_0x283fca]=_0x81b4f[_0x1570b6][_0x283fca]||((_0x24ba8e=_0x391cc0[_0x283fca])===null||_0x24ba8e===void 0x0?void 0x0:_0x24ba8e['default'])||'');}return _0x38a015;});},typeorm_1['SelectQueryBuilder'][a6_0x508751(0x1cf)][a6_0x508751(0x1e5)]=async function(){const _0x30e52d=a6_0x508751;return[await this[_0x30e52d(0x1d3)](),await this[_0x30e52d(0x1e9)]()];},typeorm_1[a6_0x508751(0x1d5)]['prototype'][a6_0x508751(0x1d0)]=async function(){const _0x4b42ca=a6_0x508751;var _0x43d1a1;const {entities:_0x575099,raw:_0x2daa82}=await this[_0x4b42ca(0x1ed)]();if(_0x575099[0x0]&&this[_0x4b42ca(0x1d6)][_0x4b42ca(0x1e2)]===_0x4b42ca(0x1f1)&&this[_0x4b42ca(0x1d6)][_0x4b42ca(0x1dd)]){const _0x560649=this[_0x4b42ca(0x1d6)][_0x4b42ca(0x1e3)][_0x4b42ca(0x1d8)];if(this[_0x4b42ca(0x1d6)][_0x4b42ca(0x1dd)]instanceof Date){const _0x32bd71=_0x560649[_0x4b42ca(0x1e0)][_0x4b42ca(0x1ec)](_0x575099[0x0]);if(_0x32bd71[_0x4b42ca(0x1f3)]()!==this[_0x4b42ca(0x1d6)][_0x4b42ca(0x1dd)][_0x4b42ca(0x1f3)]())throw new typeorm_1['OptimisticLockVersionMismatchError'](_0x560649[_0x4b42ca(0x1de)],this['expressionMap'][_0x4b42ca(0x1dd)],_0x32bd71);}else{const _0x21f2a1=_0x560649[_0x4b42ca(0x1db)][_0x4b42ca(0x1ec)](_0x575099[0x0]);if(_0x21f2a1!==this['expressionMap'][_0x4b42ca(0x1dd)])throw new typeorm_1[(_0x4b42ca(0x1f0))](_0x560649[_0x4b42ca(0x1de)],this[_0x4b42ca(0x1d6)][_0x4b42ca(0x1dd)],_0x21f2a1);}}if(_0x575099[0x0]&&_0x2daa82[0x0]){const _0x131d69=(0x0,decorator_1[_0x4b42ca(0x1e4)])(interface_1[_0x4b42ca(0x1d7)],_0x575099[0x0]);for(const _0x5aca7d in _0x131d69){_0x2daa82[0x0][_0x4b42ca(0x1f2)](_0x5aca7d)&&(_0x575099[0x0][_0x5aca7d]=_0x2daa82[0x0][_0x5aca7d]||((_0x43d1a1=_0x131d69[_0x5aca7d])===null||_0x43d1a1===void 0x0?void 0x0:_0x43d1a1[_0x4b42ca(0x1d2)])||'');}}return _0x575099[0x0]||null;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x4d5f71=a7_0x337c;(function(_0x313dfd,_0x511e1f){const _0x3188c7=a7_0x337c,_0xbe9d3e=_0x313dfd();while(!![]){try{const _0x152fc7=parseInt(_0x3188c7(0x172))/0x1+-parseInt(_0x3188c7(0x170))/0x2+-parseInt(_0x3188c7(0x17f))/0x3+parseInt(_0x3188c7(0x180))/0x4*(parseInt(_0x3188c7(0x18c))/0x5)+parseInt(_0x3188c7(0x16e))/0x6+parseInt(_0x3188c7(0x177))/0x7*(parseInt(_0x3188c7(0x18b))/0x8)+-parseInt(_0x3188c7(0x196))/0x9*(parseInt(_0x3188c7(0x176))/0xa);if(_0x152fc7===_0x511e1f)break;else _0xbe9d3e['push'](_0xbe9d3e['shift']());}catch(_0xc5337b){_0xbe9d3e['push'](_0xbe9d3e['shift']());}}}(a7_0xcb96,0x29004));function a7_0x337c(_0x381372,_0x534939){const _0xcb9697=a7_0xcb96();return a7_0x337c=function(_0x337c63,_0x5c0819){_0x337c63=_0x337c63-0x15e;let _0xbf7b98=_0xcb9697[_0x337c63];return _0xbf7b98;},a7_0x337c(_0x381372,_0x534939);}Object['defineProperty'](exports,a7_0x4d5f71(0x189),{'value':!![]}),exports['Repository']=void 0x0;const decorator_1=require(a7_0x4d5f71(0x16d)),typeorm_1=require(a7_0x4d5f71(0x163)),interface_1=require(a7_0x4d5f71(0x191));function a7_0xcb96(){const _0x1e973e=['excess','bind','_isreverse','../interface','name','MODEL_SEARCH_KEY','hasOwnProperty','metadata','531Zxqmye','BETWEEN','LIKE','type','_page','undefined','NOT\x20IN','\x20AND\x20:','merge','length','NOT\x20FIND\x20IN\x20SET','push','string','skip','condition','random','indexOf','createSave','NOT\x20ISNULL','function','getClassMetadata','isArray','NOT\x20LIKE','ASC','andWhere','typeorm','abs','modelSearchs','methodName','Repository','_size','FIND\x20IN\x20SET','transaction','app','getAsync','@midwayjs/decorator','46956JPlBiH','DESC','12888GlVcGT','toUpperCase','218867QalwyZ','searchs','target','ISNULL','6460SpVFEW','1377719TAiHsr','_order','orderBy','MODEL_KEY','_auto_','create','findColumnWithPropertyName','model','701979jqxfNw','1876ylYuHe','manager','operator','save','\x20like\x20:_auto_','ceil','NOT\x20BETWEEN','alias','createQueryBuilder','__esModule','queryRunner','8PFvZUK','245LGtskT','field'];a7_0xcb96=function(){return _0x1e973e;};return a7_0xcb96();}class Repository extends typeorm_1['Repository']{constructor(_0x858c46,_0x3191fc){const _0x27e225=a7_0x4d5f71;super(_0x3191fc[_0x27e225(0x174)],_0x3191fc[_0x27e225(0x181)],_0x3191fc['queryRunner']),this['modelSearchs']=[];for(const _0x1e0328 of(0x0,decorator_1[_0x27e225(0x15e)])(interface_1[_0x27e225(0x17a)],this[_0x27e225(0x174)])||[]){const _0xb1b16c={'model':_0x1e0328,'searchs':[]};for(const _0x4d8a2f of(0x0,decorator_1['getClassMetadata'])(interface_1[_0x27e225(0x193)],_0x1e0328)||[]){_0xb1b16c[_0x27e225(0x173)]['push'](_0x4d8a2f);}this[_0x27e225(0x165)][_0x27e225(0x1a1)](_0xb1b16c);}this[_0x27e225(0x16b)]=_0x858c46;}async['search'](_0x5dc899,_0x12e53b,_0x28b982={}){const _0x593d50=a7_0x4d5f71;var _0x48c438,_0x243556,_0x79d696,_0x2209da,_0x41b56f,_0x578e05;const _0xbd63d2=this[_0x593d50(0x188)](undefined,_0x28b982===null||_0x28b982===void 0x0?void 0x0:_0x28b982[_0x593d50(0x18a)]),_0x5d5816=[];for(const _0x4e2723 of this['modelSearchs']){if((_0x4e2723===null||_0x4e2723===void 0x0?void 0x0:_0x4e2723[_0x593d50(0x17e)])&&((_0x48c438=_0x4e2723===null||_0x4e2723===void 0x0?void 0x0:_0x4e2723[_0x593d50(0x173)])===null||_0x48c438===void 0x0?void 0x0:_0x48c438[_0x593d50(0x19f)])>0x0){const _0x2390f9=await this[_0x593d50(0x16b)]['getApplicationContext']()[_0x593d50(0x16c)](_0x4e2723[_0x593d50(0x17e)]);for(const _0x4de22a of _0x4e2723[_0x593d50(0x173)]){(_0x4de22a===null||_0x4de22a===void 0x0?void 0x0:_0x4de22a['field'])&&(_0x4de22a===null||_0x4de22a===void 0x0?void 0x0:_0x4de22a[_0x593d50(0x166)])&&typeof _0x2390f9[_0x4de22a[_0x593d50(0x166)]]==_0x593d50(0x1a9)&&(typeof(_0x5dc899===null||_0x5dc899===void 0x0?void 0x0:_0x5dc899[_0x4de22a[_0x593d50(0x18d)]])!=_0x593d50(0x19b)&&!((_0x243556=_0x5dc899===null||_0x5dc899===void 0x0?void 0x0:_0x5dc899[_0x4de22a[_0x593d50(0x18d)]])===null||_0x243556===void 0x0?void 0x0:_0x243556[_0x593d50(0x194)]('operator'))&&(_0x5d5816[_0x593d50(0x1a6)](_0x4de22a[_0x593d50(0x18d)])==-0x1&&_0x5d5816[_0x593d50(0x1a1)](_0x4de22a[_0x593d50(0x18d)]),await _0x2390f9[_0x4de22a[_0x593d50(0x166)]][_0x593d50(0x18f)](_0x2390f9)(_0xbd63d2,_0x5dc899[_0x4de22a[_0x593d50(0x18d)]],_0x5dc899,_0x12e53b,_0x28b982===null||_0x28b982===void 0x0?void 0x0:_0x28b982[_0x593d50(0x18a)])));}}}for(const _0x8a4e06 in _0x5dc899){if(typeof _0x5dc899[_0x8a4e06]!=_0x593d50(0x19b)&&_0x5d5816[_0x593d50(0x1a6)](_0x8a4e06)==-0x1){const _0x34b442=this[_0x593d50(0x195)]['findColumnWithPropertyName'](_0x8a4e06);if(_0x34b442){if((_0x79d696=_0x5dc899===null||_0x5dc899===void 0x0?void 0x0:_0x5dc899[_0x8a4e06])===null||_0x79d696===void 0x0?void 0x0:_0x79d696[_0x593d50(0x194)](_0x593d50(0x182))){const _0xe31daf=(_0x2209da=_0x5dc899[_0x8a4e06])===null||_0x2209da===void 0x0?void 0x0:_0x2209da[_0x593d50(0x1a4)],_0x3db991=(_0x41b56f=_0x5dc899[_0x8a4e06])===null||_0x41b56f===void 0x0?void 0x0:_0x41b56f['operator']['trim']()[_0x593d50(0x171)](),_0xaf5362=_0x593d50(0x17b)+_0x8a4e06+'_'+Math[_0x593d50(0x185)](Math[_0x593d50(0x1a5)]()*0xa)+Math[_0x593d50(0x185)](Math[_0x593d50(0x1a5)]()*0xa)+Math[_0x593d50(0x185)](Math[_0x593d50(0x1a5)]()*0xa)+Math[_0x593d50(0x185)](Math[_0x593d50(0x1a5)]()*0xa);if(['=','!=','<>','>','>=','<','<=',_0x593d50(0x198),_0x593d50(0x160)]['indexOf'](_0x3db991)!=-0x1)typeof _0xe31daf!=_0x593d50(0x19b)&&_0xbd63d2[_0x593d50(0x162)](_0xbd63d2[_0x593d50(0x187)]+'.'+_0x8a4e06+'\x20'+_0x3db991+'\x20:'+_0xaf5362,{[_0xaf5362]:_0xe31daf});else{if(['IN',_0x593d50(0x19c)][_0x593d50(0x1a6)](_0x3db991)!=-0x1){if(typeof _0xe31daf!='undefined'){const _0x11dc8a=Array['isArray'](_0xe31daf)?_0xe31daf:typeof _0xe31daf==_0x593d50(0x1a2)?_0xe31daf['split'](','):[_0xe31daf];_0xbd63d2[_0x593d50(0x162)](_0xbd63d2[_0x593d50(0x187)]+'.'+_0x8a4e06+'\x20'+_0x3db991+'(:'+_0xaf5362+')',{[_0xaf5362]:_0x11dc8a});}}else{if([_0x593d50(0x169),_0x593d50(0x1a0)][_0x593d50(0x1a6)](_0x3db991)!=-0x1)typeof _0xe31daf!=_0x593d50(0x19b)&&_0xbd63d2[_0x593d50(0x162)](_0x3db991+'(:'+_0xaf5362+','+_0xbd63d2[_0x593d50(0x187)]+'.'+_0x8a4e06+')',{[_0xaf5362]:_0xe31daf});else{if([_0x593d50(0x197),_0x593d50(0x186)][_0x593d50(0x1a6)](_0x3db991)!=-0x1){if(typeof _0xe31daf!=_0x593d50(0x19b)){const _0x591bb6=Array[_0x593d50(0x15f)](_0xe31daf)?_0xe31daf:typeof _0xe31daf==_0x593d50(0x1a2)?_0xe31daf['split'](','):[_0xe31daf];_0x591bb6[_0x593d50(0x19f)]>0x1&&_0xbd63d2[_0x593d50(0x162)](_0xbd63d2[_0x593d50(0x187)]+'.'+_0x8a4e06+'\x20'+_0x3db991+'\x20:'+_0xaf5362+_0x593d50(0x19d)+_0xaf5362+'_2',{[''+_0xaf5362]:_0x591bb6[0x0],[_0xaf5362+'_2']:_0x591bb6[0x1]});}}else[_0x593d50(0x175),_0x593d50(0x1a8)][_0x593d50(0x1a6)](_0x3db991)!=-0x1&&_0xbd63d2[_0x593d50(0x162)](_0x3db991+'('+_0xbd63d2[_0x593d50(0x187)]+'.'+_0x8a4e06+')');}}}}else{if(_0x5d5816[_0x593d50(0x1a6)](_0x8a4e06)==-0x1){const _0x4c4038=typeof _0x34b442[_0x593d50(0x199)]=='function'?(_0x578e05=_0x34b442===null||_0x34b442===void 0x0?void 0x0:_0x34b442[_0x593d50(0x199)])===null||_0x578e05===void 0x0?void 0x0:_0x578e05[_0x593d50(0x192)]:_0x34b442[_0x593d50(0x199)]['toString']();_0x4c4038=='String'?_0xbd63d2['andWhere'](_0xbd63d2[_0x593d50(0x187)]+'.'+_0x8a4e06+_0x593d50(0x184)+_0x8a4e06,{[_0x593d50(0x17b)+_0x8a4e06]:'%'+_0x5dc899[_0x8a4e06]+'%'}):_0xbd63d2[_0x593d50(0x162)](_0xbd63d2[_0x593d50(0x187)]+'.'+_0x8a4e06+'\x20=\x20:_auto_'+_0x8a4e06,{[_0x593d50(0x17b)+_0x8a4e06]:_0x5dc899[_0x8a4e06]});}}}}}(_0x12e53b===null||_0x12e53b===void 0x0?void 0x0:_0x12e53b['_size'])&&_0xbd63d2['take'](Math[_0x593d50(0x164)](_0x12e53b[_0x593d50(0x168)]));(_0x12e53b===null||_0x12e53b===void 0x0?void 0x0:_0x12e53b['_page'])&&(_0x12e53b===null||_0x12e53b===void 0x0?void 0x0:_0x12e53b[_0x593d50(0x168)])&&_0xbd63d2[_0x593d50(0x1a3)]((Math[_0x593d50(0x164)](_0x12e53b[_0x593d50(0x19a)])-0x1)*Math[_0x593d50(0x164)](_0x12e53b[_0x593d50(0x168)]));if(_0x12e53b===null||_0x12e53b===void 0x0?void 0x0:_0x12e53b[_0x593d50(0x178)]){if(_0x12e53b[_0x593d50(0x178)][_0x593d50(0x1a6)]('.')!==-0x1)_0xbd63d2[_0x593d50(0x179)](''+_0x12e53b[_0x593d50(0x178)],(_0x12e53b===null||_0x12e53b===void 0x0?void 0x0:_0x12e53b['_isreverse'])?_0x593d50(0x161):'DESC');else _0x5d5816['indexOf'](_0x12e53b[_0x593d50(0x178)])==-0x1&&(this[_0x593d50(0x195)][_0x593d50(0x17d)](_0x12e53b[_0x593d50(0x178)])?_0xbd63d2[_0x593d50(0x179)](_0xbd63d2['alias']+'.'+_0x12e53b[_0x593d50(0x178)],(_0x12e53b===null||_0x12e53b===void 0x0?void 0x0:_0x12e53b['_isreverse'])?_0x593d50(0x161):_0x593d50(0x16f)):_0xbd63d2[_0x593d50(0x179)](''+_0x12e53b['_order'],(_0x12e53b===null||_0x12e53b===void 0x0?void 0x0:_0x12e53b[_0x593d50(0x190)])?_0x593d50(0x161):'DESC'));}return typeof(_0x28b982===null||_0x28b982===void 0x0?void 0x0:_0x28b982[_0x593d50(0x18e)])==_0x593d50(0x1a9)&&await(_0x28b982===null||_0x28b982===void 0x0?void 0x0:_0x28b982[_0x593d50(0x18e)](_0xbd63d2)),_0xbd63d2;}async['mergeSave'](_0x15e08f,..._0x7c616){const _0x1f6aad=a7_0x4d5f71,_0x24de86=this[_0x1f6aad(0x19e)](_0x15e08f,..._0x7c616);return await this[_0x1f6aad(0x183)](_0x24de86);}async[a7_0x4d5f71(0x1a7)](_0x432496,..._0x414823){const _0x41dae7=a7_0x4d5f71,_0x175140=this[_0x41dae7(0x19e)](this[_0x41dae7(0x17c)](_0x432496),..._0x414823);return await this[_0x41dae7(0x183)](_0x175140);}async[a7_0x4d5f71(0x16a)](_0x492fb1,_0x541096){const _0x42ecc6=a7_0x4d5f71;return this['manager'][_0x42ecc6(0x16a)](_0x492fb1,_0x541096);}}exports[a7_0x4d5f71(0x167)]=Repository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a8_0x54da(){const _0x351ac2=['4617600VOUeYq','listModule','1245688ChgjmF','@midwayjs/decorator','getClassMetadata','ENTIFY_MODULE','322738hMGChi','1585479QZBxDr','getDataSourceEntity','2914944iOjQPX','../interface','find','default','6153759oJwNGx','5snIGlu','defineProperty','dataSource','ENTIFY_MODULE_SOURCE','8PxFVKb','push','6781536LTmipY'];a8_0x54da=function(){return _0x351ac2;};return a8_0x54da();}const a8_0x4adf27=a8_0x1068;(function(_0x4d9242,_0x11f43e){const _0x4725e2=a8_0x1068,_0xdd06fb=_0x4d9242();while(!![]){try{const _0x33b890=-parseInt(_0x4725e2(0x1bd))/0x1*(-parseInt(_0x4725e2(0x1b5))/0x2)+-parseInt(_0x4725e2(0x1b8))/0x3+-parseInt(_0x4725e2(0x1c6))/0x4+-parseInt(_0x4725e2(0x1c4))/0x5+parseInt(_0x4725e2(0x1c3))/0x6+parseInt(_0x4725e2(0x1b6))/0x7+-parseInt(_0x4725e2(0x1c1))/0x8*(-parseInt(_0x4725e2(0x1bc))/0x9);if(_0x33b890===_0x11f43e)break;else _0xdd06fb['push'](_0xdd06fb['shift']());}catch(_0x54e5d7){_0xdd06fb['push'](_0xdd06fb['shift']());}}}(a8_0x54da,0x9c6f7));function a8_0x1068(_0x468db2,_0x48d570){const _0x54da11=a8_0x54da();return a8_0x1068=function(_0x106885,_0x1962ce){_0x106885=_0x106885-0x1b3;let _0x370457=_0x54da11[_0x106885];return _0x370457;},a8_0x1068(_0x468db2,_0x48d570);}Object[a8_0x4adf27(0x1be)](exports,'__esModule',{'value':!![]}),exports['getDataSourceEntity']=void 0x0;const decorator_1=require(a8_0x4adf27(0x1c7)),interface_1=require(a8_0x4adf27(0x1b9));function getDataSourceEntity(_0x102303=a8_0x4adf27(0x1bb)){const _0x3dd917=a8_0x4adf27;var _0x5944b4;const _0x31735e=[];for(const _0x5959b3 of(0x0,decorator_1[_0x3dd917(0x1c5)])(interface_1[_0x3dd917(0x1b4)])){const _0x3ff617=(0x0,decorator_1[_0x3dd917(0x1b3)])(interface_1[_0x3dd917(0x1c0)],_0x5959b3);((_0x5944b4=_0x3ff617===null||_0x3ff617===void 0x0?void 0x0:_0x3ff617[_0x3dd917(0x1bf)])===null||_0x5944b4===void 0x0?void 0x0:_0x5944b4[_0x3dd917(0x1ba)](_0x2a9d27=>_0x2a9d27==_0x102303))&&_0x31735e[_0x3dd917(0x1c2)](_0x5959b3);}return _0x31735e;}exports[a8_0x4adf27(0x1b7)]=getDataSourceEntity;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x5620a4=a9_0x315f;(function(_0x2f06ce,_0x2d86a1){var _0x59eb14=a9_0x315f,_0x41370c=_0x2f06ce();while(!![]){try{var _0x386eeb=-parseInt(_0x59eb14(0x9c))/0x1+-parseInt(_0x59eb14(0x8b))/0x2+-parseInt(_0x59eb14(0x9a))/0x3*(-parseInt(_0x59eb14(0x7e))/0x4)+-parseInt(_0x59eb14(0xa0))/0x5*(-parseInt(_0x59eb14(0x9e))/0x6)+-parseInt(_0x59eb14(0x83))/0x7+parseInt(_0x59eb14(0x76))/0x8*(-parseInt(_0x59eb14(0x7f))/0x9)+parseInt(_0x59eb14(0xa1))/0xa;if(_0x386eeb===_0x2d86a1)break;else _0x41370c['push'](_0x41370c['shift']());}catch(_0x15abcf){_0x41370c['push'](_0x41370c['shift']());}}}(a9_0x49bd,0xecff5));var __createBinding=this&&this[a9_0x5620a4(0x86)]||(Object[a9_0x5620a4(0x92)]?function(_0x225a2c,_0x475ef5,_0x438e3b,_0x240f47){var _0x3fbb0b=a9_0x5620a4;if(_0x240f47===undefined)_0x240f47=_0x438e3b;var _0x5e34ec=Object['getOwnPropertyDescriptor'](_0x475ef5,_0x438e3b);(!_0x5e34ec||(_0x3fbb0b(0x7a)in _0x5e34ec?!_0x475ef5[_0x3fbb0b(0x8f)]:_0x5e34ec[_0x3fbb0b(0x93)]||_0x5e34ec[_0x3fbb0b(0x85)]))&&(_0x5e34ec={'enumerable':!![],'get':function(){return _0x475ef5[_0x438e3b];}}),Object['defineProperty'](_0x225a2c,_0x240f47,_0x5e34ec);}:function(_0x51e0e0,_0x58feb8,_0x5b0120,_0x5d7f16){if(_0x5d7f16===undefined)_0x5d7f16=_0x5b0120;_0x51e0e0[_0x5d7f16]=_0x58feb8[_0x5b0120];}),__exportStar=this&&this[a9_0x5620a4(0x96)]||function(_0x100d7f,_0x3a208c){var _0x1719fc=a9_0x5620a4;for(var _0x198936 in _0x100d7f)if(_0x198936!==_0x1719fc(0x89)&&!Object[_0x1719fc(0x94)][_0x1719fc(0x8e)][_0x1719fc(0x97)](_0x3a208c,_0x198936))__createBinding(_0x3a208c,_0x100d7f,_0x198936);};Object[a9_0x5620a4(0x82)](exports,a9_0x5620a4(0x8f),{'value':!![]}),exports[a9_0x5620a4(0x95)]=exports[a9_0x5620a4(0x9b)]=exports[a9_0x5620a4(0x75)]=exports[a9_0x5620a4(0x8d)]=exports[a9_0x5620a4(0x77)]=exports['getDataSourceEntity']=exports['Search']=exports[a9_0x5620a4(0x98)]=exports['ProvideRepository']=exports[a9_0x5620a4(0x79)]=exports['InjectRepository']=exports[a9_0x5620a4(0x88)]=exports[a9_0x5620a4(0x7b)]=exports[a9_0x5620a4(0x99)]=void 0x0,__exportStar(require(a9_0x5620a4(0x9d)),exports),__exportStar(require('./interface'),exports);var Repository_1=require('./definition/Repository');Object[a9_0x5620a4(0x82)](exports,'Repository',{'enumerable':!![],'get':function(){return Repository_1['Repository'];}});var VirtualColumn_1=require(a9_0x5620a4(0x7c));Object['defineProperty'](exports,a9_0x5620a4(0x7b),{'enumerable':!![],'get':function(){var _0x6ee0de=a9_0x5620a4;return VirtualColumn_1[_0x6ee0de(0x7b)];}});var InjectEntity_1=require(a9_0x5620a4(0x7d));Object[a9_0x5620a4(0x82)](exports,a9_0x5620a4(0x88),{'enumerable':!![],'get':function(){var _0x19fff2=a9_0x5620a4;return InjectEntity_1[_0x19fff2(0x88)];}});var InjectRepository_1=require(a9_0x5620a4(0x90));Object[a9_0x5620a4(0x82)](exports,'InjectRepository',{'enumerable':!![],'get':function(){var _0x126777=a9_0x5620a4;return InjectRepository_1[_0x126777(0x91)];}});var ProvideEntity_1=require(a9_0x5620a4(0x78));Object[a9_0x5620a4(0x82)](exports,a9_0x5620a4(0x79),{'enumerable':!![],'get':function(){return ProvideEntity_1['ProvideEntity'];}});var ProvideRepository_1=require(a9_0x5620a4(0x84));function a9_0x49bd(){var _0x1f203e=['get','VirtualColumn','./decorator/VirtualColumn','./decorator/InjectEntity','22364cxgMoo','623817jboNMq','./helper/getDataSourceEntity','CustomConfiguration','defineProperty','497028qtbgZE','./decorator/ProvideRepository','configurable','__createBinding','Search','InjectEntity','default','getDataSourceEntity','3239170UxPvIT','./decorator/ProvideSearch','Provide','hasOwnProperty','__esModule','./decorator/InjectRepository','InjectRepository','create','writable','prototype','ScopeEnum','__exportStar','call','ProvideSearch','Repository','435XQQuNe','Scope','1923034abppXp','typeorm','2134938ICOEHx','ProvideRepository','5JHWlxs','41109760FFGAAT','@midwayjs/decorator','Inject','80oxUthl','Configuration','./decorator/ProvideEntity','ProvideEntity'];a9_0x49bd=function(){return _0x1f203e;};return a9_0x49bd();}function a9_0x315f(_0x17b87a,_0x3dabb8){var _0x49bd4b=a9_0x49bd();return a9_0x315f=function(_0x315f64,_0xb24545){_0x315f64=_0x315f64-0x74;var _0x30d19c=_0x49bd4b[_0x315f64];return _0x30d19c;},a9_0x315f(_0x17b87a,_0x3dabb8);}Object[a9_0x5620a4(0x82)](exports,a9_0x5620a4(0x9f),{'enumerable':!![],'get':function(){var _0xb9afb3=a9_0x5620a4;return ProvideRepository_1[_0xb9afb3(0x9f)];}});var ProvideSearch_1=require(a9_0x5620a4(0x8c));Object['defineProperty'](exports,a9_0x5620a4(0x98),{'enumerable':!![],'get':function(){var _0x2ff775=a9_0x5620a4;return ProvideSearch_1[_0x2ff775(0x98)];}}),Object[a9_0x5620a4(0x82)](exports,'Search',{'enumerable':!![],'get':function(){var _0x39cb54=a9_0x5620a4;return ProvideSearch_1[_0x39cb54(0x87)];}});var getDataSourceEntity_1=require(a9_0x5620a4(0x80));Object[a9_0x5620a4(0x82)](exports,a9_0x5620a4(0x8a),{'enumerable':!![],'get':function(){var _0x10f7f4=a9_0x5620a4;return getDataSourceEntity_1[_0x10f7f4(0x8a)];}});var configuration_1=require('./configuration');Object['defineProperty'](exports,a9_0x5620a4(0x77),{'enumerable':!![],'get':function(){var _0x127955=a9_0x5620a4;return configuration_1[_0x127955(0x81)];}});var decorator_1=require(a9_0x5620a4(0x74));Object[a9_0x5620a4(0x82)](exports,a9_0x5620a4(0x8d),{'enumerable':!![],'get':function(){var _0x5bf303=a9_0x5620a4;return decorator_1[_0x5bf303(0x8d)];}}),Object[a9_0x5620a4(0x82)](exports,a9_0x5620a4(0x75),{'enumerable':!![],'get':function(){return decorator_1['Inject'];}}),Object['defineProperty'](exports,a9_0x5620a4(0x9b),{'enumerable':!![],'get':function(){var _0x2ae536=a9_0x5620a4;return decorator_1[_0x2ae536(0x9b)];}}),Object[a9_0x5620a4(0x82)](exports,a9_0x5620a4(0x95),{'enumerable':!![],'get':function(){var _0x3b8443=a9_0x5620a4;return decorator_1[_0x3b8443(0x95)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a10_0x32f0fb=a10_0xe5ca;(function(_0x5badec,_0xdc59ae){const _0x1e6dc1=a10_0xe5ca,_0x22f356=_0x5badec();while(!![]){try{const _0x4f6ff1=-parseInt(_0x1e6dc1(0x1f6))/0x1*(parseInt(_0x1e6dc1(0x1f2))/0x2)+-parseInt(_0x1e6dc1(0x1e4))/0x3+parseInt(_0x1e6dc1(0x1f3))/0x4+parseInt(_0x1e6dc1(0x1f4))/0x5*(-parseInt(_0x1e6dc1(0x1fa))/0x6)+-parseInt(_0x1e6dc1(0x1f7))/0x7*(-parseInt(_0x1e6dc1(0x1de))/0x8)+-parseInt(_0x1e6dc1(0x1ea))/0x9+parseInt(_0x1e6dc1(0x1eb))/0xa*(parseInt(_0x1e6dc1(0x1f1))/0xb);if(_0x4f6ff1===_0xdc59ae)break;else _0x22f356['push'](_0x22f356['shift']());}catch(_0xfa6438){_0x22f356['push'](_0x22f356['shift']());}}}(a10_0x4192,0xdc14e));function a10_0x4192(){const _0x57de43=['findOneByOrFail','resolve','decorator:anncic-api:typeorm:model:search','decorator:anncic-api:typeorm:model','ENTITY_VIRTUAL_COLUMN_KEY','3487581JafUyQ','120970ekoFfo','REPOSITORY_KEY','EntityNotFoundError','prototype','SearchPaginate','findOneOrFail','3751XodtpJ','2417886ooCpkv','1267768pGwLXP','125LFRRXb','defineProperty','1tMsqQy','21XYkmsa','decorator:anncic-api:typeorm:entity:virtual:column','findOneBy','373782aPqvxj','ENTIFY_MODULE_SOURCE','then','EntityManager','decorator:anncic-api:typeorm:repository','decorator:anncic-api:typeorm:entify:module:source','MODEL_KEY','MODEL_SEARCH_KEY','671032ZJTedg','ENTIFY_MODULE','__esModule','decorator:anncic-api:typeorm:entify:module','ENTIFY_KEY','reject','1914975CNbLkh'];a10_0x4192=function(){return _0x57de43;};return a10_0x4192();}Object[a10_0x32f0fb(0x1f5)](exports,a10_0x32f0fb(0x1e0),{'value':!![]}),exports['SearchPaginate']=exports[a10_0x32f0fb(0x1e9)]=exports[a10_0x32f0fb(0x1dd)]=exports[a10_0x32f0fb(0x200)]=exports[a10_0x32f0fb(0x1ec)]=exports[a10_0x32f0fb(0x1fb)]=exports[a10_0x32f0fb(0x1df)]=exports[a10_0x32f0fb(0x1e2)]=void 0x0;const typeorm_1=require('typeorm');exports[a10_0x32f0fb(0x1e2)]='decorator:anncic-api:typeorm:entify',exports[a10_0x32f0fb(0x1df)]=a10_0x32f0fb(0x1e1),exports[a10_0x32f0fb(0x1fb)]=a10_0x32f0fb(0x1ff),exports['REPOSITORY_KEY']=a10_0x32f0fb(0x1fe),exports[a10_0x32f0fb(0x200)]=a10_0x32f0fb(0x1e8),exports[a10_0x32f0fb(0x1dd)]=a10_0x32f0fb(0x1e7),exports[a10_0x32f0fb(0x1e9)]=a10_0x32f0fb(0x1f8);class SearchPaginate{}function a10_0xe5ca(_0x5f0d79,_0x39ed1a){const _0x41927c=a10_0x4192();return a10_0xe5ca=function(_0xe5ca97,_0x202dd1){_0xe5ca97=_0xe5ca97-0x1dd;let _0x401611=_0x41927c[_0xe5ca97];return _0x401611;},a10_0xe5ca(_0x5f0d79,_0x39ed1a);}exports[a10_0x32f0fb(0x1ef)]=SearchPaginate,typeorm_1[a10_0x32f0fb(0x1fd)][a10_0x32f0fb(0x1ee)][a10_0x32f0fb(0x1f0)]=async function(_0x43eb05,_0x2c67b8){return this['findOne'](_0x43eb05,_0x2c67b8)['then'](_0x44f428=>{const _0x307edb=a10_0xe5ca;if(_0x44f428===null||_0x44f428===undefined)return Promise[_0x307edb(0x1e3)](new typeorm_1[(_0x307edb(0x1ed))](_0x43eb05,_0x2c67b8));return Promise[_0x307edb(0x1e6)](_0x44f428);});},typeorm_1[a10_0x32f0fb(0x1fd)][a10_0x32f0fb(0x1ee)][a10_0x32f0fb(0x1e5)]=async function(_0x56a7b9,_0x298695){const _0xa4aeb2=a10_0x32f0fb;return this[_0xa4aeb2(0x1f9)](_0x56a7b9,_0x298695)[_0xa4aeb2(0x1fc)](_0x464ef2=>{const _0xd3cd8=_0xa4aeb2;if(_0x464ef2===null||_0x464ef2===undefined)return Promise[_0xd3cd8(0x1e3)](new typeorm_1[(_0xd3cd8(0x1ed))](_0x56a7b9,_0x298695));return Promise[_0xd3cd8(0x1e6)](_0x464ef2);});};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/typeorm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
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": "df8a56632f1499078db546232c694e3e0bc11290"
|
|
26
26
|
}
|