@anncic-api/typeorm 1.0.0 → 1.0.6
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_0x5097a3=a0_0x9315;(function(_0x506bf0,_0x49a391){const _0x5785b8=a0_0x9315,_0x56eb78=_0x506bf0();while(!![]){try{const _0x26c6f1=parseInt(_0x5785b8(0x1fe))/0x1+parseInt(_0x5785b8(0x1e0))/0x2+-parseInt(_0x5785b8(0x200))/0x3+parseInt(_0x5785b8(0x1f2))/0x4*(-parseInt(_0x5785b8(0x1e6))/0x5)+parseInt(_0x5785b8(0x1f5))/0x6+-parseInt(_0x5785b8(0x1e4))/0x7+-parseInt(_0x5785b8(0x1ea))/0x8*(-parseInt(_0x5785b8(0x1de))/0x9);if(_0x26c6f1===_0x49a391)break;else _0x56eb78['push'](_0x56eb78['shift']());}catch(_0x2acb07){_0x56eb78['push'](_0x56eb78['shift']());}}}(a0_0x1ec7,0xb2f6d));function a0_0x1ec7(){const _0x416ca4=['4HknRvi','onReady','CustomConfiguration','1924134mvRfXK','length','typeorm','anncic-api-typeorm\x20Error\x20','MidwayConfigService','Repository','EntityNotFoundError','decorate','object','905713JQKQzX','@midwayjs/core','3661836nwFyqu','body','TypeORMError','Inject','getClassMetadata','@midwayjs/typeorm','production','./interface','function','registerPropertyHandler','REPOSITORY_KEY','getAsync','config','getEnv','prototype','target','defineProperty','decorator','\x20is\x20not\x20ProvideRepository\x20Entify','getDataSource','__esModule','117FdILZR','name','88720wzwaSW','getOwnPropertyDescriptor','ENTIFY_KEY','find','5194609avLmPW','handlercache','3902315ymvCun','metadata','middlewareError','getDataSourceNameByModel','1357192KafkkD','TypeORMDataSourceManager','push','warn','__metadata','getRepository','message','useMiddleware'];a0_0x1ec7=function(){return _0x416ca4;};return a0_0x1ec7();}function a0_0x9315(_0x17de04,_0x4cb8ef){const _0x1ec74c=a0_0x1ec7();return a0_0x9315=function(_0x931530,_0x14f73c){_0x931530=_0x931530-0x1da;let _0x3ea697=_0x1ec74c[_0x931530];return _0x3ea697;},a0_0x9315(_0x17de04,_0x4cb8ef);}var __decorate=this&&this['__decorate']||function(_0x16304a,_0xd3bcd0,_0x575150,_0x4f1afc){const _0x28809a=a0_0x9315;var _0x569f71=arguments[_0x28809a(0x1f6)],_0xa77653=_0x569f71<0x3?_0xd3bcd0:_0x4f1afc===null?_0x4f1afc=Object[_0x28809a(0x1e1)](_0xd3bcd0,_0x575150):_0x4f1afc,_0x516d78;if(typeof Reflect===_0x28809a(0x1fd)&&typeof Reflect[_0x28809a(0x1fc)]===_0x28809a(0x208))_0xa77653=Reflect[_0x28809a(0x1fc)](_0x16304a,_0xd3bcd0,_0x575150,_0x4f1afc);else{for(var _0x5a65d0=_0x16304a[_0x28809a(0x1f6)]-0x1;_0x5a65d0>=0x0;_0x5a65d0--)if(_0x516d78=_0x16304a[_0x5a65d0])_0xa77653=(_0x569f71<0x3?_0x516d78(_0xa77653):_0x569f71>0x3?_0x516d78(_0xd3bcd0,_0x575150,_0xa77653):_0x516d78(_0xd3bcd0,_0x575150))||_0xa77653;}return _0x569f71>0x3&&_0xa77653&&Object[_0x28809a(0x210)](_0xd3bcd0,_0x575150,_0xa77653),_0xa77653;},__metadata=this&&this[a0_0x5097a3(0x1ee)]||function(_0xfc7aa0,_0x33aa96){const _0x4676bc=a0_0x5097a3;if(typeof Reflect===_0x4676bc(0x1fd)&&typeof Reflect[_0x4676bc(0x1e7)]===_0x4676bc(0x208))return Reflect[_0x4676bc(0x1e7)](_0xfc7aa0,_0x33aa96);};Object[a0_0x5097a3(0x210)](exports,a0_0x5097a3(0x1dd),{'value':!![]}),exports[a0_0x5097a3(0x1f4)]=void 0x0;const typeorm_1=require('@midwayjs/typeorm'),decorator_1=require('@midwayjs/decorator'),core_1=require(a0_0x5097a3(0x1ff)),typeorm_2=require(a0_0x5097a3(0x1f7)),Repository_1=require('./definition/Repository'),interface_1=require(a0_0x5097a3(0x207)),typeorm=require(a0_0x5097a3(0x205));let CustomConfiguration=class CustomConfiguration{constructor(){const _0x5ededc=a0_0x5097a3;this[_0x5ededc(0x1e5)]=[];}async[a0_0x5097a3(0x1f3)](_0x5d0547,_0x32c0f9){const _0x353dae=a0_0x5097a3,_0x505e96=await _0x5d0547[_0x353dae(0x20b)](typeorm_1[_0x353dae(0x1eb)]);this[_0x353dae(0x1da)]['registerPropertyHandler'](interface_1[_0x353dae(0x1e2)],(_0x404ab8,{entity:_0x297fc0,connection:_0x367f1b})=>{const _0x2bbe83=_0x353dae;let _0x4606e5=this[_0x2bbe83(0x1e5)][_0x2bbe83(0x1e3)](_0x522d2e=>_0x522d2e[_0x2bbe83(0x20f)]==_0x297fc0);return!_0x4606e5&&(_0x4606e5=new Repository_1[(_0x2bbe83(0x1fa))](_0x32c0f9,_0x505e96[_0x2bbe83(0x1dc)](_0x367f1b||_0x505e96[_0x2bbe83(0x1e9)](_0x297fc0))['getRepository'](_0x297fc0)),this[_0x2bbe83(0x1e5)][_0x2bbe83(0x1ec)](_0x4606e5)),_0x4606e5;}),this[_0x353dae(0x1da)][_0x353dae(0x209)](interface_1[_0x353dae(0x20a)],(_0x16ecf8,{repository:_0x36ccee,connection:_0x38ab3b})=>{const _0x22de52=_0x353dae,{entity:_0x11be77}=(0x0,decorator_1[_0x22de52(0x204)])(interface_1[_0x22de52(0x20a)],_0x36ccee)||{};if(!_0x11be77)throw new Error(_0x22de52(0x1f8)+((_0x36ccee===null||_0x36ccee===void 0x0?void 0x0:_0x36ccee[_0x22de52(0x1df)])||_0x36ccee)+_0x22de52(0x1db));let _0x5c07db=this[_0x22de52(0x1e5)]['find'](_0xa1662e=>_0xa1662e[_0x22de52(0x20f)]==_0x11be77);return!_0x5c07db&&(_0x5c07db=new Repository_1[(_0x22de52(0x1fa))](_0x32c0f9,_0x505e96['getDataSource'](_0x38ab3b||_0x505e96[_0x22de52(0x1e9)](_0x11be77))[_0x22de52(0x1ef)](_0x11be77)),this[_0x22de52(0x1e5)][_0x22de52(0x1ec)](_0x5c07db)),_0x5c07db;}),_0x32c0f9[_0x353dae(0x1f1)](this[_0x353dae(0x1e8)](_0x32c0f9));}['middlewareError'](_0x367c20){return async(_0x3e4269,_0xef14b9)=>{const _0x218f9f=a0_0x9315;try{await _0xef14b9();}catch(_0x25a062){if(_0x25a062 instanceof typeorm_2[_0x218f9f(0x202)])_0x25a062 instanceof typeorm_2[_0x218f9f(0x1fb)]?_0x3e4269['body']={'code':0x194,'msg':'数据不存在'}:(_0x3e4269[_0x218f9f(0x201)]={'code':0x1f4,'msg':_0x25a062[_0x218f9f(0x1f0)]},_0x367c20[_0x218f9f(0x20d)]()!=_0x218f9f(0x206)&&console[_0x218f9f(0x1ed)](_0x25a062));else throw _0x25a062;}};}};__decorate([(0x0,decorator_1[a0_0x5097a3(0x203)])(),__metadata('design:type',core_1[a0_0x5097a3(0x1f9)])],CustomConfiguration[a0_0x5097a3(0x20e)],a0_0x5097a3(0x20c),void 0x0),__decorate([(0x0,decorator_1[a0_0x5097a3(0x203)])(),__metadata('design:type',core_1['MidwayDecoratorService'])],CustomConfiguration['prototype'],a0_0x5097a3(0x1da),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'imports':[typeorm],'conflictCheck':![],'namespace':'anncic-api:typeorm'})],CustomConfiguration),exports[a0_0x5097a3(0x1f4)]=CustomConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a1_0x113b(){const _0x18337e=['290960rHJVlk','32956eAQgrb','default','__esModule','296ZdLEzx','7tejbvp','createCustomPropertyDecorator','5958nXxgov','InjectEntity','4698846sDbNZQ','643075HGkiIC','122576ZPfZsj','defineProperty','239946rwnJIC'];a1_0x113b=function(){return _0x18337e;};return a1_0x113b();}const a1_0x106be6=a1_0x26dd;(function(_0x588bc5,_0x389f8e){const _0x40ceac=a1_0x26dd,_0x107b58=_0x588bc5();while(!![]){try{const _0x340862=-parseInt(_0x40ceac(0x15e))/0x1+-parseInt(_0x40ceac(0x165))/0x2*(parseInt(_0x40ceac(0x168))/0x3)+-parseInt(_0x40ceac(0x162))/0x4+parseInt(_0x40ceac(0x15d))/0x5+-parseInt(_0x40ceac(0x160))/0x6+parseInt(_0x40ceac(0x166))/0x7*(-parseInt(_0x40ceac(0x161))/0x8)+parseInt(_0x40ceac(0x15c))/0x9;if(_0x340862===_0x389f8e)break;else _0x107b58['push'](_0x107b58['shift']());}catch(_0xea5bf9){_0x107b58['push'](_0x107b58['shift']());}}}(a1_0x113b,0x24865));function a1_0x26dd(_0x1c750f,_0x1a2d3e){const _0x113b5b=a1_0x113b();return a1_0x26dd=function(_0x26dd94,_0xf4ca9a){_0x26dd94=_0x26dd94-0x15b;let _0x1e2713=_0x113b5b[_0x26dd94];return _0x1e2713;},a1_0x26dd(_0x1c750f,_0x1a2d3e);}Object[a1_0x106be6(0x15f)](exports,a1_0x106be6(0x164),{'value':!![]}),exports[a1_0x106be6(0x15b)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),interface_1=require('../interface');function InjectEntity(_0x34242c,_0x4bb8fa=a1_0x106be6(0x163)){const _0x5dbc61=a1_0x106be6;return(0x0,decorator_1[_0x5dbc61(0x167)])(interface_1['ENTIFY_KEY'],{'entity':_0x34242c,'connection':_0x4bb8fa});}exports[a1_0x106be6(0x15b)]=InjectEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x103526=a2_0x3998;(function(_0x20759f,_0x489cca){const _0x6d31b=a2_0x3998,_0xcb5628=_0x20759f();while(!![]){try{const _0x58663c=-parseInt(_0x6d31b(0x1ac))/0x1+parseInt(_0x6d31b(0x1a8))/0x2+-parseInt(_0x6d31b(0x1aa))/0x3+-parseInt(_0x6d31b(0x1a4))/0x4+parseInt(_0x6d31b(0x1a7))/0x5+parseInt(_0x6d31b(0x1ab))/0x6+-parseInt(_0x6d31b(0x1a6))/0x7*(parseInt(_0x6d31b(0x1b0))/0x8);if(_0x58663c===_0x489cca)break;else _0xcb5628['push'](_0xcb5628['shift']());}catch(_0x22998d){_0xcb5628['push'](_0xcb5628['shift']());}}}(a2_0x2c3a,0x4cdcd));Object[a2_0x103526(0x1a9)](exports,'__esModule',{'value':!![]}),exports[a2_0x103526(0x1af)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),interface_1=require(a2_0x103526(0x1a5));function a2_0x3998(_0x5ed4f7,_0x2512c0){const _0x2c3a74=a2_0x2c3a();return a2_0x3998=function(_0x3998df,_0x3a6033){_0x3998df=_0x3998df-0x1a4;let _0x122fd6=_0x2c3a74[_0x3998df];return _0x122fd6;},a2_0x3998(_0x5ed4f7,_0x2512c0);}function InjectRepository(_0x12f7d6,_0x1e759b=a2_0x103526(0x1ad)){const _0xa08ade=a2_0x103526;return(0x0,decorator_1[_0xa08ade(0x1ae)])(interface_1[_0xa08ade(0x1b1)],{'repository':_0x12f7d6,'connection':_0x1e759b});}exports[a2_0x103526(0x1af)]=InjectRepository;function a2_0x2c3a(){const _0x356ba7=['8NmoXIq','REPOSITORY_KEY','544104TtbEbq','../interface','910889ByxcaX','1756255LAfoSv','514794wbCHTC','defineProperty','508785bYWoux','2317962JgNFzQ','244398nrdCDS','default','createCustomPropertyDecorator','InjectRepository'];a2_0x2c3a=function(){return _0x356ba7;};return a2_0x2c3a();}
|