@anncic-api/typeorm 1.3.1 → 1.3.4
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_0x4ba0d3=a0_0x3c64;function a0_0x3c64(_0x68c035,_0x4f9406){const _0xa022c1=a0_0xa022();return a0_0x3c64=function(_0x3c64b6,_0x5d319c){_0x3c64b6=_0x3c64b6-0x9b;let _0x322b3c=_0xa022c1[_0x3c64b6];return _0x322b3c;},a0_0x3c64(_0x68c035,_0x4f9406);}(function(_0x37fce4,_0x45753a){const _0x317675=a0_0x3c64,_0x17af77=_0x37fce4();while(!![]){try{const _0x1b67df=parseInt(_0x317675(0xa5))/0x1+parseInt(_0x317675(0xcf))/0x2+-parseInt(_0x317675(0xab))/0x3+parseInt(_0x317675(0xc8))/0x4+-parseInt(_0x317675(0xb7))/0x5+-parseInt(_0x317675(0xca))/0x6*(parseInt(_0x317675(0xbc))/0x7)+parseInt(_0x317675(0xb5))/0x8;if(_0x1b67df===_0x45753a)break;else _0x17af77['push'](_0x17af77['shift']());}catch(_0x390a62){_0x17af77['push'](_0x17af77['shift']());}}}(a0_0xa022,0x76388));function a0_0xa022(){const _0x501e49=['698192pEViPA','body','find','onReady','handlercache','Repository','2259558oGjqVM','length','target','./interface','TypeORMDataSourceManager','getDataSource','getDataSourceNameByModel','metadata','数据不存在','@midwayjs/typeorm','332112cEFTKr','getAsync','3751745qcJIsT','REPOSITORY_KEY','prototype','registerPropertyHandler','useMiddleware','7TSfogd','TypeORMError','function','decorator','object','CustomConfiguration','getEnv','message','getOwnPropertyDescriptor','production','defineProperty','__metadata','3142316LBWWLB','@midwayjs/core','329748KGJwNq','middlewareError','__esModule','anncic-api-typeorm\x20Error\x20','__decorate','1034880ZEeawf','getRepository','push','typeorm','Configuration','EntityNotFoundError','warn','name','decorate','Inject','ENTIFY_KEY'];a0_0xa022=function(){return _0x501e49;};return a0_0xa022();}var __decorate=this&&this[a0_0x4ba0d3(0xce)]||function(_0x478e9d,_0x507c80,_0x1b315a,_0x45b8f9){const _0x4903ea=a0_0x4ba0d3;var _0x822275=arguments[_0x4903ea(0xac)],_0x182602=_0x822275<0x3?_0x507c80:_0x45b8f9===null?_0x45b8f9=Object[_0x4903ea(0xc4)](_0x507c80,_0x1b315a):_0x45b8f9,_0x1a1117;if(typeof Reflect==='object'&&typeof Reflect[_0x4903ea(0xa2)]===_0x4903ea(0xbe))_0x182602=Reflect[_0x4903ea(0xa2)](_0x478e9d,_0x507c80,_0x1b315a,_0x45b8f9);else{for(var _0x58b0d2=_0x478e9d['length']-0x1;_0x58b0d2>=0x0;_0x58b0d2--)if(_0x1a1117=_0x478e9d[_0x58b0d2])_0x182602=(_0x822275<0x3?_0x1a1117(_0x182602):_0x822275>0x3?_0x1a1117(_0x507c80,_0x1b315a,_0x182602):_0x1a1117(_0x507c80,_0x1b315a))||_0x182602;}return _0x822275>0x3&&_0x182602&&Object[_0x4903ea(0xc6)](_0x507c80,_0x1b315a,_0x182602),_0x182602;},__metadata=this&&this[a0_0x4ba0d3(0xc7)]||function(_0x4ca33d,_0x5ba865){const _0x20f5ea=a0_0x4ba0d3;if(typeof Reflect===_0x20f5ea(0xc0)&&typeof Reflect['metadata']===_0x20f5ea(0xbe))return Reflect[_0x20f5ea(0xb2)](_0x4ca33d,_0x5ba865);};Object[a0_0x4ba0d3(0xc6)](exports,a0_0x4ba0d3(0xcc),{'value':!![]}),exports[a0_0x4ba0d3(0xc1)]=void 0x0;const typeorm_1=require(a0_0x4ba0d3(0xb4)),core_1=require('@midwayjs/core'),core_2=require(a0_0x4ba0d3(0xc9)),typeorm_2=require(a0_0x4ba0d3(0x9d)),Repository_1=require('./definition/Repository'),interface_1=require(a0_0x4ba0d3(0xae)),typeorm=require('@midwayjs/typeorm');let CustomConfiguration=class CustomConfiguration{constructor(){this['handlercache']=[];}async[a0_0x4ba0d3(0xa8)](_0x522030,_0x12ec85){const _0x9afe1=a0_0x4ba0d3,_0x11e9a5=await _0x522030[_0x9afe1(0xb6)](typeorm_1[_0x9afe1(0xaf)]);this['decorator'][_0x9afe1(0xba)](interface_1[_0x9afe1(0xa4)],(_0x325019,{entity:_0x28a0ff,connection:_0x4683ff})=>{const _0x344a0d=_0x9afe1;let _0x9a0b11=this[_0x344a0d(0xa9)][_0x344a0d(0xa7)](_0x73af2=>_0x73af2[_0x344a0d(0xad)]===_0x28a0ff);return!_0x9a0b11&&(_0x9a0b11=new Repository_1[(_0x344a0d(0xaa))](_0x12ec85,_0x11e9a5[_0x344a0d(0xb0)](_0x4683ff||_0x11e9a5[_0x344a0d(0xb1)](_0x28a0ff))[_0x344a0d(0x9b)](_0x28a0ff)),this[_0x344a0d(0xa9)][_0x344a0d(0x9c)](_0x9a0b11)),_0x9a0b11;}),this[_0x9afe1(0xbf)][_0x9afe1(0xba)](interface_1[_0x9afe1(0xb8)],(_0x68b2dd,{repository:_0x49d625,connection:_0x54cedc})=>{const _0x264f09=_0x9afe1,{entity:_0x2ed3be}=(0x0,core_1['getClassMetadata'])(interface_1[_0x264f09(0xb8)],_0x49d625)||{};if(!_0x2ed3be)throw new Error(_0x264f09(0xcd)+((_0x49d625===null||_0x49d625===void 0x0?void 0x0:_0x49d625[_0x264f09(0xa1)])||_0x49d625)+'\x20is\x20not\x20ProvideRepository\x20Entify');let _0x3ad84c=this[_0x264f09(0xa9)][_0x264f09(0xa7)](_0x12d613=>_0x12d613===_0x49d625);return!_0x3ad84c&&(_0x3ad84c=new _0x49d625(_0x12ec85,_0x11e9a5[_0x264f09(0xb0)](_0x54cedc||_0x11e9a5[_0x264f09(0xb1)](_0x2ed3be))[_0x264f09(0x9b)](_0x2ed3be)),this['handlercache'][_0x264f09(0x9c)](_0x3ad84c)),_0x3ad84c;}),_0x12ec85[_0x9afe1(0xbb)](this['middlewareError'](_0x12ec85));}[a0_0x4ba0d3(0xcb)](_0x3b29ec){return async(_0x326ec6,_0x52abc1)=>{const _0x5ee1a0=a0_0x3c64;try{await _0x52abc1();}catch(_0x25adc8){if(_0x25adc8 instanceof typeorm_2[_0x5ee1a0(0xbd)])_0x25adc8 instanceof typeorm_2[_0x5ee1a0(0x9f)]?_0x326ec6[_0x5ee1a0(0xa6)]={'code':0x194,'msg':_0x5ee1a0(0xb3)}:(_0x326ec6['body']={'code':0x1f4,'msg':_0x25adc8[_0x5ee1a0(0xc3)]},_0x3b29ec[_0x5ee1a0(0xc2)]()!=_0x5ee1a0(0xc5)&&console[_0x5ee1a0(0xa0)](_0x25adc8));else throw _0x25adc8;}};}};__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2['MidwayConfigService'])],CustomConfiguration[a0_0x4ba0d3(0xb9)],'config',void 0x0),__decorate([(0x0,core_1[a0_0x4ba0d3(0xa3)])(),__metadata('design:type',core_2['MidwayDecoratorService'])],CustomConfiguration[a0_0x4ba0d3(0xb9)],a0_0x4ba0d3(0xbf),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x4ba0d3(0x9e)])({'imports':[typeorm],'conflictCheck':![],'namespace':'anncic-api:typeorm'})],CustomConfiguration),exports[a0_0x4ba0d3(0xc1)]=CustomConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x368c29=a1_0x5c9f;(function(_0x556bd4,_0x404124){const _0xbaca19=a1_0x5c9f,_0x4d04be=_0x556bd4();while(!![]){try{const _0x487ef3=-parseInt(_0xbaca19(0x1a4))/0x1+parseInt(_0xbaca19(0x199))/0x2*(-parseInt(_0xbaca19(0x198))/0x3)+parseInt(_0xbaca19(0x1a3))/0x4*(-parseInt(_0xbaca19(0x19f))/0x5)+-parseInt(_0xbaca19(0x1a5))/0x6*(-parseInt(_0xbaca19(0x19e))/0x7)+parseInt(_0xbaca19(0x1a7))/0x8*(parseInt(_0xbaca19(0x19a))/0x9)+parseInt(_0xbaca19(0x197))/0xa+parseInt(_0xbaca19(0x1a2))/0xb*(parseInt(_0xbaca19(0x19c))/0xc);if(_0x487ef3===_0x404124)break;else _0x4d04be['push'](_0x4d04be['shift']());}catch(_0x435ad5){_0x4d04be['push'](_0x4d04be['shift']());}}}(a1_0x1c49,0x6ff0b));Object[a1_0x368c29(0x1a6)](exports,a1_0x368c29(0x196),{'value':!![]}),exports[a1_0x368c29(0x1a0)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a1_0x368c29(0x19b));function InjectEntity(_0x5ae8b5,_0x2e052e=a1_0x368c29(0x19d)){const _0x5e4945=a1_0x368c29;return(0x0,core_1[_0x5e4945(0x1a1)])(interface_1['ENTIFY_KEY'],{'entity':_0x5ae8b5,'connection':_0x2e052e});}function a1_0x1c49(){const _0x5a9084=['739377HNzZNZ','../interface','58872HJrkZO','default','931eulcEm','2445495jvIlFc','InjectEntity','createCustomPropertyDecorator','1947suHOyV','4rBiFOy','303719baTXjq','8142PqAYkQ','defineProperty','16WEgvwF','__esModule','7978370TMYAQq','325569CMVBeG','14EVhDGr'];a1_0x1c49=function(){return _0x5a9084;};return a1_0x1c49();}function a1_0x5c9f(_0x16632b,_0x39b922){const _0x1c49a5=a1_0x1c49();return a1_0x5c9f=function(_0x5c9fa0,_0x11bd66){_0x5c9fa0=_0x5c9fa0-0x196;let _0x15247e=_0x1c49a5[_0x5c9fa0];return _0x15247e;},a1_0x5c9f(_0x16632b,_0x39b922);}exports['InjectEntity']=InjectEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a2_0x22f1ad=a2_0x288d;function a2_0x288d(_0x55c39a,_0x6de4a5){const _0x339fe2=a2_0x339f();return a2_0x288d=function(_0x288d6a,_0xab92c0){_0x288d6a=_0x288d6a-0xe7;let _0x56cf03=_0x339fe2[_0x288d6a];return _0x56cf03;},a2_0x288d(_0x55c39a,_0x6de4a5);}(function(_0x3a297b,_0x417fea){const _0x37330c=a2_0x288d,_0x43a716=_0x3a297b();while(!![]){try{const _0x3b0c08=parseInt(_0x37330c(0xe8))/0x1*(-parseInt(_0x37330c(0xf4))/0x2)+parseInt(_0x37330c(0xec))/0x3*(parseInt(_0x37330c(0xf3))/0x4)+parseInt(_0x37330c(0xf7))/0x5*(parseInt(_0x37330c(0xe9))/0x6)+parseInt(_0x37330c(0xf1))/0x7*(-parseInt(_0x37330c(0xed))/0x8)+parseInt(_0x37330c(0xe7))/0x9*(parseInt(_0x37330c(0xf0))/0xa)+parseInt(_0x37330c(0xf2))/0xb+parseInt(_0x37330c(0xf8))/0xc;if(_0x3b0c08===_0x417fea)break;else _0x43a716['push'](_0x43a716['shift']());}catch(_0x11d76b){_0x43a716['push'](_0x43a716['shift']());}}}(a2_0x339f,0x9d9b4));function a2_0x339f(){const _0x4765a1=['2964379EYeFtD','4VfFJTJ','72470oLKHYz','../interface','InjectRepository','439910WHXdpv','6604440VgyyHN','18vntWbJ','25txvdon','66cSYozz','default','__esModule','948555hWcHuu','24DgcMmK','createCustomPropertyDecorator','defineProperty','251590MeUKqd','1406377bViUsb'];a2_0x339f=function(){return _0x4765a1;};return a2_0x339f();}Object[a2_0x22f1ad(0xef)](exports,a2_0x22f1ad(0xeb),{'value':!![]}),exports[a2_0x22f1ad(0xf6)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a2_0x22f1ad(0xf5));function InjectRepository(_0x36105d,_0x485262=a2_0x22f1ad(0xea)){const _0x721615=a2_0x22f1ad;return(0x0,core_1[_0x721615(0xee)])(interface_1['REPOSITORY_KEY'],{'repository':_0x36105d,'connection':_0x485262});}exports[a2_0x22f1ad(0xf6)]=InjectRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a3_0x3a0a80=a3_0x239a;function a3_0x3677(){const _0x586cba=['ENTIFY_MODULE_SOURCE','656090RJInrP','679995dKJcmB','__esModule','ENTIFY_MODULE','Entity','typeorm','80802eNLgso','104246SBsCQg','6FdGBPn','name','isArray','string','@midwayjs/core','10691272uItZzQ','44mAvruz','dataSource','push','ProvideEntity','25430801xHPqzY','tableName','default','64YaAtQk','8812419YCkfVz','defineProperty','243PJnKjG'];a3_0x3677=function(){return _0x586cba;};return a3_0x3677();}(function(_0x1d0e1,_0x4a5b25){const _0x1dfabf=a3_0x239a,_0x1396b8=_0x1d0e1();while(!![]){try{const _0x16a373=-parseInt(_0x1dfabf(0x1a3))/0x1+-parseInt(_0x1dfabf(0x197))/0x2*(parseInt(_0x1dfabf(0x1a2))/0x3)+parseInt(_0x1dfabf(0x1aa))/0x4*(parseInt(_0x1dfabf(0x19d))/0x5)+parseInt(_0x1dfabf(0x1a4))/0x6*(parseInt(_0x1dfabf(0x198))/0x7)+-parseInt(_0x1dfabf(0x1a9))/0x8+-parseInt(_0x1dfabf(0x19a))/0x9*(parseInt(_0x1dfabf(0x19c))/0xa)+parseInt(_0x1dfabf(0x194))/0xb;if(_0x16a373===_0x4a5b25)break;else _0x1396b8['push'](_0x1396b8['shift']());}catch(_0x2500e4){_0x1396b8['push'](_0x1396b8['shift']());}}}(a3_0x3677,0xf262b));function a3_0x239a(_0x5bb9,_0xcb0259){const _0x367732=a3_0x3677();return a3_0x239a=function(_0x239a4a,_0x335656){_0x239a4a=_0x239a4a-0x192;let _0x52b3f2=_0x367732[_0x239a4a];return _0x52b3f2;},a3_0x239a(_0x5bb9,_0xcb0259);}Object[a3_0x3a0a80(0x199)](exports,a3_0x3a0a80(0x19e),{'value':!![]}),exports['ProvideEntity']=void 0x0;const typeorm_1=require(a3_0x3a0a80(0x1a1)),core_1=require(a3_0x3a0a80(0x1a8)),interface_1=require('../interface');function ProvideEntity(_0x5f4e67,_0x25eaa8={}){return _0x4c6018=>{const _0x4e6f53=a3_0x239a;_0x25eaa8[_0x4e6f53(0x1a5)]=_0x5f4e67['tableName'];const _0x44d274=[];if(!(_0x5f4e67===null||_0x5f4e67===void 0x0?void 0x0:_0x5f4e67['dataSource']))_0x44d274[_0x4e6f53(0x192)]('default');else{if(typeof(_0x5f4e67===null||_0x5f4e67===void 0x0?void 0x0:_0x5f4e67[_0x4e6f53(0x1ab)])==_0x4e6f53(0x1a7))_0x44d274[_0x4e6f53(0x192)](_0x5f4e67===null||_0x5f4e67===void 0x0?void 0x0:_0x5f4e67[_0x4e6f53(0x1ab)]);else{if(Array[_0x4e6f53(0x1a6)](_0x5f4e67===null||_0x5f4e67===void 0x0?void 0x0:_0x5f4e67[_0x4e6f53(0x1ab)]))for(let _0x1668ca of _0x5f4e67['dataSource']||[_0x4e6f53(0x196)]){_0x44d274['push'](_0x1668ca);}}}(0x0,core_1['saveModule'])(interface_1[_0x4e6f53(0x19f)],_0x4c6018),(0x0,core_1['saveClassMetadata'])(interface_1[_0x4e6f53(0x19b)],{'tableName':_0x5f4e67[_0x4e6f53(0x195)],'dataSource':_0x44d274},_0x4c6018),(0x0,typeorm_1[_0x4e6f53(0x1a0)])(_0x5f4e67[_0x4e6f53(0x195)],_0x25eaa8)(_0x4c6018);};}exports[a3_0x3a0a80(0x193)]=ProvideEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a4_0x598190=a4_0x44fd;function a4_0x1cd7(){const _0x375d14=['4708976fOnCop','saveClassMetadata','ProvideRepository','Provide','@midwayjs/core','92652ryWCkR','1426987qMztXg','3172851PgsQpD','3386547wotODP','Scope','20784KWDJdm','__esModule','7RDecdN','REPOSITORY_KEY','585kIqlus','defineProperty','28928660UmYHfu','2oaGImS'];a4_0x1cd7=function(){return _0x375d14;};return a4_0x1cd7();}function a4_0x44fd(_0x59fd01,_0x23f419){const _0x1cd7f6=a4_0x1cd7();return a4_0x44fd=function(_0x44fd98,_0x4f79a0){_0x44fd98=_0x44fd98-0x9b;let _0x4475d1=_0x1cd7f6[_0x44fd98];return _0x4475d1;},a4_0x44fd(_0x59fd01,_0x23f419);}(function(_0x141ef1,_0x59c293){const _0x2ac6eb=a4_0x44fd,_0x33bb26=_0x141ef1();while(!![]){try{const _0x1459ce=parseInt(_0x2ac6eb(0xa4))/0x1*(-parseInt(_0x2ac6eb(0x9d))/0x2)+-parseInt(_0x2ac6eb(0xa6))/0x3+parseInt(_0x2ac6eb(0xa8))/0x4*(parseInt(_0x2ac6eb(0xac))/0x5)+parseInt(_0x2ac6eb(0xa3))/0x6+-parseInt(_0x2ac6eb(0xaa))/0x7*(parseInt(_0x2ac6eb(0x9e))/0x8)+parseInt(_0x2ac6eb(0xa5))/0x9+parseInt(_0x2ac6eb(0x9c))/0xa;if(_0x1459ce===_0x59c293)break;else _0x33bb26['push'](_0x33bb26['shift']());}catch(_0x465440){_0x33bb26['push'](_0x33bb26['shift']());}}}(a4_0x1cd7,0xb0d61));Object[a4_0x598190(0x9b)](exports,a4_0x598190(0xa9),{'value':!![]}),exports[a4_0x598190(0xa0)]=void 0x0;const core_1=require(a4_0x598190(0xa2)),interface_1=require('../interface');function ProvideRepository(_0x7f0565){return _0x30cae9=>{const _0x3bf952=a4_0x44fd;(0x0,core_1[_0x3bf952(0xa7)])(core_1['ScopeEnum']['Request'],{'allowDowngrade':!![]})(_0x30cae9),((0x0,core_1[_0x3bf952(0xa1)])()(_0x30cae9),(0x0,core_1[_0x3bf952(0x9f)])(interface_1[_0x3bf952(0xab)],{'entity':_0x7f0565},_0x30cae9));};}exports[a4_0x598190(0xa0)]=ProvideRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x39a17a=a5_0x2da4;(function(_0x24318e,_0x419825){const _0x230920=a5_0x2da4,_0x48ff6d=_0x24318e();while(!![]){try{const _0xc23799=parseInt(_0x230920(0x1a7))/0x1*(parseInt(_0x230920(0x1ad))/0x2)+parseInt(_0x230920(0x1a8))/0x3+-parseInt(_0x230920(0x1b9))/0x4*(parseInt(_0x230920(0x1b2))/0x5)+parseInt(_0x230920(0x1b0))/0x6*(parseInt(_0x230920(0x1ba))/0x7)+-parseInt(_0x230920(0x1b5))/0x8*(parseInt(_0x230920(0x1b4))/0x9)+-parseInt(_0x230920(0x1ae))/0xa*(parseInt(_0x230920(0x1a5))/0xb)+-parseInt(_0x230920(0x1b7))/0xc*(-parseInt(_0x230920(0x1af))/0xd);if(_0xc23799===_0x419825)break;else _0x48ff6d['push'](_0x48ff6d['shift']());}catch(_0x39b3cf){_0x48ff6d['push'](_0x48ff6d['shift']());}}}(a5_0xec87,0xc853a));Object[a5_0x39a17a(0x1b1)](exports,a5_0x39a17a(0x1a9),{'value':!![]}),exports[a5_0x39a17a(0x1b6)]=exports[a5_0x39a17a(0x1aa)]=void 0x0;const core_1=require(a5_0x39a17a(0x1b3)),interface_1=require(a5_0x39a17a(0x1ab));function ProvideSearch(_0x2d0d8d){return _0x6c9212=>{const _0x1275d0=a5_0x2da4;(0x0,core_1['saveModule'])(interface_1[_0x1275d0(0x1ac)],_0x6c9212),(0x0,core_1['Scope'])(core_1['ScopeEnum']['Singleton'])(_0x6c9212),(0x0,core_1[_0x1275d0(0x1b8)])(interface_1[_0x1275d0(0x1ac)],_0x2d0d8d,_0x6c9212);};}function a5_0x2da4(_0x4f1435,_0x25ef51){const _0xec87b8=a5_0xec87();return a5_0x2da4=function(_0x2da494,_0x2f6463){_0x2da494=_0x2da494-0x1a5;let _0x272e0e=_0xec87b8[_0x2da494];return _0x272e0e;},a5_0x2da4(_0x4f1435,_0x25ef51);}exports[a5_0x39a17a(0x1aa)]=ProvideSearch;function a5_0xec87(){const _0x356c02=['5oBAGZG','@midwayjs/core','10035BlfwDr','11056VZjmbh','Search','1236CtSEJe','attachClassMetadata','4937404xdQUJe','305277YVcMtG','2486pgAlcg','MODEL_SEARCH_KEY','23399nnfokg','4630236waWWRi','__esModule','ProvideSearch','../interface','MODEL_KEY','116RyEpWI','4870xzyxWO','24583UWnhQU','84zmxBlt','defineProperty'];a5_0xec87=function(){return _0x356c02;};return a5_0xec87();}function Search(_0x23059c,_0x463e1a){return(_0x4fedd7,_0x469d95,_0x22e884)=>{const _0x4437a1=a5_0x2da4;(0x0,core_1[_0x4437a1(0x1b8)])(interface_1[_0x4437a1(0x1a6)],{'field':_0x23059c,'comment':_0x463e1a,'target':_0x4fedd7,'methodName':_0x469d95,'descriptor':_0x22e884},_0x4fedd7);};}exports['Search']=Search;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a6_0x504d01=a6_0x35ef;(function(_0x3066f6,_0x2a30e8){const _0x1bea60=a6_0x35ef,_0x2909aa=_0x3066f6();while(!![]){try{const _0x12af55=parseInt(_0x1bea60(0x8a))/0x1+-parseInt(_0x1bea60(0x8c))/0x2+-parseInt(_0x1bea60(0x8b))/0x3+-parseInt(_0x1bea60(0x81))/0x4*(parseInt(_0x1bea60(0x87))/0x5)+-parseInt(_0x1bea60(0x80))/0x6+-parseInt(_0x1bea60(0x86))/0x7*(parseInt(_0x1bea60(0x88))/0x8)+parseInt(_0x1bea60(0x85))/0x9;if(_0x12af55===_0x2a30e8)break;else _0x2909aa['push'](_0x2909aa['shift']());}catch(_0xc634fb){_0x2909aa['push'](_0x2909aa['shift']());}}}(a6_0x5652,0xac435));function a6_0x35ef(_0x74161a,_0x47ee53){const _0x5652fd=a6_0x5652();return a6_0x35ef=function(_0x35ef60,_0x4726a4){_0x35ef60=_0x35ef60-0x7e;let _0x3b2c4b=_0x5652fd[_0x35ef60];return _0x3b2c4b;},a6_0x35ef(_0x74161a,_0x47ee53);}function a6_0x5652(){const _0x38b9ab=['6144426vRiQzI','4780ZlfOHB','VirtualColumn','defineProperty','../interface','41234211pggAwO','1919575VaOsjp','3910OjuCOH','40YrxIrg','__esModule','888304BxIvNm','2191260sbdhcC','1408376hWmDzl','saveClassMetadata','getClassMetadata','ENTITY_VIRTUAL_COLUMN_KEY','@midwayjs/core'];a6_0x5652=function(){return _0x38b9ab;};return a6_0x5652();}Object[a6_0x504d01(0x83)](exports,a6_0x504d01(0x89),{'value':!![]}),exports[a6_0x504d01(0x82)]=void 0x0;const core_1=require(a6_0x504d01(0x7f)),interface_1=require(a6_0x504d01(0x84));function VirtualColumn(_0x22e677,_0x144380){return(_0x426514,_0x2e325b)=>{const _0x39e324=a6_0x35ef,_0x394d8f=(0x0,core_1[_0x39e324(0x8e)])(interface_1['ENTITY_VIRTUAL_COLUMN_KEY'],_0x426514)||{};_0x394d8f[_0x2e325b]={'comment':_0x22e677,..._0x144380},(0x0,core_1[_0x39e324(0x8d)])(interface_1[_0x39e324(0x7e)],_0x394d8f,_0x426514);};}exports[a6_0x504d01(0x82)]=VirtualColumn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x2bff9a=a7_0x28ce;(function(_0x5ccd63,_0x54f228){const _0x2592fe=a7_0x28ce,_0x58e50f=_0x5ccd63();while(!![]){try{const _0x10bee8=-parseInt(_0x2592fe(0xc7))/0x1+-parseInt(_0x2592fe(0x98))/0x2*(parseInt(_0x2592fe(0xae))/0x3)+parseInt(_0x2592fe(0xb2))/0x4*(parseInt(_0x2592fe(0x8c))/0x5)+-parseInt(_0x2592fe(0xa7))/0x6*(parseInt(_0x2592fe(0xd2))/0x7)+-parseInt(_0x2592fe(0xa5))/0x8+-parseInt(_0x2592fe(0xb5))/0x9*(-parseInt(_0x2592fe(0xc9))/0xa)+parseInt(_0x2592fe(0xab))/0xb;if(_0x10bee8===_0x54f228)break;else _0x58e50f['push'](_0x58e50f['shift']());}catch(_0x23c286){_0x58e50f['push'](_0x58e50f['shift']());}}}(a7_0x55dd,0x6c932));Object[a7_0x2bff9a(0xd3)](exports,'__esModule',{'value':!![]}),exports[a7_0x2bff9a(0x9c)]=void 0x0;function a7_0x28ce(_0x2aa339,_0x1c302e){const _0x55dd49=a7_0x55dd();return a7_0x28ce=function(_0x28ce80,_0x26edd4){_0x28ce80=_0x28ce80-0x88;let _0x6deffb=_0x55dd49[_0x28ce80];return _0x6deffb;},a7_0x28ce(_0x2aa339,_0x1c302e);}const core_1=require(a7_0x2bff9a(0xb9)),typeorm_1=require(a7_0x2bff9a(0xb1)),interface_1=require(a7_0x2bff9a(0xc6));function a7_0x55dd(){const _0x571586=['4ieanRd','merge','methodName','andWhere','Repository','queryRunner','manager','NOT\x20ISNULL','_auto_','\x20=\x20:_auto_','alias','hasOwnProperty','operator','704152gnbWtf','function','1662gBpBpl','length','indexOf','save','22483395flmBzK','toString','transaction','743973EjXeJn','split','bind','typeorm','258592BaOeJc','_page','app','90voWdLr','undefined','type','BETWEEN','@midwayjs/core','_order','DESC','createQueryBuilder','abs','target','string','create','ceil','LIKE','MODEL_SEARCH_KEY','getClassMetadata','search','../interface','870729cblhBA','String','334780xoYlug','ASC','ISNULL','random','NOT\x20FIND\x20IN\x20SET','isArray','excess','findColumnWithPropertyName','_isreverse','15379shLLOm','defineProperty','\x20like\x20:_auto_','MODEL_KEY','NOT\x20BETWEEN','orderBy','modelSearchs','10bqWNUS','trim','name','model','metadata','FIND\x20IN\x20SET','push','searchs','_size','field','skip','getAsync'];a7_0x55dd=function(){return _0x571586;};return a7_0x55dd();}class Repository extends typeorm_1[a7_0x2bff9a(0x9c)]{constructor(_0x55e6fe,_0x2a5a3e){const _0x3cc9e3=a7_0x2bff9a;super(_0x2a5a3e[_0x3cc9e3(0xbe)],_0x2a5a3e[_0x3cc9e3(0x9e)],_0x2a5a3e[_0x3cc9e3(0x9d)]),this['modelSearchs']=[];for(const _0x36c47d of(0x0,core_1[_0x3cc9e3(0xc4)])(interface_1[_0x3cc9e3(0x88)],this[_0x3cc9e3(0xbe)])||[]){const _0x285b98={'model':_0x36c47d,'searchs':[]};for(const _0x43c750 of(0x0,core_1['getClassMetadata'])(interface_1[_0x3cc9e3(0xc3)],_0x36c47d)||[]){_0x285b98['searchs'][_0x3cc9e3(0x92)](_0x43c750);}this[_0x3cc9e3(0x8b)]['push'](_0x285b98);}this[_0x3cc9e3(0xb4)]=_0x55e6fe;}async[a7_0x2bff9a(0xc5)](_0x56674a,_0x1ae83f,_0x23520f={}){const _0x500479=a7_0x2bff9a;var _0x5d0469,_0x4b3186,_0x5e4a7a,_0x106148,_0x66f1de,_0x235929;const _0x429101=this[_0x500479(0xbc)](undefined,_0x23520f===null||_0x23520f===void 0x0?void 0x0:_0x23520f[_0x500479(0x9d)]),_0x3fe4d8=[];for(const _0x28ed4e of this[_0x500479(0x8b)]){if((_0x28ed4e===null||_0x28ed4e===void 0x0?void 0x0:_0x28ed4e[_0x500479(0x8f)])&&((_0x5d0469=_0x28ed4e===null||_0x28ed4e===void 0x0?void 0x0:_0x28ed4e[_0x500479(0x93)])===null||_0x5d0469===void 0x0?void 0x0:_0x5d0469[_0x500479(0xa8)])>0x0){const _0x459580=await this[_0x500479(0xb4)]['getApplicationContext']()[_0x500479(0x97)](_0x28ed4e[_0x500479(0x8f)]);for(const _0x5a1046 of _0x28ed4e[_0x500479(0x93)]){(_0x5a1046===null||_0x5a1046===void 0x0?void 0x0:_0x5a1046[_0x500479(0x95)])&&(_0x5a1046===null||_0x5a1046===void 0x0?void 0x0:_0x5a1046[_0x500479(0x9a)])&&typeof _0x459580[_0x5a1046[_0x500479(0x9a)]]==_0x500479(0xa6)&&(typeof(_0x56674a===null||_0x56674a===void 0x0?void 0x0:_0x56674a[_0x5a1046[_0x500479(0x95)]])!=_0x500479(0xb6)&&!((_0x4b3186=_0x56674a===null||_0x56674a===void 0x0?void 0x0:_0x56674a[_0x5a1046[_0x500479(0x95)]])===null||_0x4b3186===void 0x0?void 0x0:_0x4b3186[_0x500479(0xa3)](_0x500479(0xa4)))&&(_0x3fe4d8[_0x500479(0xa9)](_0x5a1046[_0x500479(0x95)])==-0x1&&_0x3fe4d8[_0x500479(0x92)](_0x5a1046[_0x500479(0x95)]),await _0x459580[_0x5a1046[_0x500479(0x9a)]][_0x500479(0xb0)](_0x459580)(_0x429101,_0x56674a[_0x5a1046[_0x500479(0x95)]],_0x56674a,_0x1ae83f,_0x23520f===null||_0x23520f===void 0x0?void 0x0:_0x23520f[_0x500479(0x9d)])));}}}for(const _0x4b859f in _0x56674a){if(typeof _0x56674a[_0x4b859f]!='undefined'&&_0x3fe4d8[_0x500479(0xa9)](_0x4b859f)==-0x1){const _0x889e17=this['metadata']['findColumnWithPropertyName'](_0x4b859f);if(_0x889e17){if((_0x5e4a7a=_0x56674a===null||_0x56674a===void 0x0?void 0x0:_0x56674a[_0x4b859f])===null||_0x5e4a7a===void 0x0?void 0x0:_0x5e4a7a['hasOwnProperty']('operator')){const _0x137fa3=(_0x106148=_0x56674a[_0x4b859f])===null||_0x106148===void 0x0?void 0x0:_0x106148['condition'],_0x300e97=(_0x66f1de=_0x56674a[_0x4b859f])===null||_0x66f1de===void 0x0?void 0x0:_0x66f1de[_0x500479(0xa4)][_0x500479(0x8d)]()['toUpperCase'](),_0x7e87c8='_auto_'+_0x4b859f+'_'+Math['ceil'](Math[_0x500479(0xcc)]()*0xa)+Math['ceil'](Math['random']()*0xa)+Math['ceil'](Math[_0x500479(0xcc)]()*0xa)+Math[_0x500479(0xc1)](Math[_0x500479(0xcc)]()*0xa);if(['=','!=','<>','>','>=','<','<=',_0x500479(0xc2),'NOT\x20LIKE']['indexOf'](_0x300e97)!=-0x1)typeof _0x137fa3!=_0x500479(0xb6)&&_0x429101[_0x500479(0x9b)](_0x429101['alias']+'.'+_0x4b859f+'\x20'+_0x300e97+'\x20:'+_0x7e87c8,{[_0x7e87c8]:_0x137fa3});else{if(['IN','NOT\x20IN'][_0x500479(0xa9)](_0x300e97)!=-0x1){if(typeof _0x137fa3!=_0x500479(0xb6)){const _0xd84207=Array[_0x500479(0xce)](_0x137fa3)?_0x137fa3:typeof _0x137fa3==_0x500479(0xbf)?_0x137fa3[_0x500479(0xaf)](','):[_0x137fa3];_0x429101[_0x500479(0x9b)](_0x429101[_0x500479(0xa2)]+'.'+_0x4b859f+'\x20'+_0x300e97+'(:'+_0x7e87c8+')',{[_0x7e87c8]:_0xd84207});}}else{if([_0x500479(0x91),_0x500479(0xcd)]['indexOf'](_0x300e97)!=-0x1)typeof _0x137fa3!=_0x500479(0xb6)&&_0x429101[_0x500479(0x9b)](_0x300e97+'(:'+_0x7e87c8+','+_0x429101[_0x500479(0xa2)]+'.'+_0x4b859f+')',{[_0x7e87c8]:_0x137fa3});else{if([_0x500479(0xb8),_0x500479(0x89)][_0x500479(0xa9)](_0x300e97)!=-0x1){if(typeof _0x137fa3!=_0x500479(0xb6)){const _0x1c9d55=Array[_0x500479(0xce)](_0x137fa3)?_0x137fa3:typeof _0x137fa3==_0x500479(0xbf)?_0x137fa3[_0x500479(0xaf)](','):[_0x137fa3];_0x1c9d55['length']>0x1&&_0x429101[_0x500479(0x9b)](_0x429101[_0x500479(0xa2)]+'.'+_0x4b859f+'\x20'+_0x300e97+'\x20:'+_0x7e87c8+'\x20AND\x20:'+_0x7e87c8+'_2',{[''+_0x7e87c8]:_0x1c9d55[0x0],[_0x7e87c8+'_2']:_0x1c9d55[0x1]});}}else[_0x500479(0xcb),_0x500479(0x9f)][_0x500479(0xa9)](_0x300e97)!=-0x1&&_0x429101[_0x500479(0x9b)](_0x300e97+'('+_0x429101['alias']+'.'+_0x4b859f+')');}}}}else{if(_0x3fe4d8[_0x500479(0xa9)](_0x4b859f)==-0x1){const _0x5e192f=typeof _0x889e17[_0x500479(0xb7)]==_0x500479(0xa6)?(_0x235929=_0x889e17===null||_0x889e17===void 0x0?void 0x0:_0x889e17['type'])===null||_0x235929===void 0x0?void 0x0:_0x235929[_0x500479(0x8e)]:_0x889e17[_0x500479(0xb7)][_0x500479(0xac)]();_0x5e192f==_0x500479(0xc8)?_0x429101[_0x500479(0x9b)](_0x429101[_0x500479(0xa2)]+'.'+_0x4b859f+_0x500479(0xd4)+_0x4b859f,{[_0x500479(0xa0)+_0x4b859f]:'%'+_0x56674a[_0x4b859f]+'%'}):_0x429101[_0x500479(0x9b)](_0x429101[_0x500479(0xa2)]+'.'+_0x4b859f+_0x500479(0xa1)+_0x4b859f,{[_0x500479(0xa0)+_0x4b859f]:_0x56674a[_0x4b859f]});}}}}}(_0x1ae83f===null||_0x1ae83f===void 0x0?void 0x0:_0x1ae83f[_0x500479(0x94)])&&_0x429101['take'](Math[_0x500479(0xbd)](_0x1ae83f[_0x500479(0x94)]));(_0x1ae83f===null||_0x1ae83f===void 0x0?void 0x0:_0x1ae83f[_0x500479(0xb3)])&&(_0x1ae83f===null||_0x1ae83f===void 0x0?void 0x0:_0x1ae83f[_0x500479(0x94)])&&_0x429101[_0x500479(0x96)]((Math[_0x500479(0xbd)](_0x1ae83f[_0x500479(0xb3)])-0x1)*Math[_0x500479(0xbd)](_0x1ae83f[_0x500479(0x94)]));if(_0x1ae83f===null||_0x1ae83f===void 0x0?void 0x0:_0x1ae83f[_0x500479(0xba)]){if(_0x1ae83f[_0x500479(0xba)][_0x500479(0xa9)]('.')!==-0x1)_0x429101[_0x500479(0x8a)](''+_0x1ae83f['_order'],(_0x1ae83f===null||_0x1ae83f===void 0x0?void 0x0:_0x1ae83f[_0x500479(0xd1)])?_0x500479(0xca):'DESC');else _0x3fe4d8['indexOf'](_0x1ae83f['_order'])==-0x1&&(this[_0x500479(0x90)][_0x500479(0xd0)](_0x1ae83f[_0x500479(0xba)])?_0x429101[_0x500479(0x8a)](_0x429101[_0x500479(0xa2)]+'.'+_0x1ae83f[_0x500479(0xba)],(_0x1ae83f===null||_0x1ae83f===void 0x0?void 0x0:_0x1ae83f[_0x500479(0xd1)])?'ASC':_0x500479(0xbb)):_0x429101[_0x500479(0x8a)](''+_0x1ae83f[_0x500479(0xba)],(_0x1ae83f===null||_0x1ae83f===void 0x0?void 0x0:_0x1ae83f[_0x500479(0xd1)])?_0x500479(0xca):_0x500479(0xbb)));}return typeof(_0x23520f===null||_0x23520f===void 0x0?void 0x0:_0x23520f['excess'])==_0x500479(0xa6)&&await(_0x23520f===null||_0x23520f===void 0x0?void 0x0:_0x23520f[_0x500479(0xcf)](_0x429101)),_0x429101;}async['mergeSave'](_0xd52f6c,..._0x561213){const _0x55cd30=a7_0x2bff9a,_0x26ca47=this[_0x55cd30(0x99)](_0xd52f6c,..._0x561213);return await this[_0x55cd30(0xaa)](_0x26ca47);}async['createSave'](_0x21f6c7,..._0x424f77){const _0x1965e2=a7_0x2bff9a,_0xdc607=this[_0x1965e2(0x99)](this[_0x1965e2(0xc0)](_0x21f6c7),..._0x424f77);return await this[_0x1965e2(0xaa)](_0xdc607);}async['transaction'](_0x482bce,_0x5e47d9){const _0x2bc180=a7_0x2bff9a;return this[_0x2bc180(0x9e)][_0x2bc180(0xad)](_0x482bce,_0x5e47d9);}}exports[a7_0x2bff9a(0x9c)]=Repository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a8_0x486ed4=a8_0x390c;(function(_0x5c9151,_0x6fc1d0){const _0x13624e=a8_0x390c,_0x230701=_0x5c9151();while(!![]){try{const _0x58f16a=parseInt(_0x13624e(0xbb))/0x1+-parseInt(_0x13624e(0xbc))/0x2+-parseInt(_0x13624e(0xba))/0x3+parseInt(_0x13624e(0xb0))/0x4+parseInt(_0x13624e(0xb3))/0x5*(parseInt(_0x13624e(0xb7))/0x6)+parseInt(_0x13624e(0xb8))/0x7*(parseInt(_0x13624e(0xad))/0x8)+-parseInt(_0x13624e(0xb6))/0x9*(parseInt(_0x13624e(0xaf))/0xa);if(_0x58f16a===_0x6fc1d0)break;else _0x230701['push'](_0x230701['shift']());}catch(_0x5e1675){_0x230701['push'](_0x230701['shift']());}}}(a8_0x4e9c,0x29623));Object[a8_0x486ed4(0xaa)](exports,'__esModule',{'value':!![]}),exports[a8_0x486ed4(0xb5)]=void 0x0;function a8_0x4e9c(){const _0x41de3d=['254370xMnPxj','620584vCKoBK','dataSource','defineProperty','ENTIFY_MODULE','@midwayjs/core','2263160WFjbbO','listModule','5230nksCTM','292176HtqpCd','default','push','22180yJSbXh','../interface','getDataSourceEntity','6507VRoVuV','402xOoNQS','7rccttL','ENTIFY_MODULE_SOURCE','148779KrYGys'];a8_0x4e9c=function(){return _0x41de3d;};return a8_0x4e9c();}const core_1=require(a8_0x486ed4(0xac)),interface_1=require(a8_0x486ed4(0xb4));function a8_0x390c(_0x1a1443,_0x3eadd4){const _0x4e9ce5=a8_0x4e9c();return a8_0x390c=function(_0x390cb6,_0x3ba232){_0x390cb6=_0x390cb6-0xaa;let _0x30186f=_0x4e9ce5[_0x390cb6];return _0x30186f;},a8_0x390c(_0x1a1443,_0x3eadd4);}function getDataSourceEntity(_0x599bff=a8_0x486ed4(0xb1)){const _0x58005a=a8_0x486ed4;var _0x1a5ac4;const _0x58ec80=[];for(const _0x5d4fcd of(0x0,core_1[_0x58005a(0xae)])(interface_1[_0x58005a(0xab)])){const _0x55b394=(0x0,core_1['getClassMetadata'])(interface_1[_0x58005a(0xb9)],_0x5d4fcd);((_0x1a5ac4=_0x55b394===null||_0x55b394===void 0x0?void 0x0:_0x55b394[_0x58005a(0xbd)])===null||_0x1a5ac4===void 0x0?void 0x0:_0x1a5ac4['find'](_0x5dd7f2=>_0x5dd7f2==_0x599bff))&&_0x58ec80[_0x58005a(0xb2)](_0x5d4fcd);}return _0x58ec80;}exports[a8_0x486ed4(0xb5)]=getDataSourceEntity;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0xe63782=a9_0x1b82;(function(_0x40ba5f,_0x4556ae){var _0x434072=a9_0x1b82,_0x12ac58=_0x40ba5f();while(!![]){try{var _0x75d5be=-parseInt(_0x434072(0x12d))/0x1+parseInt(_0x434072(0x13e))/0x2+parseInt(_0x434072(0x12c))/0x3*(parseInt(_0x434072(0x156))/0x4)+parseInt(_0x434072(0x135))/0x5*(parseInt(_0x434072(0x13a))/0x6)+-parseInt(_0x434072(0x13d))/0x7+parseInt(_0x434072(0x154))/0x8+parseInt(_0x434072(0x144))/0x9;if(_0x75d5be===_0x4556ae)break;else _0x12ac58['push'](_0x12ac58['shift']());}catch(_0x1d4bd6){_0x12ac58['push'](_0x12ac58['shift']());}}}(a9_0x424d,0xbad8b));var __createBinding=this&&this['__createBinding']||(Object[a9_0xe63782(0x14a)]?function(_0x2dc9e7,_0x31abff,_0x2185b9,_0x499480){var _0x298553=a9_0xe63782;if(_0x499480===undefined)_0x499480=_0x2185b9;var _0x37df91=Object[_0x298553(0x148)](_0x31abff,_0x2185b9);(!_0x37df91||(_0x298553(0x133)in _0x37df91?!_0x31abff[_0x298553(0x132)]:_0x37df91[_0x298553(0x147)]||_0x37df91[_0x298553(0x145)]))&&(_0x37df91={'enumerable':!![],'get':function(){return _0x31abff[_0x2185b9];}}),Object['defineProperty'](_0x2dc9e7,_0x499480,_0x37df91);}:function(_0x2e7ec3,_0x17d16a,_0x4a33c9,_0x3253cb){if(_0x3253cb===undefined)_0x3253cb=_0x4a33c9;_0x2e7ec3[_0x3253cb]=_0x17d16a[_0x4a33c9];}),__exportStar=this&&this[a9_0xe63782(0x14d)]||function(_0x5d4f0f,_0x55b597){var _0x2682bc=a9_0xe63782;for(var _0x49c5a8 in _0x5d4f0f)if(_0x49c5a8!==_0x2682bc(0x14e)&&!Object[_0x2682bc(0x130)][_0x2682bc(0x153)][_0x2682bc(0x136)](_0x55b597,_0x49c5a8))__createBinding(_0x55b597,_0x5d4f0f,_0x49c5a8);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a9_0xe63782(0x146)]=exports['Scope']=exports[a9_0xe63782(0x13f)]=exports[a9_0xe63782(0x152)]=exports[a9_0xe63782(0x12f)]=exports[a9_0xe63782(0x12e)]=exports['Search']=exports[a9_0xe63782(0x149)]=exports['ProvideRepository']=exports['ProvideEntity']=exports['InjectRepository']=exports[a9_0xe63782(0x13c)]=exports[a9_0xe63782(0x137)]=exports[a9_0xe63782(0x14f)]=void 0x0,__exportStar(require('typeorm'),exports),__exportStar(require(a9_0xe63782(0x140)),exports);var Repository_1=require(a9_0xe63782(0x155));Object['defineProperty'](exports,'Repository',{'enumerable':!![],'get':function(){var _0x56b4b9=a9_0xe63782;return Repository_1[_0x56b4b9(0x14f)];}});function a9_0x1b82(_0x217ca4,_0x2498d2){var _0x424d52=a9_0x424d();return a9_0x1b82=function(_0x1b8259,_0x41399a){_0x1b8259=_0x1b8259-0x12c;var _0x6bedd1=_0x424d52[_0x1b8259];return _0x6bedd1;},a9_0x1b82(_0x217ca4,_0x2498d2);}var VirtualColumn_1=require(a9_0xe63782(0x13b));Object[a9_0xe63782(0x142)](exports,a9_0xe63782(0x137),{'enumerable':!![],'get':function(){var _0x423f5b=a9_0xe63782;return VirtualColumn_1[_0x423f5b(0x137)];}});var InjectEntity_1=require(a9_0xe63782(0x138));Object[a9_0xe63782(0x142)](exports,a9_0xe63782(0x13c),{'enumerable':!![],'get':function(){var _0x25f66e=a9_0xe63782;return InjectEntity_1[_0x25f66e(0x13c)];}});var InjectRepository_1=require(a9_0xe63782(0x143));Object['defineProperty'](exports,a9_0xe63782(0x14c),{'enumerable':!![],'get':function(){var _0x50f886=a9_0xe63782;return InjectRepository_1[_0x50f886(0x14c)];}});var ProvideEntity_1=require('./decorator/ProvideEntity');Object['defineProperty'](exports,a9_0xe63782(0x141),{'enumerable':!![],'get':function(){var _0x2899ce=a9_0xe63782;return ProvideEntity_1[_0x2899ce(0x141)];}});var ProvideRepository_1=require(a9_0xe63782(0x131));Object[a9_0xe63782(0x142)](exports,a9_0xe63782(0x14b),{'enumerable':!![],'get':function(){return ProvideRepository_1['ProvideRepository'];}});var ProvideSearch_1=require(a9_0xe63782(0x139));Object[a9_0xe63782(0x142)](exports,a9_0xe63782(0x149),{'enumerable':!![],'get':function(){var _0x52bcbb=a9_0xe63782;return ProvideSearch_1[_0x52bcbb(0x149)];}}),Object[a9_0xe63782(0x142)](exports,'Search',{'enumerable':!![],'get':function(){var _0x10e467=a9_0xe63782;return ProvideSearch_1[_0x10e467(0x157)];}});function a9_0x424d(){var _0x495ae9=['prototype','./decorator/ProvideRepository','__esModule','get','./configuration','2615fhurhY','call','VirtualColumn','./decorator/InjectEntity','./decorator/ProvideSearch','438VbckrS','./decorator/VirtualColumn','InjectEntity','2037084bUeYBk','1026370jNAdTn','Inject','./interface','ProvideEntity','defineProperty','./decorator/InjectRepository','12375972DHLgIK','configurable','ScopeEnum','writable','getOwnPropertyDescriptor','ProvideSearch','create','ProvideRepository','InjectRepository','__exportStar','default','Repository','./helper/getDataSourceEntity','Scope','Provide','hasOwnProperty','581264rSbtxA','./definition/Repository','31096WlPYpI','Search','105XgUsgE','1214885DGuGtJ','getDataSourceEntity','Configuration'];a9_0x424d=function(){return _0x495ae9;};return a9_0x424d();}var getDataSourceEntity_1=require(a9_0xe63782(0x150));Object['defineProperty'](exports,a9_0xe63782(0x12e),{'enumerable':!![],'get':function(){var _0x14fc56=a9_0xe63782;return getDataSourceEntity_1[_0x14fc56(0x12e)];}});var configuration_1=require(a9_0xe63782(0x134));Object[a9_0xe63782(0x142)](exports,a9_0xe63782(0x12f),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require('@midwayjs/core');Object[a9_0xe63782(0x142)](exports,a9_0xe63782(0x152),{'enumerable':!![],'get':function(){var _0x1defc3=a9_0xe63782;return core_1[_0x1defc3(0x152)];}}),Object[a9_0xe63782(0x142)](exports,'Inject',{'enumerable':!![],'get':function(){var _0x1eff70=a9_0xe63782;return core_1[_0x1eff70(0x13f)];}}),Object[a9_0xe63782(0x142)](exports,a9_0xe63782(0x151),{'enumerable':!![],'get':function(){var _0x21e8b1=a9_0xe63782;return core_1[_0x21e8b1(0x151)];}}),Object['defineProperty'](exports,a9_0xe63782(0x146),{'enumerable':!![],'get':function(){var _0x15aebb=a9_0xe63782;return core_1[_0x15aebb(0x146)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a10_0x40bf11=a10_0x580f;(function(_0x292da7,_0x41460a){const _0x2b21ad=a10_0x580f,_0x50603f=_0x292da7();while(!![]){try{const _0x4af00c=parseInt(_0x2b21ad(0x160))/0x1+-parseInt(_0x2b21ad(0x16b))/0x2+parseInt(_0x2b21ad(0x164))/0x3*(-parseInt(_0x2b21ad(0x138))/0x4)+-parseInt(_0x2b21ad(0x166))/0x5*(parseInt(_0x2b21ad(0x139))/0x6)+-parseInt(_0x2b21ad(0x163))/0x7*(-parseInt(_0x2b21ad(0x156))/0x8)+parseInt(_0x2b21ad(0x146))/0x9*(parseInt(_0x2b21ad(0x159))/0xa)+parseInt(_0x2b21ad(0x15d))/0xb;if(_0x4af00c===_0x41460a)break;else _0x50603f['push'](_0x50603f['shift']());}catch(_0x2ffe92){_0x50603f['push'](_0x50603f['shift']());}}}(a10_0x825c,0xbed23));function a10_0x580f(_0x13c82f,_0x377a9a){const _0x825c12=a10_0x825c();return a10_0x580f=function(_0x580f6d,_0x505940){_0x580f6d=_0x580f6d-0x136;let _0x3d3e52=_0x825c12[_0x580f6d];return _0x3d3e52;},a10_0x580f(_0x13c82f,_0x377a9a);}Object[a10_0x40bf11(0x151)](exports,a10_0x40bf11(0x14c),{'value':!![]}),exports[a10_0x40bf11(0x13e)]=exports['ENTITY_VIRTUAL_COLUMN_KEY']=exports[a10_0x40bf11(0x15b)]=exports[a10_0x40bf11(0x14e)]=exports['REPOSITORY_KEY']=exports[a10_0x40bf11(0x161)]=exports[a10_0x40bf11(0x15c)]=exports[a10_0x40bf11(0x152)]=void 0x0;const core_1=require('@midwayjs/core'),typeorm_1=require(a10_0x40bf11(0x143)),typeorm_2=require(a10_0x40bf11(0x143));exports[a10_0x40bf11(0x152)]='decorator:anncic-api:typeorm:entify',exports[a10_0x40bf11(0x15c)]=a10_0x40bf11(0x162),exports['ENTIFY_MODULE_SOURCE']=a10_0x40bf11(0x144),exports['REPOSITORY_KEY']=a10_0x40bf11(0x14a),exports[a10_0x40bf11(0x14e)]=a10_0x40bf11(0x140),exports[a10_0x40bf11(0x15b)]=a10_0x40bf11(0x148),exports['ENTITY_VIRTUAL_COLUMN_KEY']=a10_0x40bf11(0x13b);class SearchPaginate{}exports[a10_0x40bf11(0x13e)]=SearchPaginate,typeorm_2[a10_0x40bf11(0x136)][a10_0x40bf11(0x13a)][a10_0x40bf11(0x15e)]=async function(_0x15d17c,_0x45a3c4){const _0x261838=a10_0x40bf11;return this[_0x261838(0x157)](_0x15d17c,_0x45a3c4)[_0x261838(0x147)](_0x4ed05a=>{const _0x2c1f70=_0x261838;if(_0x4ed05a===null||_0x4ed05a===undefined)return Promise['reject'](new typeorm_2[(_0x2c1f70(0x155))](_0x15d17c,_0x45a3c4));return Promise['resolve'](_0x4ed05a);});},typeorm_2[a10_0x40bf11(0x136)][a10_0x40bf11(0x13a)]['findOneByOrFail']=async function(_0x3e79eb,_0x58f056){const _0x4ceab2=a10_0x40bf11;return this[_0x4ceab2(0x141)](_0x3e79eb,_0x58f056)[_0x4ceab2(0x147)](_0x4a97c4=>{const _0xd3856b=_0x4ceab2;if(_0x4a97c4===null||_0x4a97c4===undefined)return Promise[_0xd3856b(0x16c)](new typeorm_2['EntityNotFoundError'](_0x3e79eb,_0x58f056));return Promise[_0xd3856b(0x153)](_0x4a97c4);});},typeorm_1[a10_0x40bf11(0x16a)][a10_0x40bf11(0x13a)][a10_0x40bf11(0x16d)]=async function(){const _0x35f396=a10_0x40bf11;if(this['expressionMap']['lockMode']===_0x35f396(0x167))throw new typeorm_1[(_0x35f396(0x15a))]();const {entities:_0x126ad6,raw:_0x293c08}=await this[_0x35f396(0x149)]();return _0x126ad6[_0x35f396(0x15f)]((_0x213c05,_0xb2b1d0)=>{const _0x34997c=_0x35f396;var _0x41f4f4;const _0x40300b=(0x0,core_1[_0x34997c(0x142)])(exports[_0x34997c(0x145)],_0x213c05)||{};for(const _0x3579ec in _0x40300b){_0x293c08[_0xb2b1d0]&&_0x293c08[_0xb2b1d0][_0x34997c(0x16e)](_0x3579ec)&&(_0x213c05[_0x3579ec]=_0x293c08[_0xb2b1d0][_0x3579ec]||((_0x41f4f4=_0x40300b[_0x3579ec])===null||_0x41f4f4===void 0x0?void 0x0:_0x41f4f4['default'])||'');}return _0x213c05;});},typeorm_1[a10_0x40bf11(0x16a)][a10_0x40bf11(0x13a)][a10_0x40bf11(0x13c)]=async function(){const _0x373004=a10_0x40bf11;return[await this[_0x373004(0x16d)](),await this[_0x373004(0x14f)]()];},typeorm_1[a10_0x40bf11(0x16a)][a10_0x40bf11(0x13a)]['getOne']=async function(){const _0x269535=a10_0x40bf11;var _0x5c3e76;const {entities:_0x1faade,raw:_0x5483d5}=await this['getRawAndEntities']();if(_0x1faade[0x0]&&this[_0x269535(0x154)][_0x269535(0x150)]===_0x269535(0x167)&&this[_0x269535(0x154)][_0x269535(0x169)]){const _0x18a881=this[_0x269535(0x154)][_0x269535(0x13d)][_0x269535(0x13f)];if(this['expressionMap'][_0x269535(0x169)]instanceof Date){const _0x534f1e=_0x18a881['updateDateColumn'][_0x269535(0x165)](_0x1faade[0x0]);if(_0x534f1e[_0x269535(0x168)]()!==this['expressionMap']['lockVersion'][_0x269535(0x168)]())throw new typeorm_1[(_0x269535(0x158))](_0x18a881['name'],this['expressionMap'][_0x269535(0x169)],_0x534f1e);}else{const _0x4c2694=_0x18a881[_0x269535(0x14d)][_0x269535(0x165)](_0x1faade[0x0]);if(_0x4c2694!==this[_0x269535(0x154)]['lockVersion'])throw new typeorm_1[(_0x269535(0x158))](_0x18a881[_0x269535(0x14b)],this[_0x269535(0x154)][_0x269535(0x169)],_0x4c2694);}}if(_0x1faade[0x0]&&_0x5483d5[0x0]){const _0x39e9f7=(0x0,core_1[_0x269535(0x142)])(exports['ENTITY_VIRTUAL_COLUMN_KEY'],_0x1faade[0x0]);for(const _0xbcf746 in _0x39e9f7){_0x5483d5[0x0]['hasOwnProperty'](_0xbcf746)&&(_0x1faade[0x0][_0xbcf746]=_0x5483d5[0x0][_0xbcf746]||((_0x5c3e76=_0x39e9f7[_0xbcf746])===null||_0x5c3e76===void 0x0?void 0x0:_0x5c3e76[_0x269535(0x137)])||'');}}return _0x1faade[0x0]||null;};function a10_0x825c(){const _0x2921ba=['EntityNotFoundError','928856mxHqlE','findOne','OptimisticLockVersionMismatchError','278270TTZbng','OptimisticLockCanNotBeUsedError','MODEL_SEARCH_KEY','ENTIFY_MODULE','38002602AdbrLC','findOneOrFail','map','1161193EDvpWP','ENTIFY_MODULE_SOURCE','decorator:anncic-api:typeorm:entify:module','7MXdrrk','33pvZNht','getEntityValue','5dClXWM','optimistic','getTime','lockVersion','SelectQueryBuilder','2929466DlMeHj','reject','getMany','hasOwnProperty','EntityManager','default','515184rbWcUG','6580902fBvovh','prototype','decorator:anncic-api:typeorm:entity:virtual:column','getManyAndCount','mainAlias','SearchPaginate','metadata','decorator:anncic-api:typeorm:model','findOneBy','getClassMetadata','typeorm','decorator:anncic-api:typeorm:entify:module:source','ENTITY_VIRTUAL_COLUMN_KEY','9XksXkr','then','decorator:anncic-api:typeorm:model:search','getRawAndEntities','decorator:anncic-api:typeorm:repository','name','__esModule','versionColumn','MODEL_KEY','getCount','lockMode','defineProperty','ENTIFY_KEY','resolve','expressionMap'];a10_0x825c=function(){return _0x2921ba;};return a10_0x825c();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/typeorm",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
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": "612827d5d03f34f9a9339a6e8646070d74ad3c22"
|
|
26
26
|
}
|