@anncic-api/typeorm 1.0.6 → 1.0.7
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_0x39d046=a0_0x53ac;function a0_0x53ac(_0x328a38,_0xd4df56){const _0xdf4717=a0_0xdf47();return a0_0x53ac=function(_0x53ac70,_0x1be5db){_0x53ac70=_0x53ac70-0x1d4;let _0x5ec512=_0xdf4717[_0x53ac70];return _0x5ec512;},a0_0x53ac(_0x328a38,_0xd4df56);}(function(_0x5736a2,_0x588116){const _0x74f362=a0_0x53ac,_0x764b56=_0x5736a2();while(!![]){try{const _0x2931ca=parseInt(_0x74f362(0x1f8))/0x1+-parseInt(_0x74f362(0x1d9))/0x2+-parseInt(_0x74f362(0x1e4))/0x3*(parseInt(_0x74f362(0x1dd))/0x4)+parseInt(_0x74f362(0x1fb))/0x5*(-parseInt(_0x74f362(0x204))/0x6)+-parseInt(_0x74f362(0x1ff))/0x7+-parseInt(_0x74f362(0x1fe))/0x8+parseInt(_0x74f362(0x1e1))/0x9;if(_0x2931ca===_0x588116)break;else _0x764b56['push'](_0x764b56['shift']());}catch(_0xf036f7){_0x764b56['push'](_0x764b56['shift']());}}}(a0_0xdf47,0x40386));var __decorate=this&&this[a0_0x39d046(0x203)]||function(_0x3df265,_0x422dc5,_0x1c3118,_0x328476){const _0x3b147b=a0_0x39d046;var _0x20e7b7=arguments[_0x3b147b(0x1df)],_0x4d2db2=_0x20e7b7<0x3?_0x422dc5:_0x328476===null?_0x328476=Object[_0x3b147b(0x1ef)](_0x422dc5,_0x1c3118):_0x328476,_0x46ac1e;if(typeof Reflect===_0x3b147b(0x1f1)&&typeof Reflect['decorate']===_0x3b147b(0x1d4))_0x4d2db2=Reflect[_0x3b147b(0x1fa)](_0x3df265,_0x422dc5,_0x1c3118,_0x328476);else{for(var _0x2db634=_0x3df265[_0x3b147b(0x1df)]-0x1;_0x2db634>=0x0;_0x2db634--)if(_0x46ac1e=_0x3df265[_0x2db634])_0x4d2db2=(_0x20e7b7<0x3?_0x46ac1e(_0x4d2db2):_0x20e7b7>0x3?_0x46ac1e(_0x422dc5,_0x1c3118,_0x4d2db2):_0x46ac1e(_0x422dc5,_0x1c3118))||_0x4d2db2;}return _0x20e7b7>0x3&&_0x4d2db2&&Object['defineProperty'](_0x422dc5,_0x1c3118,_0x4d2db2),_0x4d2db2;},__metadata=this&&this[a0_0x39d046(0x1ec)]||function(_0x35c138,_0x2194c0){const _0x444662=a0_0x39d046;if(typeof Reflect===_0x444662(0x1f1)&&typeof Reflect[_0x444662(0x201)]==='function')return Reflect[_0x444662(0x201)](_0x35c138,_0x2194c0);};Object[a0_0x39d046(0x1d5)](exports,a0_0x39d046(0x1db),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const typeorm_1=require(a0_0x39d046(0x1f0)),decorator_1=require(a0_0x39d046(0x1f5)),core_1=require(a0_0x39d046(0x1fd)),typeorm_2=require(a0_0x39d046(0x1dc)),Repository_1=require(a0_0x39d046(0x1d6)),interface_1=require(a0_0x39d046(0x1da)),typeorm=require(a0_0x39d046(0x1f0));let CustomConfiguration=class CustomConfiguration{constructor(){const _0x383da2=a0_0x39d046;this[_0x383da2(0x1e8)]=[];}async[a0_0x39d046(0x1ee)](_0x268b8c,_0x15fe16){const _0x3049b2=a0_0x39d046,_0x22d7a1=await _0x268b8c[_0x3049b2(0x1e6)](typeorm_1[_0x3049b2(0x1e3)]);this[_0x3049b2(0x200)][_0x3049b2(0x1e5)](interface_1[_0x3049b2(0x1f7)],(_0x460605,{entity:_0x4f9d24,connection:_0x4c223c})=>{const _0x286cc8=_0x3049b2;let _0x28f8d7=this['handlercache'][_0x286cc8(0x1d7)](_0x449a1a=>_0x449a1a['target']==_0x4f9d24);return!_0x28f8d7&&(_0x28f8d7=new Repository_1['Repository'](_0x15fe16,_0x22d7a1[_0x286cc8(0x1e9)](_0x4c223c||_0x22d7a1[_0x286cc8(0x1de)](_0x4f9d24))['getRepository'](_0x4f9d24)),this['handlercache']['push'](_0x28f8d7)),_0x28f8d7;}),this[_0x3049b2(0x200)][_0x3049b2(0x1e5)](interface_1[_0x3049b2(0x205)],(_0x10cadd,{repository:_0x27db12,connection:_0x124e36})=>{const _0x196cb2=_0x3049b2,{entity:_0x3ceca0}=(0x0,decorator_1['getClassMetadata'])(interface_1[_0x196cb2(0x205)],_0x27db12)||{};if(!_0x3ceca0)throw new Error('anncic-api-typeorm\x20Error\x20'+((_0x27db12===null||_0x27db12===void 0x0?void 0x0:_0x27db12['name'])||_0x27db12)+'\x20is\x20not\x20ProvideRepository\x20Entify');let _0x43ff0f=this['handlercache']['find'](_0x2472b7=>_0x2472b7[_0x196cb2(0x1e2)]==_0x3ceca0);return!_0x43ff0f&&(_0x43ff0f=new Repository_1[(_0x196cb2(0x1ed))](_0x15fe16,_0x22d7a1[_0x196cb2(0x1e9)](_0x124e36||_0x22d7a1['getDataSourceNameByModel'](_0x3ceca0))['getRepository'](_0x3ceca0)),this['handlercache']['push'](_0x43ff0f)),_0x43ff0f;}),_0x15fe16['useMiddleware'](this[_0x3049b2(0x1f6)](_0x15fe16));}[a0_0x39d046(0x1f6)](_0xef5351){return async(_0x50644d,_0x3ce26a)=>{const _0x13d353=a0_0x53ac;try{await _0x3ce26a();}catch(_0x51e57e){if(_0x51e57e instanceof typeorm_2[_0x13d353(0x1f3)])_0x51e57e instanceof typeorm_2['EntityNotFoundError']?_0x50644d[_0x13d353(0x1eb)]={'code':0x194,'msg':'数据不存在'}:(_0x50644d[_0x13d353(0x1eb)]={'code':0x1f4,'msg':_0x51e57e[_0x13d353(0x202)]},_0xef5351[_0x13d353(0x1d8)]()!=_0x13d353(0x1fc)&&console[_0x13d353(0x1f4)](_0x51e57e));else throw _0x51e57e;}};}};function a0_0xdf47(){const _0x5e62c7=['TypeORMError','warn','@midwayjs/decorator','middlewareError','ENTIFY_KEY','416912FMFvbp','MidwayDecoratorService','decorate','55qgJlEl','production','@midwayjs/core','4196016GkBrTL','1094744LHsnld','decorator','metadata','message','__decorate','238758qEYXkI','REPOSITORY_KEY','config','function','defineProperty','./definition/Repository','find','getEnv','619194xYKJzr','./interface','__esModule','typeorm','27276xtuZlu','getDataSourceNameByModel','length','prototype','11837358mrKvHB','target','TypeORMDataSourceManager','18czJIek','registerPropertyHandler','getAsync','Inject','handlercache','getDataSource','MidwayConfigService','body','__metadata','Repository','onReady','getOwnPropertyDescriptor','@midwayjs/typeorm','object','design:type'];a0_0xdf47=function(){return _0x5e62c7;};return a0_0xdf47();}__decorate([(0x0,decorator_1[a0_0x39d046(0x1e7)])(),__metadata(a0_0x39d046(0x1f2),core_1[a0_0x39d046(0x1ea)])],CustomConfiguration[a0_0x39d046(0x1e0)],a0_0x39d046(0x206),void 0x0),__decorate([(0x0,decorator_1[a0_0x39d046(0x1e7)])(),__metadata(a0_0x39d046(0x1f2),core_1[a0_0x39d046(0x1f9)])],CustomConfiguration['prototype'],a0_0x39d046(0x200),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'imports':[typeorm],'conflictCheck':![],'namespace':'anncic-api:typeorm'})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a1_0x4c4cfa=a1_0x30c6;(function(_0x22df7b,_0x2c2eec){const _0x1f0bf5=a1_0x30c6,_0x71d153=_0x22df7b();while(!![]){try{const _0x8b4817=-parseInt(_0x1f0bf5(0x11b))/0x1+-parseInt(_0x1f0bf5(0x11d))/0x2+-parseInt(_0x1f0bf5(0x120))/0x3+-parseInt(_0x1f0bf5(0x11f))/0x4*(parseInt(_0x1f0bf5(0x125))/0x5)+-parseInt(_0x1f0bf5(0x124))/0x6+parseInt(_0x1f0bf5(0x11c))/0x7+parseInt(_0x1f0bf5(0x118))/0x8;if(_0x8b4817===_0x2c2eec)break;else _0x71d153['push'](_0x71d153['shift']());}catch(_0x582b73){_0x71d153['push'](_0x71d153['shift']());}}}(a1_0x1fc1,0x1edaf));function a1_0x30c6(_0x40fa41,_0x3a43b8){const _0x1fc1ed=a1_0x1fc1();return a1_0x30c6=function(_0x30c63c,_0x31ae01){_0x30c63c=_0x30c63c-0x118;let _0x49189f=_0x1fc1ed[_0x30c63c];return _0x49189f;},a1_0x30c6(_0x40fa41,_0x3a43b8);}function a1_0x1fc1(){const _0x5b7ea3=['InjectEntity','108OwyUBL','294963hLendB','ENTIFY_KEY','default','createCustomPropertyDecorator','1126338fGZNkA','15085PvYYnX','3740088MfbqqY','defineProperty','__esModule','97094ePefVm','918610QeoSrx','15522DkCZyH'];a1_0x1fc1=function(){return _0x5b7ea3;};return a1_0x1fc1();}Object[a1_0x4c4cfa(0x119)](exports,a1_0x4c4cfa(0x11a),{'value':!![]}),exports[a1_0x4c4cfa(0x11e)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),interface_1=require('../interface');function InjectEntity(_0x21b242,_0x12d5ce=a1_0x4c4cfa(0x122)){const _0x47c3ab=a1_0x4c4cfa;return(0x0,decorator_1[_0x47c3ab(0x123)])(interface_1[_0x47c3ab(0x121)],{'entity':_0x21b242,'connection':_0x12d5ce});}exports[a1_0x4c4cfa(0x11e)]=InjectEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x5db985=a2_0x5e38;(function(_0x1d9895,_0x5986fb){const _0x5a2f80=a2_0x5e38,_0x2da713=_0x1d9895();while(!![]){try{const _0x463e77=parseInt(_0x5a2f80(0xf5))/0x1*(-parseInt(_0x5a2f80(0xfb))/0x2)+-parseInt(_0x5a2f80(0x102))/0x3+-parseInt(_0x5a2f80(0xf6))/0x4+parseInt(_0x5a2f80(0xf7))/0x5+-parseInt(_0x5a2f80(0x103))/0x6+-parseInt(_0x5a2f80(0xf9))/0x7*(-parseInt(_0x5a2f80(0x101))/0x8)+-parseInt(_0x5a2f80(0xfe))/0x9*(-parseInt(_0x5a2f80(0x100))/0xa);if(_0x463e77===_0x5986fb)break;else _0x2da713['push'](_0x2da713['shift']());}catch(_0x489bcf){_0x2da713['push'](_0x2da713['shift']());}}}(a2_0x2319,0xc7d16));Object['defineProperty'](exports,a2_0x5db985(0xf8),{'value':!![]}),exports['InjectRepository']=void 0x0;const decorator_1=require(a2_0x5db985(0xff)),interface_1=require('../interface');function a2_0x5e38(_0xf5907a,_0x27bba5){const _0x2319a4=a2_0x2319();return a2_0x5e38=function(_0x5e3838,_0x3725e6){_0x5e3838=_0x5e3838-0xf5;let _0x216ba8=_0x2319a4[_0x5e3838];return _0x216ba8;},a2_0x5e38(_0xf5907a,_0x27bba5);}function InjectRepository(_0x3de7c7,_0x19ba25='default'){const _0x3147fc=a2_0x5db985;return(0x0,decorator_1[_0x3147fc(0xfd)])(interface_1[_0x3147fc(0xfa)],{'repository':_0x3de7c7,'connection':_0x19ba25});}exports[a2_0x5db985(0xfc)]=InjectRepository;function a2_0x2319(){const _0x4a82ec=['createCustomPropertyDecorator','9wisYAY','@midwayjs/decorator','19353710mUoHxy','15896LbOPdt','1591251SPOhTH','3879702SRXkCt','1369861TfhjKA','5251464ZUJMpQ','6898810GuoaBe','__esModule','4802QfTzpw','REPOSITORY_KEY','2SauTmw','InjectRepository'];a2_0x2319=function(){return _0x4a82ec;};return a2_0x2319();}
|