@anncic-api/typeorm 1.0.8 → 1.0.9
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';
|
|
1
|
+
'use strict';const a0_0x4a05b2=a0_0x25bb;(function(_0x25e0e5,_0xb6825e){const _0x4de030=a0_0x25bb,_0x5ca0b5=_0x25e0e5();while(!![]){try{const _0x3bc514=parseInt(_0x4de030(0x18e))/0x1*(parseInt(_0x4de030(0x19b))/0x2)+parseInt(_0x4de030(0x1a1))/0x3+parseInt(_0x4de030(0x1b3))/0x4*(-parseInt(_0x4de030(0x195))/0x5)+parseInt(_0x4de030(0x1ab))/0x6+parseInt(_0x4de030(0x19a))/0x7+parseInt(_0x4de030(0x19e))/0x8*(parseInt(_0x4de030(0x196))/0x9)+parseInt(_0x4de030(0x1b4))/0xa*(-parseInt(_0x4de030(0x1a8))/0xb);if(_0x3bc514===_0xb6825e)break;else _0x5ca0b5['push'](_0x5ca0b5['shift']());}catch(_0x33cdb6){_0x5ca0b5['push'](_0x5ca0b5['shift']());}}}(a0_0x4525,0x9982a));function a0_0x25bb(_0x26d7e5,_0x1698a1){const _0x4525ae=a0_0x4525();return a0_0x25bb=function(_0x25bb1c,_0x488203){_0x25bb1c=_0x25bb1c-0x18d;let _0x17f481=_0x4525ae[_0x25bb1c];return _0x17f481;},a0_0x25bb(_0x26d7e5,_0x1698a1);}var __decorate=this&&this[a0_0x4a05b2(0x1a0)]||function(_0x5ce33c,_0x24df47,_0x56e564,_0xa3832d){const _0x4f7a85=a0_0x4a05b2;var _0x4331cc=arguments[_0x4f7a85(0x1b6)],_0xd8c31b=_0x4331cc<0x3?_0x24df47:_0xa3832d===null?_0xa3832d=Object[_0x4f7a85(0x198)](_0x24df47,_0x56e564):_0xa3832d,_0x295696;if(typeof Reflect===_0x4f7a85(0x192)&&typeof Reflect[_0x4f7a85(0x1bd)]===_0x4f7a85(0x1a6))_0xd8c31b=Reflect[_0x4f7a85(0x1bd)](_0x5ce33c,_0x24df47,_0x56e564,_0xa3832d);else{for(var _0x172e2e=_0x5ce33c[_0x4f7a85(0x1b6)]-0x1;_0x172e2e>=0x0;_0x172e2e--)if(_0x295696=_0x5ce33c[_0x172e2e])_0xd8c31b=(_0x4331cc<0x3?_0x295696(_0xd8c31b):_0x4331cc>0x3?_0x295696(_0x24df47,_0x56e564,_0xd8c31b):_0x295696(_0x24df47,_0x56e564))||_0xd8c31b;}return _0x4331cc>0x3&&_0xd8c31b&&Object[_0x4f7a85(0x190)](_0x24df47,_0x56e564,_0xd8c31b),_0xd8c31b;},__metadata=this&&this['__metadata']||function(_0x41d4f7,_0xa08966){const _0x2f3a10=a0_0x4a05b2;if(typeof Reflect===_0x2f3a10(0x192)&&typeof Reflect['metadata']==='function')return Reflect['metadata'](_0x41d4f7,_0xa08966);};Object[a0_0x4a05b2(0x190)](exports,a0_0x4a05b2(0x1c2),{'value':!![]}),exports[a0_0x4a05b2(0x1ac)]=void 0x0;const typeorm_1=require('@midwayjs/typeorm'),decorator_1=require(a0_0x4a05b2(0x1b2)),core_1=require(a0_0x4a05b2(0x1b1)),typeorm_2=require(a0_0x4a05b2(0x199)),Repository_1=require(a0_0x4a05b2(0x18d)),interface_1=require(a0_0x4a05b2(0x19d)),typeorm=require(a0_0x4a05b2(0x1ad));function a0_0x4525(){const _0x3e11c1=['5953670bhaOtw','getDataSource','length','prototype','getRepository','getClassMetadata','onReady','middlewareError','\x20is\x20not\x20ProvideRepository\x20Entify','decorate','getEnv','find','anncic-api:typeorm','name','__esModule','./definition/Repository','70386QzsBTo','push','defineProperty','handlercache','object','REPOSITORY_KEY','getDataSourceNameByModel','35MsCxSK','18qBdRRu','ENTIFY_KEY','getOwnPropertyDescriptor','typeorm','2408196FHEOQz','10DTmiiR','message','./interface','43784Xghvls','registerPropertyHandler','__decorate','544662HMDpEu','TypeORMDataSourceManager','body','Repository','target','function','EntityNotFoundError','11UJBLzS','decorator','Inject','3133590ZnGAAD','CustomConfiguration','@midwayjs/typeorm','getAsync','production','design:type','@midwayjs/core','@midwayjs/decorator','106616ErQUnQ'];a0_0x4525=function(){return _0x3e11c1;};return a0_0x4525();}let CustomConfiguration=class CustomConfiguration{constructor(){const _0x15d5ce=a0_0x4a05b2;this[_0x15d5ce(0x191)]=[];}async[a0_0x4a05b2(0x1ba)](_0x411866,_0x520edb){const _0x121740=a0_0x4a05b2,_0x3b457a=await _0x411866[_0x121740(0x1ae)](typeorm_1[_0x121740(0x1a2)]);this[_0x121740(0x1a9)][_0x121740(0x19f)](interface_1[_0x121740(0x197)],(_0x543058,{entity:_0x217b6c,connection:_0x3b1212})=>{const _0x3fa455=_0x121740;let _0x1005fb=this[_0x3fa455(0x191)]['find'](_0x2959e5=>_0x2959e5['target']==_0x217b6c);return!_0x1005fb&&(_0x1005fb=new Repository_1[(_0x3fa455(0x1a4))](_0x520edb,_0x3b457a[_0x3fa455(0x1b5)](_0x3b1212||_0x3b457a[_0x3fa455(0x194)](_0x217b6c))[_0x3fa455(0x1b8)](_0x217b6c)),this[_0x3fa455(0x191)][_0x3fa455(0x18f)](_0x1005fb)),_0x1005fb;}),this['decorator'][_0x121740(0x19f)](interface_1[_0x121740(0x193)],(_0x2a928c,{repository:_0x2771dd,connection:_0x5a834a})=>{const _0x1865cc=_0x121740,{entity:_0x3d59e9}=(0x0,decorator_1[_0x1865cc(0x1b9)])(interface_1[_0x1865cc(0x193)],_0x2771dd)||{};if(!_0x3d59e9)throw new Error('anncic-api-typeorm\x20Error\x20'+((_0x2771dd===null||_0x2771dd===void 0x0?void 0x0:_0x2771dd[_0x1865cc(0x1c1)])||_0x2771dd)+_0x1865cc(0x1bc));let _0x1e2bf6=this['handlercache'][_0x1865cc(0x1bf)](_0x2b4dbd=>_0x2b4dbd[_0x1865cc(0x1a5)]==_0x3d59e9);return!_0x1e2bf6&&(_0x1e2bf6=new Repository_1[(_0x1865cc(0x1a4))](_0x520edb,_0x3b457a[_0x1865cc(0x1b5)](_0x5a834a||_0x3b457a['getDataSourceNameByModel'](_0x3d59e9))[_0x1865cc(0x1b8)](_0x3d59e9)),this[_0x1865cc(0x191)]['push'](_0x1e2bf6)),_0x1e2bf6;}),_0x520edb['useMiddleware'](this[_0x121740(0x1bb)](_0x520edb));}['middlewareError'](_0x569467){return async(_0x2e5701,_0x5b1504)=>{const _0x2b63d7=a0_0x25bb;try{await _0x5b1504();}catch(_0x345865){if(_0x345865 instanceof typeorm_2['TypeORMError'])_0x345865 instanceof typeorm_2[_0x2b63d7(0x1a7)]?_0x2e5701[_0x2b63d7(0x1a3)]={'code':0x194,'msg':'数据不存在'}:(_0x2e5701[_0x2b63d7(0x1a3)]={'code':0x1f4,'msg':_0x345865[_0x2b63d7(0x19c)]},_0x569467[_0x2b63d7(0x1be)]()!=_0x2b63d7(0x1af)&&console['warn'](_0x345865));else throw _0x345865;}};}};__decorate([(0x0,decorator_1['Inject'])(),__metadata(a0_0x4a05b2(0x1b0),core_1['MidwayConfigService'])],CustomConfiguration[a0_0x4a05b2(0x1b7)],'config',void 0x0),__decorate([(0x0,decorator_1[a0_0x4a05b2(0x1aa)])(),__metadata('design:type',core_1['MidwayDecoratorService'])],CustomConfiguration[a0_0x4a05b2(0x1b7)],a0_0x4a05b2(0x1a9),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'imports':[typeorm],'conflictCheck':![],'namespace':a0_0x4a05b2(0x1c0)})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x53a872=a1_0x3935;function a1_0x3935(_0x4d843f,_0x23b978){const _0x3871f9=a1_0x3871();return a1_0x3935=function(_0x3935d7,_0x4d4fe4){_0x3935d7=_0x3935d7-0x10a;let _0x2e3a3f=_0x3871f9[_0x3935d7];return _0x2e3a3f;},a1_0x3935(_0x4d843f,_0x23b978);}(function(_0x175fbc,_0x167b52){const _0x994b2e=a1_0x3935,_0x4ce82f=_0x175fbc();while(!![]){try{const _0x19128a=-parseInt(_0x994b2e(0x115))/0x1+-parseInt(_0x994b2e(0x118))/0x2+parseInt(_0x994b2e(0x10b))/0x3+-parseInt(_0x994b2e(0x117))/0x4*(-parseInt(_0x994b2e(0x112))/0x5)+-parseInt(_0x994b2e(0x111))/0x6+parseInt(_0x994b2e(0x116))/0x7*(-parseInt(_0x994b2e(0x10f))/0x8)+parseInt(_0x994b2e(0x10c))/0x9*(parseInt(_0x994b2e(0x110))/0xa);if(_0x19128a===_0x167b52)break;else _0x4ce82f['push'](_0x4ce82f['shift']());}catch(_0x6dc937){_0x4ce82f['push'](_0x4ce82f['shift']());}}}(a1_0x3871,0xf29de));Object[a1_0x53a872(0x10e)](exports,'__esModule',{'value':!![]}),exports[a1_0x53a872(0x10d)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),interface_1=require('../interface');function a1_0x3871(){const _0x3c1b31=['default','412854dXuRxK','48612483bDWzoP','InjectEntity','defineProperty','12497272qKKSIb','10EPRzuF','1495500FpOLzn','350XwaOnt','ENTIFY_KEY','createCustomPropertyDecorator','1816308JDOVzG','7aZWkcl','5308fFJSJn','2020840GomnYW'];a1_0x3871=function(){return _0x3c1b31;};return a1_0x3871();}function InjectEntity(_0x13b0d6,_0x1d3fe4=a1_0x53a872(0x10a)){const _0x2a80ba=a1_0x53a872;return(0x0,decorator_1[_0x2a80ba(0x114)])(interface_1[_0x2a80ba(0x113)],{'entity':_0x13b0d6,'connection':_0x1d3fe4});}exports['InjectEntity']=InjectEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x5c673a=a2_0x345d;function a2_0x1a6e(){const _0xe80625=['4051040bxzdJM','56495ptFIpD','InjectRepository','50aVTSmr','564158cpgwnI','1985385CYoKeZ','REPOSITORY_KEY','4297532ROZcgX','96WdKUpH','1675116veqTzg','default','createCustomPropertyDecorator','defineProperty','__esModule','@midwayjs/decorator','39918843OEjiom','10juRjUb'];a2_0x1a6e=function(){return _0xe80625;};return a2_0x1a6e();}(function(_0x34d870,_0x28f022){const _0x745e9a=a2_0x345d,_0x361cf1=_0x34d870();while(!![]){try{const _0x4974f1=parseInt(_0x745e9a(0x186))/0x1*(parseInt(_0x745e9a(0x188))/0x2)+parseInt(_0x745e9a(0x17d))/0x3+parseInt(_0x745e9a(0x18c))/0x4+parseInt(_0x745e9a(0x18a))/0x5+parseInt(_0x745e9a(0x18d))/0x6*(parseInt(_0x745e9a(0x189))/0x7)+parseInt(_0x745e9a(0x185))/0x8+parseInt(_0x745e9a(0x183))/0x9*(-parseInt(_0x745e9a(0x184))/0xa);if(_0x4974f1===_0x28f022)break;else _0x361cf1['push'](_0x361cf1['shift']());}catch(_0x26a5b2){_0x361cf1['push'](_0x361cf1['shift']());}}}(a2_0x1a6e,0xc3f68));function a2_0x345d(_0x5546e0,_0x25fba8){const _0x1a6eb0=a2_0x1a6e();return a2_0x345d=function(_0x345d21,_0x2adc72){_0x345d21=_0x345d21-0x17d;let _0x55a05e=_0x1a6eb0[_0x345d21];return _0x55a05e;},a2_0x345d(_0x5546e0,_0x25fba8);}Object[a2_0x5c673a(0x180)](exports,a2_0x5c673a(0x181),{'value':!![]}),exports['InjectRepository']=void 0x0;const decorator_1=require(a2_0x5c673a(0x182)),interface_1=require('../interface');function InjectRepository(_0x3fc018,_0x2601fb=a2_0x5c673a(0x17e)){const _0x2f9c77=a2_0x5c673a;return(0x0,decorator_1[_0x2f9c77(0x17f)])(interface_1[_0x2f9c77(0x18b)],{'repository':_0x3fc018,'connection':_0x2601fb});}exports[a2_0x5c673a(0x187)]=InjectRepository;
|