@anncic-api/typeorm 1.3.1 → 1.3.3
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_0x5341e4=a0_0x587d;function a0_0x4120(){const _0x3b9094=['typeorm','TypeORMDataSourceManager','Repository','getDataSourceNameByModel','13946383srugvA','6739956sZlPzG','getOwnPropertyDescriptor','\x20is\x20not\x20ProvideRepository\x20Entify','object','4fJKriQ','TypeORMError','onReady','name','REPOSITORY_KEY','length','handlercache','40AAkcyq','design:type','./definition/Repository','169642jbjCPL','@midwayjs/typeorm','function','defineProperty','Inject','getClassMetadata','getRepository','MidwayDecoratorService','middlewareError','production','config','__metadata','body','registerPropertyHandler','10ULdnxn','CustomConfiguration','@midwayjs/core','./interface','getEnv','__esModule','decorate','push','数据不存在','message','MidwayConfigService','anncic-api-typeorm\x20Error\x20','Configuration','prototype','1434811JjsZsS','target','76674iAzOty','1821993UzYney','2179584nYMaDb','decorator','warn','445VhfaSC','metadata'];a0_0x4120=function(){return _0x3b9094;};return a0_0x4120();}function a0_0x587d(_0xcd0052,_0x479be0){const _0x4120c2=a0_0x4120();return a0_0x587d=function(_0x587dc9,_0x4aa91c){_0x587dc9=_0x587dc9-0x1e4;let _0x11f242=_0x4120c2[_0x587dc9];return _0x11f242;},a0_0x587d(_0xcd0052,_0x479be0);}(function(_0x2f430a,_0x32418b){const _0x5f1e4b=a0_0x587d,_0x39660e=_0x2f430a();while(!![]){try{const _0x4c82ab=-parseInt(_0x5f1e4b(0x1ea))/0x1+-parseInt(_0x5f1e4b(0x218))/0x2*(parseInt(_0x5f1e4b(0x209))/0x3)+-parseInt(_0x5f1e4b(0x20a))/0x4+-parseInt(_0x5f1e4b(0x20d))/0x5*(-parseInt(_0x5f1e4b(0x208))/0x6)+parseInt(_0x5f1e4b(0x206))/0x7*(parseInt(_0x5f1e4b(0x1e7))/0x8)+-parseInt(_0x5f1e4b(0x214))/0x9+parseInt(_0x5f1e4b(0x1f8))/0xa*(parseInt(_0x5f1e4b(0x213))/0xb);if(_0x4c82ab===_0x32418b)break;else _0x39660e['push'](_0x39660e['shift']());}catch(_0xde1a0b){_0x39660e['push'](_0x39660e['shift']());}}}(a0_0x4120,0xb795d));var __decorate=this&&this['__decorate']||function(_0x42bf05,_0x446e6f,_0x3f9e61,_0x2d37e4){const _0x4dc440=a0_0x587d;var _0xcd3f56=arguments['length'],_0x41626b=_0xcd3f56<0x3?_0x446e6f:_0x2d37e4===null?_0x2d37e4=Object[_0x4dc440(0x215)](_0x446e6f,_0x3f9e61):_0x2d37e4,_0x2b2c70;if(typeof Reflect==='object'&&typeof Reflect[_0x4dc440(0x1fe)]===_0x4dc440(0x1ec))_0x41626b=Reflect[_0x4dc440(0x1fe)](_0x42bf05,_0x446e6f,_0x3f9e61,_0x2d37e4);else{for(var _0x2a3be7=_0x42bf05[_0x4dc440(0x1e5)]-0x1;_0x2a3be7>=0x0;_0x2a3be7--)if(_0x2b2c70=_0x42bf05[_0x2a3be7])_0x41626b=(_0xcd3f56<0x3?_0x2b2c70(_0x41626b):_0xcd3f56>0x3?_0x2b2c70(_0x446e6f,_0x3f9e61,_0x41626b):_0x2b2c70(_0x446e6f,_0x3f9e61))||_0x41626b;}return _0xcd3f56>0x3&&_0x41626b&&Object['defineProperty'](_0x446e6f,_0x3f9e61,_0x41626b),_0x41626b;},__metadata=this&&this[a0_0x5341e4(0x1f5)]||function(_0x50f11a,_0x163238){const _0xcb686a=a0_0x5341e4;if(typeof Reflect===_0xcb686a(0x217)&&typeof Reflect[_0xcb686a(0x20e)]==='function')return Reflect[_0xcb686a(0x20e)](_0x50f11a,_0x163238);};Object[a0_0x5341e4(0x1ed)](exports,a0_0x5341e4(0x1fd),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const typeorm_1=require(a0_0x5341e4(0x1eb)),core_1=require(a0_0x5341e4(0x1fa)),core_2=require('@midwayjs/core'),typeorm_2=require(a0_0x5341e4(0x20f)),Repository_1=require(a0_0x5341e4(0x1e9)),interface_1=require(a0_0x5341e4(0x1fb)),typeorm=require(a0_0x5341e4(0x1eb));let CustomConfiguration=class CustomConfiguration{constructor(){const _0x5a5501=a0_0x5341e4;this[_0x5a5501(0x1e6)]=[];}async[a0_0x5341e4(0x21a)](_0x685a14,_0x3e635b){const _0x345858=a0_0x5341e4,_0x28c2b3=await _0x685a14['getAsync'](typeorm_1[_0x345858(0x210)]);this['decorator'][_0x345858(0x1f7)](interface_1['ENTIFY_KEY'],(_0x17c943,{entity:_0xd08935,connection:_0x489a30})=>{const _0x19b798=_0x345858;let _0x2fd3fe=this['handlercache']['find'](_0x3e9823=>_0x3e9823[_0x19b798(0x207)]===_0xd08935);return!_0x2fd3fe&&(_0x2fd3fe=new Repository_1[(_0x19b798(0x211))](_0x3e635b,_0x28c2b3['getDataSource'](_0x489a30||_0x28c2b3[_0x19b798(0x212)](_0xd08935))[_0x19b798(0x1f0)](_0xd08935)),this[_0x19b798(0x1e6)][_0x19b798(0x1ff)](_0x2fd3fe)),_0x2fd3fe;}),this[_0x345858(0x20b)][_0x345858(0x1f7)](interface_1[_0x345858(0x1e4)],(_0x53217b,{repository:_0x102faa,connection:_0x5b5107})=>{const _0xa57ad2=_0x345858,{entity:_0x396132}=(0x0,core_1[_0xa57ad2(0x1ef)])(interface_1[_0xa57ad2(0x1e4)],_0x102faa)||{};if(!_0x396132)throw new Error(_0xa57ad2(0x203)+((_0x102faa===null||_0x102faa===void 0x0?void 0x0:_0x102faa[_0xa57ad2(0x21b)])||_0x102faa)+_0xa57ad2(0x216));let _0xdd9715=this[_0xa57ad2(0x1e6)]['find'](_0x5016b0=>_0x5016b0===_0x102faa);return!_0xdd9715&&(_0xdd9715=new _0x102faa(_0x3e635b,_0x28c2b3['getDataSource'](_0x5b5107||_0x28c2b3[_0xa57ad2(0x212)](_0x396132))['getRepository'](_0x396132)),this[_0xa57ad2(0x1e6)][_0xa57ad2(0x1ff)](_0xdd9715)),_0xdd9715;}),_0x3e635b['useMiddleware'](this[_0x345858(0x1f2)](_0x3e635b));}['middlewareError'](_0x38e40e){return async(_0x4eb540,_0x232d7f)=>{const _0x95d20c=a0_0x587d;try{await _0x232d7f();}catch(_0x5b69f3){if(_0x5b69f3 instanceof typeorm_2[_0x95d20c(0x219)])_0x5b69f3 instanceof typeorm_2['EntityNotFoundError']?_0x4eb540['body']={'code':0x194,'msg':_0x95d20c(0x200)}:(_0x4eb540[_0x95d20c(0x1f6)]={'code':0x1f4,'msg':_0x5b69f3[_0x95d20c(0x201)]},_0x38e40e[_0x95d20c(0x1fc)]()!=_0x95d20c(0x1f3)&&console[_0x95d20c(0x20c)](_0x5b69f3));else throw _0x5b69f3;}};}};__decorate([(0x0,core_1[a0_0x5341e4(0x1ee)])(),__metadata(a0_0x5341e4(0x1e8),core_2[a0_0x5341e4(0x202)])],CustomConfiguration['prototype'],a0_0x5341e4(0x1f4),void 0x0),__decorate([(0x0,core_1[a0_0x5341e4(0x1ee)])(),__metadata(a0_0x5341e4(0x1e8),core_2[a0_0x5341e4(0x1f1)])],CustomConfiguration[a0_0x5341e4(0x205)],'decorator',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x5341e4(0x204)])({'imports':[typeorm],'conflictCheck':![],'namespace':'anncic-api:typeorm'})],CustomConfiguration),exports[a0_0x5341e4(0x1f9)]=CustomConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0xeeacac=a1_0x5f41;(function(_0x3988d7,_0x547f03){const _0x1f786e=a1_0x5f41,_0x1f463d=_0x3988d7();while(!![]){try{const _0x497131=parseInt(_0x1f786e(0x13a))/0x1+-parseInt(_0x1f786e(0x13c))/0x2+parseInt(_0x1f786e(0x13b))/0x3+parseInt(_0x1f786e(0x132))/0x4+parseInt(_0x1f786e(0x135))/0x5*(-parseInt(_0x1f786e(0x133))/0x6)+parseInt(_0x1f786e(0x131))/0x7+-parseInt(_0x1f786e(0x137))/0x8*(parseInt(_0x1f786e(0x12f))/0x9);if(_0x497131===_0x547f03)break;else _0x1f463d['push'](_0x1f463d['shift']());}catch(_0x4007c7){_0x1f463d['push'](_0x1f463d['shift']());}}}(a1_0x3ecb,0x2f70f));function a1_0x3ecb(){const _0x5c7524=['ENTIFY_KEY','2658957wtNhik','800248sVllgE','1765902fYHHYi','@midwayjs/core','5xAkSps','defineProperty','88NcSkKU','createCustomPropertyDecorator','../interface','332021EHZBBY','893544tTyvgu','479110iFaHmX','InjectEntity','__esModule','394029NaIVuV'];a1_0x3ecb=function(){return _0x5c7524;};return a1_0x3ecb();}Object[a1_0xeeacac(0x136)](exports,a1_0xeeacac(0x13e),{'value':!![]}),exports[a1_0xeeacac(0x13d)]=void 0x0;function a1_0x5f41(_0x2dba9d,_0x677585){const _0x3ecba7=a1_0x3ecb();return a1_0x5f41=function(_0x5f4178,_0x5ab231){_0x5f4178=_0x5f4178-0x12f;let _0x4fd740=_0x3ecba7[_0x5f4178];return _0x4fd740;},a1_0x5f41(_0x2dba9d,_0x677585);}const core_1=require(a1_0xeeacac(0x134)),interface_1=require(a1_0xeeacac(0x139));function InjectEntity(_0x2e0d23,_0x3dd314='default'){const _0x1af0c5=a1_0xeeacac;return(0x0,core_1[_0x1af0c5(0x138)])(interface_1[_0x1af0c5(0x130)],{'entity':_0x2e0d23,'connection':_0x3dd314});}exports[a1_0xeeacac(0x13d)]=InjectEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a2_0xc42f(_0x458243,_0x5ecc02){const _0x388a35=a2_0x388a();return a2_0xc42f=function(_0xc42f70,_0x44b423){_0xc42f70=_0xc42f70-0x184;let _0x34dd97=_0x388a35[_0xc42f70];return _0x34dd97;},a2_0xc42f(_0x458243,_0x5ecc02);}const a2_0x446010=a2_0xc42f;(function(_0x6fc1a9,_0x5dda9c){const _0x33f5d0=a2_0xc42f,_0x34e88d=_0x6fc1a9();while(!![]){try{const _0x3ce9cd=parseInt(_0x33f5d0(0x187))/0x1*(-parseInt(_0x33f5d0(0x188))/0x2)+-parseInt(_0x33f5d0(0x189))/0x3*(parseInt(_0x33f5d0(0x185))/0x4)+-parseInt(_0x33f5d0(0x18d))/0x5*(-parseInt(_0x33f5d0(0x18f))/0x6)+parseInt(_0x33f5d0(0x191))/0x7+parseInt(_0x33f5d0(0x193))/0x8+parseInt(_0x33f5d0(0x192))/0x9*(parseInt(_0x33f5d0(0x18c))/0xa)+parseInt(_0x33f5d0(0x184))/0xb;if(_0x3ce9cd===_0x5dda9c)break;else _0x34e88d['push'](_0x34e88d['shift']());}catch(_0x327f67){_0x34e88d['push'](_0x34e88d['shift']());}}}(a2_0x388a,0xd74ce));function a2_0x388a(){const _0xa8d1ac=['1681150LpiWwc','InjectRepository','12HZKLCZ','createCustomPropertyDecorator','1621669FoFCFF','6793074TYVrmQ','5838296FTxDeg','13088306pqlSOC','12008BIjnpc','default','1vtJNYT','2559464vOagbI','1416poRite','../interface','__esModule','10LwAZRH'];a2_0x388a=function(){return _0xa8d1ac;};return a2_0x388a();}Object['defineProperty'](exports,a2_0x446010(0x18b),{'value':!![]}),exports[a2_0x446010(0x18e)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a2_0x446010(0x18a));function InjectRepository(_0x440213,_0x2d7da2=a2_0x446010(0x186)){const _0x162d62=a2_0x446010;return(0x0,core_1[_0x162d62(0x190)])(interface_1['REPOSITORY_KEY'],{'repository':_0x440213,'connection':_0x2d7da2});}exports['InjectRepository']=InjectRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a3_0x1e0ce3=a3_0x2ee7;function a3_0x4ad0(){const _0x1a4e0b=['2474140OUUSXW','4736185PYgevm','ENTIFY_MODULE','__esModule','520629JkykNE','72569QkXgPf','ProvideEntity','tableName','dataSource','3180220ufkBFg','1kDSvZr','251862xikPja','defineProperty','../interface','578828tUHswY','push','name','944mWbXbD','9EWaBqX','isArray','@midwayjs/core','ENTIFY_MODULE_SOURCE','saveClassMetadata','default'];a3_0x4ad0=function(){return _0x1a4e0b;};return a3_0x4ad0();}(function(_0x5e8f87,_0x29aa7f){const _0x31e845=a3_0x2ee7,_0x459791=_0x5e8f87();while(!![]){try{const _0x572da6=parseInt(_0x31e845(0xae))/0x1*(-parseInt(_0x31e845(0xb2))/0x2)+parseInt(_0x31e845(0xa8))/0x3+parseInt(_0x31e845(0xad))/0x4+-parseInt(_0x31e845(0xbd))/0x5+-parseInt(_0x31e845(0xaf))/0x6+-parseInt(_0x31e845(0xa9))/0x7*(-parseInt(_0x31e845(0xb5))/0x8)+-parseInt(_0x31e845(0xb6))/0x9*(parseInt(_0x31e845(0xbc))/0xa);if(_0x572da6===_0x29aa7f)break;else _0x459791['push'](_0x459791['shift']());}catch(_0x11784b){_0x459791['push'](_0x459791['shift']());}}}(a3_0x4ad0,0xa2906));Object[a3_0x1e0ce3(0xb0)](exports,a3_0x1e0ce3(0xbf),{'value':!![]}),exports[a3_0x1e0ce3(0xaa)]=void 0x0;function a3_0x2ee7(_0x397531,_0x20ec54){const _0x4ad02f=a3_0x4ad0();return a3_0x2ee7=function(_0x2ee7fc,_0x55fc38){_0x2ee7fc=_0x2ee7fc-0xa8;let _0x15ba9b=_0x4ad02f[_0x2ee7fc];return _0x15ba9b;},a3_0x2ee7(_0x397531,_0x20ec54);}const typeorm_1=require('typeorm'),core_1=require(a3_0x1e0ce3(0xb8)),interface_1=require(a3_0x1e0ce3(0xb1));function ProvideEntity(_0x334592,_0x5d421f={}){return _0x2396b7=>{const _0x3187b7=a3_0x2ee7;_0x5d421f[_0x3187b7(0xb4)]=_0x334592[_0x3187b7(0xab)];const _0x336132=[];if(!(_0x334592===null||_0x334592===void 0x0?void 0x0:_0x334592[_0x3187b7(0xac)]))_0x336132[_0x3187b7(0xb3)](_0x3187b7(0xbb));else{if(typeof(_0x334592===null||_0x334592===void 0x0?void 0x0:_0x334592[_0x3187b7(0xac)])=='string')_0x336132[_0x3187b7(0xb3)](_0x334592===null||_0x334592===void 0x0?void 0x0:_0x334592[_0x3187b7(0xac)]);else{if(Array[_0x3187b7(0xb7)](_0x334592===null||_0x334592===void 0x0?void 0x0:_0x334592['dataSource']))for(let _0x275b0b of _0x334592[_0x3187b7(0xac)]||[_0x3187b7(0xbb)]){_0x336132[_0x3187b7(0xb3)](_0x275b0b);}}}(0x0,core_1['saveModule'])(interface_1[_0x3187b7(0xbe)],_0x2396b7),(0x0,core_1[_0x3187b7(0xba)])(interface_1[_0x3187b7(0xb9)],{'tableName':_0x334592['tableName'],'dataSource':_0x336132},_0x2396b7),(0x0,typeorm_1['Entity'])(_0x334592[_0x3187b7(0xab)],_0x5d421f)(_0x2396b7);};}exports[a3_0x1e0ce3(0xaa)]=ProvideEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a4_0x346e85=a4_0x4caf;(function(_0x387e4b,_0xe0795e){const _0x41e425=a4_0x4caf,_0x4a50c5=_0x387e4b();while(!![]){try{const _0x347402=parseInt(_0x41e425(0xf9))/0x1*(-parseInt(_0x41e425(0xf2))/0x2)+parseInt(_0x41e425(0xf7))/0x3+-parseInt(_0x41e425(0xfa))/0x4+-parseInt(_0x41e425(0xf8))/0x5+parseInt(_0x41e425(0xf3))/0x6+-parseInt(_0x41e425(0xf5))/0x7+parseInt(_0x41e425(0xf0))/0x8*(parseInt(_0x41e425(0xef))/0x9);if(_0x347402===_0xe0795e)break;else _0x4a50c5['push'](_0x4a50c5['shift']());}catch(_0x172914){_0x4a50c5['push'](_0x4a50c5['shift']());}}}(a4_0x214f,0xf1f76));function a4_0x214f(){const _0x2b6de6=['8605625ihZZqi','1mkqXSh','4323292xNvuyC','saveClassMetadata','9702dxufXg','27256UjuDiS','ProvideRepository','1626214cdivEK','7008432UdppxP','Provide','6946534dwslHp','REPOSITORY_KEY','2273079qrGpnW'];a4_0x214f=function(){return _0x2b6de6;};return a4_0x214f();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a4_0x346e85(0xf1)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require('../interface');function a4_0x4caf(_0x4a6c4d,_0xea74a4){const _0x214fa7=a4_0x214f();return a4_0x4caf=function(_0x4cafb9,_0xb9b5ac){_0x4cafb9=_0x4cafb9-0xef;let _0x35d3ac=_0x214fa7[_0x4cafb9];return _0x35d3ac;},a4_0x4caf(_0x4a6c4d,_0xea74a4);}function ProvideRepository(_0x1e3079){return _0x32215b=>{const _0x5eba89=a4_0x4caf;(0x0,core_1['Scope'])(core_1['ScopeEnum']['Request'],{'allowDowngrade':!![]})(_0x32215b),((0x0,core_1[_0x5eba89(0xf4)])()(_0x32215b),(0x0,core_1[_0x5eba89(0xfb)])(interface_1[_0x5eba89(0xf6)],{'entity':_0x1e3079},_0x32215b));};}exports[a4_0x346e85(0xf1)]=ProvideRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x47cf7f=a5_0x4177;(function(_0x98767,_0x568d57){const _0x585b9e=a5_0x4177,_0x1ebdfe=_0x98767();while(!![]){try{const _0x113113=-parseInt(_0x585b9e(0x94))/0x1*(-parseInt(_0x585b9e(0x97))/0x2)+-parseInt(_0x585b9e(0x8b))/0x3*(-parseInt(_0x585b9e(0x8a))/0x4)+-parseInt(_0x585b9e(0x95))/0x5+-parseInt(_0x585b9e(0x91))/0x6+-parseInt(_0x585b9e(0x89))/0x7+parseInt(_0x585b9e(0x92))/0x8*(-parseInt(_0x585b9e(0x8e))/0x9)+parseInt(_0x585b9e(0x90))/0xa;if(_0x113113===_0x568d57)break;else _0x1ebdfe['push'](_0x1ebdfe['shift']());}catch(_0x52e558){_0x1ebdfe['push'](_0x1ebdfe['shift']());}}}(a5_0xec23,0xa9724));Object[a5_0x47cf7f(0x8d)](exports,'__esModule',{'value':!![]}),exports[a5_0x47cf7f(0x87)]=exports['ProvideSearch']=void 0x0;const core_1=require(a5_0x47cf7f(0x96)),interface_1=require('../interface');function ProvideSearch(_0x5b442b){return _0x3fe093=>{const _0x453904=a5_0x4177;(0x0,core_1['saveModule'])(interface_1[_0x453904(0x8c)],_0x3fe093),(0x0,core_1[_0x453904(0x8f)])(core_1['ScopeEnum'][_0x453904(0x93)])(_0x3fe093),(0x0,core_1[_0x453904(0x88)])(interface_1[_0x453904(0x8c)],_0x5b442b,_0x3fe093);};}exports['ProvideSearch']=ProvideSearch;function Search(_0xaa818c,_0x30b6c4){return(_0x472607,_0x494ce0,_0x5814d2)=>{(0x0,core_1['attachClassMetadata'])(interface_1['MODEL_SEARCH_KEY'],{'field':_0xaa818c,'comment':_0x30b6c4,'target':_0x472607,'methodName':_0x494ce0,'descriptor':_0x5814d2},_0x472607);};}function a5_0x4177(_0xa3d7e8,_0x534a57){const _0xec2307=a5_0xec23();return a5_0x4177=function(_0x417779,_0x4311a1){_0x417779=_0x417779-0x87;let _0x16f06c=_0xec2307[_0x417779];return _0x16f06c;},a5_0x4177(_0xa3d7e8,_0x534a57);}exports[a5_0x47cf7f(0x87)]=Search;function a5_0xec23(){const _0x512111=['461305YgvfPh','@midwayjs/core','1184906bOlMQZ','Search','attachClassMetadata','8776173VKipzX','19492hbPbfF','363glHCrW','MODEL_KEY','defineProperty','8602947IiJwBV','Scope','31951270tYRoJQ','8287668hsyidz','8mPqgIU','Singleton','1qAOcQI'];a5_0xec23=function(){return _0x512111;};return a5_0xec23();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a6_0xbaea4d=a6_0x237c;(function(_0x4be3ad,_0x108e44){const _0x3a8060=a6_0x237c,_0x3d1eb8=_0x4be3ad();while(!![]){try{const _0x11a432=-parseInt(_0x3a8060(0x1fa))/0x1+parseInt(_0x3a8060(0x1f1))/0x2+parseInt(_0x3a8060(0x1f3))/0x3+-parseInt(_0x3a8060(0x1f0))/0x4+parseInt(_0x3a8060(0x1f9))/0x5+parseInt(_0x3a8060(0x1f5))/0x6*(parseInt(_0x3a8060(0x1f6))/0x7)+-parseInt(_0x3a8060(0x1f7))/0x8;if(_0x11a432===_0x108e44)break;else _0x3d1eb8['push'](_0x3d1eb8['shift']());}catch(_0x487766){_0x3d1eb8['push'](_0x3d1eb8['shift']());}}}(a6_0x44d3,0x1f356));Object[a6_0xbaea4d(0x1ef)](exports,'__esModule',{'value':!![]}),exports[a6_0xbaea4d(0x1f2)]=void 0x0;function a6_0x237c(_0x5cecac,_0x4d309c){const _0x44d3d9=a6_0x44d3();return a6_0x237c=function(_0x237c59,_0x175b63){_0x237c59=_0x237c59-0x1ee;let _0x3eded3=_0x44d3d9[_0x237c59];return _0x3eded3;},a6_0x237c(_0x5cecac,_0x4d309c);}const core_1=require('@midwayjs/core'),interface_1=require('../interface');function VirtualColumn(_0x26c0cf,_0x2bcfed){return(_0x591c87,_0x12c2b1)=>{const _0x28465b=a6_0x237c,_0x291ba5=(0x0,core_1[_0x28465b(0x1f4)])(interface_1[_0x28465b(0x1ee)],_0x591c87)||{};_0x291ba5[_0x12c2b1]={'comment':_0x26c0cf,..._0x2bcfed},(0x0,core_1[_0x28465b(0x1f8)])(interface_1['ENTITY_VIRTUAL_COLUMN_KEY'],_0x291ba5,_0x591c87);};}function a6_0x44d3(){const _0x1087b7=['304320wEzUmG','saveClassMetadata','318570SgfIFd','131150kmwTRH','ENTITY_VIRTUAL_COLUMN_KEY','defineProperty','449056tgwEoL','88558pFdicn','VirtualColumn','624195urNyak','getClassMetadata','12iXcDWU','326291eBhGyP'];a6_0x44d3=function(){return _0x1087b7;};return a6_0x44d3();}exports[a6_0xbaea4d(0x1f2)]=VirtualColumn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x5aae12=a7_0x2eda;(function(_0x5940b9,_0x21a56f){const _0x188e78=a7_0x2eda,_0x33e56a=_0x5940b9();while(!![]){try{const _0x54058a=parseInt(_0x188e78(0x16a))/0x1*(parseInt(_0x188e78(0x167))/0x2)+-parseInt(_0x188e78(0x17d))/0x3+-parseInt(_0x188e78(0x14b))/0x4*(parseInt(_0x188e78(0x176))/0x5)+parseInt(_0x188e78(0x154))/0x6+-parseInt(_0x188e78(0x194))/0x7+-parseInt(_0x188e78(0x15a))/0x8+parseInt(_0x188e78(0x191))/0x9;if(_0x54058a===_0x21a56f)break;else _0x33e56a['push'](_0x33e56a['shift']());}catch(_0x1f87c1){_0x33e56a['push'](_0x33e56a['shift']());}}}(a7_0x1bef,0xb2072));Object[a7_0x5aae12(0x16f)](exports,a7_0x5aae12(0x185),{'value':!![]}),exports[a7_0x5aae12(0x179)]=void 0x0;const core_1=require(a7_0x5aae12(0x18c)),typeorm_1=require(a7_0x5aae12(0x18e)),interface_1=require(a7_0x5aae12(0x182));class Repository extends typeorm_1['Repository']{constructor(_0x8aaf80,_0x232dc9){const _0x5f586e=a7_0x5aae12;super(_0x232dc9[_0x5f586e(0x168)],_0x232dc9['manager'],_0x232dc9[_0x5f586e(0x18b)]),this[_0x5f586e(0x195)]=[];for(const _0x3125a1 of(0x0,core_1[_0x5f586e(0x18d)])(interface_1[_0x5f586e(0x162)],this['target'])||[]){const _0x56549a={'model':_0x3125a1,'searchs':[]};for(const _0xc3d6a of(0x0,core_1[_0x5f586e(0x18d)])(interface_1[_0x5f586e(0x18a)],_0x3125a1)||[]){_0x56549a['searchs']['push'](_0xc3d6a);}this[_0x5f586e(0x195)]['push'](_0x56549a);}this[_0x5f586e(0x17f)]=_0x8aaf80;}async[a7_0x5aae12(0x187)](_0x53d773,_0xda83d6,_0x3c80fd={}){const _0x54458c=a7_0x5aae12;var _0x381e46,_0x41731e,_0xbdc35e,_0x3b67af,_0x192e41,_0x1d7aa2;const _0x1e0358=this[_0x54458c(0x160)](undefined,_0x3c80fd===null||_0x3c80fd===void 0x0?void 0x0:_0x3c80fd[_0x54458c(0x18b)]),_0x5f3f5c=[];for(const _0x2cdad7 of this[_0x54458c(0x195)]){if((_0x2cdad7===null||_0x2cdad7===void 0x0?void 0x0:_0x2cdad7[_0x54458c(0x152)])&&((_0x381e46=_0x2cdad7===null||_0x2cdad7===void 0x0?void 0x0:_0x2cdad7['searchs'])===null||_0x381e46===void 0x0?void 0x0:_0x381e46[_0x54458c(0x15b)])>0x0){const _0x509d97=await this[_0x54458c(0x17f)][_0x54458c(0x156)]()[_0x54458c(0x178)](_0x2cdad7[_0x54458c(0x152)]);for(const _0x2ba575 of _0x2cdad7[_0x54458c(0x192)]){(_0x2ba575===null||_0x2ba575===void 0x0?void 0x0:_0x2ba575['field'])&&(_0x2ba575===null||_0x2ba575===void 0x0?void 0x0:_0x2ba575[_0x54458c(0x157)])&&typeof _0x509d97[_0x2ba575[_0x54458c(0x157)]]==_0x54458c(0x158)&&(typeof(_0x53d773===null||_0x53d773===void 0x0?void 0x0:_0x53d773[_0x2ba575[_0x54458c(0x14f)]])!=_0x54458c(0x193)&&!((_0x41731e=_0x53d773===null||_0x53d773===void 0x0?void 0x0:_0x53d773[_0x2ba575[_0x54458c(0x14f)]])===null||_0x41731e===void 0x0?void 0x0:_0x41731e[_0x54458c(0x175)](_0x54458c(0x14a)))&&(_0x5f3f5c[_0x54458c(0x174)](_0x2ba575[_0x54458c(0x14f)])==-0x1&&_0x5f3f5c[_0x54458c(0x14d)](_0x2ba575[_0x54458c(0x14f)]),await _0x509d97[_0x2ba575[_0x54458c(0x157)]][_0x54458c(0x186)](_0x509d97)(_0x1e0358,_0x53d773[_0x2ba575['field']],_0x53d773,_0xda83d6,_0x3c80fd===null||_0x3c80fd===void 0x0?void 0x0:_0x3c80fd[_0x54458c(0x18b)])));}}}for(const _0xae66 in _0x53d773){if(typeof _0x53d773[_0xae66]!='undefined'&&_0x5f3f5c[_0x54458c(0x174)](_0xae66)==-0x1){const _0x274c93=this[_0x54458c(0x189)][_0x54458c(0x17b)](_0xae66);if(_0x274c93){if((_0xbdc35e=_0x53d773===null||_0x53d773===void 0x0?void 0x0:_0x53d773[_0xae66])===null||_0xbdc35e===void 0x0?void 0x0:_0xbdc35e['hasOwnProperty'](_0x54458c(0x14a))){const _0x12eaf6=(_0x3b67af=_0x53d773[_0xae66])===null||_0x3b67af===void 0x0?void 0x0:_0x3b67af[_0x54458c(0x163)],_0x197dd6=(_0x192e41=_0x53d773[_0xae66])===null||_0x192e41===void 0x0?void 0x0:_0x192e41['operator'][_0x54458c(0x170)]()[_0x54458c(0x171)](),_0x56d71f=_0x54458c(0x172)+_0xae66+'_'+Math['ceil'](Math[_0x54458c(0x17a)]()*0xa)+Math['ceil'](Math['random']()*0xa)+Math[_0x54458c(0x14c)](Math[_0x54458c(0x17a)]()*0xa)+Math[_0x54458c(0x14c)](Math['random']()*0xa);if(['=','!=','<>','>','>=','<','<=',_0x54458c(0x149),_0x54458c(0x173)][_0x54458c(0x174)](_0x197dd6)!=-0x1)typeof _0x12eaf6!=_0x54458c(0x193)&&_0x1e0358[_0x54458c(0x18f)](_0x1e0358['alias']+'.'+_0xae66+'\x20'+_0x197dd6+'\x20:'+_0x56d71f,{[_0x56d71f]:_0x12eaf6});else{if(['IN',_0x54458c(0x15d)][_0x54458c(0x174)](_0x197dd6)!=-0x1){if(typeof _0x12eaf6!=_0x54458c(0x193)){const _0x154902=Array[_0x54458c(0x188)](_0x12eaf6)?_0x12eaf6:typeof _0x12eaf6=='string'?_0x12eaf6[_0x54458c(0x165)](','):[_0x12eaf6];_0x1e0358[_0x54458c(0x18f)](_0x1e0358[_0x54458c(0x153)]+'.'+_0xae66+'\x20'+_0x197dd6+'(:'+_0x56d71f+')',{[_0x56d71f]:_0x154902});}}else{if([_0x54458c(0x164),'NOT\x20FIND\x20IN\x20SET'][_0x54458c(0x174)](_0x197dd6)!=-0x1)typeof _0x12eaf6!=_0x54458c(0x193)&&_0x1e0358[_0x54458c(0x18f)](_0x197dd6+'(:'+_0x56d71f+','+_0x1e0358['alias']+'.'+_0xae66+')',{[_0x56d71f]:_0x12eaf6});else{if(['BETWEEN',_0x54458c(0x159)]['indexOf'](_0x197dd6)!=-0x1){if(typeof _0x12eaf6!='undefined'){const _0x4188da=Array[_0x54458c(0x188)](_0x12eaf6)?_0x12eaf6:typeof _0x12eaf6=='string'?_0x12eaf6['split'](','):[_0x12eaf6];_0x4188da['length']>0x1&&_0x1e0358[_0x54458c(0x18f)](_0x1e0358[_0x54458c(0x153)]+'.'+_0xae66+'\x20'+_0x197dd6+'\x20:'+_0x56d71f+_0x54458c(0x181)+_0x56d71f+'_2',{[''+_0x56d71f]:_0x4188da[0x0],[_0x56d71f+'_2']:_0x4188da[0x1]});}}else[_0x54458c(0x183),_0x54458c(0x15e)][_0x54458c(0x174)](_0x197dd6)!=-0x1&&_0x1e0358['andWhere'](_0x197dd6+'('+_0x1e0358[_0x54458c(0x153)]+'.'+_0xae66+')');}}}}else{if(_0x5f3f5c[_0x54458c(0x174)](_0xae66)==-0x1){const _0x5b4970=typeof _0x274c93[_0x54458c(0x16d)]==_0x54458c(0x158)?(_0x1d7aa2=_0x274c93===null||_0x274c93===void 0x0?void 0x0:_0x274c93['type'])===null||_0x1d7aa2===void 0x0?void 0x0:_0x1d7aa2['name']:_0x274c93[_0x54458c(0x16d)][_0x54458c(0x15c)]();_0x5b4970==_0x54458c(0x15f)?_0x1e0358[_0x54458c(0x18f)](_0x1e0358[_0x54458c(0x153)]+'.'+_0xae66+_0x54458c(0x161)+_0xae66,{[_0x54458c(0x172)+_0xae66]:'%'+_0x53d773[_0xae66]+'%'}):_0x1e0358['andWhere'](_0x1e0358[_0x54458c(0x153)]+'.'+_0xae66+'\x20=\x20:_auto_'+_0xae66,{[_0x54458c(0x172)+_0xae66]:_0x53d773[_0xae66]});}}}}}(_0xda83d6===null||_0xda83d6===void 0x0?void 0x0:_0xda83d6['_size'])&&_0x1e0358[_0x54458c(0x166)](Math['abs'](_0xda83d6[_0x54458c(0x177)]));(_0xda83d6===null||_0xda83d6===void 0x0?void 0x0:_0xda83d6[_0x54458c(0x151)])&&(_0xda83d6===null||_0xda83d6===void 0x0?void 0x0:_0xda83d6[_0x54458c(0x177)])&&_0x1e0358['skip']((Math['abs'](_0xda83d6['_page'])-0x1)*Math[_0x54458c(0x190)](_0xda83d6[_0x54458c(0x177)]));if(_0xda83d6===null||_0xda83d6===void 0x0?void 0x0:_0xda83d6[_0x54458c(0x148)]){if(_0xda83d6[_0x54458c(0x148)][_0x54458c(0x174)]('.')!==-0x1)_0x1e0358[_0x54458c(0x155)](''+_0xda83d6[_0x54458c(0x148)],(_0xda83d6===null||_0xda83d6===void 0x0?void 0x0:_0xda83d6[_0x54458c(0x17e)])?_0x54458c(0x16c):'DESC');else _0x5f3f5c[_0x54458c(0x174)](_0xda83d6['_order'])==-0x1&&(this[_0x54458c(0x189)][_0x54458c(0x17b)](_0xda83d6[_0x54458c(0x148)])?_0x1e0358[_0x54458c(0x155)](_0x1e0358[_0x54458c(0x153)]+'.'+_0xda83d6[_0x54458c(0x148)],(_0xda83d6===null||_0xda83d6===void 0x0?void 0x0:_0xda83d6[_0x54458c(0x17e)])?'ASC':'DESC'):_0x1e0358[_0x54458c(0x155)](''+_0xda83d6[_0x54458c(0x148)],(_0xda83d6===null||_0xda83d6===void 0x0?void 0x0:_0xda83d6['_isreverse'])?_0x54458c(0x16c):_0x54458c(0x184)));}return typeof(_0x3c80fd===null||_0x3c80fd===void 0x0?void 0x0:_0x3c80fd[_0x54458c(0x169)])==_0x54458c(0x158)&&await(_0x3c80fd===null||_0x3c80fd===void 0x0?void 0x0:_0x3c80fd[_0x54458c(0x169)](_0x1e0358)),_0x1e0358;}async[a7_0x5aae12(0x16b)](_0x1ac388,..._0x188b80){const _0xb643c2=a7_0x5aae12,_0x3dfccc=this[_0xb643c2(0x17c)](_0x1ac388,..._0x188b80);return await this[_0xb643c2(0x150)](_0x3dfccc);}async['createSave'](_0x380357,..._0x2286d5){const _0x3fc269=a7_0x5aae12,_0x341d4c=this['merge'](this[_0x3fc269(0x16e)](_0x380357),..._0x2286d5);return await this[_0x3fc269(0x150)](_0x341d4c);}async[a7_0x5aae12(0x180)](_0x4d3bd1,_0x2281a1){const _0x37d87d=a7_0x5aae12;return this[_0x37d87d(0x14e)][_0x37d87d(0x180)](_0x4d3bd1,_0x2281a1);}}function a7_0x2eda(_0xfe6470,_0x580a28){const _0x1bef2b=a7_0x1bef();return a7_0x2eda=function(_0x2eda86,_0x2a71e8){_0x2eda86=_0x2eda86-0x148;let _0x31294b=_0x1bef2b[_0x2eda86];return _0x31294b;},a7_0x2eda(_0xfe6470,_0x580a28);}function a7_0x1bef(){const _0x5c92ac=['_order','LIKE','operator','4NeBMxI','ceil','push','manager','field','save','_page','model','alias','2809014lRnVKQ','orderBy','getApplicationContext','methodName','function','NOT\x20BETWEEN','5453640eYUEga','length','toString','NOT\x20IN','NOT\x20ISNULL','String','createQueryBuilder','\x20like\x20:_auto_','MODEL_KEY','condition','FIND\x20IN\x20SET','split','take','2643254UWcQLA','target','excess','1tHVuQE','mergeSave','ASC','type','create','defineProperty','trim','toUpperCase','_auto_','NOT\x20LIKE','indexOf','hasOwnProperty','4466405gcQtSn','_size','getAsync','Repository','random','findColumnWithPropertyName','merge','446298vgGoKb','_isreverse','app','transaction','\x20AND\x20:','../interface','ISNULL','DESC','__esModule','bind','search','isArray','metadata','MODEL_SEARCH_KEY','queryRunner','@midwayjs/core','getClassMetadata','typeorm','andWhere','abs','19050102vjYjJZ','searchs','undefined','10174640ZgCAvS','modelSearchs'];a7_0x1bef=function(){return _0x5c92ac;};return a7_0x1bef();}exports[a7_0x5aae12(0x179)]=Repository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a8_0x298560=a8_0x38b9;function a8_0x38b9(_0x51aaa6,_0x150b4d){const _0x388e38=a8_0x388e();return a8_0x38b9=function(_0x38b9b7,_0x4ffa9b){_0x38b9b7=_0x38b9b7-0xe0;let _0xf66a5a=_0x388e38[_0x38b9b7];return _0xf66a5a;},a8_0x38b9(_0x51aaa6,_0x150b4d);}(function(_0x772d4c,_0x5c0ff6){const _0x4c5c9f=a8_0x38b9,_0x15f8c8=_0x772d4c();while(!![]){try{const _0x10c206=parseInt(_0x4c5c9f(0xe2))/0x1*(-parseInt(_0x4c5c9f(0xec))/0x2)+parseInt(_0x4c5c9f(0xe4))/0x3+-parseInt(_0x4c5c9f(0xeb))/0x4+parseInt(_0x4c5c9f(0xf4))/0x5*(-parseInt(_0x4c5c9f(0xef))/0x6)+-parseInt(_0x4c5c9f(0xe3))/0x7*(parseInt(_0x4c5c9f(0xe8))/0x8)+parseInt(_0x4c5c9f(0xe6))/0x9*(parseInt(_0x4c5c9f(0xe7))/0xa)+parseInt(_0x4c5c9f(0xe9))/0xb;if(_0x10c206===_0x5c0ff6)break;else _0x15f8c8['push'](_0x15f8c8['shift']());}catch(_0xca47ce){_0x15f8c8['push'](_0x15f8c8['shift']());}}}(a8_0x388e,0xf270b));Object[a8_0x298560(0xf0)](exports,'__esModule',{'value':!![]}),exports[a8_0x298560(0xea)]=void 0x0;const core_1=require(a8_0x298560(0xe5)),interface_1=require(a8_0x298560(0xe1));function getDataSourceEntity(_0x1f77d=a8_0x298560(0xf2)){const _0x27e84d=a8_0x298560;var _0x345cb1;const _0x5c0b44=[];for(const _0x5681f7 of(0x0,core_1[_0x27e84d(0xf1)])(interface_1[_0x27e84d(0xee)])){const _0x516f8e=(0x0,core_1[_0x27e84d(0xed)])(interface_1['ENTIFY_MODULE_SOURCE'],_0x5681f7);((_0x345cb1=_0x516f8e===null||_0x516f8e===void 0x0?void 0x0:_0x516f8e[_0x27e84d(0xe0)])===null||_0x345cb1===void 0x0?void 0x0:_0x345cb1['find'](_0x4dad06=>_0x4dad06==_0x1f77d))&&_0x5c0b44[_0x27e84d(0xf3)](_0x5681f7);}return _0x5c0b44;}exports[a8_0x298560(0xea)]=getDataSourceEntity;function a8_0x388e(){const _0x29fed5=['8OKNfnY','24612LgzKMU','5048172lGTFkO','@midwayjs/core','9dbEYKr','1643670tBuSVp','1512pmsLJr','40246646XVVMlk','getDataSourceEntity','6944912lOvBRo','220978wYUzub','getClassMetadata','ENTIFY_MODULE','42ZozqNK','defineProperty','listModule','default','push','877270rybxsm','dataSource','../interface'];a8_0x388e=function(){return _0x29fed5;};return a8_0x388e();}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x70833c=a9_0x394d;(function(_0x2f7bae,_0x37fa04){var _0x133506=a9_0x394d,_0x5620ff=_0x2f7bae();while(!![]){try{var _0x20328a=-parseInt(_0x133506(0xf4))/0x1+parseInt(_0x133506(0xf1))/0x2*(parseInt(_0x133506(0xda))/0x3)+parseInt(_0x133506(0xff))/0x4+-parseInt(_0x133506(0xe6))/0x5*(-parseInt(_0x133506(0xfb))/0x6)+parseInt(_0x133506(0xd8))/0x7*(parseInt(_0x133506(0xf5))/0x8)+-parseInt(_0x133506(0xf6))/0x9+-parseInt(_0x133506(0xf3))/0xa;if(_0x20328a===_0x37fa04)break;else _0x5620ff['push'](_0x5620ff['shift']());}catch(_0x2fade9){_0x5620ff['push'](_0x5620ff['shift']());}}}(a9_0x2173,0xa94a4));var __createBinding=this&&this[a9_0x70833c(0xf9)]||(Object[a9_0x70833c(0xfc)]?function(_0x5d3014,_0x54f833,_0x10fa71,_0x4b4064){var _0x29ac45=a9_0x70833c;if(_0x4b4064===undefined)_0x4b4064=_0x10fa71;var _0x427459=Object[_0x29ac45(0xdc)](_0x54f833,_0x10fa71);(!_0x427459||(_0x29ac45(0xe4)in _0x427459?!_0x54f833['__esModule']:_0x427459[_0x29ac45(0xe0)]||_0x427459['configurable']))&&(_0x427459={'enumerable':!![],'get':function(){return _0x54f833[_0x10fa71];}}),Object[_0x29ac45(0xf0)](_0x5d3014,_0x4b4064,_0x427459);}:function(_0x53314c,_0x1deb06,_0x578d59,_0x2ad85d){if(_0x2ad85d===undefined)_0x2ad85d=_0x578d59;_0x53314c[_0x2ad85d]=_0x1deb06[_0x578d59];}),__exportStar=this&&this[a9_0x70833c(0xe5)]||function(_0x1bc091,_0x261ccf){var _0x36ffbf=a9_0x70833c;for(var _0x20fba0 in _0x1bc091)if(_0x20fba0!==_0x36ffbf(0xdb)&&!Object['prototype'][_0x36ffbf(0xe7)][_0x36ffbf(0xeb)](_0x261ccf,_0x20fba0))__createBinding(_0x261ccf,_0x1bc091,_0x20fba0);};Object[a9_0x70833c(0xf0)](exports,a9_0x70833c(0xde),{'value':!![]}),exports['ScopeEnum']=exports[a9_0x70833c(0xea)]=exports[a9_0x70833c(0xf8)]=exports['Provide']=exports[a9_0x70833c(0xd7)]=exports[a9_0x70833c(0xd6)]=exports['Search']=exports[a9_0x70833c(0xe1)]=exports['ProvideRepository']=exports['ProvideEntity']=exports[a9_0x70833c(0xdd)]=exports[a9_0x70833c(0x100)]=exports['VirtualColumn']=exports[a9_0x70833c(0xe8)]=void 0x0,__exportStar(require(a9_0x70833c(0xfd)),exports),__exportStar(require('./interface'),exports);var Repository_1=require(a9_0x70833c(0xdf));Object[a9_0x70833c(0xf0)](exports,a9_0x70833c(0xe8),{'enumerable':!![],'get':function(){var _0x2aa281=a9_0x70833c;return Repository_1[_0x2aa281(0xe8)];}});var VirtualColumn_1=require(a9_0x70833c(0xe3));Object[a9_0x70833c(0xf0)](exports,a9_0x70833c(0xf2),{'enumerable':!![],'get':function(){var _0x440d1d=a9_0x70833c;return VirtualColumn_1[_0x440d1d(0xf2)];}});var InjectEntity_1=require(a9_0x70833c(0xec));Object[a9_0x70833c(0xf0)](exports,a9_0x70833c(0x100),{'enumerable':!![],'get':function(){var _0x266db6=a9_0x70833c;return InjectEntity_1[_0x266db6(0x100)];}});var InjectRepository_1=require(a9_0x70833c(0xd9));Object[a9_0x70833c(0xf0)](exports,a9_0x70833c(0xdd),{'enumerable':!![],'get':function(){var _0x25130f=a9_0x70833c;return InjectRepository_1[_0x25130f(0xdd)];}});function a9_0x394d(_0x4ed001,_0x791799){var _0x2173f6=a9_0x2173();return a9_0x394d=function(_0x394d5a,_0x52bb34){_0x394d5a=_0x394d5a-0xd6;var _0x56bc04=_0x2173f6[_0x394d5a];return _0x56bc04;},a9_0x394d(_0x4ed001,_0x791799);}var ProvideEntity_1=require(a9_0x70833c(0xed));Object['defineProperty'](exports,a9_0x70833c(0xee),{'enumerable':!![],'get':function(){var _0x581627=a9_0x70833c;return ProvideEntity_1[_0x581627(0xee)];}});var ProvideRepository_1=require('./decorator/ProvideRepository');Object[a9_0x70833c(0xf0)](exports,a9_0x70833c(0xfa),{'enumerable':!![],'get':function(){var _0x4b4621=a9_0x70833c;return ProvideRepository_1[_0x4b4621(0xfa)];}});var ProvideSearch_1=require(a9_0x70833c(0xfe));Object[a9_0x70833c(0xf0)](exports,a9_0x70833c(0xe1),{'enumerable':!![],'get':function(){var _0x4126d8=a9_0x70833c;return ProvideSearch_1[_0x4126d8(0xe1)];}}),Object[a9_0x70833c(0xf0)](exports,'Search',{'enumerable':!![],'get':function(){var _0x3be696=a9_0x70833c;return ProvideSearch_1[_0x3be696(0xe2)];}});var getDataSourceEntity_1=require(a9_0x70833c(0xef));function a9_0x2173(){var _0x57afe3=['ProvideEntity','./helper/getDataSourceEntity','defineProperty','138QxjjYF','VirtualColumn','20209470etcxVX','169597GTcCgv','8GCVhvh','6160185xFcTvw','ScopeEnum','Inject','__createBinding','ProvideRepository','54LHaOni','create','typeorm','./decorator/ProvideSearch','4896076fpFzMQ','InjectEntity','getDataSourceEntity','Configuration','7556185vsMYmG','./decorator/InjectRepository','33663oeklDK','default','getOwnPropertyDescriptor','InjectRepository','__esModule','./definition/Repository','writable','ProvideSearch','Search','./decorator/VirtualColumn','get','__exportStar','272610voeiWD','hasOwnProperty','Repository','Provide','Scope','call','./decorator/InjectEntity','./decorator/ProvideEntity'];a9_0x2173=function(){return _0x57afe3;};return a9_0x2173();}Object[a9_0x70833c(0xf0)](exports,a9_0x70833c(0xd6),{'enumerable':!![],'get':function(){return getDataSourceEntity_1['getDataSourceEntity'];}});var configuration_1=require('./configuration');Object[a9_0x70833c(0xf0)](exports,a9_0x70833c(0xd7),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require('@midwayjs/core');Object[a9_0x70833c(0xf0)](exports,a9_0x70833c(0xe9),{'enumerable':!![],'get':function(){return core_1['Provide'];}}),Object['defineProperty'](exports,a9_0x70833c(0xf8),{'enumerable':!![],'get':function(){var _0x1708dc=a9_0x70833c;return core_1[_0x1708dc(0xf8)];}}),Object['defineProperty'](exports,a9_0x70833c(0xea),{'enumerable':!![],'get':function(){var _0x53535b=a9_0x70833c;return core_1[_0x53535b(0xea)];}}),Object[a9_0x70833c(0xf0)](exports,a9_0x70833c(0xf7),{'enumerable':!![],'get':function(){var _0x45e33c=a9_0x70833c;return core_1[_0x45e33c(0xf7)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a10_0x2f683b=a10_0x2c39;function a10_0x2c39(_0x3da469,_0x2666ff){const _0x2e5da3=a10_0x2e5d();return a10_0x2c39=function(_0x2c3958,_0x17ccf8){_0x2c3958=_0x2c3958-0x198;let _0x554204=_0x2e5da3[_0x2c3958];return _0x554204;},a10_0x2c39(_0x3da469,_0x2666ff);}(function(_0x24ce79,_0x4417ee){const _0x332f21=a10_0x2c39,_0x3827ab=_0x24ce79();while(!![]){try{const _0x5247c9=parseInt(_0x332f21(0x1c7))/0x1+-parseInt(_0x332f21(0x1c6))/0x2+-parseInt(_0x332f21(0x1a1))/0x3+parseInt(_0x332f21(0x19d))/0x4*(parseInt(_0x332f21(0x1c2))/0x5)+-parseInt(_0x332f21(0x1c4))/0x6+parseInt(_0x332f21(0x1bf))/0x7+parseInt(_0x332f21(0x1af))/0x8;if(_0x5247c9===_0x4417ee)break;else _0x3827ab['push'](_0x3827ab['shift']());}catch(_0x427bf2){_0x3827ab['push'](_0x3827ab['shift']());}}}(a10_0x2e5d,0x67aa4));function a10_0x2e5d(){const _0xd7ef29=['decorator:anncic-api:typeorm:model:search','getTime','getManyAndCount','getMany','MODEL_SEARCH_KEY','updateDateColumn','5223148nUcUtk','decorator:anncic-api:typeorm:repository','EntityNotFoundError','4000JAHHNF','REPOSITORY_KEY','5034942qtNblY','OptimisticLockCanNotBeUsedError','1046698EQyLAs','197748QsGzVH','typeorm','ENTIFY_MODULE','decorator:anncic-api:typeorm:entify:module','decorator:anncic-api:typeorm:entity:virtual:column','optimistic','lockMode','expressionMap','getRawAndEntities','name','findOneBy','3912DusRLA','hasOwnProperty','getClassMetadata','reject','549201ZGfUcp','decorator:anncic-api:typeorm:entify','prototype','resolve','SelectQueryBuilder','getOne','then','getCount','MODEL_KEY','decorator:anncic-api:typeorm:entify:module:source','ENTITY_VIRTUAL_COLUMN_KEY','lockVersion','ENTIFY_KEY','metadata','1950984McVYjQ','__esModule','default','OptimisticLockVersionMismatchError','getEntityValue','findOneByOrFail','EntityManager','@midwayjs/core','SearchPaginate','decorator:anncic-api:typeorm:model'];a10_0x2e5d=function(){return _0xd7ef29;};return a10_0x2e5d();}Object['defineProperty'](exports,a10_0x2f683b(0x1b0),{'value':!![]}),exports[a10_0x2f683b(0x1b7)]=exports[a10_0x2f683b(0x1ab)]=exports['MODEL_SEARCH_KEY']=exports[a10_0x2f683b(0x1a9)]=exports[a10_0x2f683b(0x1c3)]=exports['ENTIFY_MODULE_SOURCE']=exports[a10_0x2f683b(0x1c9)]=exports[a10_0x2f683b(0x1ad)]=void 0x0;const core_1=require(a10_0x2f683b(0x1b6)),typeorm_1=require(a10_0x2f683b(0x1c8)),typeorm_2=require(a10_0x2f683b(0x1c8));exports[a10_0x2f683b(0x1ad)]=a10_0x2f683b(0x1a2),exports['ENTIFY_MODULE']=a10_0x2f683b(0x1ca),exports['ENTIFY_MODULE_SOURCE']=a10_0x2f683b(0x1aa),exports['REPOSITORY_KEY']=a10_0x2f683b(0x1c0),exports[a10_0x2f683b(0x1a9)]=a10_0x2f683b(0x1b8),exports[a10_0x2f683b(0x1bd)]=a10_0x2f683b(0x1b9),exports[a10_0x2f683b(0x1ab)]=a10_0x2f683b(0x1cb);class SearchPaginate{}exports[a10_0x2f683b(0x1b7)]=SearchPaginate,typeorm_2[a10_0x2f683b(0x1b5)][a10_0x2f683b(0x1a3)]['findOneOrFail']=async function(_0x24d5e3,_0x22568e){const _0x4b602a=a10_0x2f683b;return this['findOne'](_0x24d5e3,_0x22568e)[_0x4b602a(0x1a7)](_0x5565ee=>{const _0x4905f1=_0x4b602a;if(_0x5565ee===null||_0x5565ee===undefined)return Promise[_0x4905f1(0x1a0)](new typeorm_2['EntityNotFoundError'](_0x24d5e3,_0x22568e));return Promise['resolve'](_0x5565ee);});},typeorm_2[a10_0x2f683b(0x1b5)][a10_0x2f683b(0x1a3)][a10_0x2f683b(0x1b4)]=async function(_0x44d762,_0xa01413){const _0x27cf84=a10_0x2f683b;return this[_0x27cf84(0x19c)](_0x44d762,_0xa01413)[_0x27cf84(0x1a7)](_0x538d93=>{const _0x7ffe3a=_0x27cf84;if(_0x538d93===null||_0x538d93===undefined)return Promise[_0x7ffe3a(0x1a0)](new typeorm_2[(_0x7ffe3a(0x1c1))](_0x44d762,_0xa01413));return Promise[_0x7ffe3a(0x1a4)](_0x538d93);});},typeorm_1[a10_0x2f683b(0x1a5)][a10_0x2f683b(0x1a3)][a10_0x2f683b(0x1bc)]=async function(){const _0x45b40d=a10_0x2f683b;if(this[_0x45b40d(0x199)][_0x45b40d(0x198)]===_0x45b40d(0x1cc))throw new typeorm_1[(_0x45b40d(0x1c5))]();const {entities:_0x23d967,raw:_0x225b26}=await this[_0x45b40d(0x19a)]();return _0x23d967['map']((_0x24f22d,_0x816751)=>{const _0x21ba69=_0x45b40d;var _0x4219dd;const _0x17fbd2=(0x0,core_1[_0x21ba69(0x19f)])(exports['ENTITY_VIRTUAL_COLUMN_KEY'],_0x24f22d)||{};for(const _0x32f8c in _0x17fbd2){_0x225b26[_0x816751]&&_0x225b26[_0x816751][_0x21ba69(0x19e)](_0x32f8c)&&(_0x24f22d[_0x32f8c]=_0x225b26[_0x816751][_0x32f8c]||((_0x4219dd=_0x17fbd2[_0x32f8c])===null||_0x4219dd===void 0x0?void 0x0:_0x4219dd[_0x21ba69(0x1b1)])||'');}return _0x24f22d;});},typeorm_1[a10_0x2f683b(0x1a5)][a10_0x2f683b(0x1a3)][a10_0x2f683b(0x1bb)]=async function(){const _0x39be77=a10_0x2f683b;return[await this[_0x39be77(0x1bc)](),await this[_0x39be77(0x1a8)]()];},typeorm_1[a10_0x2f683b(0x1a5)][a10_0x2f683b(0x1a3)][a10_0x2f683b(0x1a6)]=async function(){const _0x193a93=a10_0x2f683b;var _0x2f75ff;const {entities:_0x28509f,raw:_0x4d8269}=await this[_0x193a93(0x19a)]();if(_0x28509f[0x0]&&this[_0x193a93(0x199)][_0x193a93(0x198)]===_0x193a93(0x1cc)&&this[_0x193a93(0x199)]['lockVersion']){const _0x26aad2=this[_0x193a93(0x199)]['mainAlias'][_0x193a93(0x1ae)];if(this[_0x193a93(0x199)][_0x193a93(0x1ac)]instanceof Date){const _0x4152ac=_0x26aad2[_0x193a93(0x1be)][_0x193a93(0x1b3)](_0x28509f[0x0]);if(_0x4152ac[_0x193a93(0x1ba)]()!==this[_0x193a93(0x199)]['lockVersion']['getTime']())throw new typeorm_1[(_0x193a93(0x1b2))](_0x26aad2[_0x193a93(0x19b)],this[_0x193a93(0x199)][_0x193a93(0x1ac)],_0x4152ac);}else{const _0x4cafd6=_0x26aad2['versionColumn']['getEntityValue'](_0x28509f[0x0]);if(_0x4cafd6!==this[_0x193a93(0x199)]['lockVersion'])throw new typeorm_1['OptimisticLockVersionMismatchError'](_0x26aad2['name'],this[_0x193a93(0x199)][_0x193a93(0x1ac)],_0x4cafd6);}}if(_0x28509f[0x0]&&_0x4d8269[0x0]){const _0x5d1da3=(0x0,core_1[_0x193a93(0x19f)])(exports['ENTITY_VIRTUAL_COLUMN_KEY'],_0x28509f[0x0]);for(const _0x52f666 in _0x5d1da3){_0x4d8269[0x0][_0x193a93(0x19e)](_0x52f666)&&(_0x28509f[0x0][_0x52f666]=_0x4d8269[0x0][_0x52f666]||((_0x2f75ff=_0x5d1da3[_0x52f666])===null||_0x2f75ff===void 0x0?void 0x0:_0x2f75ff[_0x193a93(0x1b1)])||'');}}return _0x28509f[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.3",
|
|
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": "15a2ece72c95e9bfc2370a2f235841cef7bd3524"
|
|
26
26
|
}
|