@anncic-api/typeorm 1.3.10 → 1.3.12
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_0x562029=a0_0x3023;(function(_0x5c8123,_0x4f8982){const _0x5c9f17=a0_0x3023,_0x2d9727=_0x5c8123();while(!![]){try{const _0x210c90=parseInt(_0x5c9f17(0x209))/0x1+parseInt(_0x5c9f17(0x1ee))/0x2*(parseInt(_0x5c9f17(0x208))/0x3)+-parseInt(_0x5c9f17(0x1ef))/0x4*(parseInt(_0x5c9f17(0x20a))/0x5)+-parseInt(_0x5c9f17(0x205))/0x6+parseInt(_0x5c9f17(0x1f9))/0x7*(parseInt(_0x5c9f17(0x203))/0x8)+parseInt(_0x5c9f17(0x1f2))/0x9*(parseInt(_0x5c9f17(0x1f1))/0xa)+-parseInt(_0x5c9f17(0x1f8))/0xb*(parseInt(_0x5c9f17(0x1de))/0xc);if(_0x210c90===_0x4f8982)break;else _0x2d9727['push'](_0x2d9727['shift']());}catch(_0x17814b){_0x2d9727['push'](_0x2d9727['shift']());}}}(a0_0x309c,0xafb2d));var __decorate=this&&this['__decorate']||function(_0x4d964d,_0x21a5ad,_0xa74ac,_0xda28cf){const _0x55451c=a0_0x3023;var _0xa72960=arguments['length'],_0x30e494=_0xa72960<0x3?_0x21a5ad:_0xda28cf===null?_0xda28cf=Object[_0x55451c(0x1e6)](_0x21a5ad,_0xa74ac):_0xda28cf,_0x2eda87;if(typeof Reflect===_0x55451c(0x1ed)&&typeof Reflect[_0x55451c(0x1df)]===_0x55451c(0x1fe))_0x30e494=Reflect[_0x55451c(0x1df)](_0x4d964d,_0x21a5ad,_0xa74ac,_0xda28cf);else{for(var _0x572025=_0x4d964d[_0x55451c(0x1dc)]-0x1;_0x572025>=0x0;_0x572025--)if(_0x2eda87=_0x4d964d[_0x572025])_0x30e494=(_0xa72960<0x3?_0x2eda87(_0x30e494):_0xa72960>0x3?_0x2eda87(_0x21a5ad,_0xa74ac,_0x30e494):_0x2eda87(_0x21a5ad,_0xa74ac))||_0x30e494;}return _0xa72960>0x3&&_0x30e494&&Object[_0x55451c(0x1f6)](_0x21a5ad,_0xa74ac,_0x30e494),_0x30e494;},__metadata=this&&this['__metadata']||function(_0x1320f1,_0x5cbc67){const _0x31a433=a0_0x3023;if(typeof Reflect==='object'&&typeof Reflect[_0x31a433(0x1ff)]===_0x31a433(0x1fe))return Reflect[_0x31a433(0x1ff)](_0x1320f1,_0x5cbc67);};function a0_0x3023(_0x4e6e91,_0x30b6e3){const _0x309cd0=a0_0x309c();return a0_0x3023=function(_0x3023cf,_0x314094){_0x3023cf=_0x3023cf-0x1da;let _0x132e76=_0x309cd0[_0x3023cf];return _0x132e76;},a0_0x3023(_0x4e6e91,_0x30b6e3);}Object[a0_0x562029(0x1f6)](exports,a0_0x562029(0x20d),{'value':!![]}),exports[a0_0x562029(0x1fb)]=void 0x0;function a0_0x309c(){const _0x534ee0=['__esModule','decorator','EntityNotFoundError','@midwayjs/typeorm','TypeORMError','anncic-api-typeorm\x20Error\x20','Configuration','Repository','length','push','6498816MMHduz','decorate','getDataSourceNameByModel','REPOSITORY_KEY','\x20is\x20not\x20ProvideRepository\x20Entify','TypeORMDataSourceManager','@midwayjs/core','find','getOwnPropertyDescriptor','prototype','./definition/Repository','Inject','production','getEnv','design:type','object','830996xviQuw','8ZqnJUO','registerPropertyHandler','10wnqkhN','2534769ciYqyu','getClassMetadata','getAsync','getDataSource','defineProperty','body','44BCvMye','9526762dmFxmO','typeorm','CustomConfiguration','middlewareError','target','function','metadata','./interface','anncic-api:typeorm','onReady','8lTCeCe','handlercache','1540146jkBdiF','MidwayDecoratorService','message','6Pegdgd','1136867IHvmJo','1169615HGMpaJ','数据不存在','ENTIFY_KEY'];a0_0x309c=function(){return _0x534ee0;};return a0_0x309c();}const typeorm_1=require(a0_0x562029(0x210)),core_1=require(a0_0x562029(0x1e4)),core_2=require(a0_0x562029(0x1e4)),typeorm_2=require(a0_0x562029(0x1fa)),Repository_1=require(a0_0x562029(0x1e8)),interface_1=require(a0_0x562029(0x200)),typeorm=require(a0_0x562029(0x210));let CustomConfiguration=class CustomConfiguration{constructor(){const _0x535c26=a0_0x562029;this[_0x535c26(0x204)]=[];}async[a0_0x562029(0x202)](_0x47162a,_0x5b9fa9){const _0x30c609=a0_0x562029,_0x2581ed=await _0x47162a[_0x30c609(0x1f4)](typeorm_1[_0x30c609(0x1e3)]);this[_0x30c609(0x20e)][_0x30c609(0x1f0)](interface_1[_0x30c609(0x20c)],(_0x2ecfd5,{entity:_0x7a0328,connection:_0x558fa0})=>{const _0x13247f=_0x30c609;let _0x46c7e3=this[_0x13247f(0x204)]['find'](_0x2af8d6=>_0x2af8d6[_0x13247f(0x1fd)]===_0x7a0328);return!_0x46c7e3&&(_0x46c7e3=new Repository_1[(_0x13247f(0x1db))](_0x5b9fa9,_0x2581ed[_0x13247f(0x1f5)](_0x558fa0||_0x2581ed[_0x13247f(0x1e0)](_0x7a0328))['getRepository'](_0x7a0328)),this[_0x13247f(0x204)][_0x13247f(0x1dd)](_0x46c7e3)),_0x46c7e3;}),this['decorator']['registerPropertyHandler'](interface_1[_0x30c609(0x1e1)],(_0x4b82a7,{repository:_0x1a3d1f,connection:_0x2150cb})=>{const _0x3669f6=_0x30c609,{entity:_0xd5361e}=(0x0,core_1[_0x3669f6(0x1f3)])(interface_1[_0x3669f6(0x1e1)],_0x1a3d1f)||{};if(!_0xd5361e)throw new Error(_0x3669f6(0x212)+((_0x1a3d1f===null||_0x1a3d1f===void 0x0?void 0x0:_0x1a3d1f['name'])||_0x1a3d1f)+_0x3669f6(0x1e2));let _0x57a53c=this[_0x3669f6(0x204)][_0x3669f6(0x1e5)](_0x3c2ebb=>_0x3c2ebb===_0x1a3d1f);return!_0x57a53c&&(_0x57a53c=new _0x1a3d1f(_0x5b9fa9,_0x2581ed[_0x3669f6(0x1f5)](_0x2150cb||_0x2581ed[_0x3669f6(0x1e0)](_0xd5361e))['getRepository'](_0xd5361e)),this[_0x3669f6(0x204)][_0x3669f6(0x1dd)](_0x57a53c)),_0x57a53c;}),_0x5b9fa9['useMiddleware'](this[_0x30c609(0x1fc)](_0x5b9fa9));}['middlewareError'](_0x70d92){return async(_0x2c1cdc,_0x4451bd)=>{const _0x7c0d52=a0_0x3023;try{await _0x4451bd();}catch(_0x47197b){if(_0x47197b instanceof typeorm_2[_0x7c0d52(0x211)])_0x47197b instanceof typeorm_2[_0x7c0d52(0x20f)]?_0x2c1cdc['body']={'code':0x194,'msg':_0x7c0d52(0x20b)}:(_0x2c1cdc[_0x7c0d52(0x1f7)]={'code':0x1f4,'msg':_0x47197b[_0x7c0d52(0x207)]},_0x70d92[_0x7c0d52(0x1eb)]()!=_0x7c0d52(0x1ea)&&console['warn'](_0x47197b));else throw _0x47197b;}};}};__decorate([(0x0,core_1[a0_0x562029(0x1e9)])(),__metadata(a0_0x562029(0x1ec),core_2['MidwayConfigService'])],CustomConfiguration[a0_0x562029(0x1e7)],'config',void 0x0),__decorate([(0x0,core_1[a0_0x562029(0x1e9)])(),__metadata(a0_0x562029(0x1ec),core_2[a0_0x562029(0x206)])],CustomConfiguration['prototype'],a0_0x562029(0x20e),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x562029(0x1da)])({'imports':[typeorm],'conflictCheck':![],'namespace':a0_0x562029(0x201)})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x238aa9=a1_0x3ee7;(function(_0x361180,_0x58f6ea){const _0x43490f=a1_0x3ee7,_0x2df759=_0x361180();while(!![]){try{const _0x4a53e3=-parseInt(_0x43490f(0x9c))/0x1+-parseInt(_0x43490f(0xa1))/0x2+-parseInt(_0x43490f(0x9d))/0x3+parseInt(_0x43490f(0x9e))/0x4+-parseInt(_0x43490f(0xa0))/0x5+-parseInt(_0x43490f(0xa8))/0x6*(parseInt(_0x43490f(0xa7))/0x7)+parseInt(_0x43490f(0x9b))/0x8;if(_0x4a53e3===_0x58f6ea)break;else _0x2df759['push'](_0x2df759['shift']());}catch(_0x33e922){_0x2df759['push'](_0x2df759['shift']());}}}(a1_0x4a04,0xbaac7));Object[a1_0x238aa9(0xa2)](exports,a1_0x238aa9(0xa6),{'value':!![]}),exports[a1_0x238aa9(0xa5)]=void 0x0;const core_1=require(a1_0x238aa9(0x9f)),interface_1=require('../interface');function a1_0x4a04(){const _0x5e7e3a=['InjectEntity','__esModule','441ShNzEw','28674TXQEpo','23793616IMHWou','1076843SHitSq','1084563TCkrIo','2914008vUnqOB','@midwayjs/core','5822320HStMCj','68368LXLvJa','defineProperty','default','ENTIFY_KEY'];a1_0x4a04=function(){return _0x5e7e3a;};return a1_0x4a04();}function InjectEntity(_0x435401,_0x366346=a1_0x238aa9(0xa3)){const _0xc91064=a1_0x238aa9;return(0x0,core_1['createCustomPropertyDecorator'])(interface_1[_0xc91064(0xa4)],{'entity':_0x435401,'connection':_0x366346});}function a1_0x3ee7(_0x56b84c,_0xe9f644){const _0x4a0469=a1_0x4a04();return a1_0x3ee7=function(_0x3ee7ac,_0x1d09a0){_0x3ee7ac=_0x3ee7ac-0x9b;let _0x564cc5=_0x4a0469[_0x3ee7ac];return _0x564cc5;},a1_0x3ee7(_0x56b84c,_0xe9f644);}exports[a1_0x238aa9(0xa5)]=InjectEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x345ef0=a2_0x1cb1;(function(_0x5e854d,_0x272a91){const _0xa1f58e=a2_0x1cb1,_0x5c301d=_0x5e854d();while(!![]){try{const _0x2f2d5f=-parseInt(_0xa1f58e(0x1ee))/0x1+parseInt(_0xa1f58e(0x1ef))/0x2+parseInt(_0xa1f58e(0x1eb))/0x3+-parseInt(_0xa1f58e(0x1e7))/0x4*(-parseInt(_0xa1f58e(0x1e2))/0x5)+-parseInt(_0xa1f58e(0x1e8))/0x6*(-parseInt(_0xa1f58e(0x1ec))/0x7)+parseInt(_0xa1f58e(0x1e4))/0x8+-parseInt(_0xa1f58e(0x1e5))/0x9;if(_0x2f2d5f===_0x272a91)break;else _0x5c301d['push'](_0x5c301d['shift']());}catch(_0x1d5786){_0x5c301d['push'](_0x5c301d['shift']());}}}(a2_0xf8d4,0x23b5f));function a2_0x1cb1(_0x31cb21,_0xc6bd18){const _0xf8d4f0=a2_0xf8d4();return a2_0x1cb1=function(_0x1cb105,_0x548edb){_0x1cb105=_0x1cb105-0x1e2;let _0x464d35=_0xf8d4f0[_0x1cb105];return _0x464d35;},a2_0x1cb1(_0x31cb21,_0xc6bd18);}Object[a2_0x345ef0(0x1e3)](exports,a2_0x345ef0(0x1ea),{'value':!![]}),exports[a2_0x345ef0(0x1e9)]=void 0x0;function a2_0xf8d4(){const _0x125620=['170180vFQWoE','547478QuIWXh','132130WewKpW','defineProperty','332016JDBcsH','4169952naEbUK','REPOSITORY_KEY','12xqWQbY','5826cnGMeh','InjectRepository','__esModule','506181DTSzFD','1561pUpigv','createCustomPropertyDecorator'];a2_0xf8d4=function(){return _0x125620;};return a2_0xf8d4();}const core_1=require('@midwayjs/core'),interface_1=require('../interface');function InjectRepository(_0x2f1410,_0x7d9639='default'){const _0xeaae63=a2_0x345ef0;return(0x0,core_1[_0xeaae63(0x1ed)])(interface_1[_0xeaae63(0x1e6)],{'repository':_0x2f1410,'connection':_0x7d9639});}exports[a2_0x345ef0(0x1e9)]=InjectRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0xb5ea36=a3_0x5901;(function(_0x436e54,_0x884022){const _0x365883=a3_0x5901,_0x4bcba3=_0x436e54();while(!![]){try{const _0x51d787=parseInt(_0x365883(0xc9))/0x1*(parseInt(_0x365883(0xc8))/0x2)+-parseInt(_0x365883(0xbf))/0x3+parseInt(_0x365883(0xc4))/0x4+-parseInt(_0x365883(0xc0))/0x5+-parseInt(_0x365883(0xd1))/0x6+-parseInt(_0x365883(0xcf))/0x7+parseInt(_0x365883(0xcd))/0x8;if(_0x51d787===_0x884022)break;else _0x4bcba3['push'](_0x4bcba3['shift']());}catch(_0x19bbf4){_0x4bcba3['push'](_0x4bcba3['shift']());}}}(a3_0x689f,0xf16a9));function a3_0x689f(){const _0x1a40c5=['@midwayjs/core','saveModule','5617068nARvDX','dataSource','typeorm','ProvideEntity','4mwgWGD','277131rItjpP','push','isArray','../interface','21375768ahnxSp','default','5771283kNandf','ENTIFY_MODULE_SOURCE','901644KuNlgl','saveClassMetadata','Entity','2727909onNHaB','8788065zZCzYr','tableName'];a3_0x689f=function(){return _0x1a40c5;};return a3_0x689f();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['ProvideEntity']=void 0x0;const typeorm_1=require(a3_0xb5ea36(0xc6)),core_1=require(a3_0xb5ea36(0xc2)),interface_1=require(a3_0xb5ea36(0xcc));function a3_0x5901(_0x5368c0,_0x3552a5){const _0x689f7e=a3_0x689f();return a3_0x5901=function(_0x5901fb,_0x24a292){_0x5901fb=_0x5901fb-0xbf;let _0x558967=_0x689f7e[_0x5901fb];return _0x558967;},a3_0x5901(_0x5368c0,_0x3552a5);}function ProvideEntity(_0x1e5994,_0x2bb114={}){return _0x370a82=>{const _0x271650=a3_0x5901;_0x2bb114['name']=_0x1e5994[_0x271650(0xc1)];const _0x5bebcd=[];if(!(_0x1e5994===null||_0x1e5994===void 0x0?void 0x0:_0x1e5994[_0x271650(0xc5)]))_0x5bebcd[_0x271650(0xca)](_0x271650(0xce));else{if(typeof(_0x1e5994===null||_0x1e5994===void 0x0?void 0x0:_0x1e5994[_0x271650(0xc5)])=='string')_0x5bebcd['push'](_0x1e5994===null||_0x1e5994===void 0x0?void 0x0:_0x1e5994['dataSource']);else{if(Array[_0x271650(0xcb)](_0x1e5994===null||_0x1e5994===void 0x0?void 0x0:_0x1e5994[_0x271650(0xc5)]))for(let _0x137a81 of _0x1e5994[_0x271650(0xc5)]||[_0x271650(0xce)]){_0x5bebcd[_0x271650(0xca)](_0x137a81);}}}(0x0,core_1[_0x271650(0xc3)])(interface_1['ENTIFY_MODULE'],_0x370a82),(0x0,core_1[_0x271650(0xd2)])(interface_1[_0x271650(0xd0)],{'tableName':_0x1e5994[_0x271650(0xc1)],'dataSource':_0x5bebcd},_0x370a82),(0x0,typeorm_1[_0x271650(0xd3)])(_0x1e5994[_0x271650(0xc1)],_0x2bb114)(_0x370a82);};}exports[a3_0xb5ea36(0xc7)]=ProvideEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a4_0x923b(){const _0x44f27b=['901518UVeIsI','../interface','ProvideRepository','1238121wpDtzD','19241190BygMmI','saveClassMetadata','Provide','10fudBFD','29066NqjsjY','Scope','254012UJPZgL','108tVVEIX','718776sTNBEW','2441782lqafFC','24dMmkzk','defineProperty'];a4_0x923b=function(){return _0x44f27b;};return a4_0x923b();}const a4_0x27ce57=a4_0x53c0;(function(_0x1c8b84,_0x304f66){const _0x148ad3=a4_0x53c0,_0x1e46e8=_0x1c8b84();while(!![]){try{const _0x2914d8=-parseInt(_0x148ad3(0x11d))/0x1+parseInt(_0x148ad3(0x11b))/0x2*(-parseInt(_0x148ad3(0x11e))/0x3)+parseInt(_0x148ad3(0x11f))/0x4+parseInt(_0x148ad3(0x11a))/0x5*(-parseInt(_0x148ad3(0x123))/0x6)+-parseInt(_0x148ad3(0x120))/0x7+parseInt(_0x148ad3(0x121))/0x8*(-parseInt(_0x148ad3(0x126))/0x9)+parseInt(_0x148ad3(0x117))/0xa;if(_0x2914d8===_0x304f66)break;else _0x1e46e8['push'](_0x1e46e8['shift']());}catch(_0x2be547){_0x1e46e8['push'](_0x1e46e8['shift']());}}}(a4_0x923b,0x4097e));Object[a4_0x27ce57(0x122)](exports,'__esModule',{'value':!![]}),exports[a4_0x27ce57(0x125)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a4_0x27ce57(0x124));function a4_0x53c0(_0x15fa7f,_0x265eca){const _0x923bfb=a4_0x923b();return a4_0x53c0=function(_0x53c0cf,_0x43620d){_0x53c0cf=_0x53c0cf-0x117;let _0x1a2440=_0x923bfb[_0x53c0cf];return _0x1a2440;},a4_0x53c0(_0x15fa7f,_0x265eca);}function ProvideRepository(_0x1f59ec){return _0x10361b=>{const _0x328b52=a4_0x53c0;(0x0,core_1[_0x328b52(0x11c)])(core_1['ScopeEnum']['Request'],{'allowDowngrade':!![]})(_0x10361b),((0x0,core_1[_0x328b52(0x119)])()(_0x10361b),(0x0,core_1[_0x328b52(0x118)])(interface_1['REPOSITORY_KEY'],{'entity':_0x1f59ec},_0x10361b));};}exports[a4_0x27ce57(0x125)]=ProvideRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0xba415e=a5_0x7694;(function(_0x1b8803,_0x1638e4){const _0x564a54=a5_0x7694,_0x48704f=_0x1b8803();while(!![]){try{const _0x4e5df3=-parseInt(_0x564a54(0x1af))/0x1*(parseInt(_0x564a54(0x1b8))/0x2)+parseInt(_0x564a54(0x1bb))/0x3*(parseInt(_0x564a54(0x1ba))/0x4)+-parseInt(_0x564a54(0x1b6))/0x5+-parseInt(_0x564a54(0x1be))/0x6+-parseInt(_0x564a54(0x1bf))/0x7*(parseInt(_0x564a54(0x1b5))/0x8)+-parseInt(_0x564a54(0x1b4))/0x9+parseInt(_0x564a54(0x1c0))/0xa;if(_0x4e5df3===_0x1638e4)break;else _0x48704f['push'](_0x48704f['shift']());}catch(_0x1b4d30){_0x48704f['push'](_0x48704f['shift']());}}}(a5_0x102d,0x4b6bb));function a5_0x7694(_0x5e568c,_0xc0db82){const _0x102d6d=a5_0x102d();return a5_0x7694=function(_0x7694c1,_0x3e1d15){_0x7694c1=_0x7694c1-0x1af;let _0x1009c2=_0x102d6d[_0x7694c1];return _0x1009c2;},a5_0x7694(_0x5e568c,_0xc0db82);}Object[a5_0xba415e(0x1b3)](exports,'__esModule',{'value':!![]}),exports[a5_0xba415e(0x1b1)]=exports[a5_0xba415e(0x1b9)]=void 0x0;const core_1=require(a5_0xba415e(0x1c1)),interface_1=require('../interface');function ProvideSearch(_0x4f4c29){return _0x1738f4=>{const _0x3ee92e=a5_0x7694;(0x0,core_1['saveModule'])(interface_1[_0x3ee92e(0x1bd)],_0x1738f4),(0x0,core_1[_0x3ee92e(0x1bc)])(core_1['ScopeEnum'][_0x3ee92e(0x1b2)])(_0x1738f4),(0x0,core_1[_0x3ee92e(0x1b0)])(interface_1[_0x3ee92e(0x1bd)],_0x4f4c29,_0x1738f4);};}function a5_0x102d(){const _0x4d744c=['1775499QPHvAW','Scope','MODEL_KEY','1582656xkdeTV','7UDzTVo','10525410aWZVDj','@midwayjs/core','349428TZvZrz','attachClassMetadata','Search','Singleton','defineProperty','1259901bQAwNS','3817312hlXuaW','525470uvsvSP','MODEL_SEARCH_KEY','2wZDXBX','ProvideSearch','4zbYzsO'];a5_0x102d=function(){return _0x4d744c;};return a5_0x102d();}exports[a5_0xba415e(0x1b9)]=ProvideSearch;function Search(_0x34aba9,_0x481c3e){return(_0x502acc,_0x2e78e4,_0x3e2b74)=>{const _0x1de9ac=a5_0x7694;(0x0,core_1['attachClassMetadata'])(interface_1[_0x1de9ac(0x1b7)],{'field':_0x34aba9,'comment':_0x481c3e,'target':_0x502acc,'methodName':_0x2e78e4,'descriptor':_0x3e2b74},_0x502acc);};}exports[a5_0xba415e(0x1b1)]=Search;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a6_0x2bd2b8=a6_0x5f12;(function(_0x435914,_0x57c470){const _0x50d299=a6_0x5f12,_0x3ea3e9=_0x435914();while(!![]){try{const _0x402a95=parseInt(_0x50d299(0xe0))/0x1*(parseInt(_0x50d299(0xdf))/0x2)+parseInt(_0x50d299(0xe5))/0x3+parseInt(_0x50d299(0xde))/0x4*(-parseInt(_0x50d299(0xd9))/0x5)+parseInt(_0x50d299(0xe1))/0x6*(-parseInt(_0x50d299(0xe4))/0x7)+-parseInt(_0x50d299(0xd7))/0x8*(parseInt(_0x50d299(0xd8))/0x9)+parseInt(_0x50d299(0xe6))/0xa*(parseInt(_0x50d299(0xda))/0xb)+parseInt(_0x50d299(0xdd))/0xc*(-parseInt(_0x50d299(0xdb))/0xd);if(_0x402a95===_0x57c470)break;else _0x3ea3e9['push'](_0x3ea3e9['shift']());}catch(_0xcb436b){_0x3ea3e9['push'](_0x3ea3e9['shift']());}}}(a6_0x4d76,0x92b2a));Object['defineProperty'](exports,a6_0x2bd2b8(0xe3),{'value':!![]}),exports[a6_0x2bd2b8(0xe2)]=void 0x0;const core_1=require(a6_0x2bd2b8(0xdc)),interface_1=require('../interface');function VirtualColumn(_0x4dfc45,_0x4dbc10){return(_0x2c8e5f,_0x31742b)=>{const _0x325eb7=a6_0x5f12,_0x213805=(0x0,core_1[_0x325eb7(0xd6)])(interface_1[_0x325eb7(0xd5)],_0x2c8e5f)||{};_0x213805[_0x31742b]={'comment':_0x4dfc45,..._0x4dbc10},(0x0,core_1['saveClassMetadata'])(interface_1[_0x325eb7(0xd5)],_0x213805,_0x2c8e5f);};}function a6_0x4d76(){const _0x2f3c20=['35832PHvmrs','VirtualColumn','__esModule','329pUzMcc','3338211uOvUWf','351760anfzMK','ENTITY_VIRTUAL_COLUMN_KEY','getClassMetadata','5352608IHvYMJ','9JWvfBZ','451615bYlyhA','264MgLCpD','39MyBcuo','@midwayjs/core','65904NymfZX','40sZBETn','2942YCFJGJ','349jKLdkJ'];a6_0x4d76=function(){return _0x2f3c20;};return a6_0x4d76();}function a6_0x5f12(_0xebf805,_0x52e8d0){const _0x4d761c=a6_0x4d76();return a6_0x5f12=function(_0x5f1242,_0x22347e){_0x5f1242=_0x5f1242-0xd5;let _0x3548b3=_0x4d761c[_0x5f1242];return _0x3548b3;},a6_0x5f12(_0xebf805,_0x52e8d0);}exports[a6_0x2bd2b8(0xe2)]=VirtualColumn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a7_0x399f(_0x457cba,_0x289064){const _0x2be0a2=a7_0x2be0();return a7_0x399f=function(_0x399fc9,_0xf6d471){_0x399fc9=_0x399fc9-0x1e3;let _0x4f9d4c=_0x2be0a2[_0x399fc9];return _0x4f9d4c;},a7_0x399f(_0x457cba,_0x289064);}const a7_0xb4d65a=a7_0x399f;(function(_0x4cf606,_0x15a13f){const _0x281144=a7_0x399f,_0x4fd2a0=_0x4cf606();while(!![]){try{const _0xf962ab=parseInt(_0x281144(0x229))/0x1+parseInt(_0x281144(0x220))/0x2+parseInt(_0x281144(0x1f1))/0x3+parseInt(_0x281144(0x20d))/0x4+-parseInt(_0x281144(0x1f0))/0x5+-parseInt(_0x281144(0x22c))/0x6+-parseInt(_0x281144(0x1fb))/0x7;if(_0xf962ab===_0x15a13f)break;else _0x4fd2a0['push'](_0x4fd2a0['shift']());}catch(_0x3c2924){_0x4fd2a0['push'](_0x4fd2a0['shift']());}}}(a7_0x2be0,0x4cce9));Object[a7_0xb4d65a(0x1ee)](exports,a7_0xb4d65a(0x226),{'value':!![]}),exports['Repository']=void 0x0;function a7_0x2be0(){const _0x4e1a79=['ISNULL','search','push','_auto_','_isreverse','_order','hasOwnProperty','defineProperty','_size','538215LWsTmH','1247091hQGHxH','name','save','\x20=\x20:_auto_','type','metadata','createQueryBuilder','NOT\x20ISNULL','\x20IN(:..._auto_','MODEL_KEY','4666529bBCRBn','field','findColumnWithPropertyName','searchs','random','NOT\x20LIKE','BETWEEN','excess','undefined','getClassMetadata','1\x20=\x202','typeorm','indexOf','toLowerCase','operator','app','take','../interface','782332qMicbW','function','transaction','split','methodName','NOT\x20IN','target','modelSearchs','manager','string','andWhere','Repository','isArray','ceil','DESC','orderBy','\x20AND\x20:','getApplicationContext','abs','288532hkHfPZ','_page','merge','NOT\x20BETWEEN','mergeSave','@midwayjs/core','__esModule','bind','LIKE','531794BcCSRP','length','NOT\x20FIND\x20IN\x20SET','1190694IzaWsR','toUpperCase','alias','getAsync','trim','MODEL_SEARCH_KEY','queryRunner','ASC'];a7_0x2be0=function(){return _0x4e1a79;};return a7_0x2be0();}const core_1=require(a7_0xb4d65a(0x225)),typeorm_1=require(a7_0xb4d65a(0x206)),interface_1=require(a7_0xb4d65a(0x20c));class Repository extends typeorm_1[a7_0xb4d65a(0x218)]{constructor(_0x3abb6d,_0x3d40c5){const _0x5539db=a7_0xb4d65a;super(_0x3d40c5[_0x5539db(0x213)],_0x3d40c5[_0x5539db(0x215)],_0x3d40c5[_0x5539db(0x1e5)]),this[_0x5539db(0x214)]=[];for(const _0x32e981 of(0x0,core_1['getClassMetadata'])(interface_1[_0x5539db(0x1fa)],this[_0x5539db(0x213)])||[]){const _0x4dcafb={'model':_0x32e981,'searchs':[]};for(const _0x2f653a of(0x0,core_1[_0x5539db(0x204)])(interface_1[_0x5539db(0x1e4)],_0x32e981)||[]){_0x4dcafb[_0x5539db(0x1fe)]['push'](_0x2f653a);}this['modelSearchs'][_0x5539db(0x1e9)](_0x4dcafb);}this[_0x5539db(0x20a)]=_0x3abb6d;}async[a7_0xb4d65a(0x1e8)](_0x4d1e1f,_0x510bf3,_0x151680={}){const _0x57ee60=a7_0xb4d65a;var _0x56b7ec,_0x3d5c71,_0x3a107b,_0x527d65,_0xe9d0ee,_0x504d59,_0x3bb677;const _0x12b27=this[_0x57ee60(0x1f7)](undefined,_0x151680===null||_0x151680===void 0x0?void 0x0:_0x151680[_0x57ee60(0x1e5)]),_0x2df890=[];for(const _0x3c4d56 of this[_0x57ee60(0x214)]){if((_0x3c4d56===null||_0x3c4d56===void 0x0?void 0x0:_0x3c4d56['model'])&&((_0x56b7ec=_0x3c4d56===null||_0x3c4d56===void 0x0?void 0x0:_0x3c4d56['searchs'])===null||_0x56b7ec===void 0x0?void 0x0:_0x56b7ec[_0x57ee60(0x22a)])>0x0){const _0x23cc6c=await this[_0x57ee60(0x20a)][_0x57ee60(0x21e)]()[_0x57ee60(0x22f)](_0x3c4d56['model']);for(const _0x46055e of _0x3c4d56[_0x57ee60(0x1fe)]){(_0x46055e===null||_0x46055e===void 0x0?void 0x0:_0x46055e[_0x57ee60(0x1fc)])&&(_0x46055e===null||_0x46055e===void 0x0?void 0x0:_0x46055e['methodName'])&&typeof _0x23cc6c[_0x46055e[_0x57ee60(0x211)]]==_0x57ee60(0x20e)&&(typeof(_0x4d1e1f===null||_0x4d1e1f===void 0x0?void 0x0:_0x4d1e1f[_0x46055e['field']])!=_0x57ee60(0x203)&&!((_0x3d5c71=_0x4d1e1f===null||_0x4d1e1f===void 0x0?void 0x0:_0x4d1e1f[_0x46055e[_0x57ee60(0x1fc)]])===null||_0x3d5c71===void 0x0?void 0x0:_0x3d5c71[_0x57ee60(0x1ed)]('operator'))&&(_0x2df890[_0x57ee60(0x207)](_0x46055e[_0x57ee60(0x1fc)])==-0x1&&_0x2df890['push'](_0x46055e['field']),await _0x23cc6c[_0x46055e[_0x57ee60(0x211)]][_0x57ee60(0x227)](_0x23cc6c)(_0x12b27,_0x4d1e1f[_0x46055e['field']],_0x4d1e1f,_0x510bf3,_0x151680===null||_0x151680===void 0x0?void 0x0:_0x151680['queryRunner'])));}}}for(const _0x3656ef in _0x4d1e1f){if(typeof _0x4d1e1f[_0x3656ef]==_0x57ee60(0x203))continue;if(_0x2df890[_0x57ee60(0x207)](_0x3656ef)!=-0x1)continue;const _0x38c069=this[_0x57ee60(0x1f6)][_0x57ee60(0x1fd)](_0x3656ef);if(!_0x38c069)continue;if((_0x3a107b=_0x4d1e1f===null||_0x4d1e1f===void 0x0?void 0x0:_0x4d1e1f[_0x3656ef])===null||_0x3a107b===void 0x0?void 0x0:_0x3a107b[_0x57ee60(0x1ed)](_0x57ee60(0x209))){const _0x5b185c=(_0x527d65=_0x4d1e1f[_0x3656ef])===null||_0x527d65===void 0x0?void 0x0:_0x527d65['condition'],_0x30b0c3=(_0xe9d0ee=_0x4d1e1f[_0x3656ef])===null||_0xe9d0ee===void 0x0?void 0x0:_0xe9d0ee[_0x57ee60(0x209)][_0x57ee60(0x1e3)]()[_0x57ee60(0x22d)](),_0x510c05=_0x57ee60(0x1ea)+_0x3656ef+'_'+Math[_0x57ee60(0x21a)](Math[_0x57ee60(0x1ff)]()*0xa)+Math['ceil'](Math[_0x57ee60(0x1ff)]()*0xa)+Math[_0x57ee60(0x21a)](Math[_0x57ee60(0x1ff)]()*0xa)+Math[_0x57ee60(0x21a)](Math[_0x57ee60(0x1ff)]()*0xa);if(['=','!=','<>','>','>=','<','<=',_0x57ee60(0x228),_0x57ee60(0x200)][_0x57ee60(0x207)](_0x30b0c3)!=-0x1)typeof _0x5b185c!='undefined'&&_0x12b27['andWhere'](_0x12b27[_0x57ee60(0x22e)]+'.'+_0x3656ef+'\x20'+_0x30b0c3+'\x20:'+_0x510c05,{[_0x510c05]:_0x5b185c});else{if(['IN',_0x57ee60(0x212)][_0x57ee60(0x207)](_0x30b0c3)!=-0x1){if(typeof _0x5b185c!='undefined'){const _0x2b4318=Array[_0x57ee60(0x219)](_0x5b185c)?_0x5b185c:typeof _0x5b185c==_0x57ee60(0x216)?_0x5b185c[_0x57ee60(0x210)](','):[_0x5b185c];_0x2b4318['length']==0x0?_0x12b27[_0x57ee60(0x217)](_0x57ee60(0x205)):_0x12b27[_0x57ee60(0x217)](_0x12b27[_0x57ee60(0x22e)]+'.'+_0x3656ef+'\x20'+_0x30b0c3+'(:...'+_0x510c05+')',{[_0x510c05]:_0x2b4318});}}else{if(['FIND\x20IN\x20SET',_0x57ee60(0x22b)][_0x57ee60(0x207)](_0x30b0c3)!=-0x1)typeof _0x5b185c!=_0x57ee60(0x203)&&_0x12b27[_0x57ee60(0x217)](_0x30b0c3+'(:'+_0x510c05+','+_0x12b27[_0x57ee60(0x22e)]+'.'+_0x3656ef+')',{[_0x510c05]:_0x5b185c});else{if([_0x57ee60(0x201),_0x57ee60(0x223)][_0x57ee60(0x207)](_0x30b0c3)!=-0x1){if(typeof _0x5b185c!=_0x57ee60(0x203)){const _0x5a4330=Array[_0x57ee60(0x219)](_0x5b185c)?_0x5b185c:typeof _0x5b185c==_0x57ee60(0x216)?_0x5b185c[_0x57ee60(0x210)](','):[_0x5b185c];_0x5a4330['length']>0x1&&_0x12b27[_0x57ee60(0x217)](_0x12b27[_0x57ee60(0x22e)]+'.'+_0x3656ef+'\x20'+_0x30b0c3+'\x20:'+_0x510c05+_0x57ee60(0x21d)+_0x510c05+'_2',{[''+_0x510c05]:_0x5a4330[0x0],[_0x510c05+'_2']:_0x5a4330[0x1]});}}else[_0x57ee60(0x1e7),_0x57ee60(0x1f8)]['indexOf'](_0x30b0c3)!=-0x1&&_0x12b27[_0x57ee60(0x217)](_0x30b0c3+'('+_0x12b27['alias']+'.'+_0x3656ef+')');}}}}else{const _0x414b74=((_0x3bb677=typeof _0x38c069[_0x57ee60(0x1f5)]==_0x57ee60(0x20e)?(_0x504d59=_0x38c069===null||_0x38c069===void 0x0?void 0x0:_0x38c069[_0x57ee60(0x1f5)])===null||_0x504d59===void 0x0?void 0x0:_0x504d59[_0x57ee60(0x1f2)]:_0x38c069[_0x57ee60(0x1f5)]['toString']())===null||_0x3bb677===void 0x0?void 0x0:_0x3bb677[_0x57ee60(0x208)]())||undefined;if(_0x414b74){if(Array[_0x57ee60(0x219)](_0x4d1e1f[_0x3656ef]))_0x4d1e1f[_0x3656ef]['length']==0x0?_0x12b27['andWhere'](_0x57ee60(0x205)):_0x12b27[_0x57ee60(0x217)](_0x12b27[_0x57ee60(0x22e)]+'.'+_0x3656ef+_0x57ee60(0x1f9)+_0x3656ef+')',{[_0x57ee60(0x1ea)+_0x3656ef]:_0x4d1e1f[_0x3656ef]});else _0x414b74=='string'?_0x12b27[_0x57ee60(0x217)](_0x12b27['alias']+'.'+_0x3656ef+'\x20like\x20:_auto_'+_0x3656ef,{[_0x57ee60(0x1ea)+_0x3656ef]:'%'+_0x4d1e1f[_0x3656ef]+'%'}):_0x12b27[_0x57ee60(0x217)](_0x12b27[_0x57ee60(0x22e)]+'.'+_0x3656ef+_0x57ee60(0x1f4)+_0x3656ef,{['_auto_'+_0x3656ef]:_0x4d1e1f[_0x3656ef]});}}}(_0x510bf3===null||_0x510bf3===void 0x0?void 0x0:_0x510bf3['_size'])&&_0x12b27[_0x57ee60(0x20b)](Math[_0x57ee60(0x21f)](_0x510bf3['_size']));(_0x510bf3===null||_0x510bf3===void 0x0?void 0x0:_0x510bf3['_page'])&&(_0x510bf3===null||_0x510bf3===void 0x0?void 0x0:_0x510bf3[_0x57ee60(0x1ef)])&&_0x12b27['skip']((Math['abs'](_0x510bf3[_0x57ee60(0x221)])-0x1)*Math[_0x57ee60(0x21f)](_0x510bf3[_0x57ee60(0x1ef)]));if(_0x510bf3===null||_0x510bf3===void 0x0?void 0x0:_0x510bf3[_0x57ee60(0x1ec)]){if(_0x510bf3[_0x57ee60(0x1ec)][_0x57ee60(0x207)]('.')!==-0x1)_0x12b27[_0x57ee60(0x21c)](''+_0x510bf3['_order'],(_0x510bf3===null||_0x510bf3===void 0x0?void 0x0:_0x510bf3[_0x57ee60(0x1eb)])?_0x57ee60(0x1e6):_0x57ee60(0x21b));else _0x2df890[_0x57ee60(0x207)](_0x510bf3[_0x57ee60(0x1ec)])==-0x1&&(this[_0x57ee60(0x1f6)][_0x57ee60(0x1fd)](_0x510bf3['_order'])?_0x12b27[_0x57ee60(0x21c)](_0x12b27[_0x57ee60(0x22e)]+'.'+_0x510bf3[_0x57ee60(0x1ec)],(_0x510bf3===null||_0x510bf3===void 0x0?void 0x0:_0x510bf3[_0x57ee60(0x1eb)])?_0x57ee60(0x1e6):'DESC'):_0x12b27[_0x57ee60(0x21c)](''+_0x510bf3[_0x57ee60(0x1ec)],(_0x510bf3===null||_0x510bf3===void 0x0?void 0x0:_0x510bf3[_0x57ee60(0x1eb)])?_0x57ee60(0x1e6):'DESC'));}return typeof(_0x151680===null||_0x151680===void 0x0?void 0x0:_0x151680['excess'])==_0x57ee60(0x20e)&&await(_0x151680===null||_0x151680===void 0x0?void 0x0:_0x151680[_0x57ee60(0x202)](_0x12b27)),_0x12b27;}async[a7_0xb4d65a(0x224)](_0x217b62,..._0x1de74d){const _0x1cb116=a7_0xb4d65a,_0x118ff4=this[_0x1cb116(0x222)](_0x217b62,..._0x1de74d);return await this[_0x1cb116(0x1f3)](_0x118ff4);}async['createSave'](_0x22bc90,..._0x3eb62e){const _0x55b82e=this['merge'](this['create'](_0x22bc90),..._0x3eb62e);return await this['save'](_0x55b82e);}async[a7_0xb4d65a(0x20f)](_0x1803d4,_0x4d9a9b){const _0x26eb4=a7_0xb4d65a;return this[_0x26eb4(0x215)][_0x26eb4(0x20f)](_0x1803d4,_0x4d9a9b);}}exports[a7_0xb4d65a(0x218)]=Repository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a8_0x2022(_0x6e5dc8,_0x10bdde){const _0x3be6b0=a8_0x3be6();return a8_0x2022=function(_0x2022b5,_0x2b8d29){_0x2022b5=_0x2022b5-0x162;let _0x2ce165=_0x3be6b0[_0x2022b5];return _0x2ce165;},a8_0x2022(_0x6e5dc8,_0x10bdde);}function a8_0x3be6(){const _0x358fc7=['4178376jSlDtq','30XORteM','getClassMetadata','ENTIFY_MODULE_SOURCE','14AJFbAg','1549368MNnUcR','listModule','357885jqhVYK','3145164wXpiiC','__esModule','3031225blpDdW','2040286bZnrwO','defineProperty','../interface','default','dataSource','1549446HfNPMn','getDataSourceEntity','ENTIFY_MODULE','@midwayjs/core','3mASPzr','find'];a8_0x3be6=function(){return _0x358fc7;};return a8_0x3be6();}const a8_0x39b0bf=a8_0x2022;(function(_0x2e1074,_0x561df6){const _0xfaa9f1=a8_0x2022,_0x26beff=_0x2e1074();while(!![]){try{const _0x33cf28=parseInt(_0xfaa9f1(0x165))/0x1+-parseInt(_0xfaa9f1(0x169))/0x2*(parseInt(_0xfaa9f1(0x172))/0x3)+parseInt(_0xfaa9f1(0x166))/0x4+-parseInt(_0xfaa9f1(0x168))/0x5+-parseInt(_0xfaa9f1(0x16e))/0x6*(parseInt(_0xfaa9f1(0x162))/0x7)+parseInt(_0xfaa9f1(0x163))/0x8+-parseInt(_0xfaa9f1(0x174))/0x9*(-parseInt(_0xfaa9f1(0x175))/0xa);if(_0x33cf28===_0x561df6)break;else _0x26beff['push'](_0x26beff['shift']());}catch(_0x42b5db){_0x26beff['push'](_0x26beff['shift']());}}}(a8_0x3be6,0x8f7f9));Object[a8_0x39b0bf(0x16a)](exports,a8_0x39b0bf(0x167),{'value':!![]}),exports[a8_0x39b0bf(0x16f)]=void 0x0;const core_1=require(a8_0x39b0bf(0x171)),interface_1=require(a8_0x39b0bf(0x16b));function getDataSourceEntity(_0x639dbf=a8_0x39b0bf(0x16c)){const _0x1c061e=a8_0x39b0bf;var _0xd3a1d7;const _0x432e5b=[];for(const _0x1ffc50 of(0x0,core_1[_0x1c061e(0x164)])(interface_1[_0x1c061e(0x170)])){const _0x4df4ef=(0x0,core_1[_0x1c061e(0x176)])(interface_1[_0x1c061e(0x177)],_0x1ffc50);((_0xd3a1d7=_0x4df4ef===null||_0x4df4ef===void 0x0?void 0x0:_0x4df4ef[_0x1c061e(0x16d)])===null||_0xd3a1d7===void 0x0?void 0x0:_0xd3a1d7[_0x1c061e(0x173)](_0x11e7a3=>_0x11e7a3==_0x639dbf))&&_0x432e5b['push'](_0x1ffc50);}return _0x432e5b;}exports[a8_0x39b0bf(0x16f)]=getDataSourceEntity;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x72e91c=a9_0x2305;(function(_0x3ad202,_0x424a61){var _0x2c5470=a9_0x2305,_0x4472c3=_0x3ad202();while(!![]){try{var _0x2e94c4=parseInt(_0x2c5470(0xe3))/0x1*(-parseInt(_0x2c5470(0xe4))/0x2)+-parseInt(_0x2c5470(0xcb))/0x3*(parseInt(_0x2c5470(0xe8))/0x4)+-parseInt(_0x2c5470(0xc6))/0x5+-parseInt(_0x2c5470(0xeb))/0x6*(parseInt(_0x2c5470(0xe2))/0x7)+-parseInt(_0x2c5470(0xd6))/0x8+-parseInt(_0x2c5470(0xd7))/0x9*(-parseInt(_0x2c5470(0xcc))/0xa)+parseInt(_0x2c5470(0xc9))/0xb;if(_0x2e94c4===_0x424a61)break;else _0x4472c3['push'](_0x4472c3['shift']());}catch(_0x3fb9f8){_0x4472c3['push'](_0x4472c3['shift']());}}}(a9_0x36e2,0xa07f9));var __createBinding=this&&this[a9_0x72e91c(0xf0)]||(Object[a9_0x72e91c(0xc8)]?function(_0x537468,_0x15424c,_0xedeb32,_0x238c9d){var _0x5d3217=a9_0x72e91c;if(_0x238c9d===undefined)_0x238c9d=_0xedeb32;var _0x5f2fec=Object[_0x5d3217(0xee)](_0x15424c,_0xedeb32);(!_0x5f2fec||(_0x5d3217(0xdd)in _0x5f2fec?!_0x15424c[_0x5d3217(0xca)]:_0x5f2fec[_0x5d3217(0xde)]||_0x5f2fec['configurable']))&&(_0x5f2fec={'enumerable':!![],'get':function(){return _0x15424c[_0xedeb32];}}),Object[_0x5d3217(0xda)](_0x537468,_0x238c9d,_0x5f2fec);}:function(_0x1a0f65,_0x968f34,_0x3dda2c,_0x426916){if(_0x426916===undefined)_0x426916=_0x3dda2c;_0x1a0f65[_0x426916]=_0x968f34[_0x3dda2c];}),__exportStar=this&&this[a9_0x72e91c(0xdc)]||function(_0x34a1f1,_0x4906ca){var _0x491152=a9_0x72e91c;for(var _0x193035 in _0x34a1f1)if(_0x193035!==_0x491152(0xe0)&&!Object[_0x491152(0xef)]['hasOwnProperty'][_0x491152(0xe6)](_0x4906ca,_0x193035))__createBinding(_0x4906ca,_0x34a1f1,_0x193035);};Object[a9_0x72e91c(0xda)](exports,a9_0x72e91c(0xca),{'value':!![]}),exports[a9_0x72e91c(0xd4)]=exports[a9_0x72e91c(0xf2)]=exports[a9_0x72e91c(0xcd)]=exports[a9_0x72e91c(0xe7)]=exports['Configuration']=exports[a9_0x72e91c(0xd8)]=exports[a9_0x72e91c(0xcf)]=exports[a9_0x72e91c(0xe5)]=exports[a9_0x72e91c(0xf1)]=exports[a9_0x72e91c(0xf3)]=exports[a9_0x72e91c(0xe1)]=exports[a9_0x72e91c(0xed)]=exports['VirtualColumn']=exports[a9_0x72e91c(0xd9)]=void 0x0,__exportStar(require(a9_0x72e91c(0xc7)),exports),__exportStar(require(a9_0x72e91c(0xd2)),exports);var Repository_1=require(a9_0x72e91c(0xe9));Object['defineProperty'](exports,'Repository',{'enumerable':!![],'get':function(){var _0x34673d=a9_0x72e91c;return Repository_1[_0x34673d(0xd9)];}});var VirtualColumn_1=require(a9_0x72e91c(0xdf));Object[a9_0x72e91c(0xda)](exports,a9_0x72e91c(0xd3),{'enumerable':!![],'get':function(){var _0x321f67=a9_0x72e91c;return VirtualColumn_1[_0x321f67(0xd3)];}});var InjectEntity_1=require(a9_0x72e91c(0xd5));Object['defineProperty'](exports,a9_0x72e91c(0xed),{'enumerable':!![],'get':function(){var _0xa9e2bd=a9_0x72e91c;return InjectEntity_1[_0xa9e2bd(0xed)];}});var InjectRepository_1=require('./decorator/InjectRepository');function a9_0x2305(_0x5ed61b,_0x4db7bc){var _0x36e2c5=a9_0x36e2();return a9_0x2305=function(_0x2305f6,_0x41bdf9){_0x2305f6=_0x2305f6-0xc6;var _0x3fdca0=_0x36e2c5[_0x2305f6];return _0x3fdca0;},a9_0x2305(_0x5ed61b,_0x4db7bc);}Object[a9_0x72e91c(0xda)](exports,'InjectRepository',{'enumerable':!![],'get':function(){return InjectRepository_1['InjectRepository'];}});var ProvideEntity_1=require(a9_0x72e91c(0xce));Object[a9_0x72e91c(0xda)](exports,a9_0x72e91c(0xf3),{'enumerable':!![],'get':function(){return ProvideEntity_1['ProvideEntity'];}});var ProvideRepository_1=require(a9_0x72e91c(0xea));Object[a9_0x72e91c(0xda)](exports,'ProvideRepository',{'enumerable':!![],'get':function(){var _0x48bb78=a9_0x72e91c;return ProvideRepository_1[_0x48bb78(0xf1)];}});var ProvideSearch_1=require('./decorator/ProvideSearch');Object[a9_0x72e91c(0xda)](exports,'ProvideSearch',{'enumerable':!![],'get':function(){var _0x28d789=a9_0x72e91c;return ProvideSearch_1[_0x28d789(0xe5)];}}),Object[a9_0x72e91c(0xda)](exports,a9_0x72e91c(0xcf),{'enumerable':!![],'get':function(){var _0x16f284=a9_0x72e91c;return ProvideSearch_1[_0x16f284(0xcf)];}});var getDataSourceEntity_1=require(a9_0x72e91c(0xd0));Object['defineProperty'](exports,a9_0x72e91c(0xd8),{'enumerable':!![],'get':function(){var _0x5003bf=a9_0x72e91c;return getDataSourceEntity_1[_0x5003bf(0xd8)];}});function a9_0x36e2(){var _0x2231a6=['InjectRepository','7YHONcu','3CkZbEe','24764ddmlnm','ProvideSearch','call','Provide','207964fNvbKo','./definition/Repository','./decorator/ProvideRepository','3125274YMqtjq','CustomConfiguration','InjectEntity','getOwnPropertyDescriptor','prototype','__createBinding','ProvideRepository','Scope','ProvideEntity','2451530iEIrfa','typeorm','create','23035287spXNqh','__esModule','48yDwWxg','46790ftRjAL','Inject','./decorator/ProvideEntity','Search','./helper/getDataSourceEntity','@midwayjs/core','./interface','VirtualColumn','ScopeEnum','./decorator/InjectEntity','6746032rVsQdW','2475kkxpav','getDataSourceEntity','Repository','defineProperty','./configuration','__exportStar','get','writable','./decorator/VirtualColumn','default'];a9_0x36e2=function(){return _0x2231a6;};return a9_0x36e2();}var configuration_1=require(a9_0x72e91c(0xdb));Object[a9_0x72e91c(0xda)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x133606=a9_0x72e91c;return configuration_1[_0x133606(0xec)];}});var core_1=require(a9_0x72e91c(0xd1));Object['defineProperty'](exports,a9_0x72e91c(0xe7),{'enumerable':!![],'get':function(){return core_1['Provide'];}}),Object[a9_0x72e91c(0xda)](exports,a9_0x72e91c(0xcd),{'enumerable':!![],'get':function(){var _0x434147=a9_0x72e91c;return core_1[_0x434147(0xcd)];}}),Object[a9_0x72e91c(0xda)](exports,a9_0x72e91c(0xf2),{'enumerable':!![],'get':function(){var _0x4a9621=a9_0x72e91c;return core_1[_0x4a9621(0xf2)];}}),Object[a9_0x72e91c(0xda)](exports,a9_0x72e91c(0xd4),{'enumerable':!![],'get':function(){var _0x374e0d=a9_0x72e91c;return core_1[_0x374e0d(0xd4)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a10_0x3003b7=a10_0x2172;(function(_0xdd3c44,_0x3c9f64){const _0xa6c150=a10_0x2172,_0x5b3f0b=_0xdd3c44();while(!![]){try{const _0x52d3e5=parseInt(_0xa6c150(0x181))/0x1*(-parseInt(_0xa6c150(0x165))/0x2)+-parseInt(_0xa6c150(0x174))/0x3+parseInt(_0xa6c150(0x157))/0x4*(-parseInt(_0xa6c150(0x15f))/0x5)+-parseInt(_0xa6c150(0x156))/0x6*(parseInt(_0xa6c150(0x177))/0x7)+-parseInt(_0xa6c150(0x17a))/0x8+-parseInt(_0xa6c150(0x162))/0x9+-parseInt(_0xa6c150(0x171))/0xa*(-parseInt(_0xa6c150(0x153))/0xb);if(_0x52d3e5===_0x3c9f64)break;else _0x5b3f0b['push'](_0x5b3f0b['shift']());}catch(_0x5a0a13){_0x5b3f0b['push'](_0x5b3f0b['shift']());}}}(a10_0x4351,0xdb0c2));function a10_0x4351(){const _0x8db744=['MODEL_KEY','SelectQueryBuilder','getClassMetadata','decorator:anncic-api:typeorm:entity:virtual:column','61278670hkzKRq','reject','default','3303627ZcJZBc','decorator:anncic-api:typeorm:entify','SearchPaginate','2247QXwCpp','getTime','decorator:anncic-api:typeorm:entify:module:source','2481992UmDlBG','findOneOrFail','decorator:anncic-api:typeorm:entify:module','@midwayjs/core','decorator:anncic-api:typeorm:model','OptimisticLockCanNotBeUsedError','prototype','1SiRxXX','getOne','OptimisticLockVersionMismatchError','MODEL_SEARCH_KEY','resolve','expressionMap','11vsahOj','ENTIFY_MODULE_SOURCE','getRawAndEntities','10446NqqfyV','108FjdwtS','then','hasOwnProperty','findOne','getMany','mainAlias','metadata','name','288255GspnvH','decorator:anncic-api:typeorm:model:search','ENTIFY_MODULE','13711383oAsCAa','__esModule','REPOSITORY_KEY','360532xncCSK','optimistic','ENTITY_VIRTUAL_COLUMN_KEY','typeorm','getManyAndCount','lockVersion','EntityNotFoundError','getEntityValue'];a10_0x4351=function(){return _0x8db744;};return a10_0x4351();}Object['defineProperty'](exports,a10_0x3003b7(0x163),{'value':!![]}),exports[a10_0x3003b7(0x176)]=exports[a10_0x3003b7(0x167)]=exports['MODEL_SEARCH_KEY']=exports['MODEL_KEY']=exports[a10_0x3003b7(0x164)]=exports[a10_0x3003b7(0x154)]=exports[a10_0x3003b7(0x161)]=exports['ENTIFY_KEY']=void 0x0;const core_1=require(a10_0x3003b7(0x17d)),typeorm_1=require(a10_0x3003b7(0x168)),typeorm_2=require(a10_0x3003b7(0x168));exports['ENTIFY_KEY']=a10_0x3003b7(0x175),exports['ENTIFY_MODULE']=a10_0x3003b7(0x17c),exports[a10_0x3003b7(0x154)]=a10_0x3003b7(0x179),exports['REPOSITORY_KEY']='decorator:anncic-api:typeorm:repository',exports[a10_0x3003b7(0x16d)]=a10_0x3003b7(0x17e),exports[a10_0x3003b7(0x150)]=a10_0x3003b7(0x160),exports['ENTITY_VIRTUAL_COLUMN_KEY']=a10_0x3003b7(0x170);function a10_0x2172(_0x28541d,_0x1af446){const _0x43515a=a10_0x4351();return a10_0x2172=function(_0x217294,_0x335401){_0x217294=_0x217294-0x150;let _0x436de6=_0x43515a[_0x217294];return _0x436de6;},a10_0x2172(_0x28541d,_0x1af446);}class SearchPaginate{}exports[a10_0x3003b7(0x176)]=SearchPaginate,typeorm_2['EntityManager'][a10_0x3003b7(0x180)][a10_0x3003b7(0x17b)]=async function(_0x9975db,_0x5d331a){const _0x57b054=a10_0x3003b7;return this[_0x57b054(0x15a)](_0x9975db,_0x5d331a)[_0x57b054(0x158)](_0x6c68ad=>{const _0x47b098=_0x57b054;if(_0x6c68ad===null||_0x6c68ad===undefined)return Promise[_0x47b098(0x172)](new typeorm_2[(_0x47b098(0x16b))](_0x9975db,_0x5d331a));return Promise[_0x47b098(0x151)](_0x6c68ad);});},typeorm_2['EntityManager']['prototype']['findOneByOrFail']=async function(_0x4502b2,_0x560d5c){return this['findOneBy'](_0x4502b2,_0x560d5c)['then'](_0x165986=>{const _0x4c2847=a10_0x2172;if(_0x165986===null||_0x165986===undefined)return Promise[_0x4c2847(0x172)](new typeorm_2['EntityNotFoundError'](_0x4502b2,_0x560d5c));return Promise[_0x4c2847(0x151)](_0x165986);});},typeorm_1[a10_0x3003b7(0x16e)][a10_0x3003b7(0x180)][a10_0x3003b7(0x15b)]=async function(){const _0x490461=a10_0x3003b7;if(this[_0x490461(0x152)]['lockMode']==='optimistic')throw new typeorm_1[(_0x490461(0x17f))]();const {entities:_0x3b1421,raw:_0xc7a8b7}=await this['getRawAndEntities']();return _0x3b1421['map']((_0x3c80c0,_0x2e6121)=>{const _0x4a7471=_0x490461;var _0x36c428;const _0xc6d697=(0x0,core_1[_0x4a7471(0x16f)])(exports[_0x4a7471(0x167)],_0x3c80c0)||{};for(const _0x62ead3 in _0xc6d697){_0xc7a8b7[_0x2e6121]&&_0xc7a8b7[_0x2e6121][_0x4a7471(0x159)](_0x62ead3)&&(_0x3c80c0[_0x62ead3]=_0xc7a8b7[_0x2e6121][_0x62ead3]||((_0x36c428=_0xc6d697[_0x62ead3])===null||_0x36c428===void 0x0?void 0x0:_0x36c428[_0x4a7471(0x173)])||'');}return _0x3c80c0;});},typeorm_1[a10_0x3003b7(0x16e)][a10_0x3003b7(0x180)][a10_0x3003b7(0x169)]=async function(){return[await this['getMany'](),await this['getCount']()];},typeorm_1[a10_0x3003b7(0x16e)][a10_0x3003b7(0x180)][a10_0x3003b7(0x182)]=async function(){const _0x5ca144=a10_0x3003b7;var _0x4f645a;const {entities:_0x1f862a,raw:_0x48b2a0}=await this[_0x5ca144(0x155)]();if(_0x1f862a[0x0]&&this[_0x5ca144(0x152)]['lockMode']===_0x5ca144(0x166)&&this['expressionMap'][_0x5ca144(0x16a)]){const _0x5c5617=this[_0x5ca144(0x152)][_0x5ca144(0x15c)][_0x5ca144(0x15d)];if(this[_0x5ca144(0x152)][_0x5ca144(0x16a)]instanceof Date){const _0x192ea7=_0x5c5617['updateDateColumn']['getEntityValue'](_0x1f862a[0x0]);if(_0x192ea7[_0x5ca144(0x178)]()!==this[_0x5ca144(0x152)]['lockVersion'][_0x5ca144(0x178)]())throw new typeorm_1[(_0x5ca144(0x183))](_0x5c5617['name'],this[_0x5ca144(0x152)][_0x5ca144(0x16a)],_0x192ea7);}else{const _0x168752=_0x5c5617['versionColumn'][_0x5ca144(0x16c)](_0x1f862a[0x0]);if(_0x168752!==this[_0x5ca144(0x152)]['lockVersion'])throw new typeorm_1[(_0x5ca144(0x183))](_0x5c5617[_0x5ca144(0x15e)],this[_0x5ca144(0x152)][_0x5ca144(0x16a)],_0x168752);}}if(_0x1f862a[0x0]&&_0x48b2a0[0x0]){const _0x5a8e72=(0x0,core_1[_0x5ca144(0x16f)])(exports[_0x5ca144(0x167)],_0x1f862a[0x0]);for(const _0x4f8cf6 in _0x5a8e72){_0x48b2a0[0x0][_0x5ca144(0x159)](_0x4f8cf6)&&(_0x1f862a[0x0][_0x4f8cf6]=_0x48b2a0[0x0][_0x4f8cf6]||((_0x4f645a=_0x5a8e72[_0x4f8cf6])===null||_0x4f645a===void 0x0?void 0x0:_0x4f645a[_0x5ca144(0x173)])||'');}}return _0x1f862a[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.12",
|
|
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": "a4d5a158d7f92893a50fe518f760bf04c3c1e1c7"
|
|
26
26
|
}
|