@anncic-api/typeorm 1.0.7 → 1.0.11
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/ModelSearch.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/definitions/Repository.js +1 -1
- package/dist/helper/getDataSourceEntity.js +1 -1
- package/dist/helpers/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_0x23f9c6=a0_0x2a78;(function(_0x4df70b,_0x5eb4f6){const _0x257e99=a0_0x2a78,_0xa9a31c=_0x4df70b();while(!![]){try{const _0x322fa7=parseInt(_0x257e99(0xb7))/0x1+parseInt(_0x257e99(0xc1))/0x2*(parseInt(_0x257e99(0xca))/0x3)+parseInt(_0x257e99(0xa8))/0x4+-parseInt(_0x257e99(0xa7))/0x5*(-parseInt(_0x257e99(0xc9))/0x6)+parseInt(_0x257e99(0xcd))/0x7+-parseInt(_0x257e99(0xd4))/0x8*(parseInt(_0x257e99(0xc7))/0x9)+parseInt(_0x257e99(0xa9))/0xa*(-parseInt(_0x257e99(0xcf))/0xb);if(_0x322fa7===_0x5eb4f6)break;else _0xa9a31c['push'](_0xa9a31c['shift']());}catch(_0x1366d7){_0xa9a31c['push'](_0xa9a31c['shift']());}}}(a0_0x5812,0x7f852));function a0_0x5812(){const _0x173cff=['defineProperty','@midwayjs/core','getDataSource','design:type','name','decorate','6980enGExQ','923824YyDwrf','11468710YcSwLp','config','prototype','message','TypeORMError','find','Repository','getClassMetadata','length','CustomConfiguration','EntityNotFoundError','onReady','push','function','746489fqNPsc','getEnv','registerPropertyHandler','Inject','Configuration','anncic-api:typeorm','__metadata','@midwayjs/typeorm','@midwayjs/decorator','\x20is\x20not\x20ProvideRepository\x20Entify','12eNVXAA','TypeORMDataSourceManager','anncic-api-typeorm\x20Error\x20','handlercache','decorator','getDataSourceNameByModel','6197571mBHQEw','body','414WHRnLt','212694PAlblL','useMiddleware','MidwayDecoratorService','6010585eqcybE','middlewareError','11FMnrCE','ENTIFY_KEY','__decorate','typeorm','metadata','8QpSNyy','target','./definition/Repository','getAsync','getRepository'];a0_0x5812=function(){return _0x173cff;};return a0_0x5812();}function a0_0x2a78(_0xc671c2,_0x5e161f){const _0x581268=a0_0x5812();return a0_0x2a78=function(_0x2a784e,_0x3faf3a){_0x2a784e=_0x2a784e-0xa5;let _0x5d30e6=_0x581268[_0x2a784e];return _0x5d30e6;},a0_0x2a78(_0xc671c2,_0x5e161f);}var __decorate=this&&this[a0_0x23f9c6(0xd1)]||function(_0x1933cf,_0x4cfaf3,_0x1a5b15,_0x2e8c39){const _0x3448e7=a0_0x23f9c6;var _0x34fc10=arguments[_0x3448e7(0xb1)],_0x529700=_0x34fc10<0x3?_0x4cfaf3:_0x2e8c39===null?_0x2e8c39=Object['getOwnPropertyDescriptor'](_0x4cfaf3,_0x1a5b15):_0x2e8c39,_0x2cdccf;if(typeof Reflect==='object'&&typeof Reflect[_0x3448e7(0xa6)]===_0x3448e7(0xb6))_0x529700=Reflect[_0x3448e7(0xa6)](_0x1933cf,_0x4cfaf3,_0x1a5b15,_0x2e8c39);else{for(var _0x1d7d3b=_0x1933cf[_0x3448e7(0xb1)]-0x1;_0x1d7d3b>=0x0;_0x1d7d3b--)if(_0x2cdccf=_0x1933cf[_0x1d7d3b])_0x529700=(_0x34fc10<0x3?_0x2cdccf(_0x529700):_0x34fc10>0x3?_0x2cdccf(_0x4cfaf3,_0x1a5b15,_0x529700):_0x2cdccf(_0x4cfaf3,_0x1a5b15))||_0x529700;}return _0x34fc10>0x3&&_0x529700&&Object[_0x3448e7(0xd9)](_0x4cfaf3,_0x1a5b15,_0x529700),_0x529700;},__metadata=this&&this[a0_0x23f9c6(0xbd)]||function(_0x4498ec,_0x3c569d){const _0x33b182=a0_0x23f9c6;if(typeof Reflect==='object'&&typeof Reflect[_0x33b182(0xd3)]===_0x33b182(0xb6))return Reflect[_0x33b182(0xd3)](_0x4498ec,_0x3c569d);};Object[a0_0x23f9c6(0xd9)](exports,'__esModule',{'value':!![]}),exports[a0_0x23f9c6(0xb2)]=void 0x0;const typeorm_1=require(a0_0x23f9c6(0xbe)),decorator_1=require(a0_0x23f9c6(0xbf)),core_1=require(a0_0x23f9c6(0xda)),typeorm_2=require(a0_0x23f9c6(0xd2)),Repository_1=require(a0_0x23f9c6(0xd6)),interface_1=require('./interface'),typeorm=require(a0_0x23f9c6(0xbe));let CustomConfiguration=class CustomConfiguration{constructor(){const _0x438359=a0_0x23f9c6;this[_0x438359(0xc4)]=[];}async[a0_0x23f9c6(0xb4)](_0x4ff240,_0x52545a){const _0x15aa10=a0_0x23f9c6,_0x28289e=await _0x4ff240[_0x15aa10(0xd7)](typeorm_1[_0x15aa10(0xc2)]);this[_0x15aa10(0xc5)][_0x15aa10(0xb9)](interface_1[_0x15aa10(0xd0)],(_0x54b969,{entity:_0x4985a5,connection:_0x14dd7a})=>{const _0x31dc31=_0x15aa10;let _0x2bbe6b=this[_0x31dc31(0xc4)]['find'](_0x25dd32=>_0x25dd32[_0x31dc31(0xd5)]==_0x4985a5);return!_0x2bbe6b&&(_0x2bbe6b=new Repository_1[(_0x31dc31(0xaf))](_0x52545a,_0x28289e[_0x31dc31(0xdb)](_0x14dd7a||_0x28289e[_0x31dc31(0xc6)](_0x4985a5))[_0x31dc31(0xd8)](_0x4985a5)),this['handlercache'][_0x31dc31(0xb5)](_0x2bbe6b)),_0x2bbe6b;}),this['decorator'][_0x15aa10(0xb9)](interface_1['REPOSITORY_KEY'],(_0x14c74f,{repository:_0x9be261,connection:_0x5665bd})=>{const _0x20ecc8=_0x15aa10,{entity:_0x53406f}=(0x0,decorator_1[_0x20ecc8(0xb0)])(interface_1['REPOSITORY_KEY'],_0x9be261)||{};if(!_0x53406f)throw new Error(_0x20ecc8(0xc3)+((_0x9be261===null||_0x9be261===void 0x0?void 0x0:_0x9be261[_0x20ecc8(0xa5)])||_0x9be261)+_0x20ecc8(0xc0));let _0x171393=this[_0x20ecc8(0xc4)][_0x20ecc8(0xae)](_0x4c0b9a=>_0x4c0b9a[_0x20ecc8(0xd5)]==_0x53406f);return!_0x171393&&(_0x171393=new Repository_1[(_0x20ecc8(0xaf))](_0x52545a,_0x28289e[_0x20ecc8(0xdb)](_0x5665bd||_0x28289e[_0x20ecc8(0xc6)](_0x53406f))[_0x20ecc8(0xd8)](_0x53406f)),this['handlercache'][_0x20ecc8(0xb5)](_0x171393)),_0x171393;}),_0x52545a[_0x15aa10(0xcb)](this[_0x15aa10(0xce)](_0x52545a));}[a0_0x23f9c6(0xce)](_0x37fcef){return async(_0x785894,_0x23bc1e)=>{const _0x14b636=a0_0x2a78;try{await _0x23bc1e();}catch(_0x1ff7d2){if(_0x1ff7d2 instanceof typeorm_2[_0x14b636(0xad)])_0x1ff7d2 instanceof typeorm_2[_0x14b636(0xb3)]?_0x785894[_0x14b636(0xc8)]={'code':0x194,'msg':'数据不存在'}:(_0x785894[_0x14b636(0xc8)]={'code':0x1f4,'msg':_0x1ff7d2[_0x14b636(0xac)]},_0x37fcef[_0x14b636(0xb8)]()!='production'&&console['warn'](_0x1ff7d2));else throw _0x1ff7d2;}};}};__decorate([(0x0,decorator_1[a0_0x23f9c6(0xba)])(),__metadata('design:type',core_1['MidwayConfigService'])],CustomConfiguration['prototype'],a0_0x23f9c6(0xaa),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a0_0x23f9c6(0xdc),core_1[a0_0x23f9c6(0xcc)])],CustomConfiguration[a0_0x23f9c6(0xab)],a0_0x23f9c6(0xc5),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a0_0x23f9c6(0xbb)])({'imports':[typeorm],'conflictCheck':![],'namespace':a0_0x23f9c6(0xbc)})],CustomConfiguration),exports[a0_0x23f9c6(0xb2)]=CustomConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x201e75=a1_0x3b2f;function a1_0xa38c(){const _0x50c89e=['224270ffRoMu','113192gfpNES','28tiofqL','872391vUJNMJ','InjectEntity','ENTIFY_KEY','createCustomPropertyDecorator','5731JCLmPV','4IQXPwN','1805118KHwDhl','@midwayjs/decorator','1083078mBsbVQ','8950xbSDEn','523JdXscu','376ZAmhUu'];a1_0xa38c=function(){return _0x50c89e;};return a1_0xa38c();}(function(_0x200d10,_0x166d6a){const _0x33bf4d=a1_0x3b2f,_0x352624=_0x200d10();while(!![]){try{const _0xebcecc=-parseInt(_0x33bf4d(0xa0))/0x1*(-parseInt(_0x33bf4d(0xa1))/0x2)+parseInt(_0x33bf4d(0x96))/0x3+parseInt(_0x33bf4d(0x9b))/0x4*(parseInt(_0x33bf4d(0xa2))/0x5)+parseInt(_0x33bf4d(0x9c))/0x6+parseInt(_0x33bf4d(0x95))/0x7*(parseInt(_0x33bf4d(0xa3))/0x8)+-parseInt(_0x33bf4d(0x9e))/0x9+-parseInt(_0x33bf4d(0x9f))/0xa*(parseInt(_0x33bf4d(0x9a))/0xb);if(_0xebcecc===_0x166d6a)break;else _0x352624['push'](_0x352624['shift']());}catch(_0x3eacb9){_0x352624['push'](_0x352624['shift']());}}}(a1_0xa38c,0x31ff3));function a1_0x3b2f(_0x28d81c,_0x19e012){const _0xa38c27=a1_0xa38c();return a1_0x3b2f=function(_0x3b2f81,_0x174303){_0x3b2f81=_0x3b2f81-0x95;let _0x2a4fbd=_0xa38c27[_0x3b2f81];return _0x2a4fbd;},a1_0x3b2f(_0x28d81c,_0x19e012);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['InjectEntity']=void 0x0;const decorator_1=require(a1_0x201e75(0x9d)),interface_1=require('../interface');function InjectEntity(_0x5ab094,_0x37e99c='default'){const _0x36ec87=a1_0x201e75;return(0x0,decorator_1[_0x36ec87(0x99)])(interface_1[_0x36ec87(0x98)],{'entity':_0x5ab094,'connection':_0x37e99c});}exports[a1_0x201e75(0x97)]=InjectEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x42690f=a2_0xe2fb;(function(_0x1a3868,_0x2583f6){const _0x54cb1e=a2_0xe2fb,_0x5a544a=_0x1a3868();while(!![]){try{const _0x5d2b21=-parseInt(_0x54cb1e(0x7f))/0x1+parseInt(_0x54cb1e(0x7c))/0x2+parseInt(_0x54cb1e(0x81))/0x3*(parseInt(_0x54cb1e(0x82))/0x4)+-parseInt(_0x54cb1e(0x7e))/0x5*(-parseInt(_0x54cb1e(0x77))/0x6)+-parseInt(_0x54cb1e(0x78))/0x7+-parseInt(_0x54cb1e(0x7b))/0x8+-parseInt(_0x54cb1e(0x76))/0x9*(-parseInt(_0x54cb1e(0x79))/0xa);if(_0x5d2b21===_0x2583f6)break;else _0x5a544a['push'](_0x5a544a['shift']());}catch(_0x24a676){_0x5a544a['push'](_0x5a544a['shift']());}}}(a2_0x3fa7,0xc52be));function a2_0x3fa7(){const _0x508c81=['1778769yGOzzE','21090DmHiNc','10401342uZhYxG','90EZSCXr','__esModule','11359544giLUUQ','215854OMtiPg','InjectRepository','1835TsKdjH','172530CDUwsj','createCustomPropertyDecorator','3OJOyqW','2837168AQSmod','defineProperty','../interface'];a2_0x3fa7=function(){return _0x508c81;};return a2_0x3fa7();}function a2_0xe2fb(_0x4d525e,_0x3ca9df){const _0x3fa707=a2_0x3fa7();return a2_0xe2fb=function(_0xe2fb90,_0x47bee4){_0xe2fb90=_0xe2fb90-0x74;let _0x56d194=_0x3fa707[_0xe2fb90];return _0x56d194;},a2_0xe2fb(_0x4d525e,_0x3ca9df);}Object[a2_0x42690f(0x74)](exports,a2_0x42690f(0x7a),{'value':!![]}),exports[a2_0x42690f(0x7d)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),interface_1=require(a2_0x42690f(0x75));function InjectRepository(_0x4a52bd,_0x492915='default'){const _0x281d6e=a2_0x42690f;return(0x0,decorator_1[_0x281d6e(0x80)])(interface_1['REPOSITORY_KEY'],{'repository':_0x4a52bd,'connection':_0x492915});}exports[a2_0x42690f(0x7d)]=InjectRepository;
|